/* Tematikus oldal – árusbemutató (pl. Hol vegyünk csabai kolbászt?) */
.cpt-tema {
  --t-ink: #1f2a22;
  --t-muted: #5f6a63;
  --t-line: rgba(31, 42, 34, 0.1);
  --t-soft: #f7f6f2;
  --t-green: #63aa7d;
  --t-orange: #ff7800;
  --t-yellow: #f9c541;
  --t-radius: 24px;
  --t-header-offset: 96px; /* az oldal ragadós fejlécének magassága */

  color: var(--t-ink);
  font-family: inherit;
}

.cpt-tema *,
.cpt-tema *::before,
.cpt-tema *::after { box-sizing: border-box; }

/* ---------- Árusválasztó (nem ragadós) ---------- */
.cpt-tema__picker {
  margin: 0 0 36px;
  padding: 18px;
  border-radius: var(--t-radius);
  background: var(--t-soft);
}

.cpt-tema .cpt-tema__picker-head {
  margin: 0 0 14px;
  padding: 0 4px;
  font-size: 15px;
  color: var(--t-muted);
}
.cpt-tema .cpt-tema__picker-head strong { color: var(--t-ink); }

.cpt-tema .cpt-tema__picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cpt-tema .cpt-tema__picker-grid li { margin: 0; padding: 0; }

.cpt-tema .cpt-tema__picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--t-line);
  border-radius: 16px;
  background: #fff;
  color: var(--t-ink);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cpt-tema .cpt-tema__picker-item:hover {
  border-color: color-mix(in srgb, var(--t-orange) 45%, transparent);
  box-shadow: 0 8px 22px rgba(31, 42, 34, 0.08);
  transform: translateY(-2px);
  color: var(--t-ink);
}
.cpt-tema .cpt-tema__picker-item:focus-visible { outline: 3px solid var(--t-orange); outline-offset: 2px; }

.cpt-tema .cpt-tema__picker-img {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--t-soft);
}
.cpt-tema .cpt-tema__picker-img.is-empty {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--t-muted);
}

.cpt-tema__picker-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cpt-tema .cpt-tema__picker-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}
.cpt-tema .cpt-tema__picker-meta {
  font-size: 13px;
  color: var(--t-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpt-tema .cpt-tema__picker-arrow {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: var(--t-muted);
  transition: fill 0.2s, transform 0.2s;
}
.cpt-tema .cpt-tema__picker-item:hover .cpt-tema__picker-arrow { fill: var(--t-orange); transform: translateY(2px); }

/* Érkezés jelzése: a kiválasztott árus kártyája egy pillanatra kiemelődik */
.cpt-tema__card.is-target {
  animation: cpt-tema-arrive 1.6s ease-out;
}
@keyframes cpt-tema-arrive {
  0%, 25% { box-shadow: 0 0 0 3px var(--t-orange), 0 12px 32px rgba(31, 42, 34, 0.12); }
  100% { box-shadow: 0 0 0 0 transparent, 0 12px 32px rgba(31, 42, 34, 0.05); }
}

/* ---------- Árus kártyák ---------- */
.cpt-tema__list { display: grid; gap: 28px; }

.cpt-tema__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  background: #fff;
  overflow: hidden;
  scroll-margin-top: calc(var(--t-header-offset) + 16px);
  box-shadow: 0 1px 2px rgba(31, 42, 34, 0.04), 0 12px 32px rgba(31, 42, 34, 0.05);
}

@media (min-width: 900px) {
  .cpt-tema__card { grid-template-columns: 380px minmax(0, 1fr); align-items: start; }
}

.cpt-tema__media,
.cpt-tema__content { min-width: 0; }

/* Egy fotó – kisebb, négyzetes, élesen (srcset) */
.cpt-tema__media { padding: 8px; }
@media (min-width: 900px) {
  .cpt-tema__media { padding: 12px 0 12px 12px; }
}

.cpt-tema .cpt-tema__photo {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--t-radius) - 8px);
  overflow: hidden;
  background: var(--t-soft);
}
@media (max-width: 899px) {
  .cpt-tema .cpt-tema__photo { aspect-ratio: 4 / 3; }
}

.cpt-tema .cpt-tema__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cpt-tema .cpt-tema__photo:hover img { transform: scale(1.03); }
.cpt-tema .cpt-tema__photo:focus-visible { outline: 3px solid var(--t-orange); outline-offset: 2px; }

.cpt-tema__photo.is-empty {
  display: grid;
  place-items: center;
  font-size: 64px;
  font-weight: 700;
  color: rgba(31, 42, 34, 0.25);
}

.cpt-tema__content {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 30px;
}
@media (min-width: 900px) {
  .cpt-tema__content { padding: 36px 40px; }
}

.cpt-tema .cpt-tema__badge {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--t-yellow) 35%, #fff);
  color: #6b4b00;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cpt-tema .cpt-tema__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.15;
  color: var(--t-ink);
}

.cpt-tema .cpt-tema__intro {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--t-muted);
}

.cpt-tema .cpt-tema__h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-muted);
}

.cpt-tema__offer { margin: 0 0 22px; }

/* Kínálat: egymás melletti badge-ek */
.cpt-tema .cpt-tema__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cpt-tema .cpt-tema__badges li {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--t-orange) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--t-orange) 28%, transparent);
  color: color-mix(in srgb, var(--t-orange) 40%, #1f2a22);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.cpt-tema .cpt-tema__awards {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--t-yellow) 18%, #fff);
  font-size: 14px;
  line-height: 1.5;
}
.cpt-tema .cpt-tema__awards svg { flex: 0 0 auto; width: 20px; height: 20px; fill: #c48a00; margin-top: 1px; }

.cpt-tema__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.cpt-tema .cpt-tema__map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--t-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.cpt-tema .cpt-tema__map-btn:hover { background: #2e3d33; color: #fff; transform: translateY(-1px); }
.cpt-tema .cpt-tema__map-btn:focus-visible { outline: 3px solid var(--t-orange); outline-offset: 2px; }
.cpt-tema .cpt-tema__map-btn svg { width: 18px; height: 18px; fill: currentColor; }

.cpt-tema .cpt-tema__contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--t-line);
  border-radius: 999px;
  color: var(--t-ink);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.cpt-tema .cpt-tema__contact:hover { border-color: var(--t-green); background: var(--t-soft); color: var(--t-ink); }
.cpt-tema .cpt-tema__contact svg { width: 16px; height: 16px; fill: var(--t-green); }

@media (max-width: 600px) {
  .cpt-tema__picker { padding: 12px; margin-bottom: 24px; border-radius: 18px; }
  .cpt-tema .cpt-tema__picker-grid { grid-template-columns: 1fr; gap: 8px; }
  .cpt-tema__content { padding: 22px 18px 24px; }
  .cpt-tema .cpt-tema__map-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cpt-tema * { transition: none !important; }
}
