/* =========================================================
   TimeGo – TV + any-screen responsive fix
   Load this LAST (after the inline <style> in <head>):
   <link rel="stylesheet" href="tv-responsive-fix.css?v=1">
   ========================================================= */

/* ---------------------------------------------------------
   1. Safety net: nothing can ever make the page scroll sideways
   --------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
body { -webkit-font-smoothing: antialiased; }
img, video, svg, iframe { max-width: 100%; }

/* ---------------------------------------------------------
   2. Older TV browsers (Tizen / webOS): "inset" is not
      understood everywhere, so spell it out.
   --------------------------------------------------------- */
.hero-bg, .slides, .slide, .slide::before, .scene,
.place-bg, .place-image, .place-icon-fallback, .place-scrim,
.place-card::before, .bottom-bg, .image-section::after,
.main::after, .modal {
  top: 0; right: 0; bottom: 0; left: 0;
}
.place-image, .slide, .slides { width: 100%; height: 100%; }

/* ---------------------------------------------------------
   3. TV CPUs are weak: blur-behind on the floating pills
      is the most expensive thing on the page and they are
      already 86% white, so drop it.
   --------------------------------------------------------- */
html body .navbar,
html body .nav__auth--right,
html body #lensNavBtn {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* ---------------------------------------------------------
   4. Navigation: never wrap "AI Assistant", "Packing Tips",
      "Weekend Escape" onto two lines
   --------------------------------------------------------- */
html body .nav__links { flex-wrap: nowrap; }
html body .nav__links li,
html body .navbar a,
html body .nav__auth--right a,
html body .nav__auth--right button,
html body .lang-select { white-space: nowrap; }

@media (min-width: 993px) {
  html body .nav__links {
    font-size: clamp(0.74rem, 0.9vw, 0.95rem);
    gap: clamp(0px, 0.3vw, 8px);
  }
  html body .navbar a { padding: 6px clamp(5px, 0.6vw, 11px); }
}

/* 993–1240px (TVs at high browser zoom, small laptops) */
@media (min-width: 993px) and (max-width: 1240px) {
  html body .tg-brand span { display: none; }
  html body .tg-brand { padding: 0 12px; }
  html body #lensNavBtn { display: none !important; }
  html body .nav__auth--right { padding: 0 6px 0 8px; gap: 4px; }
  html body .nav__auth--right .btn-pill { padding: 7px 12px; }
  html body .lang-select { padding: 5px 6px; font-size: 0.75rem; }
}

/* ---------------------------------------------------------
   5. Hero: text size follows the screen width, spacing follows
      the screen HEIGHT so the whole hero fits in one TV screen
   --------------------------------------------------------- */
html body .hero3d {
  padding-top: clamp(96px, 13vh, 150px);
  padding-bottom: clamp(48px, 8vh, 84px);
}
html body .hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  column-gap: clamp(24px, 4vw, 64px);
}
html body .copy { min-width: 0; }
html body .copy h1 {
  font-size: clamp(2.1rem, 3.9vw, 4.2rem);
  line-height: 1.08;
}
html body .copy p.lead,
html body .copy > p {
  font-size: clamp(0.98rem, 1.05vw, 1.25rem);
  line-height: 1.65;
  max-width: 34em;
}
html body .copy .btn { font-size: clamp(0.9rem, 0.95vw, 1.1rem); }

/* Landscape screens that are not very tall (typical TV browser
   window at 125–150% zoom is only ~700–800px high) */
@media (min-width: 1101px) and (max-height: 820px) {
  html body .hero3d { padding-top: 92px; padding-bottom: 56px; }
  html body .copy h1 { margin: 12px 0 10px; }
  html body .copy .hero-search { margin: 14px 0; }
  html body .copy .cta { margin-bottom: 14px; }
  html body .stage { height: 430px; }
  html body .main,
  html body .slab { width: min(330px, 78vw); height: 330px; }
}

/* Single-column hero on tablets / small windows */
@media (max-width: 1100px) {
  html body .hero-grid { grid-template-columns: minmax(0, 1fr); }
  html body .stage { max-width: 520px; width: 100%; margin: 0 auto; }
}

/* ---------------------------------------------------------
   6. Hero extras
   --------------------------------------------------------- */
/* the destination chips are meant to stay hidden */
html body .chips[hidden],
html body #hero-chips { display: none !important; }

/* keep the 3D cards out of the text column */
html body .copy { position: relative; z-index: 10; }
html body .l-sos { left: 6%; }

/* ---------------------------------------------------------
   7. Sign-in nudge: on wide screens it sits bottom-right, so it
      no longer covers the feature strip / hero buttons
   --------------------------------------------------------- */
@media (min-width: 601px) {
  html body .tg-nudge {
    left: auto;
    right: 20px;
    bottom: 20px;
    width: 340px;
    transform: translateY(16px) scale(0.97);
  }
  html body .tg-nudge.is-on { transform: none; }
}

/* ---------------------------------------------------------
   8. Sections below the hero scale with the screen
   --------------------------------------------------------- */
html body .places-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
html body .stats-showcase-section,
html body .adventure-enquiry-grid { max-width: min(1160px, 100%); }

/* ---------------------------------------------------------
   9. BIG screens (1080p / 4K TVs at 100% zoom): scale the whole
      page up so text is readable from the sofa.
      "zoom" works in Chrome/Edge/Safari/Tizen/webOS and Firefox 126+.
   --------------------------------------------------------- */
@media (min-width: 1700px) { body { zoom: 1.2; } }
@media (min-width: 2300px) { body { zoom: 1.5; } }
@media (min-width: 3000px) { body { zoom: 2; } }
@media (min-width: 3600px) { body { zoom: 2.4; } }

/* ---------------------------------------------------------
   10. Respect "reduce motion" – also saves TV CPU
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html body .fm-track { animation: none; }
}