/* Pagina de vanzare a turului audio — Versiunea 2 (template-parts/…/single-tur-audio-v2.php)
   Baza (grila, galerie, carduri, meniu, itinerariu, harta) vine din tur-ghidat-v2.css (clasele tgv2-*);
   aici sunt doar partile specifice turului audio (clasele tav2p-*). Tokenii --g, --gd, --ink, --mute, --line, --soft: din .tgv2. */

/* ================= Cardul de cumparare ================= */
.tav2p-buy__tag {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 4px 10px;
  border-radius: 999px; background: var(--soft); color: var(--gd);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.tav2p-buy__tag .tgv2-ic { color: var(--g); }
body.single-tururi .tav2p .tav2p-buy .Price.tav2p-price { margin: 0; padding: 0; border: 0; background: none; }
body.single-tururi .tav2p .tav2p-buy .Price .pret-grup { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 0; }
body.single-tururi .tav2p .tav2p-buy .Price .pret-grup b { padding: 0; font-size: 38px; line-height: 1.05; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
body.single-tururi .tav2p .tav2p-buy .Price .pret-grup span { font-size: 14px; font-weight: 600; color: var(--mute); }
.tav2p-buy__access { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--gd); }
.tav2p-buy__note { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--mute); }
/* vizitator cu accesul expirat: anuntul din capul cardului */
.tav2p-expired { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; }
.tav2p-expired strong { display: flex; align-items: center; gap: 7px; font-size: 14.5px; line-height: 1.35; color: #9a3412; }
.tav2p-expired strong .tgv2-ic { flex: 0 0 18px; color: #ea580c; }
.tav2p-expired p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: #7c2d12; }
.tav2p-buy__list { display: flex; flex-direction: column; gap: 9px; margin: 16px 0 18px; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.tav2p-buy__list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 14.5px; line-height: 1.45; color: #374151; }
.tav2p-buy__list .tgv2-ic { flex: 0 0 20px; width: 20px; height: 20px; padding: 3px; margin-top: 1px; border-radius: 50%; background: var(--soft); color: var(--gd); stroke-width: 2.6; }
.tav2p-buy__list b { color: var(--ink); }
body.single-tururi .tav2p .tav2p-buy .tl-audio-buy { min-height: 54px; font-size: 16px; border-radius: 16px; box-shadow: 0 10px 22px rgba(105, 183, 6, .28); }
.tav2p-buy__sample {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink);
  font-size: 14.5px; font-weight: 700; cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.tav2p-buy__sample:hover { border-color: #c9dfae; background: var(--soft); }
.tav2p-buy__sample svg { width: 18px; height: 18px; color: var(--g); }
.tav2p-buy__trust { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--mute); }
.tav2p-buy__trust .tgv2-ic { flex: 0 0 16px; margin-top: 1px; color: var(--g); }
.tav2p-buy__login { margin: 10px 0 0; font-size: 12.5px; color: var(--mute); }
.tav2p-buy__login .PModal { color: var(--gd); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* iconita play / pauza (aceeasi in player, in card si in itinerariu) */
.tav2p-i-pause { display: none; }
.is-playing .tav2p-i-play { display: none; }
.is-playing .tav2p-i-pause { display: inline; }

.tav2p-intro { margin: 0 0 18px; font-size: 15.5px; line-height: 1.65; color: #374151; }
.tav2p-link { padding: 0; border: 0; background: none; color: var(--gd); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ================= Mostra audio ================= */
.tgv2-card.tav2p-sample {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px 28px; align-items: center;
  background: linear-gradient(135deg, #1b2530 0%, #24303d 60%, #2c3f2a 100%); border-color: #1f2933; color: #fff;
}
.tav2p-sample .tgv2-kicker { color: #b6e36f; }
.tav2p-sample .tgv2-h2 { color: #fff; margin-bottom: 8px; }
.tav2p-sample__text p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.tav2p-player {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tav2p-player__cover { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; display: block; }
.tav2p-player__body { min-width: 0; }
.tav2p-player__label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b6e36f; }
.tav2p-player__title { display: block; margin: 2px 0 10px; font-size: 16px; line-height: 1.3; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tav2p-player__bar { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); cursor: pointer; outline-offset: 4px; }
.tav2p-player__bar::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; } /* zona de atingere mai mare */
.tav2p-player__bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: var(--g); }
.tav2p-player__time { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .65); }
.tav2p-player__btn {
  width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--g); color: #fff; box-shadow: 0 10px 22px rgba(105, 183, 6, .4);
  transition: transform .15s ease, background .2s ease;
}
.tav2p-player__btn:hover { transform: scale(1.06); background: var(--gd); }
.tav2p-player__btn svg { width: 24px; height: 24px; }
.tav2p-player.is-playing .tav2p-player__btn { animation: tav2p-pulse 1.8s ease-out infinite; }
@keyframes tav2p-pulse { 0% { box-shadow: 0 0 0 0 rgba(105, 183, 6, .55); } 100% { box-shadow: 0 0 0 16px rgba(105, 183, 6, 0); } }
.tav2p-sample__more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: rgba(255, 255, 255, .8); }
.tav2p-sample__more .tgv2-ic { color: #b6e36f; }
.tav2p-sample__more .tav2p-link { color: #b6e36f; }

/* ================= Cum functioneaza ================= */
.tav2p-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; margin: 6px 0 18px; padding: 0; list-style: none; counter-reset: none; }
.tav2p-steps li {
  position: relative; display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 18px 16px 16px;
  border-radius: 18px; background: var(--soft); border: 1px solid #e3eed5;
}
.tav2p-steps__num {
  position: absolute; top: -10px; left: 14px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800;
}
.tav2p-steps__ic {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--gd); font-size: 18px; box-shadow: 0 4px 10px rgba(79, 143, 10, .12);
}
.tav2p-steps li > div { display: flex; flex-direction: column; gap: 4px; }
.tav2p-steps strong { font-size: 15.5px; line-height: 1.3; color: var(--ink); }
.tav2p-steps li > div > span { font-size: 13.5px; line-height: 1.5; color: #4b5563; }

/* ================= Itinerariu ================= */
.tav2p-walk { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.tav2p-walk .tgv2-ic { color: var(--g); }
.tav2p-audio {
  display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 8px; padding: 7px 12px 7px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.3;
}
.tav2p-audio.is-free { border: 0; background: var(--g); color: #fff; cursor: pointer; box-shadow: 0 6px 14px rgba(105, 183, 6, .28); transition: background .2s ease; }
.tav2p-audio.is-free:hover { background: var(--gd); }
.tav2p-audio.is-free svg { flex: 0 0 16px; width: 16px; height: 16px; }
.tav2p-audio > span { text-align: left; }
.tav2p-audio.is-locked { background: #f3f4f6; color: #6b7280; font-weight: 600; }
.tav2p-audio.is-locked .tgv2-ic { color: #9ca3af; }
.tav2p-meta { margin-top: 6px !important; font-size: 13px !important; color: var(--mute) !important; }

/* legenda hartii: obiective cu detalii / obiective blocate */
.tav2p-itin .tgv2-itin__map { margin-bottom: 10px; }
.tav2p-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; font-size: 13px; color: var(--mute); }
.tav2p-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tav2p-legend__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d9eac3; }
.tav2p-legend__lock { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #9aa3af; color: #fff; }
.tav2p-legend__lock .tgv2-ic { width: 11px; height: 11px; stroke-width: 2.4; }

/* obiectivele blocate: randuri estompate + indemnul de cumparare */
.tav2p-locked { position: relative; margin-top: 6px; padding: 18px; border-radius: 18px; border: 1px dashed #c9dfae; background: linear-gradient(180deg, #fbfdf8, #f3f8ec); overflow: hidden; }
.tav2p-locked__rows { display: flex; flex-direction: column; gap: 14px; filter: blur(3px); opacity: .55; pointer-events: none; }
.tav2p-locked__row { display: flex; align-items: center; gap: 12px; }
.tav2p-locked__row span { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--g); color: #fff; font-weight: 800; font-size: 14px; }
.tav2p-locked__row i { flex: 1 1 auto; height: 14px; border-radius: 7px; background: #cfd8c2; }
.tav2p-locked__row:nth-child(2) i { max-width: 62%; }
.tav2p-locked__row:nth-child(3) i { max-width: 78%; }
.tav2p-locked__row b { flex: 0 0 64px; height: 44px; border-radius: 10px; background: #dbe3cf; }
.tav2p-locked__cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; text-align: center; background: rgba(251, 253, 248, .72); }
.tav2p-locked__ic { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--gd); box-shadow: 0 6px 16px rgba(79, 143, 10, .18); }
.tav2p-locked__cta strong { font-size: 16.5px; line-height: 1.3; color: var(--ink); }
.tav2p-locked__cta > span:not(.tav2p-locked__ic) { max-width: 420px; font-size: 13.5px; line-height: 1.45; color: #4b5563; }
.tav2p-locked__cta .btn { margin-top: 6px; border-radius: 14px; padding: 10px 20px; }
.tav2p-locked { min-height: 210px; }

/* ================= Ce ai nevoie ================= */
.tgv2-checks.tav2p-needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }

/* ================= Intrebari frecvente ================= */
.tav2p-faq details { border-top: 1px solid var(--line); }
.tav2p-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.tav2p-faq summary {
  position: relative; display: block; padding: 15px 34px 15px 0; cursor: pointer; list-style: none;
  font-size: 15.5px; font-weight: 700; line-height: 1.4; color: var(--ink);
}
.tav2p-faq summary::-webkit-details-marker { display: none; }
.tav2p-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--gd); border-bottom: 2px solid var(--gd); transform: rotate(45deg); transition: transform .2s ease;
}
.tav2p-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.tav2p-faq summary:hover { color: var(--gd); }
.tav2p-faq details p { margin: 0; padding: 0 34px 16px 0; font-size: 15px; line-height: 1.65; color: #374151; }

/* ================= Indemnul final ================= */
.tav2p-final {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding: 22px 26px;
  border-radius: var(--r-card); background: linear-gradient(135deg, var(--g), var(--gd)); color: #fff;
  box-shadow: 0 16px 34px rgba(79, 143, 10, .28);
}
.tav2p-final > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tav2p-final strong { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 22px; line-height: 1.2; }
.tav2p-final span { font-size: 14.5px; color: rgba(255, 255, 255, .9); }
body.single-tururi .tav2p .tav2p-final .btn { flex: 0 0 auto; background: #fff; border-color: #fff; color: var(--gd); border-radius: 14px; padding: 12px 24px; font-weight: 800; box-shadow: none; }
body.single-tururi .tav2p .tav2p-final .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .tav2p-player.is-playing .tav2p-player__btn { animation: none; }
}

/* ================= Tableta / telefon ================= */
@media (max-width: 767px) {
  body.single-tururi .tav2p .tav2p-buy .Price .pret-grup b { font-size: 34px; }
  .tgv2-card.tav2p-sample { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tav2p-player { gap: 12px; padding: 12px; }
  .tav2p-player__cover { width: 60px; height: 60px; border-radius: 12px; }
  .tav2p-player__btn { width: 52px; height: 52px; }
  .tav2p-player__title { font-size: 15px; }

  /* pasii: o coloana, ca o cronologie */
  .tav2p-steps { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 14px; }
  .tav2p-steps li { flex-direction: row; align-items: flex-start; gap: 13px; padding: 0 0 20px 0; background: none; border: 0; border-radius: 0; }
  .tav2p-steps li:last-child { padding-bottom: 4px; }
  .tav2p-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 2px; width: 2px; background: repeating-linear-gradient(180deg, #b9d994 0 4px, transparent 4px 8px); }
  .tav2p-steps__ic { flex: 0 0 44px; background: var(--soft); box-shadow: none; }
  .tav2p-steps__num { top: -6px; left: 30px; min-width: 20px; height: 20px; padding: 0 5px; font-size: 11.5px; border: 2px solid #fff; }
  .tav2p-steps li > div { padding-top: 2px; }

  /* itinerariu pe telefon: poza mica langa titlu, iar textul pe toata latimea (nu inghesuit langa poza) */
  .tav2p-itin .tgv2-stop { display: grid; grid-template-columns: 36px minmax(0, 1fr) 64px; gap: 0 12px; align-items: start; }
  .tav2p-itin .tgv2-stop__num { grid-column: 1; grid-row: 1 / span 12; }
  .tav2p-itin .tgv2-stop__body { display: contents; }
  .tav2p-itin .tgv2-stop__body > * { grid-column: 2 / 4; }
  .tav2p-itin .tgv2-stop__body > .tav2p-walk,
  .tav2p-itin .tgv2-stop__body > .tgv2-stop__head { grid-column: 2 / 3; }
  .tav2p-itin .tgv2-stop__body > :first-child { margin-top: 6px; }
  .tav2p-itin .tgv2-stop__img { grid-column: 3; grid-row: 1 / span 2; width: 64px; height: 52px; margin-top: 4px; }
  .tav2p-itin .tgv2-stop:not(:has(.tgv2-stop__img)) .tgv2-stop__body > * { grid-column: 2 / 4; }
  .tav2p-itin .tav2p-audio { justify-self: start; }
  .tav2p-itin .tgv2-stop__show { justify-self: start; }

  .tgv2-checks.tav2p-needs { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tav2p-locked { padding: 14px; min-height: 230px; }
  .tav2p-faq summary { font-size: 15px; padding: 14px 30px 14px 0; }
  .tav2p-faq details p { padding-right: 0; font-size: 14.5px; }
  .tav2p-final { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; padding: 20px 18px; }
  body.single-tururi .tav2p .tav2p-final .btn { width: 100%; }
}

/* ================= Limba turului (cardul de cumparare) =================
   Accesul e pe limba cumparata: selectorul schimba limba si pretul (tur-audio-v2-page.js). */
.tav2p-langs { margin: 0 0 14px; }
.tav2p-langs__label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.tav2p-langs__list { display: grid; gap: 8px; }
.tav2p-lang {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.tav2p-lang:hover { border-color: #c9dfae; }
.tav2p-lang .fi { flex: 0 0 22px; width: 22px; height: 16px; border-radius: 3px; background-size: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.tav2p-lang__name { flex: 1; min-width: 0; }
.tav2p-lang__price { font-size: 14px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.tav2p-lang::after { content: ""; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.tav2p-lang.is-active { border-color: var(--g); background: var(--soft); box-shadow: 0 0 0 1px var(--g); }
.tav2p-lang.is-active .tav2p-lang__price { color: var(--gd); }
.tav2p-lang.is-active::after { border-color: var(--g); box-shadow: inset 0 0 0 4px var(--g); }
.tav2p-lang.is-owned { cursor: default; background: #f8fafc; color: var(--mute); }
.tav2p-lang.is-owned::after { content: none; }
.tav2p-lang.is-owned .fi { opacity: .75; }
/* limba deja cumparata: „ai acces până pe …”, discret, sub numele limbii */
.tav2p-lang__sub { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--gd); }
.tav2p-lang:focus-visible { outline: 3px solid rgba(105, 183, 6, .35); outline-offset: 2px; }
.tav2p-langs__note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--mute); }

/* vizitatorul are deja turul in alta limba */
.tav2p-owned { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--soft); border: 1px solid #d5e8bb; }
.tav2p-owned strong { display: flex; align-items: center; gap: 7px; font-size: 14.5px; line-height: 1.35; color: var(--gd); }
.tav2p-owned__link { display: flex; align-items: center; gap: 9px; margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tav2p-owned__link .fi { flex: 0 0 22px; width: 22px; height: 16px; border-radius: 3px; background-size: cover; }

/* pagina intr-o limba in care turul audio nu exista inca: se vand limbile disponibile */
.tav2p-langnote { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 11px 13px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; font-size: 13.5px; line-height: 1.5; color: #7c2d12; }
.tav2p-langnote .tgv2-ic { flex: 0 0 18px; margin-top: 1px; color: #ea580c; }
