/* ============================================
   TOUR LISTING — intro (what virtual tours are, how to watch them)
   ============================================ */

.tl-hero {
  max-width: calc(var(--content-max) + 4rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 2rem 1rem;
}

.tl-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.tl-tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.1rem;
}
.tl-tag::before { content: ''; width: 30px; height: 1px; background: var(--c-accent); }

.tl-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--c-text-strong);
  margin: 0 0 1.3rem;
}
/* Instrument Serif italic — Cormorant's light italic misplaces the caron on č/ć */
.tl-hero h1 em {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--c-accent-light);
}

.tl-lead {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--c-text);
  max-width: 34em;
  margin: 0 0 2rem;
}

.tl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.tl-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  background: var(--c-text-strong);
  color: var(--c-bg);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s;
}
.tl-cta:hover { background: var(--c-accent); }
.tl-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-strong);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
  transition: color 0.3s;
}
.tl-link:hover { color: var(--c-accent); }

/* ── Headset illustration ── */
.tl-visual { margin: 0; text-align: center; }
.tl-headset { display: block; width: 100%; height: auto; overflow: visible; }
.tl-body { fill: var(--c-surface); stroke: var(--c-text-strong); stroke-width: 2; }
.tl-strap { fill: none; stroke: var(--c-text-strong); stroke-width: 14; stroke-linecap: round; opacity: 0.85; }
.tl-visor-bg { fill: #2a2622; }
.tl-visor-edge { fill: none; stroke: rgba(0, 0, 0, 0.55); stroke-width: 2; }
.tl-sensor { fill: var(--c-text-strong); opacity: 0.55; }
.tl-orbit { fill: none; stroke: var(--c-accent); stroke-width: 2; stroke-dasharray: 6 8; opacity: 0.7; }
.tl-orbit-front { opacity: 1; stroke-width: 2.4; }
.tl-orbit-dot { fill: var(--c-accent); }
.tl-orbit-label { fill: var(--c-accent); font-family: var(--font-display); font-size: 26px; }
.tl-visual figcaption {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

.tl-headset { animation: tl-float 7s ease-in-out infinite; }
@keyframes tl-float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .tl-headset { animation: none; }
  .tl-orbit-dot { display: none; }
}

/* ── Benefits ── */
.tl-benefits {
  list-style: none;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.tl-benefits li { border-top: 1px solid var(--c-text-strong); padding-top: 1.2rem; }
.tl-num { display: block; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.15em; color: var(--c-accent); margin-bottom: 0.8rem; }
.tl-benefits h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; color: var(--c-text-strong); margin: 0 0 0.5rem; }
.tl-benefits p { font-family: var(--font-body); font-size: 0.9rem; font-weight: 300; line-height: 1.7; color: var(--c-text-dim); margin: 0; }

/* ── How to watch ── */
.tl-how {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-surface);
}
.tl-how-title { font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 1rem; }
.tl-how-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.tl-how-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.tl-how-item svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--c-accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.tl-how-item strong { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.92rem; color: var(--c-text-strong); margin-bottom: 0.2rem; }
.tl-how-item span { font-family: var(--font-body); font-size: 0.84rem; font-weight: 300; line-height: 1.6; color: var(--c-text-dim); }

/* ── Grid heading ── */
.tl-grid-head {
  max-width: calc(var(--content-max) + 4rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 2rem 0;
  scroll-margin-top: 56px;
}
.tl-grid-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  color: var(--c-text-strong);
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-line);
}
.tl-grid-head + .listing-grid { padding-top: 2rem; }

@media (max-width: 900px) {
  .tl-hero-inner { grid-template-columns: 1fr; }
  .tl-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .tl-benefits, .tl-how-items { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .tl-hero { padding: 2rem 1rem 0.5rem; }
  .tl-grid-head { padding: 2.5rem 1rem 0; }
  .tl-actions { flex-direction: column; align-items: stretch; }
  .tl-cta { justify-content: center; }
  .tl-link { align-self: center; }
}

/* ── Listing page scrolls (the 360 viewer locks html/body) ── */
html.listing-mode,
html.listing-mode body {
  position: static;
  overflow: auto;
  overflow-x: hidden;
  height: auto;
  min-height: 100%;
  touch-action: auto;
  -webkit-user-select: auto;
  user-select: auto;
  overscroll-behavior: auto;
}
html.listing-mode { scroll-behavior: smooth; }

/* ── Tour cards: rounded rectangles ── */
html.listing-mode .listing-grid {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
html.listing-mode .listing-card {
  border-radius: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.35s;
}
html.listing-mode .listing-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}
html.listing-mode .listing-card-img {
  height: 230px;
  margin: 10px 10px 0;
  border-radius: 12px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
html.listing-mode .listing-card-body { padding: 1.1rem 1.4rem 1.4rem; }
html.listing-mode .listing-card-name { font-family: var(--font-display); font-size: 1.45rem; }
html.listing-mode .listing-card-meta::after { content: '  ·  Otvori turu →'; color: var(--c-text-dim); letter-spacing: 0.08em; }

@media (max-width: 768px) {
  html.listing-mode .listing-grid { grid-template-columns: 1fr; padding: 1.5rem 1rem 3rem; }
  html.listing-mode .listing-card-img { height: 200px; }
}

/* ── Headset photo (transparent cut-out, floating) ── */
.tl-float {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  animation: tl-hover 6s ease-in-out infinite;
}
.tl-headset-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.12));
}
.tl-float-shadow {
  width: 46%;
  height: 22px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 70%);
  animation: tl-hover-shadow 6s ease-in-out infinite;
}
@keyframes tl-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes tl-hover-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.8); opacity: 0.55; } }

@media (prefers-reduced-motion: reduce) {
  .tl-float, .tl-float-shadow { animation: none; }
}
/* ── Site header on the listing (fixed, like the other pages) ── */
#tour-listing { padding-top: 56px; }
#tour-listing .tl-hero,
#tour-listing .tl-grid-head,
#tour-listing .listing-grid {
  max-width: calc(var(--content-max) + 2 * var(--page-gutter));
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}
@media (max-width: 900px) {
  :root { --page-gutter: 1.5rem; }
  #tour-listing { padding-top: 58px; }
}
@media (max-width: 640px) {
  :root { --page-gutter: 1rem; }
}
