/* @import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;800&display=swap"); */

/* TimeGo mobile app skin. Phones only (<= 600px): PC and tablet are untouched.
   Link it LAST in <head>, after the page's own <style>. */
@media (max-width: 600px) {

  :root {
    --m-bg: #0c0d0b; --m-card: #1a1c18; --m-card2: #10120a; --m-line: #2b2e27;
    --m-tx: #f3f5ee; --m-mu: #8d9285; --m-ac: #c9f23a; --m-ink: #10120a;
    /* remap the site's own tokens so most of the UI recolours itself */
    --bg: var(--m-bg); --sand: var(--m-bg); --ink: var(--m-tx); --muted: var(--m-mu);
    --body: var(--m-mu); --clay: #262a20; --terracotta: var(--m-ac); --accent: var(--m-ac);
    --green: var(--m-ac); --green-dark: #b2d62f; --white: var(--m-card);
    color-scheme: dark;
  }

  html, body { background: var(--m-bg) !important; color: var(--m-tx); }
  body, button, input, select, textarea, h1, h2, h3, h4, .dest-name, .escape-result-name, .hv-greet h1 {
    font-family: Manrope, Poppins, system-ui, sans-serif !important;
  }
  h1, h2, h3 { letter-spacing: -0.02em; font-weight: 800; }
  body { padding-bottom: 104px !important; }

  /* ---------- surfaces: every hard-coded white becomes a dark card ---------- */
  .card, .filter-bar, .filter-results, .feedback-teaser-card, .feedback-toast, .modal__card,
  .mobile-dropdown-card, .when-to-go-card, .logistics-card, .review-card, .review-form,
  .alerts-modal-card, .plan-modal-card, .stat, .tg-chip, .dock-menu, .hv-act, .hv-stats,
  .hv-iconbtn, .hv-rev, .hv-empty, .search-wrap input, .state-select, .saved-toggle, .more-btn,
  .res-empty, .pf-head, .pf-pane .fav-item, .pf-pane .review-item, .pf-pane .trip-plan-item,
  .escape-result-item, .escape-tier-btn, .escape-category-btn, .trip-day-tab, .trip-stop-row,
  .splitter-split-checkbox-label, .splitter-settlement-item, .escape-mini-link,
  .escape-highlight-chip, .place-dock-menu, .alerts-card-item, .plan-timing-option,
  .guest-back-btn, .tg-brand, #lensNavBtn, .navbar, .soft-tips-trigger, .soft-icon-bubble {
    background: var(--m-card) !important;
    border-color: var(--m-line) !important;
    color: var(--m-tx);
    box-shadow: none !important;
  }
  .card, .feedback-teaser-card, .when-to-go-card, .logistics-card, .review-card, .pf-head { border-radius: 22px !important; }

  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea,
  .adventure-form-group input, .review-form textarea, .form input {
    background: var(--m-card2) !important; color: var(--m-tx) !important;
    border: 1px solid var(--m-line) !important; border-radius: 14px !important;
  }
  input::placeholder, textarea::placeholder { color: var(--m-mu) !important; }

  /* headings / body copy that were hard-coded dark green or grey */
  .when-header h2, .logistics-header h2, .review-card-author, .soft-tips-title, .alerts-card-title,
  .alerts-modal-header h3, .stat strong, .review-form-label, .plan-modal-card h3, .filter-item,
  .account-name, .btn-link { color: var(--m-tx) !important; }
  .when-text, .alerts-card-text, .review-card-text, .soft-tips-sub, .reviews-summary,
  .review-signin-notice, .plan-timing-help, .stat-label { color: var(--m-mu) !important; }

  /* lime = the one accent */
  .btn-primary, .btn-pill, .btn-open-feedback, .btn-toast-action, .auth-submit, .review-submit-btn,
  .btn-adventure-submit, .plan-submit-btn, .plan-open-btn, .soft-action-btn, .locate-btn,
  .fav-toggle-btn.is-saved, .hv-cta, .more-btn:active, .saved-toggle.is-on, .escape-tier-btn.is-active,
  .escape-category-btn.is-active, .trip-day-tab.is-active {
    background: var(--m-ac) !important; color: var(--m-ink) !important; border-color: var(--m-ac) !important;
    box-shadow: none !important; background-image: none !important; font-weight: 800;
  }
  .btn-ghost, .btn-secondary { background: var(--m-card) !important; color: var(--m-tx) !important; border: 1px solid var(--m-line) !important; }
  .fav-toggle-btn { background: rgba(26,28,24,.9) !important; color: var(--m-tx) !important; border-color: var(--m-line) !important; }
  .eyebrow, .teaser-badge, .toast-badge, .coming-soon-badge, .section-notice-badge, .pf-since,
  .place-badge-category, .stat-feature-num, .dest-chip, .live-weather-badge {
    background: #262a20 !important; color: var(--m-ac) !important; border-color: transparent !important;
  }
  .hv-tag { background: var(--m-ink) !important; color: var(--m-ac) !important; }
  .new-badge { background: var(--m-ac) !important; color: var(--m-ink) !important; }

  /* ---------- top bar ---------- */
  header { padding: 12px 14px !important; }
  .tg-brand, #lensNavBtn, .mobile-menu-trigger { height: 46px !important; border: 1px solid var(--m-line) !important; border-radius: 999px !important; }
  .mobile-menu-trigger { background: var(--m-card) !important; width: 46px !important; backdrop-filter: none !important; }
  .tg-brand { color: var(--m-tx); }
  .tg-brand b { color: var(--m-ac); }
  #lensNavBtn svg { stroke: var(--m-ac); }
  .mobile-dropdown-card { border-radius: 22px !important; padding: 12px !important; }
  .mobile-nav-list a, .mobile-nav-list button { color: var(--m-tx) !important; }
  .mobile-nav-list a:active, .mobile-nav-list button:active { background: #262a20 !important; }
  .mobile-nav-list a span[style] { background: #262a20 !important; color: var(--m-ac) !important; }
  .mobile-lang-row { border-color: var(--m-line) !important; }
  .mobile-lang-row span { color: var(--m-mu) !important; }

  /* ---------- index: hero as one clean phone card stack ---------- */
  .hero3d { padding: 84px 16px 40px !important; background: radial-gradient(70% 40% at 80% 0%, rgba(201,242,58,.14), transparent 70%), var(--m-bg) !important; }
  .hero3d::after, .blob, .slab, .ring, .floor, .l-trip { display: none !important; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .copy h1 { font-size: 2.3rem !important; font-weight: 800; }
  .copy h1 span { background: none !important; color: var(--m-ac) !important; -webkit-text-fill-color: var(--m-ac); }
  .copy h1 .plain { color: var(--m-tx) !important; -webkit-text-fill-color: var(--m-tx); }
  .copy p.lead { color: var(--m-mu) !important; font-size: .95rem; }
  .cta .btn { flex: 1 1 0; padding: 14px 10px; border-radius: 16px; }
  .chips a { background: var(--m-card) !important; color: var(--m-tx) !important; border-color: var(--m-line) !important; }
  .stage { height: auto !important; perspective: none !important; max-width: none !important; }
  .scene { position: relative !important; inset: auto !important; transform: none !important; display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
  .layer { position: relative !important; inset: auto !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; transform: none !important; }
  .l-main { grid-column: 1 / -1; }
  .main { width: 100% !important; height: 330px !important; border-radius: 26px !important; }
  .slide::before { background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0) 62%) !important; }
  .dot.is-active { background: var(--m-ac); }
  .nav-arrow { background: rgba(16,18,10,.7) !important; color: var(--m-ac) !important; }
  .weather b { color: var(--m-ac) !important; }
  .weather, .sos { min-width: 0 !important; max-width: none !important; width: 100%; padding: 14px !important; border-radius: 20px !important; animation: none !important; }
  .weather em, .sos span, .sos strong { color: var(--m-tx) !important; }
  .weather small { color: var(--m-mu) !important; }

  .filter-section { padding: 8px 16px 24px !important; }
  .filter-bar { border-radius: 18px !important; padding: 2px !important; }
  .filter-bar input { color: var(--m-tx) !important; background: transparent !important; border: 0 !important; text-align: left; }
  .filter-item:hover { background: #262a20 !important; }
  .filter-item-sub, .filter-empty, .filter-label, .places-subtext { color: var(--m-mu) !important; }

  /* destinations: swipeable rail, no scroll-reveal tricks */
  .places-section { padding: 8px 16px 32px !important; }
  .places-section h2 { text-align: left; font-size: 1.35rem; }
  .places-subtext { text-align: left; margin: 0 0 14px !important; }
  .places-grid { display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 14px !important; scrollbar-width: none; }
  .places-grid::-webkit-scrollbar { display: none; }
  .place-card { flex: 0 0 78%; height: 340px !important; scroll-snap-align: center; border-radius: 26px !important; transform: none !important; }
  .js-3d .r3d, .js-3d .places-grid .place-card { opacity: 1 !important; translate: none !important; rotate: none !important; scale: 1 !important; }
  .view-all-btn { color: var(--m-ac) !important; border-color: var(--m-ac) !important; }

  .stats-showcase-section { padding: 28px 16px !important; }
  .stats-numbers-grid { gap: 22px 14px !important; }
  .stat-feature-content h4 { color: var(--m-tx); }
  .stat-feature-content p { color: var(--m-mu); }
  .image-section { height: 240px !important; min-height: 0 !important; margin: 0 16px; border-radius: 26px; }
  .adventure-enquiry-section { background: var(--m-ac) !important; color: var(--m-ink) !important; padding: 40px 16px !important; }
  .adventure-left h2, .adventure-left p { color: var(--m-ink) !important; }
  .adventure-right { background: var(--m-ink) !important; color: var(--m-tx) !important; border-radius: 26px !important; padding: 22px !important; }
  .adventure-form-group label { color: var(--m-mu) !important; }
  .feedback-teaser-section { padding: 24px 16px 40px !important; }
  .feedback-teaser-card { padding: 22px !important; }
  .feedback-toast { top: 70px !important; right: 12px !important; left: 12px; width: auto !important; border-radius: 18px !important; }
  .modal__header h2 { color: var(--m-tx); }
  .icon-btn, .toast-close-btn { color: var(--m-tx) !important; }
  .form-msg { color: var(--m-mu); }

  /* ---------- floating pill nav (injected by mobile-app.js on index) ---------- */
  .m-nav { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 900; display: flex; justify-content: space-between; gap: 4px; padding: 6px; background: rgba(26,28,24,.95); border: 1px solid var(--m-line); border-radius: 999px; backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
  .m-nav a { flex: 0 0 48px; height: 48px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--m-mu); text-decoration: none; font-size: .8rem; font-weight: 800; transition: flex-basis .25s ease; }
  .m-nav a b { font-size: 1.15rem; font-weight: 400; }
  .m-nav a span { display: none; }
  .m-nav a.on { flex: 1 1 auto; background: var(--m-ac); color: var(--m-ink); }
  .m-nav a.on span { display: inline; }

  /* ---------- place page ---------- */
  .navbar:has(> .navbar-right) { position: absolute !important; top: 12px !important; border-radius: 999px !important; }
  .navbar .brand { color: var(--m-tx) !important; }
  .navbar .back-link { background: var(--m-ac) !important; color: var(--m-ink) !important; font-weight: 800; }
  .navbar .share-btn { background: var(--m-card2) !important; color: var(--m-tx) !important; }
  .hero { border-radius: 0 0 28px 28px; }
  .section { background: var(--m-card) !important; border: 1px solid var(--m-line); border-radius: 22px !important; }
  .section h2, .section h3, .section-sub, .section-note { color: var(--m-tx); }
  .section-sub, .section-note, .loading { color: var(--m-mu) !important; }
  .alerts-modal { background: rgba(0,0,0,.75) !important; }
  .alerts-close-btn { background: var(--m-card2) !important; color: var(--m-tx) !important; }
  .alerts-card-icon { background: var(--m-card2) !important; border-color: var(--m-line) !important; }
  .plan-timing-option:hover { background: #262a20 !important; }
  .acc-good, .acc-ok, .acc-bad { background: #262a20 !important; color: var(--m-ac) !important; }
  .map3d-wrap { border-radius: 20px; }

  /* ---------- docks (place + dashboard) -> floating pill ---------- */
  .dock, .place-dock { left: 12px !important; right: 12px !important; width: auto !important; transform: none !important; bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important; min-height: 0 !important; padding: 6px !important; border-radius: 999px !important; background: rgba(26,28,24,.96) !important; border: 1px solid var(--m-line) !important; box-shadow: 0 12px 30px rgba(0,0,0,.5) !important; backdrop-filter: blur(12px); }
  .dock .dock-btn, .place-dock-btn { height: 50px !important; border-radius: 999px !important; color: var(--m-mu) !important; background: transparent !important; }
  .dock .dock-btn.is-active, .place-dock-btn.is-active { background: var(--m-ac) !important; color: var(--m-ink) !important; }
  .dock .dock-btn:hover { transform: none; }
  .guest-back-wrap { bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important; }
  .guest-back-btn { color: var(--m-ac) !important; }

  /* ---------- dashboard ---------- */
  .app-main { padding: 14px 14px 110px !important; }
  .home-hero { background: linear-gradient(140deg, #1d2217, var(--m-card)) !important; border-color: var(--m-line) !important; }
  .home-hero::after { background: radial-gradient(circle, rgba(201,242,58,.2), transparent 70%) !important; }
  .hero-sub { color: var(--m-mu) !important; }
  .home-eyebrow, .hm-stat { background: #262a20 !important; box-shadow: none !important; }
  .hv-feature { background-color: var(--m-card) !important; border-radius: 26px; }
  .hv-feature.is-plain { background: var(--m-ac) !important; }
  .hv-feature.is-plain h2, .hv-feature.is-plain p { color: var(--m-ink) !important; }
  .hv-feature.is-plain .hv-cta { background: var(--m-ink) !important; color: var(--m-ac) !important; }
  .hv-feature.is-plain .hv-cta.ghost { background: rgba(16,18,10,.15) !important; color: var(--m-ink) !important; }
  .hv-act i { background: #262a20 !important; }
  .hv-card, .dest-card { border-radius: 24px !important; }
  .hv-link, .res-clear, .section-empty a, .error-state a { color: var(--m-ac) !important; }
  .hv-stat b, .pf-stat b { color: var(--m-ac); }
  .pf-cover { background: linear-gradient(120deg, #1d2217, #3d4a1c 60%, var(--m-ac)) !important; }
  .pf-avatar, .tg-avatar, .sidebar-avatar { background: var(--m-ac) !important; color: var(--m-ink) !important; border-color: var(--m-card) !important; }
  .pf-tab.is-active { color: var(--m-ac) !important; border-bottom-color: var(--m-ac) !important; }
  .dest-fav { background: rgba(16,18,10,.8) !important; color: var(--m-ac) !important; }
  .dest-fav.is-saved { background: var(--m-ac) !important; color: var(--m-ink) !important; }
  .dest-card.is-soon { background: var(--m-card) !important; border-color: var(--m-line) !important; color: var(--m-tx); }
  .dest-card.is-soon .dest-name { color: var(--m-tx); }
  .splitter-person-chip, .account-info-row, .trip-status-card, .splitter-balance-row, .escape-mini-item,
  .splitter-expense-item, .splitter-expense-builder, .trip-builder { background: var(--m-card2) !important; color: var(--m-tx); }
  .escape-section-empty { background: var(--m-card2) !important; }
  .splitter-balance-row.is-owed { color: var(--m-ac); }
  .escape-modal-overlay { padding: 16px 10px !important; }
}

/* ===================== PATCH v3 (phones only) =====================
   Replaces v2. Rules are scoped to real controls only, never to structural
   state classes like .panel.is-active or .slide.is-active. */
@media (max-width: 600px) {

  /* 1. Theme tokens (beat any later :root) */
  :root:root, html body {
    --bg:#0c0d0b; --sand:#0c0d0b; --ink:#f3f5ee; --muted:#8d9285; --body:#8d9285;
    --clay:#262a20; --terracotta:#c9f23a; --accent:#c9f23a; --green:#c9f23a;
    --green-dark:#b2d62f; --white:#1a1c18;
  }
  html, body, .page, main, .app-shell, .app-main { background:#0c0d0b !important; color:#f3f5ee !important; }
  h1, h2, h3, h4 { color:#f3f5ee !important; }

  /* 2. Header pills */
  .tg-brand { display:inline-flex !important; align-items:center; white-space:nowrap; padding:0 16px 0 12px !important; }
  .tg-top .tg-brand { padding:0 18px !important; }
  .tg-brand, .tg-brand * { color:#f3f5ee !important; }
  .tg-brand b { color:#c9f23a !important; }
  html body #lensNavBtn { background:#1a1c18 !important; border:1px solid #2b2e27 !important; box-shadow:none !important; }
  .tg-chip, .tg-chip *, .saved-toggle, .state-select, .search-wrap input { color:#f3f5ee !important; }

  /* 3. Accent numbers / muted labels */
  .hm-stat b, .hv-stat b, .pf-stat b, .stat-box h3, .hv-eyebrow, .home-eyebrow, #sum-eyebrow, #home-eyebrow { color:#c9f23a !important; }
  .hm-stat span, .hv-stat span, .pf-stat span, .panel-heading p, .hero-sub { color:#8d9285 !important; }
  .hv-feature.is-plain h2, .hv-feature.is-plain p, .adventure-left h2, .adventure-left p { color:#10120a !important; }
  .hv-feature.is-plain .hv-tag { background:#10120a !important; color:#c9f23a !important; }

  /* 4. Index: cream sections -> dark */
  .page > main > section { position:relative !important; }
  .page > main > section:where(:not(.hero3d):not(.image-section):not(.adventure-enquiry-section):not(.panel)) { background:#0c0d0b !important; background-image:none !important; }
  .places-section h2, .stats-left h2 { color:#f3f5ee !important; }

  /* 5. (removed in v12: mobile-app.js now detects and fixes leftover light surfaces on the home page) */
  .page main [class*="eyebrow"], .page main [class*="kicker"] { background:#262a20 !important; color:#c9f23a !important; }
  .page main a[href*="dashboard"] { background:#c9f23a !important; background-image:none !important; box-shadow:none !important; border-radius:18px !important; }
  .page main a[href*="dashboard"], .page main a[href*="dashboard"] * { color:#10120a !important; }

  /* 6. Dashboard panels: every white box + chip button goes dark (zero specificity) */
  :where(#panel-weekend-escape, #panel-upcoming, #panel-hotels, #panel-restaurants)
  :where(div, section, article, label, fieldset, details, li, button):where(:not([class*="scrim"]):not([class*="image"]):not([class*="spinner"])) {
    background-color:#1a1c18 !important; border-color:#2b2e27 !important; box-shadow:none !important;
  }
  :where(#panel-weekend-escape, #panel-upcoming, #panel-hotels, #panel-restaurants) :where(p, span, small, label, div, li, td, button) { color:#cfd3c6 !important; }
  :where(#panel-weekend-escape, #panel-upcoming, #panel-hotels, #panel-restaurants) :where(h1, h2, h3, h4, strong, b, th) { color:#f3f5ee !important; }

  /* 7. Selected chips: ONLY real controls, never panels / slides / dots / dock */
  :is(button, label, [role="tab"], [role="radio"]):is(.is-active, .active, .is-selected, .selected, .on, [aria-pressed="true"], [aria-checked="true"], [aria-selected="true"]):not(.slide):not(.dot):not(.dock-btn):not(.place-dock-btn):not(.pf-tab):not(.mobile-tab-btn):not(.sidebar-nav-btn):not(.sp-split-row):not(.sidebar-footer-btn),
   /* 7. Selected chips: only the control itself, never the text/icons inside it */
  :is(button, label, [role="tab"], [role="radio"]):is(.is-active, .active, .is-selected, .selected, .on, [aria-pressed="true"], [aria-checked="true"], [aria-selected="true"]):not(.slide):not(.dot):not(.dock-btn):not(.place-dock-btn):not(.pf-tab):not(.mobile-tab-btn):not(.sidebar-nav-btn):not(.sp-split-row):not(.sidebar-footer-btn) {
    background-color:#c9f23a !important; color:#10120a !important; border-color:#c9f23a !important;
  }
  .pf-tab.is-active, .hv-link { background:transparent !important; color:#c9f23a !important; }
  .dot { background:rgba(255,255,255,.5) !important; }
  .dot.is-active { background:#c9f23a !important; }

  /* 8. Dock: fixed floating pill, equal buttons inside */
  .dock, .place-dock { position:fixed !important; align-items:stretch !important; gap:2px !important; height:auto !important; }
  .dock .dock-btn, .place-dock-btn { flex:1 1 0 !important; min-width:0 !important; width:100% !important; height:56px !important; padding:4px 0 !important; border-radius:999px !important; justify-content:center !important; gap:2px !important; font-size:.58rem !important; transform:none !important; background:transparent !important; color:#8d9285 !important; }
  .dock-more, .place-dock-more-wrap { flex:1 1 0 !important; min-width:0 !important; display:flex !important; }
  .dock .dock-btn .di, .place-dock-icon { font-size:1.25rem !important; }
  .dock .dock-btn.is-active, .place-dock-btn.is-active { background:#c9f23a !important; color:#10120a !important; }
  .dock .dock-btn.is-active *, .place-dock-btn.is-active * { color:#10120a !important; }
}

/* ===================== PATCH v4 (phones only) ===================== */
@media (max-width: 600px) {

  /* no sideways overflow: it makes phones zoom out and shifts fixed bars */

  /* bottom nav lives in a full-width fixed layer anchored to the screen bottom */
  .m-nav-layer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none; transform: translateZ(0); will-change: transform;
  }
  .m-nav {
    position: relative !important; left: auto !important; right: auto !important; bottom: auto !important;
    pointer-events: auto; max-width: 420px; margin: 0 auto;
  }
  .dock, .place-dock { will-change: transform; }

  /* "Stories worth travelling for" section (class added by mobile-app.js) */
  .m-stories { position: relative !important; height: auto !important; min-height: 0 !important; overflow: visible !important; padding: 32px 16px !important; background: #0c0d0b !important; }
  .m-stories h1, .m-stories h2 { font-size: 1.9rem !important; line-height: 1.1 !important; text-align: left !important; color: #f3f5ee !important; margin: 0 0 10px !important; }
  .m-stories h1 *, .m-stories h2 * { color: #c9f23a !important; }
  .m-stories p { color: #8d9285 !important; text-align: left !important; max-width: none !important; margin: 0 0 14px !important; }
  .m-stories :where([class*="soon"], [class*="badge"], [class*="tag"]) { background: #262a20 !important; color: #c9f23a !important; border-color: #2b2e27 !important; }
}

/* ===================== PATCH v5: app polish (phones only) ===================== */
@media (max-width: 600px) {
  :root { --m-r: 24px; --m-ease: cubic-bezier(.2,.8,.2,1); --m-spring: cubic-bezier(.3,1.4,.5,1); --m-hair: rgba(255,255,255,.07); }
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
  body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(90% 38% at 100% -6%, rgba(201,242,58,.13), transparent 62%), radial-gradient(70% 30% at 0% 104%, rgba(201,242,58,.07), transparent 62%); }
  .app-shell, .page { position: relative; z-index: 1; }

  /* 1. No more boxy rectangles behind headings / wrappers */
  #panel-home, .hv, .hv > *, .hv-top > *, .hv-side, .hv-head, .hv-cta-row, .panel-heading, .res-head,
  .hero-top, .searchbar, .more-wrap, .pf-tabs, .pf-id, .pf-head-row, .pf-stats, .hm-stats, .card-heading-row,
  .trip-builder-row, .escape-section, .escape-section-heading { background: transparent !important; box-shadow: none !important; }
  .hv-cta.ghost { background: rgba(16,18,10,.14) !important; }

  /* 2. One consistent card surface */
  .card, .hv-act, .hv-stats, .hv-rev, .pf-head, .pf-pane .fav-item, .pf-pane .review-item, .pf-pane .trip-plan-item,
  .escape-result-item, .feedback-teaser-card, .when-to-go-card, .logistics-card, .review-card, .section {
    background: linear-gradient(180deg, #1c1f17 0%, #151811 100%) !important;
    border: 1px solid var(--m-hair) !important; border-radius: var(--m-r) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 30px rgba(0,0,0,.35) !important;
  }
  .panel-heading { margin-bottom: 18px !important; }
  .panel-heading h1, .hv-greet h1 { font-size: 1.85rem !important; line-height: 1.08 !important; letter-spacing: -.03em; }
  .hv-stat b, .hm-stat b, .pf-stat b { font-variant-numeric: tabular-nums; font-size: 1.6rem; }
  .dest-card, .hv-card { border-radius: 26px !important; }

  /* 3. Sticky glass header; name and log-out never wrap */
  .tg-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: -14px -14px 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    background: rgba(12,13,11,.78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--m-hair); }
  .tg-top .tg-brand { height: 42px !important; padding: 0 14px !important; font-size: 1.05rem; }
  .tg-user { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .tg-chip { min-width: 0; max-width: calc(100vw - 140px); padding: 4px 12px 4px 4px !important; gap: 8px !important; }
  .tg-chip #tg-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tg-logout { font-size: 0 !important; width: 40px; height: 40px; border-radius: 50%; padding: 0 !important; background: #1a1c18 !important; border: 1px solid var(--m-hair) !important; display: grid; place-items: center; flex-shrink: 0; }
  .tg-logout::before { content: ""; width: 18px; height: 18px; background: #8d9285;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat; }

  /* 4. Tab bar: line icons, active tab expands with its label */
  html body .dock, html body .place-dock { left: 12px !important; right: 12px !important; width: auto !important; transform: none !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important; height: 66px !important; padding: 6px !important; gap: 2px !important;
    align-items: stretch !important; justify-content: space-between !important; border-radius: 28px !important;
    background: rgba(22,25,18,.88) !important; backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--m-hair) !important; box-shadow: 0 20px 44px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.06) !important; }
  html body .dock .dock-btn, html body .place-dock-btn { position: relative; overflow: hidden; font-size: 0 !important; flex: 1 1 0 !important; min-width: 0 !important; width: auto !important;
    height: auto !important; padding: 0 !important; border-radius: 22px !important; display: flex !important; flex-direction: row !important; align-items: center; justify-content: center;
    gap: 0 !important; color: #8d9285 !important; background: transparent !important; transition: flex .38s var(--m-spring), background-color .2s, color .2s; }
  .dock .dock-btn .di, .place-dock-icon { display: grid; place-items: center; font-size: 1.3rem !important; }
  .dock .dock-btn svg, .place-dock-icon svg { width: 24px; height: 24px; }
  .place-dock-btn span:last-child { display: none !important; }
  html body .dock .dock-btn.is-active, html body .place-dock-btn.is-active { flex: 2.5 1 0 !important; font-size: .8rem !important; font-weight: 800 !important; gap: 7px !important; background: #c9f23a !important; color: #10120a !important; }
  html body .place-dock-btn.is-active span:last-child { display: inline !important; font-size: .8rem; }
  .dock-more, .place-dock-more-wrap { flex: 1 1 0 !important; min-width: 0 !important; display: flex !important; }
  .dock-more .dock-btn { width: 100% !important; }
  .dock-menu, .place-dock-menu { border-radius: 20px !important; bottom: calc(100% + 12px) !important; background: #1a1c18 !important; border: 1px solid var(--m-hair); }
  .dock-menu a, .dock-menu button, .place-dock-menu a, .place-dock-menu button { color: #f3f5ee !important; }
  /* index pill nav, same shape */
  .m-nav { height: 66px; border-radius: 28px !important; padding: 6px !important; gap: 2px !important; }
  .m-nav a { flex: 1 1 0 !important; height: auto !important; border-radius: 22px !important; transition: flex .38s var(--m-spring), background-color .2s; }
  .m-nav a.on { flex: 2.5 1 0 !important; }
  .m-nav a b { display: grid; place-items: center; }
  .m-nav svg { width: 24px; height: 24px; }

  /* 5. Motion: tab transitions, staggered rise, press feedback, loader */
  .panel.is-active { animation: m-in .4s var(--m-ease) backwards; }
  .panel.is-active :is(.dest-card, .hv-card, .card, .hv-rev, .hv-act) { animation: m-rise .55s var(--m-ease) backwards; }
  .panel.is-active :is(.dest-card, .hv-card, .card, .hv-rev, .hv-act):nth-child(2) { animation-delay: .06s; }
  .panel.is-active :is(.dest-card, .hv-card, .card, .hv-rev, .hv-act):nth-child(3) { animation-delay: .12s; }
  .panel.is-active :is(.dest-card, .hv-card, .card, .hv-rev, .hv-act):nth-child(4) { animation-delay: .18s; }
  .panel.is-active :is(.dest-card, .hv-card, .card, .hv-rev, .hv-act):nth-child(n+5) { animation-delay: .24s; }
  @keyframes m-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes m-rise { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
  button, .dest-card, .hv-card, .hv-act, .place-card, .m-nav a { touch-action: manipulation; transition: transform .22s var(--m-spring), background-color .2s, box-shadow .2s; }
  button:active, .dest-card:active, .hv-card:active, .hv-act:active, .place-card:active, .m-nav a:active { transform: scale(.95) !important; }
  .m-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .18; transform: scale(0); animation: m-rip .55s ease-out forwards; pointer-events: none; }
  @keyframes m-rip { to { transform: scale(1); opacity: 0; } }
  .loading-state { padding: 90px 20px !important; color: #8d9285 !important; }
  .loading-state::before { content: ""; display: block; width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid #262a20; border-top-color: #c9f23a; animation: m-spin .8s linear infinite; }
  @keyframes m-spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
}


/* ===================== PATCH v6: Pro panels (phones only) ===================== */
@media (max-width: 600px) {

  /* forms: 16px stops iOS zooming in on focus; lime chevron on selects */
  input, select, textarea { font-size: 16px !important; }
  select { -webkit-appearance: none; appearance: none; background-repeat: no-repeat !important; background-position: right 16px center !important; padding-right: 40px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9f23a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important; }

  /* keyboard open -> bars slide away (class set by mobile-app.js) */
  .dock, .place-dock, .m-nav-layer { transition: transform .3s var(--m-ease), opacity .2s; }
  html body.m-kb .dock, html body.m-kb .place-dock, html body.m-kb .m-nav-layer { transform: translateY(140%) !important; opacity: 0; pointer-events: none; }

  /* shared surfaces + controls */
  .pro-card, .tp-card, .tg-card, .esc-tools { background: linear-gradient(180deg, #1c1f17, #151811) !important; border: 1px solid var(--m-hair) !important; border-radius: 24px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 30px rgba(0,0,0,.35) !important; color: #f3f5ee; }
  .pro-card { padding: 18px !important; }
  .pro-in { min-height: 48px; padding: 0 16px !important; border-radius: 14px !important; }
  textarea.pro-in { padding: 12px 16px !important; min-height: 64px; }
  .pro-in:focus { border-color: #c9f23a !important; box-shadow: 0 0 0 3px rgba(201,242,58,.18) !important; }
  .pro-lab { color: #8d9285 !important; font-size: .7rem; letter-spacing: .08em; margin: 16px 0 8px; }
  .pro-empty, .sp-hint { color: #8d9285 !important; }
  .pro-err { color: #ff7a6b !important; }
  .pro-chip, .esc-chip { position: relative; overflow: hidden; min-height: 40px; padding: 0 16px !important; border-radius: 999px !important; background: #10120a !important;
    border: 1px solid var(--m-line) !important; color: #b9bdaf !important; transition: transform .22s var(--m-spring), background-color .2s, box-shadow .2s; }
  .pro-chip.on, .esc-chip.on { background: #c9f23a !important; border-color: #c9f23a !important; color: #10120a !important; box-shadow: 0 6px 18px rgba(201,242,58,.25); }
  .btn { min-height: 46px; }
  .btn-small { min-height: 40px; }

  /* Cost Splitter */
  .sp-person { background: #10120a !important; border: 1px solid var(--m-line); color: #f3f5ee; }
  .sp-av { background: #c9f23a !important; color: #10120a !important; font-weight: 800; }
  .sp-x { background: #262a20 !important; color: #8d9285 !important; }
  .sp-split-row { background: #10120a !important; border: 1px solid var(--m-line); border-radius: 16px !important; opacity: .5; color: #f3f5ee !important; padding: 10px 14px !important; }
  .sp-split-row.on { opacity: 1; background: #161a10 !important; border-color: rgba(201,242,58,.5) !important; }
  .sp-split-row .pro-in { width: 100px; min-height: 40px; }
  input[type="checkbox"], input[type="radio"] { accent-color: #c9f23a; width: 20px; height: 20px; flex-shrink: 0; }
  .sp-exp { border-bottom: 1px solid var(--m-hair) !important; }
  .sp-ico { background: #262a20 !important; border-radius: 14px !important; }
  .sp-exp-b b { color: #f3f5ee; } .sp-exp-b small { color: #8d9285; }
  .sp-amt { color: #c9f23a !important; font-variant-numeric: tabular-nums; }
  .sp-link { color: #8d9285 !important; }
  .sp-tot { grid-template-columns: 1fr 1fr !important; }
  .sp-tot div { background: #10120a !important; border: 1px solid var(--m-line); border-radius: 18px !important; }
  .sp-tot div:first-child { grid-column: 1 / -1; text-align: left; padding: 18px !important; border: 0; background: linear-gradient(135deg, #c9f23a, #9fd12a) !important; }
  .sp-tot div:first-child b { font-size: 2rem !important; letter-spacing: -.03em; color: #10120a !important; }
  .sp-tot div:first-child span { color: rgba(16,18,10,.7) !important; font-size: .72rem; }
  .sp-tot b { color: #f3f5ee; } .sp-tot span { color: #8d9285; }
  .sp-bar { color: #cfd3c6; }
  .sp-bar i { background: #262a20 !important; }
  .sp-bar u { background: linear-gradient(90deg, #9fd12a, #c9f23a) !important; box-shadow: 0 0 12px rgba(201,242,58,.4); }
  .sp-tbl th { color: #8d9285; }
  .sp-tbl td { border-top: 1px solid var(--m-hair) !important; color: #f3f5ee; font-variant-numeric: tabular-nums; }
  .sp-pos { color: #c9f23a !important; } .sp-neg { color: #ff7a6b !important; }
  .sp-set { background: #10120a !important; border: 1px solid var(--m-line); border-radius: 16px !important; padding: 12px 14px !important; color: #f3f5ee; }
  .sp-set.done { opacity: .6; }

  /* Trip Planner */
  .tp-head h2 { color: #f3f5ee; }
  .tp-list { grid-template-columns: 1fr !important; gap: 16px !important; }
  .tp-card { padding: 0 !important; overflow: hidden; }
  .tp-cover { height: 160px !important; }
  .tp-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,13,11,.85), transparent 60%); }
  .tp-cover b { z-index: 1; background: rgba(16,18,10,.7) !important; color: #c9f23a !important; backdrop-filter: blur(6px); }
  .tp-body { padding: 16px 18px 18px !important; }
  .tp-body h3 { font-family: Manrope, Poppins, system-ui, sans-serif !important; font-size: 1.25rem; letter-spacing: -.02em; color: #f3f5ee; }
  .tp-meta { color: #8d9285 !important; }
  .tp-actions .btn-primary { flex: 1 1 100%; }
  .tp-actions .btn-secondary { flex: 1 1 auto; }
  .tp-banner { background: #10120a !important; border: 1px solid var(--m-line); border-radius: 18px !important; }
  .tp-banner small { color: #8d9285; }
  .tp-days, .tp-spots { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 12px; padding: 2px 18px 6px; }
  .tp-days::-webkit-scrollbar, .tp-spots::-webkit-scrollbar { display: none; }
  .tp-days .pro-chip, .tp-spots .pro-chip { flex: 0 0 auto; }
  .tp-stop { background: #10120a !important; border: 1px solid var(--m-line); border-radius: 18px !important; padding: 12px !important; grid-template-columns: 78px 1fr auto !important; }
  .tp-stop .pro-in { background: #1a1c18 !important; min-height: 44px; }
  .tp-mv .sp-link { font-size: 1rem; width: 34px; height: 34px; }

  /* Nearby Escapes: toolbar, dark map, bottom-sheet detail */
  .esc-tools { padding: 14px !important; gap: 12px !important; flex-direction: column; align-items: stretch; }
  .esc-grp { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .esc-grp::-webkit-scrollbar { display: none; }
  .esc-grp label, .esc-count { color: #8d9285 !important; flex: 0 0 auto; }
  .esc-count { margin-left: 0 !important; }
  #esc-map { height: 340px !important; border-radius: 24px !important; border: 1px solid var(--m-hair); background: #10120a !important; }
  .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.88) saturate(.55); }
  .leaflet-container { background: #10120a !important; font-family: Manrope, system-ui, sans-serif; }
  .leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #1a1c18 !important; color: #f3f5ee !important; border-radius: 16px; }
  .leaflet-popup-content a { color: #c9f23a !important; }
  .leaflet-bar a { background: #1a1c18 !important; color: #f3f5ee !important; border-color: #2b2e27 !important; }
  .leaflet-control-attribution { background: rgba(16,18,10,.7) !important; color: #8d9285 !important; }
  .leaflet-control-attribution a { color: #8d9285 !important; }
  .esc-wx span { background: #10120a !important; border: 1px solid var(--m-line); color: #cfd3c6 !important; }
  .esc-est { color: #8d9285 !important; }
  .escape-modal-overlay { padding: 0 !important; align-items: flex-end !important; }
  .escape-modal { border-radius: 28px 28px 0 0 !important; max-height: 92vh; overflow-y: auto; margin: 0 !important; }
  .escape-modal::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.3); transform: translateX(-50%); z-index: 3; }
  .escape-modal-overlay.is-open .escape-modal { animation: m-sheet .4s var(--m-ease); }
  @keyframes m-sheet { from { transform: translateY(100%); } to { transform: none; } }

  /* Tour Guide demo */
  .tg-demo { background: rgba(212,162,76,.1) !important; border: 1px dashed rgba(212,162,76,.5) !important; color: #e9c779 !important; border-radius: 18px !important; }
  .tg-demo b { color: #f3d58d !important; }
  .tg-filters select { background-color: #10120a !important; color: #f3f5ee !important; border: 1px solid var(--m-line) !important; min-width: 0; flex: 1 1 140px; min-height: 48px; }
  .tg-grid { grid-template-columns: 1fr !important; }
  .tg-card { padding: 20px !important; }
  .tg-av { background: #c9f23a !important; color: #10120a !important; }
  .tg-card h3 { font-family: Manrope, Poppins, system-ui, sans-serif !important; color: #f3f5ee; }
  .tg-sub, .tg-row b { color: #8d9285 !important; }
  .tg-row { color: #cfd3c6; }
  .tg-chips span { background: #10120a !important; border: 1px solid var(--m-line); color: #cfd3c6 !important; }
  .tg-tag { background: rgba(212,162,76,.12) !important; color: #e9c779 !important; border-color: rgba(212,162,76,.5) !important; }
  .tg-note { color: #e9c779 !important; }
}


/* ===================== PATCH v7: dashboard Home polish (phones only) ===================== */
@media (max-width: 600px) {

  /* let the lime glow show through the app shell */
  html body .page, html body main, html body .app-shell, html body .app-main { background: transparent !important; }

  /* "GOOD AFTERNOON" was getting a pill background without padding = a grey box */
  html body .hv-eyebrow, html body #sum-eyebrow { background: transparent !important; padding: 0 !important; letter-spacing: .12em; }

  /* greeting search + quick actions: line icons in lime */
  .hv-iconbtn { color: #c9f23a !important; display: grid; place-items: center; font-size: 0; }
  .hv-iconbtn svg { width: 22px; height: 22px; }
  .hv-act { gap: 10px; padding: 16px 4px 14px; }
  .hv-act i { color: #c9f23a !important; background: rgba(201,242,58,.1) !important; border: 1px solid rgba(201,242,58,.25); }
  .hv-act i svg { width: 22px; height: 22px; }

  /* hero card: slow living gradient + route illustration */
  .hv-feature.is-plain { background: linear-gradient(120deg, #c9f23a, #a9d82c, #dcf86f, #c9f23a) !important; background-size: 300% 300% !important;
    animation: m-sheen 9s ease-in-out infinite; box-shadow: 0 18px 40px rgba(201,242,58,.22) !important; }
  @keyframes m-sheen { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
  .hv-feature.is-plain::after { content: ""; position: absolute; right: 8px; top: 8px; width: 150px; height: 120px; opacity: .3; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 120' fill='none' stroke='%2310120a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 104C40 104 30 60 62 62S100 98 122 44' stroke-dasharray='1 9'/%3E%3Ccircle cx='12' cy='104' r='6' fill='%2310120a'/%3E%3Cpath d='M122 12a15 15 0 0 1 15 15c0 12-15 26-15 26s-15-14-15-26a15 15 0 0 1 15-15z' fill='%2310120a' stroke='none'/%3E%3Ccircle cx='122' cy='27' r='5' fill='%23c9f23a' stroke='none'/%3E%3C/svg%3E") no-repeat center / contain; }

  /* active tab glows */
  html body .dock .dock-btn.is-active, html body .place-dock-btn.is-active { box-shadow: 0 8px 22px rgba(201,242,58,.35); }

  /* review status badges readable on dark */
  .review-status-badge.status-pending { background: rgba(212,162,76,.15) !important; color: #e9c779 !important; }
  .review-status-badge.status-approved { background: rgba(201,242,58,.15) !important; color: #c9f23a !important; }
  .review-status-badge.status-rejected { background: rgba(255,122,107,.15) !important; color: #ff7a6b !important; }
}


/* ===================== PATCH v8: soft corners + seamless wrappers (phones only) ===================== */
@media (max-width: 600px) {
  :root { --m-ver: 13; }   /* lets mobile-app.js detect a stale cached stylesheet */

  /* containers are never boxes: no square backgrounds behind rounded cards */
  html body :is(#discover-grid, .dest-body, .dest-chips, .hv-greet > div, .hv-actions, .hv-rail, .hv-sec, .hv-head, .hv-top, .hv-top > div,
    .hv-side, .tp-head, #tp-root, .pro-grid, .pro-side, .tg-filters, .tg-grid, .hm-stats, .searchbar, .search-wrap, .more-wrap, .res-head, .panel-heading) {
    background: transparent !important; box-shadow: none !important;
  }

  /* softer, rounder shapes everywhere; children are clipped to the card's corners */
  .card, .pro-card, .tp-card, .tg-card, .hv-feature, .hv-stats, .hv-rev, .hv-empty, .home-hero, .pf-head, .escape-result-item, .feedback-teaser-card, .when-to-go-card, .logistics-card, .review-card { border-radius: 28px !important; }
  .hv-act { border-radius: 24px !important; }
  .hm-stat { border-radius: 20px !important; }
  .dest-card { border-radius: 28px !important; overflow: hidden; isolation: isolate; box-shadow: 0 12px 28px rgba(0,0,0,.35) !important; }
  .hv-card { border-radius: 26px !important; overflow: hidden; isolation: isolate; box-shadow: 0 12px 26px rgba(0,0,0,.35) !important; }
  .dest-card.is-soon { box-shadow: none !important; }
  .hv-feature.is-plain, .hv-feature { overflow: hidden; }
}


/* ===================== PATCH v9: place page + typography (phones only) ===================== */
@media (max-width: 600px) {
  :root { --m-ver: 13; }
  html { scroll-padding-top: 80px; }
  body { line-height: 1.55; }
  h1, h2, h3 { text-wrap: balance; }
  p { text-wrap: pretty; }

  /* top bar: sticky glass pill, brand left, actions right, never jammed together */
  html body .navbar:has(> .navbar-right) { position: fixed !important; top: calc(10px + env(safe-area-inset-top, 0px)) !important; left: 12px !important; right: 12px !important; width: auto !important;
    height: 52px; padding: 0 7px 0 18px !important; display: flex !important; align-items: center; justify-content: space-between !important; gap: 10px;
    background: rgba(16,18,10,.62) !important; -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255,255,255,.12) !important; border-radius: 999px !important; z-index: 1000; box-shadow: 0 10px 30px rgba(0,0,0,.35) !important; }
  .navbar .brand { font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; color: #f3f5ee !important; white-space: nowrap; }
  .navbar-right { display: flex; align-items: center; gap: 8px; }
  html body .navbar .share-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 14px !important; border-radius: 999px !important; font-weight: 700; font-size: .82rem;
    background: rgba(255,255,255,.12) !important; color: #f3f5ee !important; border: 1px solid rgba(255,255,255,.18) !important; }
  .share-btn[hidden] { display: none !important; }
  html body .navbar .back-link { display: inline-flex; align-items: center; height: 38px; padding: 0 16px !important; border-radius: 999px !important; white-space: nowrap;
    background: #c9f23a !important; color: #10120a !important; font-weight: 800; font-size: .82rem; }

  /* hero: readable title, subtitle and buttons over the video */
  #page-content .hero { height: 62vh !important; min-height: 420px !important; max-height: 580px; }
  .hero-overlay { background: linear-gradient(to top, rgba(12,13,11,.94) 0%, rgba(12,13,11,.5) 42%, rgba(12,13,11,.28) 100%) !important; }
  .hero-text { padding: 0 18px 24px !important; }
  .hero-text h1 { font-size: clamp(2.3rem, 11vw, 3rem) !important; font-weight: 800 !important; letter-spacing: -.035em; line-height: 1.02; color: #fff !important; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
  #hero-sub { color: rgba(243,245,238,.92) !important; font-size: .95rem; font-weight: 600; margin: 4px 0 16px !important; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
  .hero-text button { display: inline-flex !important; align-items: center; margin: 0 8px 8px 0 !important; min-height: 46px; padding: 0 18px !important; border-radius: 999px !important;
    background: rgba(16,18,10,.55) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2) !important;
    color: #f3f5ee !important; font-weight: 700; font-size: .9rem; box-shadow: none !important; }
  .hero-text button svg, .navbar .share-btn svg { width: 18px; height: 18px; margin-right: 7px; flex-shrink: 0; }
  .hero-text .fav-toggle-btn.is-saved { background: #c9f23a !important; color: #10120a !important; border-color: #c9f23a !important; }
  .hero-video-credit { font-size: .7rem !important; color: rgba(243,245,238,.85) !important; background: rgba(16,18,10,.55) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 999px !important; padding: 5px 12px !important; }
  /* the big centred pause/play button becomes a small corner control */
  .hero > button:not(.fav-toggle-btn), .hero [class*="pause"], .hero [class*="video-toggle"], .hero [class*="video-btn"] {
    top: calc(76px + env(safe-area-inset-top, 0px)) !important; right: 14px !important; left: auto !important; bottom: auto !important; transform: none !important;
    width: 42px !important; height: 42px !important; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important;
    background: rgba(16,18,10,.55) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2) !important; color: #f3f5ee !important; }
  .hero > button:not(.fav-toggle-btn) * { font-size: .9rem !important; }

  /* section type + spacing */
  .section { padding: 20px 16px !important; margin: 14px 12px !important; }
  .section h2 { font-size: 1.3rem !important; font-weight: 800 !important; letter-spacing: -.025em; line-height: 1.15; }
  .section-sub { font-size: .9rem; line-height: 1.5; margin-bottom: 14px; }

  /* attraction / transport / hotel / budget blocks: no white leftovers (zero specificity, explicit rules still win) */
  :where(.attractions-grid, .transport-strip, .hotel-links-grid, .receipt)
  :where(div, article, a, li, figure):where(:not([class*="img"]):not([class*="image"]):not([class*="photo"]):not([class*="thumb"]):not([class*="scrim"]):not([class*="overlay"]):not([class*="grad"]):not([class*="shade"]):not([class*="fade"]):not([class*="badge"]):not([class*="tag"]):not([class*="rank"])) {
    background-color: #1a1c18 !important; border-color: #2b2e27 !important; box-shadow: none !important;
  }
  :where(.attractions-grid, .transport-strip, .hotel-links-grid, .receipt) :where(p, span, small, li, div, a) { color: #cfd3c6 !important; }
  :where(.attractions-grid, .transport-strip, .hotel-links-grid, .receipt) :where(h1, h2, h3, h4, strong, b) { color: #f3f5ee !important; }
  .attractions-grid img { border-radius: 20px; }
}


/* ===================== PATCH v10: place page sections (phones only) ===================== */
@media (max-width: 600px) {
  :root { --m-ver: 13; }

  /* hero pause/play control: small corner button (class added by mobile-app.js) */
  .m-vid-btn { position: absolute !important; top: calc(76px + env(safe-area-inset-top, 0px)) !important; right: 14px !important; left: auto !important; bottom: auto !important;
    transform: none !important; width: 42px !important; height: 42px !important; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; z-index: 5;
    background: rgba(16,18,10,.55) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2) !important; color: #f3f5ee !important; }

  /* Local attractions: swipeable cards */
  html body .attractions-grid { display: flex; gap: 14px !important; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
  .attractions-grid::-webkit-scrollbar { display: none; }
  .attraction-card { flex: 0 0 76%; scroll-snap-align: start; background: linear-gradient(180deg, #1c1f17, #151811) !important; border: 1px solid var(--m-hair) !important; border-radius: 24px !important; overflow: hidden; box-shadow: 0 12px 26px rgba(0,0,0,.35) !important; }
  .attraction-card img, .attraction-image-wrap { height: 170px !important; }
  .attraction-image-wrap { background: linear-gradient(135deg, #262a20, #1a1c18) !important; }
  .attraction-card .name { color: #f3f5ee !important; padding: 14px 16px !important; font-weight: 700; font-size: .98rem; }

  /* How to reach */
  .transport-card { flex: 1 1 calc(50% - 7px) !important; padding: 16px !important; background: linear-gradient(180deg, #1c1f17, #151811) !important; border: 1px solid var(--m-hair) !important; border-radius: 22px !important; box-shadow: none !important; color: #f3f5ee; }
  .transport-card .mode-name { color: #f3f5ee; font-family: Manrope, Poppins, system-ui, sans-serif; }
  .transport-card .mode-cta { color: #c9f23a !important; }
  .mode-status.yes { background: rgba(201,242,58,.15) !important; color: #c9f23a !important; }
  .mode-status.no { background: rgba(255,122,107,.15) !important; color: #ff7a6b !important; }

  /* Where to stay */
  .hotel-links-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .hotel-site-card { background: linear-gradient(180deg, #1c1f17, #151811) !important; border: 1px solid var(--m-hair) !important; border-radius: 22px !important; padding: 20px 12px !important; box-shadow: none !important; }
  .hotel-site-name { color: #f3f5ee !important; font-family: Manrope, Poppins, system-ui, sans-serif; }
  .hotel-site-cta, .combine-title strong { color: #c9f23a !important; }
  .hotel-reminder, .section-note { color: #8d9285 !important; }
  #exp-place-note { color: #f3f5ee !important; }

  /* Budget receipt */
  .receipt { background: linear-gradient(180deg, #1c1f17, #151811) !important; border: 1px solid var(--m-hair) !important; border-radius: 24px !important; max-width: none !important; padding: 20px !important; box-shadow: none !important; }
  .receipt-row { color: #cfd3c6 !important; border-bottom: 1px dashed rgba(255,255,255,.12); }
  .receipt-total { color: #c9f23a !important; padding-top: 12px; }

  /* "also combine" card, tips, gallery */
  .combine-card { background: linear-gradient(180deg, #1c1f17, #151811) !important; border: 1px solid var(--m-hair) !important; border-radius: 22px !important; box-shadow: none !important; }
  .combine-icon { background: #262a20 !important; }
  .combine-title { color: #f3f5ee !important; } .combine-arrow { color: #c9f23a !important; }
  .tips-list, .about-text { color: #cfd3c6 !important; }
  .gallery { border-radius: 24px !important; box-shadow: 0 14px 30px rgba(0,0,0,.4) !important; }

  /* Plan your trip: bottom sheet */
  .plan-section { border-top: 1px solid var(--m-hair) !important; }
  .plan-modal { place-items: end center !important; padding: 0 !important; background: rgba(0,0,0,.7) !important; }
  .plan-modal-card { width: 100% !important; max-width: none !important; max-height: 92vh; border-radius: 28px 28px 0 0 !important; background: #151811 !important; color: #f3f5ee !important;
    padding: 26px 18px calc(24px + env(safe-area-inset-bottom, 0px)) !important; animation: m-sheet .4s var(--m-ease); }
  .plan-modal-close { color: #8d9285 !important; }
  .plan-field, .plan-field-label { color: #f3f5ee !important; }
  .plan-timing-option, .plan-radio-row label { font-size: 14px !important; padding: 10px 14px !important; border-radius: 999px !important; background: #10120a !important; border-color: #2b2e27 !important; color: #cfd3c6 !important; }
  .plan-timing-option:has(input:checked), .plan-radio-row label:has(input:checked) { background: #c9f23a !important; border-color: #c9f23a !important; color: #10120a !important; }
  .plan-timing-option input, .plan-radio-row input { width: 16px !important; height: 16px !important; margin-right: 8px !important; }
  .plan-timing-help { color: #8d9285 !important; font-size: 12px !important; }
  .plan-unsure-btn { background: #10120a !important; color: #cfd3c6 !important; border-color: #2b2e27 !important; }
  .plan-checklist { border-color: #2b2e27 !important; }
  .plan-greeting { background: #1c1f17 !important; border: 1px solid var(--m-hair); }
  .plan-greeting p, .plan-greeting p:first-child { color: #f3f5ee !important; }
  .plan-stop-body { background: #1c1f17 !important; border-color: var(--m-hair) !important; box-shadow: none !important; }
  .plan-stop-body p, .plan-connector { color: #cfd3c6 !important; }
  .plan-day h3, .plan-stop-time, .plan-connector a { color: #c9f23a !important; }
  .plan-share { background: transparent !important; color: #c9f23a !important; border-color: #c9f23a !important; }
}


/* ===================== PATCH v11: keep page-specific rules on their own page ===================== */
@media (max-width: 600px) {
  :root { --m-ver: 13; }
  /* home page: the desktop link bar and desktop sign-in pill must never show on phones (hamburger menu is used) */
  .navbar[aria-label="Main Navigation"] { display: none !important; }
  .nav__auth--right { display: none !important; }
}


/* ===================== PATCH v12: home leftovers + Expeditions page (phones only) ===================== */
@media (max-width: 600px) {
  :root { --m-ver: 13; }

  /* destination card: location pill was white with light text */
  .place-badge-location { background: rgba(16,18,10,.62) !important; color: #f3f5ee !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); }

  /* ---------- Expeditions page ---------- */
  header:has(> .header-actions) { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px !important; background: rgba(16,18,10,.92) !important; border-bottom: 1px solid var(--m-hair) !important; }
  header .brand { font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; color: #f3f5ee !important; }
  .header-actions { gap: 6px; min-width: 0; }
  .header-actions .btn-link { padding: 8px 10px; color: #cfd3c6 !important; font-size: .85rem; }
  #auth-logged-in { gap: 6px !important; min-width: 0; }
  #account-name-label { display: block; max-width: 28vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .btn-logout { font-size: 0 !important; width: 40px; height: 40px; border-radius: 50%; padding: 0 !important; background: #1a1c18 !important; border: 1px solid var(--m-hair) !important; display: grid; place-items: center; flex-shrink: 0; }
  .btn-logout::before { content: ""; width: 18px; height: 18px; background: #8d9285; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat; }

  .expeditions-hero { min-height: 320px !important; padding: 70px 18px 30px !important; border-radius: 0 0 28px 28px; overflow: hidden;
    background-image: linear-gradient(to top, rgba(12,13,11,.96) 0%, rgba(12,13,11,.62) 55%, rgba(12,13,11,.4) 100%), url("images/pc-1.jpg") !important; }
  .hero-eyebrow { color: #c9f23a !important; letter-spacing: .12em; }
  .expeditions-hero h1 { font-size: 2.1rem !important; font-weight: 800; letter-spacing: -.03em; color: #fff !important; }
  .expeditions-hero p { color: rgba(243,245,238,.85) !important; font-size: .95rem; }

  .filter-bar-wrap { background: rgba(12,13,11,.88) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--m-hair) !important; padding: 12px 14px !important; z-index: 30; }
  .search-row { margin-bottom: 12px; }
  .search-box { max-width: none; }
  .search-box input { background: #10120a !important; color: #f3f5ee !important; border: 1px solid var(--m-line) !important; padding: 0 44px !important; min-height: 48px; }
  .search-box input:focus { background: #10120a !important; border-color: #c9f23a !important; box-shadow: 0 0 0 3px rgba(201,242,58,.18) !important; }
  .search-box .search-icon { font-size: 0; opacity: 1; left: 16px; width: 18px; height: 18px; background: #c9f23a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
  .search-box .search-clear { background: #262a20 !important; color: #8d9285 !important; }
  .chips-row { display: block; }
  .filter-label { display: block; margin: 0 0 8px; color: #8d9285 !important; }
  #filter-chips-row { flex-wrap: nowrap !important; overflow-x: auto; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; }
  #filter-chips-row::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; min-height: 40px; padding: 0 16px !important; background: #10120a !important; border: 1px solid var(--m-line) !important; color: #b9bdaf !important; box-shadow: none; }
  .filter-chip.is-active { background: #c9f23a !important; border-color: #c9f23a !important; color: #10120a !important; box-shadow: 0 6px 18px rgba(201,242,58,.25) !important; }
  .filter-count { display: block; margin: 8px 0 0 !important; color: #8d9285 !important; }

  main:has(> #expedition-list) { padding: 18px 14px 120px !important; }
  .expedition-card { background: linear-gradient(180deg, #1c1f17, #151811) !important; border: 1px solid var(--m-hair) !important; border-radius: 28px !important; box-shadow: 0 14px 30px rgba(0,0,0,.35) !important; color: #f3f5ee; }
  .expedition-card-image { height: 200px !important; }
  .expedition-badge-category { background: rgba(16,18,10,.72) !important; color: #c9f23a !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .expedition-card-body { padding: 18px 18px 20px !important; }
  .expedition-location { color: #c9f23a !important; }
  .expedition-card-body h3 { font-family: Manrope, Poppins, system-ui, sans-serif !important; font-size: 1.3rem; letter-spacing: -.02em; color: #f3f5ee; }
  .expedition-teaser { color: #9aa08f !important; }
  .expedition-meta-item { color: #8d9285 !important; }
  .expedition-explore-btn { background: #c9f23a !important; color: #10120a !important; border-radius: 16px !important; padding: 13px 20px !important; font-weight: 800; }
  .coming-soon-section { background: linear-gradient(180deg, #1c1f17, #151811) !important; border: 1px dashed rgba(201,242,58,.4) !important; border-radius: 28px !important; }
  .coming-soon-section h2 { color: #f3f5ee; }
  .coming-soon-section > p, .empty-state, .loading-state { color: #8d9285 !important; }
  .coming-soon-chip { background: #10120a !important; border-color: var(--m-line) !important; color: #f3f5ee !important; }
  .coming-soon-chip .stay-tuned { background: #262a20 !important; color: #c9f23a !important; }
}


/* ===================== PATCH v13: respect hidden elements, one font, trip page (phones only) ===================== */
@media (max-width: 600px) {
  :root { --m-ver: 13; }

  /* anything the page hides (hidden attribute / inline display:none) stays hidden, whatever my display rules say */
  html body [hidden], html body [style*="display: none"], html body [style*="display:none"] { display: none !important; }
  html body .attractions-grid.is-hidden, html body .attractions-grid.hidden, html body .attractions-grid.d-none { display: none !important; }

  /* one typeface everywhere (the trip page used a serif for headings); receipts keep their monospace */
  :where(body *:not(.receipt):not(.receipt *):not(svg *):not(code):not(pre):not(kbd):not(samp)) { font-family: Manrope, Poppins, system-ui, sans-serif !important; }
}
/* ===== PATCH v14: trip page (phones only) ===== */
@media (max-width: 600px) {

    /* 1. Hero text readable over the photo (trip / place pages only, never the home hero) */
  [class*="hero"]:not(.hero3d):not(.hero3d *) :where(h1, h2, h3, p, span, small, div) { color: #fff !important; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
  [class*="hero"]:not(.hero3d):not(.hero3d *) :where(p, small) { color: rgba(243,245,238,.9) !important; }
  [class*="hero"]:not(.hero3d):not(.hero3d *) :where(a, button) { color: #f3f5ee !important; background: rgba(16,18,10,.55) !important;
    border: 1px solid rgba(255,255,255,.25) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-shadow: none; }

  /* 2. Keep the title clear of the Edit trip button */
  [class*="hero"]:not(.hero3d):not(.hero3d *) h1 { padding-right: 76px; } 

  /* 3. Tab row: no box behind the pills */
  [class*="tabs"], [class*="tabbar"], [role="tablist"] { background: transparent !important; border: 0 !important; box-shadow: none !important; }

  /* 4. Same font as the rest of the app */
  [class*="hero"] h1, main h2, main h3 { font-family: Manrope, Poppins, system-ui, sans-serif !important; }
}
/* ===== PATCH v14: trip page (phones only) ===== */
@media (max-width: 600px) {

  /* theme tokens: the page's own variables go dark + lime */
  html body { --terra:#c9f23a; --green:#c9f23a; --card:#1a1c18; --clay:#262a20; --sand:#0c0d0b;
    --ink:#f3f5ee; --muted:#8d9285; --line:rgba(255,255,255,.08); }

  /* top bar */
  .top { padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 6px !important; }
  html body .brand, html body .top a:not(.brand) { background:#1a1c18 !important; border:1px solid rgba(255,255,255,.08);
    box-shadow:none !important; height:44px; display:inline-flex; align-items:center; text-decoration:none; }
  html body .brand { color:#f3f5ee !important; padding:0 18px !important; }
  html body .brand b { color:#c9f23a !important; }
  html body .top a:not(.brand) { color:#c9f23a !important; padding:0 16px !important; font-size:.9rem; }
  .wrap { padding: 0 14px 120px !important; }

  /* hero */
  html body .hero { min-height:300px; border-radius:28px; box-shadow:0 18px 40px rgba(0,0,0,.5); }
  html body .hero > div { padding:22px 18px !important; }
  html body .hero h1 { font-family:Manrope, Poppins, system-ui, sans-serif !important; font-weight:800; letter-spacing:-.035em;
    font-size:clamp(2.1rem, 10vw, 2.8rem) !important; line-height:1.05; margin:10px 0 6px; color:#fff !important; }
  html body .hero > div > div:not(.hero-row) { color:rgba(243,245,238,.92) !important; font-size:.85rem; font-weight:600; text-shadow:0 1px 10px rgba(0,0,0,.6); }
  html body .badge { background:#c9f23a !important; color:#10120a !important; }
  .hero-row { gap:8px; margin-top:14px; }
  html body .hero-row .btn, html body #hero #edit-trip { position:static !important; width:auto !important; height:auto !important; min-height:46px;
    flex:1 1 0; display:inline-flex !important; align-items:center; justify-content:center; padding:0 16px !important; border-radius:999px !important;
    background:rgba(16,18,10,.55) !important; -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.22) !important; color:#f3f5ee !important; font-weight:700; transform:none !important; }

  /* tabs: full-width glass bar, lime active pill */
  html body .tabs { margin:12px -14px 14px; padding:10px 14px; border-radius:0; background:rgba(12,13,11,.82) !important;
    -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); border-bottom:1px solid rgba(255,255,255,.06); }
  html body .tab { background:#1a1c18 !important; color:#b9bdaf !important; border:1px solid rgba(255,255,255,.08) !important; box-shadow:none !important; }
  html body .tab[aria-selected=true] { background:#c9f23a !important; border-color:#c9f23a !important; color:#10120a !important;
    box-shadow:0 6px 18px rgba(201,242,58,.28) !important; }

  /* section banners: calm dark card, one font, no orange/serif */
  html body .pane[id]::before { background:linear-gradient(135deg,#1f2616,#151811) !important; border:1px solid rgba(201,242,58,.18);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important; color:#f3f5ee; text-shadow:none; padding:18px 20px; border-radius:24px;
    font-family:Manrope, Poppins, system-ui, sans-serif !important; font-size:1.25rem; letter-spacing:-.02em; }
  #p-weather > .card > h2:first-child { display:none; }   /* duplicate of the banner */

  /* surfaces */
  html body :is(.card, .stat, .atc, .nowcard) { background:linear-gradient(180deg,#1c1f17,#151811) !important; border:1px solid rgba(255,255,255,.07) !important;
    box-shadow:0 14px 30px rgba(0,0,0,.35) !important; color:#f3f5ee; }
  html body .sos { background:rgba(255,122,107,.08) !important; border-color:rgba(255,122,107,.35) !important; }
  html body .wxd { background:#10120a !important; border:1px solid rgba(255,255,255,.07); box-shadow:none !important; }
  html body .pk-grid .chk { background:#10120a !important; border-color:rgba(255,255,255,.08) !important; }
  html body .pk-grid .chk.done { background:rgba(201,242,58,.1) !important; border-color:rgba(201,242,58,.4) !important; }
  html body .rm { background:#262a20 !important; color:#8d9285 !important; }
  html body .ring { background:conic-gradient(#c9f23a calc(var(--p)*1%), #262a20 0) !important; }
  html body .ring b { background:#1a1c18 !important; color:#c9f23a !important; }
  html body .tkt { background:#10120a !important; border-left-color:#c9f23a !important; }
  html body .bd-u { background:#c9f23a !important; color:#10120a !important; }
  html body .bd-a { background:#10120a !important; color:#f3f5ee; }
  html body .chip { background:#10120a !important; border-color:rgba(255,255,255,.12) !important; color:#c9f23a !important; }
  html body .atn { background:#c9f23a !important; color:#10120a !important; }
  .stats { grid-template-columns:1fr 1fr !important; }

  /* itinerary timeline */
  html body #p-itinerary .day { background:#262a20 !important; color:#c9f23a !important; }
  html body #p-itinerary .stop::before { border-color:#0c0d0b; background:#c9f23a; box-shadow:0 0 0 2px #262a20; }

  /* buttons */
  html body .btn { border-color:#c9f23a; color:#c9f23a; background:transparent; }
  html body .btn.p { background:#c9f23a !important; color:#10120a !important; border-color:#c9f23a !important; box-shadow:none !important; }

  /* dialog + toast */
  html body dialog { background:#151811 !important; color:#f3f5ee; border:1px solid rgba(255,255,255,.08); }
  dialog::backdrop { background:rgba(0,0,0,.72); }
  html body .toast { background:#c9f23a; color:#10120a; font-weight:700; bottom:calc(96px + env(safe-area-inset-bottom, 0px)); }
}
/* ===== PATCH v15: professional menu button (phones only) ===== */
@media (max-width: 600px) {

  html body .mobile-menu-trigger {
    width: 46px !important; height: 46px !important; min-width: 46px;
    padding: 0 !important; border-radius: 50% !important;
    background-color: #1a1c18 !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    box-shadow: none !important;
    display: inline-grid !important; place-items: center;
    font-size: 0 !important; color: transparent !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    transition: background-color .2s ease, border-color .2s ease, transform .22s var(--m-spring);

    /* clean two-line icon, off-white */
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 22px 22px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f5ee' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 8h16M4 16h10'/%3E%3C/svg%3E") !important;
  }

  /* hide the old hand-drawn lines / glyph */
  html body .mobile-menu-trigger > *,
  html body .mobile-menu-trigger::before,
  html body .mobile-menu-trigger::after { display: none !important; }

  /* open state: X icon, lime ring */
  html body .mobile-menu-trigger[aria-expanded="true"],
  html body .mobile-menu-trigger.is-open,
  html body .mobile-menu-trigger.open,
  html body .mobile-menu-trigger.active {
    border-color: #c9f23a !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9f23a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") !important;
  }

  html body .mobile-menu-trigger:active { transform: scale(.92); }
  html body .mobile-menu-trigger:focus-visible { outline: 2px solid #c9f23a; outline-offset: 2px; }

  /* menu panel: dark glass to match the app (it is white right now) */
  html body .mobile-dropdown-card {
    background: rgba(22,25,18,.96) !important;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 50px rgba(0,0,0,.6) !important;
  }
  html body .mobile-nav-list a,
  html body .mobile-nav-list button { color: #f3f5ee !important; border-radius: 14px; }
  html body .mobile-nav-list a:active,
  html body .mobile-nav-list button:active { background: #262a20 !important; }
  html body .mobile-lang-row { border-color: rgba(255,255,255,.1) !important; }
  html body .mobile-lang-row span { color: #8d9285 !important; }
}
/* ===== PATCH v16: every dock button looks the same (phones only) ===== */
@media (max-width: 600px) {

  /* any button/link inside the dock, even ones the page adds later */
  html body .dock > :not(.dock-more),
  html body .dock .dock-btn {
    flex: 1 1 0 !important; min-width: 0 !important; width: auto !important;
    height: auto !important; padding: 0 !important; margin: 0 !important;
    border-radius: 22px !important; border: 0 !important;
    background: transparent !important; box-shadow: none !important;
    color: #8d9285 !important; font-size: 0 !important;
    display: flex !important; flex-direction: row !important;
    align-items: center; justify-content: center; gap: 0 !important;
    text-decoration: none;
  }

  /* inactive: icon only, labels hidden */
  html body .dock .dock-btn > :not(.di):not(svg) { display: none !important; }
  html body .dock .dock-btn .di { display: grid !important; place-items: center; font-size: 1.3rem !important; color: inherit !important; }
  html body .dock .dock-btn .di svg { width: 24px; height: 24px; }

  /* active: lime pill with label */
  html body .dock .dock-btn.is-active,
  html body .dock > .is-active {
    flex: 2.5 1 0 !important; gap: 7px !important;
    background: #c9f23a !important; color: #10120a !important;
    font-size: .8rem !important; font-weight: 800 !important;
    box-shadow: 0 8px 22px rgba(201,242,58,.35) !important;
  }
  html body .dock .dock-btn.is-active > :not(.di):not(svg) {
    display: inline !important; font-size: .8rem !important; color: #10120a !important;
    white-space: nowrap; background: transparent !important; padding: 0 !important;
  }
}
/* ===== PATCH v17 ===== */
@media (max-width: 600px) {
  html body .dock > .active,
  html body .dock > [aria-current="page"],
  html body .dock > [aria-selected="true"] {
    flex: 2.5 1 0 !important; gap: 7px !important;
    background: #c9f23a !important; color: #10120a !important;
    font-size: .8rem !important; font-weight: 800 !important;
    box-shadow: 0 8px 22px rgba(201,242,58,.35) !important;
  }
  html body .dock > .active > .dock-label,
  html body .dock > [aria-current="page"] > .dock-label,
  html body .dock > [aria-selected="true"] > .dock-label {
    display: inline !important; font-size: .8rem !important; color: #10120a !important; white-space: nowrap;
  }
}
/* ===== PATCH v18: dock active state + More menu (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 16; }

  /* the page's own is-active no longer decides anything: only .m-on does */
  html body .dock .dock-btn.is-active:not(.m-on):not(.m-item) {
    flex: 1 1 0 !important; gap: 0 !important; font-size: 0 !important;
    background: transparent !important; color: #8d9285 !important; box-shadow: none !important;
  }
  html body .dock .dock-btn.is-active:not(.m-on):not(.m-item) > :not(.di):not(svg) { display: none !important; }
  html body .dock .dock-btn.is-active:not(.m-on):not(.m-item) * { color: inherit !important; }

  /* active tab: lime pill with its label (also used by the "..." button) */
  html body .dock .dock-btn.m-on:not(.m-item) {
    flex: 2.5 1 0 !important; gap: 7px !important;
    background: #c9f23a !important; color: #10120a !important;
    font-size: .8rem !important; font-weight: 800 !important;
    box-shadow: 0 8px 22px rgba(201,242,58,.35) !important;
  }
  html body .dock .dock-btn.m-on:not(.m-item) * { color: #10120a !important; }
  html body .dock .dock-btn.m-on:not(.m-item) > .dock-label {
    display: inline !important; font-size: .8rem !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* the "..." wrapper grows when its button is the active one */
  html body .dock-more:has(> .m-on), html body .dock-more:has(#dock-more-btn.m-on) { flex: 2.5 1 0 !important; }

  /* More menu: clean rows, line icons, lime highlight for the current page */
  html body .dock-menu {
    min-width: 220px; padding: 8px !important; border-radius: 22px !important;
    background: rgba(22,25,18,.97) !important; border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 24px 50px rgba(0,0,0,.6) !important;
  }
  html body .m-item.m-item.m-item.m-item {
    display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start !important;
    gap: 12px !important; flex: none !important; width: 100% !important; height: 48px !important; min-height: 0 !important;
    padding: 0 14px !important; margin: 0 !important; border: 0 !important; border-radius: 14px !important;
    background: transparent !important; box-shadow: none !important; color: #cfd3c6 !important;
    font-size: .92rem !important; font-weight: 600 !important; text-decoration: none; text-align: left;
  }
  html body .m-item.m-item.m-item.m-item .di { display: grid !important; place-items: center; width: 24px; height: 24px; color: inherit !important; }
  html body .m-item.m-item.m-item.m-item .di svg { width: 22px; height: 22px; }
  html body .m-item.m-item.m-item.m-item .dock-label { display: inline !important; font-size: .92rem !important; color: inherit !important; white-space: nowrap; }
  html body .m-item.m-item.m-item.m-on { background: rgba(201,242,58,.14) !important; color: #c9f23a !important; font-weight: 800 !important; }
}
/* ===== PATCH v19: logo, map, booking popup (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 17; }

  /* 1. Logo: no box, just text inside the glass bar */
  html body .navbar .brand {
    background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    height: auto !important; padding: 0 !important; display: inline-block !important;
    font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; color: #f3f5ee !important;
  }
  html body .navbar .brand b { color: #c9f23a !important; font-weight: 800; }

  /* 2. Map: zoom buttons never sit under the Back / close buttons */
  :is([class*="modal"], [class*="overlay"]) .leaflet-top { margin-top: 52px; }

  /* 3. Booking popup choice buttons */
  html body .m-choice {
    display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important;
    gap: 4px; width: 100% !important; height: auto !important; min-height: 78px !important;
    padding: 16px 20px !important; margin: 0 0 12px !important; border-radius: 22px !important;
    text-align: left !important; font-size: 1rem !important; font-weight: 800 !important; transform: none;
  }
  html body .m-choice * { background: transparent !important; text-align: left !important; text-shadow: none !important; }
  html body .m-choice > *:first-child { font-size: 1.02rem !important; font-weight: 800 !important; }
  html body .m-choice > *:not(:first-child) { font-size: .85rem !important; font-weight: 600 !important; opacity: .85; }

  html body .m-choice-yes { background: #c9f23a !important; border: 1px solid #c9f23a !important; box-shadow: 0 10px 26px rgba(201,242,58,.25) !important; }
  html body .m-choice-yes, html body .m-choice-yes * { color: #10120a !important; }

  html body .m-choice-no { background: #10120a !important; border: 1px solid #3a3e33 !important; box-shadow: none !important; }
  html body .m-choice-no, html body .m-choice-no * { color: #f3f5ee !important; }
}
/* ===== PATCH v20: dock polish (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 18; }

  /* softer glow, tighter pill */
  html body .dock .dock-btn.m-on:not(.m-item),
  html body .dock .dock-btn.m-on:not(.m-item):hover {
    flex: 2 1 0 !important; gap: 6px !important; padding: 0 10px !important;
    box-shadow: 0 4px 14px rgba(201,242,58,.22) !important;
  }
  html body .dock .dock-btn.m-on:not(.m-item) > .dock-label {
    overflow: visible !important; text-overflow: clip !important;
    font-size: .78rem !important; letter-spacing: -.01em;
  }
  html body .dock .dock-btn.m-on .di svg { width: 22px; height: 22px; flex-shrink: 0; }
}
/* ===== PATCH v21: home carousel keeps its photos (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 19; }
  .hero3d .slide { background-size: cover !important; background-position: center !important; }
  .hero3d .slide img { display: block !important; width: 100%; height: 100%; object-fit: cover; }
}
/* ===== PATCH v22: expeditions hero slideshow (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 20; }
  .expeditions-hero { background-image: none !important; background-color: #14171a !important; }
  .expeditions-hero::before { background: linear-gradient(to top, rgba(12,13,11,.96) 0%, rgba(12,13,11,.55) 50%, rgba(12,13,11,.25) 100%); }
}
/* ===== PATCH v23: What's new cards, 2 per row (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 23; }

  html body #whats-new { background: #0c0d0b !important; background-image: none !important; padding: 44px 16px !important; }
  html body #whats-new .hx-eyebrow { background: #262a20 !important; color: #c9f23a !important; box-shadow: none !important; }
  html body #whats-new .hx-head h2 { color: #f3f5ee !important; text-shadow: none !important; }
  html body #whats-new .hx-head p { color: #aeb3a3 !important; }
  html body #whats-new .hx-btn { background: #c9f23a !important; background-image: none !important; color: #10120a !important; box-shadow: none !important; width: 100%; }

  html body #whats-new .hx-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }

  html body #whats-new .hx-grid a.hx-card,
  html body #whats-new .hx-grid a.hx-card.hx-big {
    grid-column: auto !important; display: flex !important; flex-direction: column !important; min-width: 0; min-height: 0 !important;
    padding: 14px 12px 12px !important; border-radius: 18px !important;
    background: #1a1c18 !important; background-image: none !important;
    border: 1px solid #2b2e27 !important; box-shadow: none !important;
    transform: none !important;
  }
  html body #whats-new .hx-grid a.hx-card.hx-green { background: #1d2610 !important; border-color: #3d4f1c !important; }

  html body #whats-new .hx-grid a.hx-card h3 { color: #f3f5ee !important; font-size: .92rem !important; line-height: 1.25 !important; margin: 0 0 4px !important; transform: none !important; }
  html body #whats-new .hx-grid a.hx-card p {
    color: #aeb3a3 !important; font-size: .74rem !important; line-height: 1.45 !important; margin: 0 0 10px !important; transform: none !important;
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  }
  html body #whats-new .hx-grid a.hx-card .hx-ico {
    width: 38px !important; height: 38px !important; border-radius: 12px !important; margin: 0 0 10px !important;
    background: #262a20 !important; background-image: none !important; box-shadow: none !important; transform: none !important;
  }
  html body #whats-new .hx-grid a.hx-card .hx-ico, html body #whats-new .hx-grid a.hx-card .hx-ico * { color: #c9f23a !important; }
  html body #whats-new .hx-grid a.hx-card .hx-ico svg { width: 20px !important; height: 20px !important; }
  html body #whats-new .hx-grid a.hx-card .hx-new {
    top: 12px !important; right: 10px !important; font-size: .56rem !important; padding: 2px 7px !important;
    background: #c9f23a !important; color: #10120a !important; box-shadow: none !important; transform: none !important;
  }
  html body #whats-new .hx-grid a.hx-card .hx-tag {
    margin-top: auto; align-self: flex-start; font-size: .64rem !important; padding: 3px 9px !important;
    background: #262a20 !important; color: #cfd3c6 !important; transform: none !important;
  }
  html body #whats-new .hx-grid a.hx-card .hx-vis { display: none !important; }
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .15s; }
/* ---- Remove the blue tap box everywhere ---- */
*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
[role="button"],
select,
summary,
label,
.dock-btn,
.sidebar-nav-btn,
.hv-act,
.hv-stat,
.hv-card,
.dest-card,
.place-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* No focus box after a mouse click or tap */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
select:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none;
}

/* Keyboard users still get a clear ring (good for accessibility) */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(201, 99, 59, 0.55);
  outline-offset: 3px;
}

/* No accidental text-selection flash when tapping nav controls */
.dock,
.dock-btn,
.navbar a,
.sidebar-nav-btn,
.hv-act,
.hv-stat {
  -webkit-user-select: none;
  user-select: none;
}
/* ---- Clear tap feedback: press-in, tint flash, ripple ---- */
:root { --tap-spring: cubic-bezier(0.34, 1.56, 0.64, 1); }

.dock-btn, .hv-act, .hv-stat, .hv-cta, .hv-link, .hv-iconbtn,
.btn, .tg-chip, .tg-points, .tg-logout, .more-btn, .saved-toggle,
.pf-tab, .pf-stat, .ct-chip, .ct-banner-go,
.escape-tier-btn, .escape-category-btn, .trip-day-tab,
.mobile-tab-btn, .dock-menu a, .dock-menu button {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--tap-spring), background-color 0.15s ease,
              box-shadow 0.15s ease, filter 0.15s ease;
}

/* The press: shrinks, dims a little, and flashes a tint of its own colour */
.dock-btn:active, .hv-act:active, .hv-stat:active, .hv-cta:active, .hv-link:active,
.hv-iconbtn:active, .btn:active, .tg-chip:active, .tg-points:active, .tg-logout:active,
.more-btn:active, .saved-toggle:active, .pf-tab:active, .pf-stat:active, .ct-chip:active,
.ct-banner-go:active, .escape-tier-btn:active, .escape-category-btn:active,
.trip-day-tab:active, .mobile-tab-btn:active, .dock-menu a:active, .dock-menu button:active {
  transform: scale(0.92) !important;
  filter: brightness(0.94);
  background-color: color-mix(in srgb, currentColor 16%, transparent);
  transition-duration: 0.08s;
}

/* Cards and photos: a gentler press */
.hv-card, .dest-card, .hv-feature, .escape-result-item, .fav-item {
  transition: transform 0.25s var(--tap-spring), box-shadow 0.2s ease;
}
.hv-card:active, .dest-card:active, .hv-feature:active,
.escape-result-item:active, .fav-item:active {
  transform: scale(0.97) !important;
  transition-duration: 0.08s;
}

/* Ripple that spreads from the exact tap point */
.tg-rip {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  pointer-events: none;
  background: currentColor;
  opacity: 0;
  transform: scale(0);
  animation: tg-rip 0.55s ease-out forwards;
}
.hv-card .tg-rip, .dest-card .tg-rip, .hv-feature .tg-rip { background: #fff; }

@keyframes tg-rip {
  from { transform: scale(0); opacity: 0.28; }
  to   { transform: scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tg-rip { display: none; }
  .dock-btn:active, .hv-act:active, .btn:active, .dest-card:active, .hv-card:active {
    transform: none !important;
  }
}
/* ---- Clean top bar: TimeGo · coins · initials only ---- */

/* hide the full name and the logout button in the top bar */
html body .tg-top #tg-name,
html body .tg-top #tg-logout {
  display: none !important;
}

/* the profile chip becomes a round initials button */
html body .tg-top .tg-chip {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
  gap: 0 !important;
  border-radius: 50% !important;
  justify-content: center !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

html body .tg-top .tg-avatar {
  width: 100% !important;
  height: 100% !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
}

/* even spacing: logo on the left, coins + initials on the right */
html body .tg-top {
  gap: 10px;
}

html body .tg-top .tg-user {
  gap: 10px !important;
  margin-left: auto;
}
/* ---- Profile header: clean stacked layout on phones ---- */
@media (max-width: 860px) {

  html body .pf-head {
    position: relative;
    z-index: 1;
    padding-bottom: 20px !important;
  }

  html body .pf-head-row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
    margin-top: -46px !important;
  }

  html body .pf-id {
    width: 100% !important;
    min-width: 0 !important;
    padding-bottom: 0 !important;
    text-align: center !important;
  }

  html body .pf-id h1,
  html body .pf-id p {
    overflow-wrap: anywhere;
  }

  html body .pf-since {
    white-space: normal !important;
    display: inline-block !important;
  }

  /* the Log out button: full width, easy to see and tap */
  html body .pf-actions {
    width: 100% !important;
    padding: 0 !important;
  }

  html body #pf-logout {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    padding: 13px 18px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    border-radius: 14px !important;
    background: rgba(255, 90, 79, 0.14) !important;
    color: #ff6b61 !important;
    border: 1px solid rgba(255, 90, 79, 0.4) !important;
  }

  html body #pf-logout::before {
    content: "🚪";
    margin-right: 8px;
  }
}
/* ---- Attractive home cards (Discover next / Saved places) ---- */
.hv-rail {
  gap: 16px;
  padding-top: 6px;
  padding-bottom: 14px;
}

.hv-card {
  flex: 0 0 172px;
  height: 236px;
  border-radius: 26px;
  isolation: isolate;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

/* richer gradient so the name is always readable */
.hv-card::before {
  background: linear-gradient(
    to top,
    rgba(10, 8, 6, 0.92) 0%,
    rgba(10, 8, 6, 0.55) 32%,
    rgba(10, 8, 6, 0.06) 62%,
    rgba(10, 8, 6, 0) 100%
  );
}

/* glass arrow badge, top right */
.hv-card::after {
  content: "↗";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hv-card div {
  z-index: 1;
  padding: 16px 14px 18px;
}

/* small accent line above the place name */
.hv-card small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.64rem;
  letter-spacing: 0.7px;
  color: #ffd2a8;
  margin-bottom: 5px;
}

.hv-card small::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #c9633b, #f2a65a);
}

.hv-card b {
  display: block;
  font-size: 1.28rem;
  line-height: 1.12;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

/* hover (desktop) and press (phones) */
.hv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(201, 99, 59, 0.3), 0 8px 18px rgba(0, 0, 0, 0.2);
}

.hv-card:hover::after {
  transform: rotate(45deg) scale(1.08);
  background: #fff;
  color: #c9633b;
}

/* desktop: slightly bigger cards */
@media (min-width: 861px) {
  .hv-card {
    flex-basis: 220px;
    height: 290px;
  }
  .hv-card b {
    font-size: 1.45rem;
  }
}

/* phones have no hover, so keep the badge steady */
@media (hover: none) {
  .hv-card:hover {
    transform: none;
  }
  .hv-card:hover::after {
    transform: none;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
  }
}
/* ===== PATCH: reels on phones ===== */
@media (max-width: 600px) {
  html body .videos-head { align-items: flex-start; margin-bottom: 4px; }
  html body .videos-eyebrow { background: transparent !important; padding: 0 !important; color: #c9f23a !important; }

  /* edge-to-edge swipe rail inside the section card */
  html body .reel-track { margin: 0 -16px; padding: 4px 16px 14px; gap: 12px; scroll-padding-left: 16px; scroll-snap-type: x mandatory; }
  html body .reel { flex: 0 0 74vw; max-width: 300px; }
  html body .reel-media { border-radius: 24px; box-shadow: 0 14px 30px rgba(0,0,0,.45); background: #10120a; }

  html body .reel-info { padding: 16px 14px 18px; gap: 6px; }
  html body .reel-title { font-size: .95rem; color: #fff !important; }
  html body .reel-by, html body .reel-by a { color: rgba(243,245,238,.92) !important; }
  html body .reel-note { color: rgba(243,245,238,.8) !important; }
  html body .reel-watch { background: #c9f23a !important; color: #10120a !important; padding: 9px 14px; font-size: .78rem; }
  html body .reel-badge { background: rgba(16,18,10,.55) !important; color: #fff !important; }
  html body .reel-sound { background: rgba(16,18,10,.55) !important; border-color: rgba(255,255,255,.28) !important; }
  html body .reel-progress i { background: #c9f23a; }

  html body .video-footnote { color: #8d9285 !important; font-size: .74rem; line-height: 1.5; }
  html body .video-footnote a { color: #c9f23a !important; }
}
/* ===== PATCH v25: docked tab bar (phones only) - replaces v24 ===== */
@media (max-width: 600px) {

  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }

  /* bar sits flush with the bottom edge, full width */
  html body .m-nav-layer { left: 0 !important; right: 0 !important; bottom: 0 !important; padding: 0 !important; }
  html body .m-nav-layer .m-nav {
    max-width: none !important; width: 100%; margin: 0 !important;
    height: auto !important; box-sizing: border-box;
    padding: 0 8px env(safe-area-inset-bottom, 0px) !important; gap: 0 !important;
    border-radius: 0 !important;
    background: rgba(14,16,12,.96) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
    border: 0 !important; border-top: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: none !important;
  }

  /* five equal tabs: icon above label */
  html body .m-nav-layer .m-nav a {
    position: relative; overflow: visible;
    flex: 1 1 0 !important; min-width: 0; height: 62px !important;
    flex-direction: column !important; justify-content: center !important; gap: 5px !important;
    border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
    color: #6f746a !important;
    font-size: .64rem !important; font-weight: 600 !important; letter-spacing: .01em;
    transition: color .2s ease;
  }
  html body .m-nav-layer .m-nav a b { display: grid; place-items: center; line-height: 0; }
  html body .m-nav-layer .m-nav a svg { width: 23px; height: 23px; stroke-width: 1.6; }
  html body .m-nav-layer .m-nav a span { display: block !important; line-height: 1; white-space: nowrap; font-size: .64rem; }

  /* active: lime icon and label, thin line on the top edge, nothing else */
  html body .m-nav-layer .m-nav a.on { flex: 1 1 0 !important; background: transparent !important; color: #c9f23a !important; box-shadow: none !important; }
  html body .m-nav-layer .m-nav a.on span { font-weight: 800; }
  html body .m-nav-layer .m-nav a.on svg { stroke-width: 2; }
  html body .m-nav-layer .m-nav a.on::before {
    content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    width: 32px; height: 2px; border-radius: 0 0 3px 3px; background: #c9f23a;
  }

  /* subtle press feedback, no scaling jump */
  html body .m-nav-layer .m-nav a:active { transform: none !important; color: #f3f5ee !important; }
  html body .m-nav-layer .m-nav a .m-ripple { display: none; }
}
/* ===== PATCH v26: attractions as a clean 2-column grid (phones only) ===== */
@media (max-width: 600px) {

  /* notice badge sits on its own line under the heading, wraps neatly */
  html body .section > .section-notice-badge {
    display: inline-block; margin: 6px 0 14px; max-width: 100%;
    white-space: normal; line-height: 1.4; font-size: .74rem;
  }

  /* replace the sideways rail with a grid */
  html body .attractions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    margin: 0 !important; padding: 0 !important;
  }

  /* equal cards, image on top, name below */
  html body .attractions-grid .attraction-card {
    flex: none !important; width: auto !important; min-width: 0;
    display: flex; flex-direction: column;
    border-radius: 20px !important; overflow: hidden;
  }
  html body .attractions-grid .attraction-card img,
  html body .attractions-grid .attraction-image-wrap {
    width: 100% !important; height: auto !important;
    aspect-ratio: 4 / 3; object-fit: cover;
  }
  html body .attractions-grid .attraction-card .name {
    padding: 10px 12px 12px !important;
    font-size: .85rem !important; line-height: 1.3; font-weight: 700;
    display: -webkit-box;  -webkit-box-orient: vertical; overflow: hidden;
  }

  /* loading / empty message spans both columns */
  html body .attractions-grid > p,
  html body .attractions-grid > .loading { grid-column: 1 / -1; }

  /* if the card count is odd, the last card spans full width instead of leaving a gap */
  html body .attractions-grid .attraction-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  html body .attractions-grid .attraction-card:last-child:nth-child(odd) img,
  html body .attractions-grid .attraction-card:last-child:nth-child(odd) .attraction-image-wrap { aspect-ratio: 16 / 9; }
}
/* ===== PATCH v27: Local attractions cards (phones only) ===== */
@media (max-width: 600px) {

  html body .tgm-must-grid {
    display: grid !important; grid-template-columns: 1fr !important;
    gap: 12px !important; margin-top: 14px !important;
  }

  /* ---------- shared card surface ---------- */
  html body .tgm-card {
    background: linear-gradient(180deg, #1c1f17, #151811) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 22px !important; box-shadow: none !important;
    overflow: hidden; transition: transform .22s var(--m-spring);
  }
  html body .tgm-card:active { transform: scale(.98); }

  /* ---------- compact rows (cards 2-4) ---------- */
  html body .tgm-card:not(:first-child) {
    display: grid !important; grid-template-columns: 112px minmax(0, 1fr);
    min-height: 112px;
  }
  html body .tgm-card:not(:first-child) .tgm-card-media {
    aspect-ratio: auto !important; height: 100%; min-height: 112px;
  }
  html body .tgm-card:not(:first-child) .tgm-card-body {
    padding: 12px 14px !important; gap: 6px !important; justify-content: center;
  }
  html body .tgm-card:not(:first-child) .tgm-card-title { font-size: 1rem !important; }
  html body .tgm-card:not(:first-child) .tgm-card-desc {
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* badge shrinks to just the number on rows */
  html body .tgm-card:not(:first-child) .tgm-badge {
    top: 8px !important; left: 8px !important; padding: 3px 8px !important;
    font-size: 0 !important; background: rgba(16,18,10,.7) !important;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  html body .tgm-card:not(:first-child) .tgm-badge::after {
    font-size: .64rem; font-weight: 800; color: #c9f23a; letter-spacing: .04em;
  }
  html body .tgm-card:nth-child(2) .tgm-badge::after { content: "#2"; }
  html body .tgm-card:nth-child(3) .tgm-badge::after { content: "#3"; }
  html body .tgm-card:nth-child(4) .tgm-badge::after { content: "#4"; }

  /* ---------- featured card (card 1) ---------- */
  html body .tgm-card:first-child {
    display: flex !important; flex-direction: column; min-height: 300px;
    border-radius: 26px !important; box-shadow: 0 16px 34px rgba(0,0,0,.45) !important;
  }
  html body .tgm-card:first-child .tgm-card-media {
    position: absolute !important; inset: 0; aspect-ratio: auto !important; height: 100%;
  }
  html body .tgm-card:first-child .tgm-card-body {
    position: relative; z-index: 1; margin-top: auto;
    padding: 56px 18px 18px !important; gap: 8px !important;
    background: linear-gradient(to top, rgba(10,12,8,.96) 0%, rgba(10,12,8,.7) 55%, transparent 100%);
  }
  html body .tgm-card:first-child .tgm-badge {
    top: 14px !important; left: 14px !important; padding: 6px 12px !important;
    background: #c9f23a !important; color: #10120a !important;
    font-size: .64rem !important; font-weight: 800 !important; letter-spacing: .08em;
  }
  html body .tgm-card:first-child .tgm-card-title {
    font-size: 1.5rem !important; letter-spacing: -.025em; line-height: 1.12; color: #fff !important;
  }
  html body .tgm-card:first-child .tgm-card-desc { color: rgba(243,245,238,.82) !important; font-size: .88rem !important; }
  html body .tgm-card:first-child::after {
    content: "↗"; position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
    color: #fff; font-size: 1rem; font-weight: 700;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }

  /* ---------- text + chips on dark ---------- */
  html body .tgm-card-title { color: #f3f5ee !important; font-weight: 800 !important; line-height: 1.25; }
  html body .tgm-card-tag {
    background: rgba(201,242,58,.12) !important; color: #c9f23a !important;
    border-radius: 999px !important; padding: 4px 10px !important;
    font-size: .64rem !important; letter-spacing: .08em;
  }
  html body .tgm-card-desc { color: #8d9285 !important; }
  html body .tgm-card-media { background: linear-gradient(135deg, #262a20, #1a1c18) !important; }
  html body .tgm-card-initial { color: rgba(201,242,58,.25) !important; }
}

/* ===== full-screen detail view, dark to match the app ===== */
@media (max-width: 600px) {
  html body .tgm-overlay { background: #0c0d0b !important; }
  html body .tgm-bar {
    background: rgba(12,13,11,.85) !important; border-bottom: 1px solid rgba(255,255,255,.08) !important;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px !important;
  }
  html body .tgm-back { background: #c9f23a !important; color: #10120a !important; font-weight: 800 !important; }
  html body .tgm-x { background: #1a1c18 !important; color: #f3f5ee !important; border: 1px solid rgba(255,255,255,.1); }
  html body .tgm-hero { border-radius: 0 0 28px 28px; }
  html body .tgm-eyebrow { background: #c9f23a !important; color: #10120a !important; }
  html body .tgm-thumbs { background: #0c0d0b !important; }
  html body .tgm-thumb.active { border-color: #c9f23a !important; }

  html body .tgm-weather, html body .tgm-fact, html body .tgm-card2 {
    background: linear-gradient(180deg, #1c1f17, #151811) !important;
    border: 1px solid rgba(255,255,255,.07) !important; border-radius: 22px !important;
  }
  html body .tgm-weather-temp, html body .tgm-fact strong, html body .tgm-card2 h3 { color: #f3f5ee !important; }
  html body .tgm-weather small, html body .tgm-fact span, html body .tgm-sub { color: #8d9285 !important; }
  html body .tgm-card2 p { color: #cfd3c6 !important; }
  html body .tgm-note { background: rgba(212,162,76,.12) !important; color: #e9c779 !important; }

  html body .tgm-btn { background: #c9f23a !important; color: #10120a !important; }
  html body .tgm-btn2 { background: #1a1c18 !important; color: #f3f5ee !important; border: 1px solid rgba(255,255,255,.12); }

  html body .tgm-near { background: #10120a !important; border: 1px solid rgba(255,255,255,.07) !important; }
  html body .tgm-near strong { color: #f3f5ee !important; }
  html body .tgm-near span.m { color: #8d9285 !important; }
  html body .tgm-near-num { background: #c9f23a !important; color: #10120a !important; }
  html body .tgm-near a { color: #c9f23a !important; }
  html body .tgm-map { border-radius: 20px !important; }
}
/* ===== PATCH v28: smaller video reels (phones only) ===== */
@media (max-width: 600px) {

  /* tighter section */
  html body .videos-section { padding: 18px 14px !important; }
  html body .videos-head h2 { font-size: 1.2rem !important; }
  html body .videos-head .section-sub { font-size: .8rem !important; margin-bottom: 8px; }

  /* smaller cards, next one peeks in so it's clear you can swipe */
  html body .reel-track { margin: 0 -14px; padding: 4px 14px 10px; gap: 10px; scroll-padding-left: 14px; }
  html body .reel { flex: 0 0 56vw !important; max-width: 220px !important; }

  /* shorter video: roughly 4:5 instead of tall 9:16 */
  html body .reel-media {
    aspect-ratio: 4 / 5 !important;
    height: auto !important; max-height: 280px;
    border-radius: 20px !important;
  }
  html body .reel-media iframe,
  html body .reel-media video,
  html body .reel-media img { width: 100% !important; height: 100% !important; object-fit: cover; }

  /* smaller text and button inside the card */
  html body .reel-info { padding: 12px 12px 14px !important; gap: 4px !important; }
  html body .reel-title {
    font-size: .8rem !important; line-height: 1.3;
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  }
  html body .reel-by { font-size: .7rem !important; }
  html body .reel-note { display: none !important; }
  html body .reel-watch { padding: 7px 12px !important; font-size: .7rem !important; }

  /* smaller badge and sound button */
  html body .reel-badge { font-size: .62rem !important; padding: 4px 8px !important; top: 8px !important; left: 8px !important; }
  html body .reel-sound { width: 30px !important; height: 30px !important; top: 8px !important; right: 8px !important; }

  html body .video-footnote { font-size: .68rem !important; margin-top: 4px; }
}
/* ===== PATCH v29: Weekend Escape page (phones only) ===== */
@media (max-width: 600px) {

  /* the page's own pill row is hidden: the bottom bar already has these links */
  html body [data-m-dupnav] { display: none !important; }

  /* ---------- hero: dark card, left aligned, clear of the TimeGo pill ---------- */
  html.m-we body .m-we-hero {
    margin: 10px 10px 0 !important; box-sizing: border-box;
    padding: calc(84px + env(safe-area-inset-top, 0px)) 18px 24px !important;
    border-radius: 28px !important; text-align: left !important;
    border: 1px solid rgba(255,255,255,.08) !important; box-shadow: 0 18px 40px rgba(0,0,0,.4) !important;
  }
  html.m-we body .m-we-hero h1 {
    font-size: clamp(2rem, 9.5vw, 2.5rem) !important; line-height: 1.04 !important; letter-spacing: -.035em !important;
    text-align: left !important; margin: 10px 0 10px !important; padding: 0 !important; text-indent: 0 !important;
  }
  html.m-we body .m-we-hero p { text-align: left !important; font-size: .95rem !important; line-height: 1.55 !important; margin: 0 0 4px !important; }

  /* ---------- feature chips: one swipeable row ---------- */
  html.m-we body .m-we-chips {
    display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important;
    gap: 8px !important; overflow-x: auto; margin: 16px -18px 0 !important; padding: 2px 18px 6px !important;
    scrollbar-width: none;
  }
  html.m-we body .m-we-chips::-webkit-scrollbar { display: none; }
  html.m-we body .m-we-chips > * {
    flex: 0 0 auto !important; white-space: nowrap; min-height: 40px; padding: 0 14px !important;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 999px !important; box-shadow: none !important;
  }

  /* ---------- stat tiles: tidy 2 x 2 ---------- */
  html.m-we body .m-we-stats {
    display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; margin: 18px 0 0 !important;
  }
  html.m-we body .m-we-stats > * {
    height: auto !important; min-height: 0 !important; width: auto !important; margin: 0 !important;
    padding: 14px 14px 12px !important; text-align: left !important;
    background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 20px !important; box-shadow: none !important;
  }
  html.m-we body .m-we-stats > * > :first-child {
    display: block; font-size: 2rem !important; line-height: 1 !important; font-weight: 800 !important;
    -webkit-text-fill-color: #c9f23a !important; font-variant-numeric: tabular-nums;
  }
  html.m-we body .m-we-stats > * > :last-child:not(:first-child) {
    display: block; margin-top: 6px; font-size: .72rem !important; font-weight: 600 !important; line-height: 1.3;
  }

  /* ---------- result cards: dark surface, readable text ---------- */
  html.m-we body .m-we-card {
    border-radius: 28px !important; overflow: hidden;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.45) !important;
  }
  html.m-we body .m-we-card:active { transform: scale(.985); }

  /* "Open the full guide" becomes a proper lime button */
  html.m-we body .m-we-guide {
    display: flex !important; align-items: center; justify-content: center;
    width: 100% !important; box-sizing: border-box; min-height: 50px; margin: 14px 0 0 !important; padding: 0 18px !important;
    background: #c9f23a !important; border: 0 !important; border-radius: 16px !important;
    -webkit-text-fill-color: #10120a !important; color: #10120a !important;
    font-weight: 800 !important; text-decoration: none !important;
  }
}
/* ===== PATCH v30: When to go + Transit & Local Rules (phones only) ===== */
@media (max-width: 600px) {

  /* the wrapper stops being a card, so the two cards stand on their own */
  html body .section.when-tips-row {
    display: grid !important; grid-template-columns: 1fr !important; gap: 12px !important;
    background: transparent !important; background-image: none !important;
    border: 0 !important; box-shadow: none !important;
    padding: 0 !important; margin: 14px 12px !important;
  }

  /* the two cards */
  html body .when-tips-row .when-to-go-card,
  html body .when-tips-row .logistics-card {
    display: block !important; padding: 18px 16px !important; border-radius: 24px !important;
    background: linear-gradient(180deg, #1c1f17, #151811) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.3) !important;
  }

  /* header: icon bubble + title on one tidy line */
  html body .when-tips-row .when-header,
  html body .when-tips-row .logistics-header {
    display: flex; align-items: center; gap: 12px; margin: 0 0 12px !important;
  }
  html body .when-tips-row .when-header > span:first-child,
  html body .when-tips-row .logistics-header > span:first-child {
    flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center;
    border-radius: 12px; font-size: 1.1rem !important; line-height: 1;
    background: rgba(201,242,58,.10); border: 1px solid rgba(201,242,58,.22);
  }
  html body .when-tips-row .when-header h2,
  html body .when-tips-row .logistics-header h2 {
    font-size: 1.05rem !important; line-height: 1.2; margin: 0 !important; letter-spacing: -.02em;
  }

  /* When to go text */
  html body .when-tips-row .when-text {
    font-size: .92rem !important; line-height: 1.6 !important; color: #b9bdaf !important; margin: 0;
  }

  /* Tips trigger: info on top, full-width button below */
  html body .when-tips-row .soft-tips-trigger {
    flex-direction: column !important; align-items: stretch !important; gap: 14px;
    padding: 14px !important; border-radius: 18px !important;
    background: #10120a !important; border: 1px solid rgba(255,255,255,.08) !important;
    text-align: left;
  }
  html body .when-tips-row .soft-tips-trigger:hover { transform: none; }
  html body .when-tips-row .soft-tips-left { align-items: flex-start; gap: 12px; min-width: 0; }
  html body .when-tips-row .soft-icon-bubble {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px;
    background: #262a20 !important; border: 0 !important;
  }
  html body .when-tips-row .soft-tips-text { min-width: 0; gap: 2px; }
  html body .when-tips-row .soft-tips-title { font-size: .95rem !important; line-height: 1.3; }
  html body .when-tips-row .soft-tips-sub { font-size: .8rem !important; line-height: 1.4; margin: 0; }
  html body .when-tips-row .soft-action-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 44px; padding: 0 16px !important;
    border-radius: 14px !important; font-size: .88rem !important; font-weight: 800;
  }

  /* the popup opens as a bottom sheet (optional, matches the other sheets) */
  html body .alerts-modal { align-items: flex-end !important; padding: 0 !important; }
  html body .alerts-modal-card {
    max-width: none !important; max-height: 88vh; border-radius: 28px 28px 0 0 !important;
    padding: 22px 16px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    background: #151811 !important; animation: m-sheet .4s var(--m-ease);
  }
  html body .alerts-modal-header { border-bottom-color: rgba(255,255,255,.08) !important; }
  html body .alerts-card-item { border-radius: 16px !important; background: #1c1f17 !important; }
}
/* ===== PATCH v32: "Watch before you go" as YouTube Shorts style (phones only) ===== */
@media (max-width: 600px) {

  /* section shell */
  html body .videos-section { padding: 20px 0 16px !important; overflow: hidden; }
  html body .videos-head { padding: 0 16px; margin-bottom: 14px !important; }
  html body .videos-head h2 { font-size: 1.35rem !important; }
  html body .videos-nav { display: none !important; }            /* swipe instead of arrows */
  html body .videos-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
  }
  html body .videos-eyebrow::before {                            /* little red "play" chip like Shorts */
    content: ""; width: 20px; height: 14px; border-radius: 4px; background: #ff3b30;
    background-image: linear-gradient(#fff,#fff);
    -webkit-mask: none; mask: none;
    clip-path: none;
    box-shadow: inset 0 0 0 0 transparent;
    background:
      linear-gradient(135deg, transparent 0 38%, #fff 38% 62%, transparent 62%) center / 8px 8px no-repeat,
      #ff3b30;
  }

  /* swipe rail: big vertical cards, next one peeks in, snaps to centre */
  html body .reel-track {
    display: flex !important; gap: 12px !important; overflow-x: auto;
    margin: 0 !important; padding: 4px 16px 14px !important;
    scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  html body .reel-track::-webkit-scrollbar { display: none; }

  /* each card = a 9:16 Shorts player */
  html body .reel {
    position: relative; flex: 0 0 72vw !important; max-width: 300px !important;
    scroll-snap-align: center; border-radius: 26px; overflow: hidden;
    background: #000; border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 40px rgba(0,0,0,.55);
  }
  html body .reel-media {
    position: relative; width: 100% !important;
    aspect-ratio: 9 / 16 !important; height: auto !important; max-height: none !important;
    border-radius: 0 !important; box-shadow: none !important; background: #000;
  }
  html body .reel-media iframe,
  html body .reel-media video,
  html body .reel-media img {
    position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover;
    pointer-events: none;                    /* lets your finger swipe the rail instead of getting stuck on the video */
  }

  /* dark fade so the text is always readable */
  html body .reel::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 45%, transparent 100%);
    pointer-events: none; z-index: 2;
  }

  /* text + button sit on top of the video, bottom-left, like Shorts */
  html body .reel-info {
    position: absolute !important; left: 0; right: 0; bottom: 0; z-index: 3;
    display: flex; flex-direction: column; gap: 6px !important;
    padding: 0 16px 16px !important; background: none !important;
  }
  html body .reel-title {
    font-size: 1rem !important; line-height: 1.25; font-weight: 800; color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.6);
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  }
  html body .reel-by { font-size: .76rem !important; color: rgba(255,255,255,.85) !important; }
  html body .reel-by a { color: #fff !important; text-decoration: none; font-weight: 700; }
  html body .reel-note { display: none !important; }
  html body .reel-watch {
    display: flex !important; align-items: center; justify-content: center; gap: 6px;
    width: 100%; min-height: 44px; margin-top: 6px; padding: 0 16px !important;
    border-radius: 999px !important; font-size: .85rem !important; font-weight: 800;
    background: #c9f23a !important; color: #10120a !important;
    box-shadow: 0 8px 22px rgba(201,242,58,.28);
  }

  /* top overlays: preview badge left, sound button right (round, glassy) */
  html body .reel-badge {
    top: 12px !important; left: 12px !important; z-index: 4;
    padding: 5px 11px !important; font-size: .66rem !important;
    background: rgba(0,0,0,.5) !important; color: #fff !important;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  html body .reel-sound {
    top: 10px !important; right: 10px !important; z-index: 4;
    width: 40px !important; height: 40px !important; border-radius: 50% !important;
    background: rgba(0,0,0,.5) !important; border: 1px solid rgba(255,255,255,.25) !important;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }

  /* playback progress line along the very bottom edge, if your reel has .reel-progress */
  html body .reel-progress {
    position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 5;
    background: rgba(255,255,255,.2);
  }
  html body .reel-progress i { background: #c9f23a !important; display: block; height: 100%; }

  html body .video-footnote { padding: 0 16px; }
}
/* ===== PATCH v33: professional docked tab bar for the dashboard (phones only) ===== */
@media (max-width: 600px) {

  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }

  /* bar: flush with the bottom edge, full width, hairline on top */
  html body .dock.dock {
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important; height: auto !important; box-sizing: border-box;
    padding: 0 6px env(safe-area-inset-bottom, 0px) !important; gap: 0 !important;
    align-items: stretch !important; justify-content: space-between !important;
    border-radius: 0 !important; border: 0 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    background: rgba(14,16,12,.96) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 -8px 24px rgba(0,0,0,.35) !important;
  }

  /* every tab identical: icon above label, equal width */
  html body .dock.dock .dock-btn.dock-btn:not(.m-item),
  html body .dock.dock .dock-btn.dock-btn.is-active:not(.m-on):not(.m-item),
  html body .dock.dock .dock-btn.dock-btn.m-on:not(.m-item) {
    position: relative; overflow: visible !important;
    flex: 1 1 0 !important; min-width: 0 !important; width: auto !important;
    height: 60px !important; padding: 0 !important; margin: 0 !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important; gap: 4px !important;
    border: 0 !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important;
    color: #6f746a !important; font-size: 0 !important; font-weight: 600 !important;
    transition: color .2s ease;
  }

  /* icons + labels always visible */
  html body .dock.dock .dock-btn:not(.m-item) .di { display: grid !important; place-items: center; line-height: 0; color: inherit !important; }
  html body .dock.dock .dock-btn:not(.m-item) .di svg { width: 23px !important; height: 23px !important; stroke-width: 1.6; }
  html body .dock.dock .dock-btn:not(.m-item) > .dock-label,
  html body .dock.dock .dock-btn.is-active:not(.m-on):not(.m-item) > .dock-label {
    display: block !important; font-size: .62rem !important; font-weight: 600 !important;
    line-height: 1; letter-spacing: .01em; color: inherit !important;
    white-space: nowrap; overflow: visible !important; text-overflow: clip !important;
    background: transparent !important; padding: 0 !important;
  }

  /* "..." button gets a label too */
  html body .dock.dock #dock-more-btn:not(.m-on)::after {
    content: "More"; font-size: .62rem; font-weight: 600; line-height: 1; letter-spacing: .01em; color: inherit;
  }
  html body .dock.dock .dock-more,
  html body .dock.dock .dock-more:has(> .m-on),
  html body .dock.dock .dock-more:has(#dock-more-btn.m-on) { flex: 1 1 0 !important; min-width: 0 !important; display: flex !important; }
  html body .dock.dock .dock-more .dock-btn { width: 100% !important; }

  /* active tab: lime icon + label, thin line on the top edge, no blob, no glow */
  html body .dock.dock .dock-btn.dock-btn.m-on:not(.m-item) {
    background: transparent !important; color: #c9f23a !important; box-shadow: none !important;
    padding: 0 !important; flex: 1 1 0 !important; gap: 4px !important;
  }
  html body .dock.dock .dock-btn.m-on:not(.m-item) * { color: #c9f23a !important; }
  html body .dock.dock .dock-btn.m-on:not(.m-item) > .dock-label { font-size: .62rem !important; font-weight: 800 !important; }
  html body .dock.dock .dock-btn.m-on:not(.m-item) .di svg { stroke-width: 2; }
  html body .dock.dock .dock-btn.m-on:not(.m-item)::before {
    content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    width: 32px; height: 2px; border-radius: 0 0 3px 3px; background: #c9f23a;
  }

  /* press feedback: colour only, no scale jump, no ripple */
  html body .dock.dock .dock-btn:not(.m-item):active { transform: none !important; color: #f3f5ee !important; filter: none; background: transparent !important; }
  html body .dock .dock-btn .m-ripple, html body .dock .dock-btn .tg-rip { display: none !important; }

  /* "More" menu sits just above the bar, right-aligned */
  html body .dock.dock .dock-menu {
    bottom: calc(100% + 8px) !important; right: 10px !important; left: auto !important;
    min-width: 220px; border-radius: 18px !important;
    background: rgba(22,25,18,.98) !important; border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 20px 44px rgba(0,0,0,.6) !important;
  }
}
/* ===== PATCH v34: E-Guide empty state (phones only) ===== */
@media (max-width: 600px) {

  /* dark card, same surface as the rest of the app */
  html body :is(.eguide-empty, .eg-empty, .empty-state, .empty-card, .no-trip, .no-trip-card, .eguide-card, #eguide-empty, #panel-eguide .card, #panel-eguide > div > div) {
    background: linear-gradient(180deg, #1c1f17, #151811) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 28px !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.35) !important;
    padding: 32px 22px 28px !important;
    margin: 14px 14px 0 !important;
    text-align: center;
  }

  /* readable text on the dark card */
  html body :is(.eguide-empty, .eg-empty, .empty-state, .empty-card, .no-trip, .no-trip-card, #eguide-empty) :is(h1, h2, h3, h4, strong) {
    color: #f3f5ee !important;
    font-size: 1.25rem !important; font-weight: 800 !important;
    letter-spacing: -.02em; margin: 14px 0 8px !important;
  }
  html body :is(.eguide-empty, .eg-empty, .empty-state, .empty-card, .no-trip, .no-trip-card, #eguide-empty) p {
    color: #8d9285 !important;
    font-size: .92rem !important; line-height: 1.55 !important;
    margin: 0 auto 20px !important; max-width: 280px;
  }

  /* compass emoji in a lime-tinted bubble */
  html body :is(.eguide-empty, .eg-empty, .empty-state, .empty-card, .no-trip, .no-trip-card, #eguide-empty) :is(.icon, .emoji, .empty-icon, .eg-icon) {
    width: 72px; height: 72px; margin: 0 auto; border-radius: 50%;
    display: grid; place-items: center; font-size: 2rem;
    background: rgba(201,242,58,.10); border: 1px solid rgba(201,242,58,.25);
  }

  /* button full width, matches the other lime buttons */
  html body :is(.eguide-empty, .eg-empty, .empty-state, .empty-card, .no-trip, .no-trip-card, #eguide-empty) :is(a, button) {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 50px; padding: 0 20px !important;
    background: #c9f23a !important; color: #10120a !important;
    border: 0 !important; border-radius: 16px !important;
    font-weight: 800 !important; text-decoration: none;
  }
}
/* ===== PATCH v35: docked tab bar for the place page (phones only) ===== */
@media (max-width: 600px) {

  html body .place-dock.place-dock {
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important; height: auto !important; min-height: 0 !important;
    box-sizing: border-box; transform: none !important;
    padding: 0 6px env(safe-area-inset-bottom, 0px) !important; gap: 0 !important;
    align-items: stretch !important; justify-content: space-between !important;
    border-radius: 0 !important; border: 0 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    background: rgba(14,16,12,.96) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 -8px 24px rgba(0,0,0,.35) !important;
  }

  /* every tab identical: icon above label */
  html body .place-dock.place-dock .place-dock-btn.place-dock-btn,
  html body .place-dock.place-dock .place-dock-btn.place-dock-btn.is-active {
    position: relative; overflow: visible !important;
    flex: 1 1 0 !important; min-width: 0 !important; width: auto !important;
    height: 60px !important; padding: 0 !important; margin: 0 !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important; gap: 4px !important;
    border: 0 !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important; transform: none !important;
    color: #6f746a !important; font-size: .62rem !important; font-weight: 600 !important;
  }
  html body .place-dock.place-dock .place-dock-icon { display: grid !important; place-items: center; line-height: 0; font-size: 1.3rem !important; color: inherit !important; }
  html body .place-dock.place-dock .place-dock-icon svg { width: 23px !important; height: 23px !important; stroke-width: 1.6; }
  html body .place-dock.place-dock .place-dock-btn.place-dock-btn > span:last-child,
  html body .place-dock.place-dock .place-dock-btn.place-dock-btn.is-active > span:last-child {
    display: block !important; font-size: .62rem !important; font-weight: 600 !important;
    line-height: 1; letter-spacing: .01em; color: inherit !important; white-space: nowrap;
  }
  html body .place-dock.place-dock .place-dock-more-wrap { flex: 1 1 0 !important; min-width: 0 !important; display: flex !important; }
  html body .place-dock.place-dock .place-dock-more-wrap .place-dock-btn { width: 100% !important; }

  /* active tab: lime icon + label + thin top line */
  html body .place-dock.place-dock .place-dock-btn.place-dock-btn.is-active { color: #c9f23a !important; }
  html body .place-dock.place-dock .place-dock-btn.is-active * { color: #c9f23a !important; }
  html body .place-dock.place-dock .place-dock-btn.is-active > span:last-child { font-weight: 800 !important; }
  html body .place-dock.place-dock .place-dock-btn.is-active::before {
    content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    width: 32px; height: 2px; border-radius: 0 0 3px 3px; background: #c9f23a;
  }
  html body .place-dock.place-dock .place-dock-btn:active { color: #f3f5ee !important; background: transparent !important; }
  html body .place-dock .m-ripple, html body .place-dock .tg-rip { display: none !important; }

  /* More menu */
  html body .place-dock.place-dock .place-dock-menu {
    bottom: calc(100% + 8px) !important; right: 10px !important; left: auto !important;
    min-width: 220px; border-radius: 18px !important;
    background: rgba(22,25,18,.98) !important; border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 20px 44px rgba(0,0,0,.6) !important;
  }

  body:has(#place-dock:not([hidden])) { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
}
/* ===== PATCH v36: place page top bar, attraction rows, compact map (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 24; }

  /* ---------- 1. TOP BAR: icon-only buttons ---------- */
  html body .navbar:has(> .navbar-right) { padding: 0 8px 0 16px !important; gap: 8px !important; }
  html body .navbar .navbar-right { gap: 6px !important; flex-wrap: nowrap !important; margin-left: auto; }
  html body .navbar .nav-auth, html body .navbar .nav-auth-group { gap: 6px !important; }

  /* search: round 40px */
  html body .navbar .navbar-search { height: 40px !important; }
  html body .navbar .navbar-search:not(.is-open) { width: 40px; max-width: 40px !important; padding: 0 !important; }
  html body .navbar .navbar-search-btn { width: 34px !important; height: 34px !important; margin: 2px !important; }
  html body .navbar .navbar-search.is-open { max-width: 200px !important; }
  /* while searching, hide the other buttons so the input has room */
  html body .navbar:has(.navbar-search.is-open) :is(.share-btn, .nav-auth) { display: none !important; }

  /* Share: icon only */
  html body .navbar .share-btn {
    width: 40px !important; height: 40px !important; min-width: 40px; padding: 0 !important;
    border-radius: 50% !important; justify-content: center !important; font-size: 0 !important;
  }
  html body .navbar .share-btn span { display: none !important; }
  html body .navbar .share-btn svg { margin: 0 !important; width: 18px; height: 18px; }

  /* name -> round lime badge showing the first letter */
  html body .navbar #nav-account {
    display: inline-block !important; width: 40px !important; height: 40px !important; min-width: 40px;
    max-width: 40px !important; padding: 0 !important; overflow: hidden;
    border-radius: 50% !important; border: 0 !important; text-align: center;
    background: #c9f23a !important; color: #10120a !important;
    font-size: 0 !important; line-height: 40px !important;
  }
  html body .navbar #nav-account::first-letter { font-size: .95rem; font-weight: 800; text-transform: uppercase; }

  /* Log out -> round icon button */
  html body .navbar #nav-logout-btn {
    display: inline-grid !important; place-items: center; position: relative;
    width: 40px !important; height: 40px !important; min-width: 40px; padding: 0 !important;
    border-radius: 50% !important; font-size: 0 !important;
    background: #1a1c18 !important; border: 1px solid rgba(255,255,255,.14) !important; box-shadow: none !important;
  }
  html body .navbar #nav-logout-btn::before {
    content: ""; width: 18px; height: 18px; background: #ff8a7e;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  /* ---------- 2. ATTRACTIONS: cards 2-4 as proper rows ---------- */
  html body .tgm-card:not(:first-child) {
    display: grid !important; grid-template-columns: 104px minmax(0, 1fr);
    align-items: stretch; min-height: 104px; position: relative;
  }
  html body .tgm-card:not(:first-child) .tgm-card-media {
    position: relative !important; grid-column: 1; grid-row: 1;
    width: 100%; height: 100% !important; min-height: 104px; aspect-ratio: auto !important;
  }
  html body .tgm-card:not(:first-child) .tgm-card-media::after { display: none !important; }
  html body .tgm-card:not(:first-child) .tgm-card-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  }
  /* the fix: body goes back into normal flow, column 2 */
  html body .tgm-card:not(:first-child) .tgm-card-body {
    position: relative !important; left: auto !important; right: auto !important; bottom: auto !important;
    grid-column: 2; grid-row: 1; z-index: 1; min-width: 0; margin: 0;
    padding: 12px 14px !important; gap: 5px !important; background: none !important; justify-content: center;
  }
  html body .tgm-card:not(:first-child) .tgm-card-title { font-size: .98rem !important; }
  html body .tgm-card:not(:first-child) .tgm-card-desc {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    overflow: hidden; font-size: .8rem !important; line-height: 1.4;
  }
  html body .tgm-card:not(:first-child) .tgm-card-body::after {
    content: "Explore →"; margin: 2px 0 0; padding: 0; border-top: 0;
    font-size: .74rem; color: #c9f23a;
  }
  /* big first card: clamp its description too */
  html body .tgm-card:first-child .tgm-card-desc {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  }

  /* ---------- 3. 3D MAP CARD: compact ---------- */
  html body .map-section.section { padding: 8px !important; }
  html body .map-section .distance-card.m3-card { padding: 8px !important; border-radius: 22px !important; }

  html body .m3-map { height: clamp(260px, 42vh, 320px) !important; margin-bottom: 10px; border-radius: 16px; }
  html body .m3-map:fullscreen, html body .m3-map:-webkit-full-screen { height: 100% !important; border-radius: 0; margin: 0; }
  html body .m3-badge { top: 10px; left: 10px; padding: 6px 11px; font-size: .76rem; }
  html body .m3-card .m3-layers { left: 10px; bottom: 34px; }
  html body .m3-lay-toggle .m3-lay-img { width: 38px; height: 38px; }

  /* heading area */
  html body .m3-panel { padding: 2px; }
  html body .m3-top { margin-bottom: 10px; gap: 8px; }
  html body .m3-title { font-size: 1.1rem; }
  html body .m3-sub { display: none; }
  html body .m3-ref { font-size: .72rem; padding: 5px 10px; }

  /* "use my location" box */
  html body .m3-idle { padding: 14px; gap: 12px; border-radius: 16px; }
  html body .m3-idle-ico { display: none; }
  html body .m3-idle-copy { flex: 1 1 100%; font-size: .78rem; line-height: 1.45; }
  html body .m3-idle-copy strong { font-size: .95rem; }
  html body .m3-loading { padding: 14px; }
  html body .m3-skel { height: 44px; }

  /* result ticket */
  html body .m3-ticket { border-radius: 18px; }
  html body .m3-t-head { padding: 16px 18px 18px; gap: 0; }
  html body .m3-t-route { display: none; }
  html body .m3-t-num { font-size: 2.4rem; }
  html body .m3-t-num small { font-size: 1rem; }
  html body .m3-t-sub { max-width: none; font-size: .78rem; margin-top: 2px; }
  html body .m3-t-body { padding: 14px 12px; }
  html body .m3-ctl-row { gap: 8px; margin-bottom: 10px; }
  html body .m3-card .m3-modes button.m3-b { padding: 7px 14px; font-size: .8rem; }
  html body .m3-card .m3-seg button.m3-b { padding: 6px 10px; font-size: .74rem; }
  html body .m3-leave { font-size: .76rem; padding: 3px 3px 3px 10px; }

  /* metrics: 2 x 2, no icons, "Straight line" + "Direction" hidden */
  html body .m3-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html body .m3-metric { padding: 10px 11px; border-radius: 14px; }
  html body .m3-m-ico { display: none; }
  html body .m3-m-label { font-size: .7rem; }
  html body .m3-metric strong { font-size: .95rem; }
  html body .m3-metric:nth-child(4), html body .m3-metric:nth-child(5) { display: none; }

  /* tips, accuracy, buttons side by side, small footnote */
  html body .m3-tip { margin-top: 10px; padding: 10px 12px; font-size: .8rem; }
  html body .m3-acc { margin-top: 8px; font-size: .72rem; }
  html body .m3-actions { gap: 8px; margin-top: 12px; flex-wrap: nowrap; }
  html body .m3-card .m3-actions .m3-b {
    flex: 1 1 0 !important; padding: 10px 8px; font-size: .76rem; text-align: center;
  }
  html body .m3-foot { margin-top: 8px; font-size: .68rem; line-height: 1.5; }
}
/* ===== PATCH v37: Local attractions = swipeable photo carousel (phones only) =====
   PASTE THIS AT THE VERY END of mobile-app.css (after PATCH v36).
   Why: the old design stacked every attraction in one long column, so the page
   grew taller with each new attraction. Now the row is one fixed-height swipe
   rail: 3 or 30 attractions take the same space on the screen.
   Every card looks the same (no special "first card"), so it also works while
   attractions-autoscroll.js moves the cards round. */
@media (max-width: 600px) {
  :root { --m-ver: 25; }

  /* ---------- the rail ---------- */
  html body .tgm-must-grid {
    display: flex !important; flex-direction: row !important; grid-template-columns: none !important;
    gap: 12px !important; overflow-x: auto !important; overflow-y: hidden !important;
    margin: 14px -16px 0 !important; padding: 4px 16px 14px !important;
    scroll-snap-type: x mandatory; scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  html body .tgm-must-grid::-webkit-scrollbar { display: none; }

  /* ---------- every card: same tall photo card ---------- */
  html body .tgm-must-grid > .tgm-card {
    position: relative !important; isolation: isolate;
    flex: 0 0 74% !important; width: auto !important; max-width: 290px;
    height: 330px !important; min-height: 0 !important;
    display: flex !important; flex-direction: column !important; grid-template-columns: none !important;
    scroll-snap-align: start;
    border-radius: 26px !important; overflow: hidden;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.4) !important;
  }

  /* photo fills the whole card */
  html body .tgm-must-grid > .tgm-card .tgm-card-media {
    position: absolute !important; inset: 0 !important;
    width: 100% !important; height: 100% !important; min-height: 0 !important; aspect-ratio: auto !important;
  }
  html body .tgm-must-grid > .tgm-card .tgm-card-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  }

  /* text sits on a dark fade at the bottom */
  html body .tgm-must-grid > .tgm-card .tgm-card-body {
    position: relative !important; z-index: 1; margin: auto 0 0 !important;
    left: auto !important; right: auto !important; bottom: auto !important;
    grid-column: auto !important; grid-row: auto !important;
    padding: 70px 16px 16px !important; gap: 7px !important; justify-content: flex-end;
    background: linear-gradient(to top, rgba(10,12,8,.97) 0%, rgba(10,12,8,.82) 48%, rgba(10,12,8,0) 100%) !important;
  }
  html body .tgm-must-grid > .tgm-card .tgm-card-title {
    font-size: 1.2rem !important; line-height: 1.15 !important; letter-spacing: -.02em;
    color: #fff !important; text-shadow: 0 2px 12px rgba(0,0,0,.5);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  }
  html body .tgm-must-grid > .tgm-card .tgm-card-desc {
    font-size: .82rem !important; line-height: 1.45 !important; color: rgba(243,245,238,.78) !important;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  }
  html body .tgm-must-grid > .tgm-card .tgm-card-body::after {
    content: "Explore \2192"; display: block; margin: 6px 0 0; padding: 10px 0 0;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: .8rem; font-weight: 800; color: #c9f23a;
  }

  /* full "MUST VISIT #n" label on every card (fixes the empty badges on #5, #6 ...) */
  html body .tgm-must-grid > .tgm-card .tgm-badge {
    top: 12px !important; left: 12px !important; z-index: 2;
    padding: 6px 11px !important; font-size: .62rem !important; font-weight: 800 !important; letter-spacing: .08em;
    background: #c9f23a !important; color: #10120a !important;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  html body .tgm-must-grid > .tgm-card .tgm-badge::after { content: none !important; display: none !important; }

  /* glass arrow, top right */
  html body .tgm-must-grid > .tgm-card::after {
    content: "\2197"; position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
    color: #fff; font-size: 1rem; font-weight: 700;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
}
/* ===== PATCH v38: compact When to go + Transit & Local Rules (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 27; }

  html body .section.when-tips-row {
    display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important;
    margin: 12px !important; padding: 0 !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important;
  }

  /* both cards: slim, flat */
  html body .section.when-tips-row .when-to-go-card,
  html body .section.when-tips-row .logistics-card {
    padding: 14px 16px !important; border-radius: 20px !important; overflow: visible;
    background: linear-gradient(180deg, #1c1f17, #151811) !important;
    border: 1px solid rgba(255,255,255,.07) !important; box-shadow: none !important;
  }
  html body .section.when-tips-row .when-to-go-card::before,
  html body .section.when-tips-row .logistics-card::before { display: none !important; }

  /* ---------- When to go ---------- */
  html body .section.when-tips-row .when-header { display: flex; align-items: center; gap: 10px; margin: 0 0 8px !important; }
  html body .section.when-tips-row .when-header > span:first-child {
    flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center;
    border-radius: 10px; font-size: 1rem !important; line-height: 1;
    background: rgba(201,242,58,.1); border: 1px solid rgba(201,242,58,.25); box-shadow: none;
  }
  html body .section.when-tips-row .when-header h2 {
    font-size: 1.02rem !important; font-weight: 800 !important; letter-spacing: -.02em;
    line-height: 1.2; margin: 0 !important; color: #f3f5ee !important;
  }
  html body .section.when-tips-row .when-text {
    margin: 0 !important; padding: 0 !important; background: none !important;
    border: 0 !important; border-radius: 0 !important;
    font-size: .86rem !important; line-height: 1.55 !important; color: #b9bdaf !important;
  }
  html body .section.when-tips-row .when-text.m-clamp:not(.m-open) {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  }
  html body .section.when-tips-row .m-more {
    display: inline-flex; align-items: center; gap: 5px; margin: 4px 0 0; padding: 4px 0;
    background: none; border: 0; box-shadow: none; border-radius: 0;
    color: #c9f23a; font-size: .8rem; font-weight: 800; cursor: pointer;
  }
  html body .section.when-tips-row .m-more::after { content: "\2193"; transition: transform .25s ease; }
  html body .section.when-tips-row .m-more.is-open::after { transform: rotate(180deg); }

  /* ---------- Transit & Local Rules: one compact tappable row ---------- */
  html body .section.when-tips-row .logistics-card { padding: 12px 14px !important; }
  html body .section.when-tips-row .logistics-header { display: none !important; }

  html body .section.when-tips-row .soft-tips-trigger {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    justify-content: space-between !important; gap: 12px !important;
    padding: 0 !important; background: transparent !important; border: 0 !important;
    box-shadow: none !important; border-radius: 0 !important; text-align: left;
  }
  html body .section.when-tips-row .soft-tips-left {
    flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px;
    padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important;
  }
  html body .section.when-tips-row .soft-icon-bubble {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; font-size: 1.05rem;
    display: grid; place-items: center;
    background: rgba(201,242,58,.1) !important; border: 1px solid rgba(201,242,58,.25) !important;
  }
  html body .section.when-tips-row .soft-tips-text { min-width: 0; gap: 2px; }
  html body .section.when-tips-row .soft-tips-title { font-size: .92rem !important; font-weight: 800 !important; line-height: 1.25; color: #f3f5ee !important; }
  html body .section.when-tips-row .soft-tips-sub { font-size: .76rem !important; line-height: 1.35; color: #8d9285 !important; margin: 0; }

  /* "View Tips →" becomes a round arrow button (text hidden, works in any language) */
  html body .section.when-tips-row .soft-action-btn {
    flex: 0 0 36px !important; width: 36px !important; height: 36px !important; min-height: 0 !important;
    padding: 0 !important; border-radius: 50% !important; font-size: 0 !important;
    display: grid !important; place-items: center;
    background: #c9f23a !important; background-image: none !important;
    color: #10120a !important; border: 0 !important; box-shadow: none !important;
  }
  html body .section.when-tips-row .soft-action-btn::after { content: "\2192"; font-size: 1.05rem; font-weight: 800; line-height: 1; color: #10120a; }
  html body .section.when-tips-row .soft-action-btn:active { filter: brightness(.9); }
}
/* ===== PATCH v39: side-by-side cards + How to reach matches Where to stay (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 28; }

  /* ---------- When to go + Transit: two columns ---------- */
  html body .section.when-tips-row {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important; align-items: stretch !important;
  }
  html body .section.when-tips-row .when-to-go-card,
  html body .section.when-tips-row .logistics-card {
    padding: 14px 12px !important; border-radius: 20px !important; min-width: 0;
  }
  html body .section.when-tips-row .when-to-go-card > div,
  html body .section.when-tips-row .logistics-card > div {
    flex: 1; display: flex; flex-direction: column; min-width: 0;
  }

  /* When to go: compact header, longer clamp because the column is narrow */
  html body .section.when-tips-row .when-header { gap: 8px; margin: 0 0 8px !important; }
  html body .section.when-tips-row .when-header > span:first-child { flex: 0 0 28px; width: 28px; height: 28px; font-size: .9rem !important; border-radius: 9px; }
  html body .section.when-tips-row .when-header h2 { font-size: .95rem !important; }
  html body .section.when-tips-row .when-text { font-size: .78rem !important; line-height: 1.5 !important; }
  html body .section.when-tips-row .when-text.m-clamp:not(.m-open) {
    -webkit-line-clamp: 6; line-clamp: 6;
  }
  html body .section.when-tips-row .m-more { font-size: .76rem; }

  /* Transit: small centred tile */
  html body .section.when-tips-row .logistics-card > div { justify-content: center; }
  html body .section.when-tips-row .soft-tips-trigger {
    flex: 1; flex-direction: column !important; justify-content: center !important;
    align-items: center !important; gap: 12px !important; text-align: center;
  }
  html body .section.when-tips-row .soft-tips-left {
    flex: 0 0 auto; flex-direction: column !important; align-items: center !important; gap: 8px !important; width: 100%;
  }
  html body .section.when-tips-row .soft-tips-text { align-items: center; text-align: center; gap: 3px; }
  html body .section.when-tips-row .soft-tips-title { font-size: .86rem !important; line-height: 1.25; }
  html body .section.when-tips-row .soft-tips-sub {
    font-size: .72rem !important; line-height: 1.35;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  }
  html body .section.when-tips-row .soft-action-btn { flex: 0 0 36px !important; margin: 0 auto; }

  /* ---------- How to reach: same look as Where to stay ---------- */
  html body .transport-strip {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr; gap: 12px !important; margin-top: 14px !important;
  }
  html body .transport-strip .transport-card {
    flex: none !important; width: auto !important; min-width: 0; height: auto;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important;
    gap: 10px !important; text-align: center !important;
    padding: 20px 12px !important; border-radius: 22px !important;
    background: linear-gradient(180deg, #1c1f17, #151811) !important;
    border: 1px solid rgba(255,255,255,.07) !important; box-shadow: none !important;
  }
  html body .transport-strip .transport-card > * { margin: 0 !important; align-self: center; }
  html body .transport-strip .transport-card img { width: 44px !important; height: 44px !important; padding: 5px; border-radius: 12px; }
  html body .transport-card .mode-name { font-size: 1rem !important; font-weight: 800; color: #f3f5ee !important; }
  html body .transport-card .mode-status { padding: 4px 12px !important; font-size: .72rem !important; border-radius: 999px !important; }
  html body .transport-card .mode-cta { font-size: .85rem !important; font-weight: 800; color: #c9f23a !important; }

  /* ---------- Warning badges: tidy, full width, same in both sections ---------- */
  html body .section-header-row { gap: 8px !important; }
  html body .section-header-row .section-notice-badge {
    flex: 1 1 100%; display: block; margin: 0 !important;
    padding: 8px 12px !important; border-radius: 14px !important;
    font-size: .72rem !important; line-height: 1.4; text-align: left;
  }
}
/* ===== PATCH v40: plan card + booking popup (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 29; }

  /* ---------- "Want a day-by-day plan?" ---------- */
  html body #plan-section { padding: 18px 14px !important; }
  html body #plan-section h2 { font-size: 1.3rem !important; margin: 0 0 6px !important; }
  html body #plan-section .section-sub { font-size: .86rem !important; line-height: 1.5; margin: 0 0 14px !important; }

  /* the status card: shrink to its content, no stretched gap */
  html body #plan-section > div:not([hidden]):not(.plan-modal) {
    height: auto !important; min-height: 0 !important; aspect-ratio: auto !important;
    align-content: flex-start !important; justify-content: flex-start !important;
    grid-template-rows: auto !important; gap: 10px !important;
    padding: 16px !important; margin: 0 !important; border-radius: 22px !important;
    background: linear-gradient(180deg, #1c1f17, #151811) !important;
    border: 1px solid rgba(255,255,255,.07) !important; box-shadow: none !important;
  }
  html body #plan-section > div:not([hidden]):not(.plan-modal) * {
    min-height: 0 !important; height: auto !important; margin-top: 0 !important;
  }
  html body #plan-section > div:not([hidden]):not(.plan-modal) :is(h3, h4, strong, b):first-of-type {
    font-size: 1.05rem !important; line-height: 1.25 !important; letter-spacing: -.02em; color: #f3f5ee !important;
  }
  html body #plan-section > div:not([hidden]):not(.plan-modal) p { font-size: .82rem !important; line-height: 1.45 !important; color: #8d9285 !important; margin: 0 !important; }

  /* buttons: one tidy row */
  html body #plan-section > div:not([hidden]) :is(a, button) {
    flex: 1 1 auto; min-height: 42px !important; padding: 0 16px !important; border-radius: 999px !important;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .84rem !important; font-weight: 800 !important; white-space: nowrap;
  }

  /* ---------- booking popup header: compact, not a giant lime block ---------- */
  html body .m-bk-head {
    flex: 0 0 auto; padding: 14px 16px 12px !important; border-radius: 26px 26px 0 0;
  }
  html body .m-bk-head :is(h1, h2, h3) {
    font-size: 1.3rem !important; line-height: 1.1 !important; letter-spacing: -.03em;
    margin: 8px 0 4px !important;
  }
  html body .m-bk-head p { font-size: .76rem !important; line-height: 1.4 !important; margin: 0 !important; }
}
/* ===== PATCH v41: "More" menu as a grid popup (phones only) =====
   PASTE AT THE VERY END of mobile-app.css (after PATCH v40).
   Also change one line in mobile-app.js:  var VER = "29";  ->  var VER = "30";
   Round icon tiles with the label underneath, 4 per row, like the Gallery menu. */
@media (max-width: 600px) {
  :root { --m-ver: 30; }

  /* popup anchors to the whole dock, not to the small "More" button */
  html body .dock.dock .dock-more { position: static !important; }

  /* the card: full width above the bar. Open/close is still controlled by the page (display is NOT touched) */
  html body .dock.dock .dock-menu {
    position: absolute !important;
    left: 12px !important; right: 12px !important; bottom: calc(100% + 10px) !important;
    width: auto !important; min-width: 0 !important; max-width: none !important;
    box-sizing: border-box;
    padding: 18px 6px 8px !important;
    border-radius: 28px !important;
    background: rgba(22,25,18,.98) !important;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 24px 50px rgba(0,0,0,.6) !important;
    /* works whether the page opens it as block or flex */
    flex-direction: row !important; flex-wrap: wrap !important; align-content: flex-start !important;
    font-size: 0 !important;                 /* removes whitespace gaps between inline tiles */
    transform-origin: bottom center;
    animation: m-pop .2s var(--m-ease);
  }
  @keyframes m-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

  /* each tile: 4 per row, icon circle over label */
  html body .dock.dock .dock-menu .m-item.m-item.m-item.m-item.m-item {
    display: inline-flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: flex-start !important;
    flex: none !important; width: 25% !important; height: auto !important; min-height: 0 !important;
    box-sizing: border-box; vertical-align: top;
    gap: 8px !important; padding: 0 2px !important; margin: 0 0 14px !important;
    border: 0 !important; border-radius: 16px !important;
    background: transparent !important; box-shadow: none !important;
    color: #cfd3c6 !important; text-align: center !important; text-decoration: none;
    font-weight: 600 !important;
  }

  /* round icon */
  html body .dock.dock .dock-menu .m-item.m-item.m-item.m-item.m-item .di {
    display: grid !important; place-items: center;
    width: 54px !important; height: 54px !important; border-radius: 50% !important;
    background: #262a20; color: #c9f23a !important;
    transition: transform .2s var(--m-spring), background-color .2s;
  }
  html body .dock.dock .dock-menu .m-item.m-item.m-item.m-item.m-item .di svg { width: 24px !important; height: 24px !important; }

  /* label under the icon, up to 2 lines */
  html body .dock.dock .dock-menu .m-item.m-item.m-item.m-item.m-item .dock-label {
    display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    overflow: hidden; white-space: normal !important; max-width: 100%;
    font-size: .7rem !important; line-height: 1.25 !important; font-weight: 600 !important;
    color: inherit !important; text-align: center;
  }

  /* press feedback on the circle only */
  html body .dock.dock .dock-menu .m-item:active { transform: none !important; background: transparent !important; filter: none; }
  html body .dock.dock .dock-menu .m-item:active .di { transform: scale(.92); }
  html body .dock.dock .dock-menu .m-item .m-ripple,
  html body .dock.dock .dock-menu .m-item .tg-rip { display: none !important; }

  /* the page you are on: lime circle + lime label */
  html body .dock.dock .dock-menu .m-item.m-item.m-item.m-on {
    background: transparent !important; color: #c9f23a !important; font-weight: 800 !important;
  }
  html body .dock.dock .dock-menu .m-item.m-on .di { background: #c9f23a !important; color: #10120a !important; box-shadow: 0 6px 18px rgba(201,242,58,.28); }
  html body .dock.dock .dock-menu .m-item.m-on .dock-label { color: #c9f23a !important; font-weight: 800 !important; }
}
/* ripples must never take space in the layout, whatever the page's own CSS says */
html body .tg-rip,
html body .m-ripple {
  position: absolute !important;
  max-width: none;
  pointer-events: none;
}
:root { --m-ver: 32; }
/* ===== PATCH v33: profile tabs + empty states =====
   PASTE AT THE VERY END of mobile-app.css, then:
   1) delete the old last line   :root { --m-ver: 32; }
   2) in mobile-app.js change    var VER = "32";   to   var VER = "33";   */

/* ---- tabs: never shrink, never cut the text (all screen sizes) ---- */
.pf-tab { flex: 0 0 auto !important; white-space: nowrap; }

@media (max-width: 600px) {

  /* ---------- Profile tab row: swipeable chips ---------- */
  html body .pf-tabs {
    display: flex !important; flex-wrap: nowrap !important; gap: 8px !important;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    margin: 0 -14px 16px !important; padding: 2px 14px 6px !important;
    border-bottom: 0 !important; background: transparent !important;
    scroll-snap-type: x proximity; scroll-padding: 0 14px;
    -webkit-overflow-scrolling: touch;
    /* soft fade on the right edge says "swipe for more" */
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
  html body .pf-tabs::-webkit-scrollbar { display: none; }

  html body .pf-tabs .pf-tab {
    flex: 0 0 auto !important; min-width: max-content; scroll-snap-align: start;
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 42px; padding: 0 16px !important; margin: 0 !important;
    border: 1px solid rgba(255,255,255,.1) !important; border-radius: 999px !important;
    background: #1a1c18 !important; color: #b9bdaf !important;
    font-size: .86rem !important; font-weight: 700 !important; letter-spacing: 0;
    overflow: visible !important; text-overflow: clip !important;
    box-shadow: none !important;
  }
  html body .pf-tabs .pf-tab.is-active {
    background: #c9f23a !important; border-color: #c9f23a !important; color: #10120a !important;
    box-shadow: 0 6px 18px rgba(201,242,58,.25) !important;
  }
  html body .pf-tabs .pf-tab:active { transform: scale(.96) !important; }

  /* ---------- Empty / loading cards: dark, centred, with an icon bubble ---------- */
  html body .pf-pane .section-empty {
    background: linear-gradient(180deg, #1c1f17, #151811) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 26px !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.3) !important;
    padding: 28px 22px !important;
    color: #8d9285 !important; font-size: .92rem !important; line-height: 1.55 !important;
    text-align: center;
  }
  html body .pf-pane .section-empty::before {
    content: "\2661"; display: grid; place-items: center;
    width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%;
    font-size: 1.6rem; line-height: 1; color: #c9f23a;
    background: rgba(201,242,58,.1); border: 1px solid rgba(201,242,58,.25);
  }
  html body #reviews-empty::before { content: "\2606"; }
  html body #reviews-loading::before, html body #favourites-loading::before { content: "\2026"; }

  /* the link becomes a proper lime button */
  html body .pf-pane .section-empty a {
    display: flex; align-items: center; justify-content: center;
    width: fit-content; min-height: 46px; margin: 16px auto 0; padding: 0 24px;
    border-radius: 999px; background: #c9f23a !important; color: #10120a !important;
    font-weight: 800; font-size: .9rem; text-decoration: none;
  }
}
/* :root { --m-ver: 34; } */
/* ===== PATCH v34: "completed trips" banner on dark (phones only) ===== */
@media (max-width: 600px) {

  

  html body #panel-own-trip :is(div, section, aside):has(> div > :is(a, button)):has(> div:first-child) {
    --m-probe: 1;
  }

  /* any light dashed/white box in the Plan panel becomes a dark card */
  html body #panel-own-trip [style*="dashed"],
  html body #panel-own-trip [class*="complete"],
  html body #panel-own-trip [class*="banner"],
  html body #panel-own-trip [class*="done"] {
    background: linear-gradient(180deg, #1c1f17, #151811) !important;
    border: 1px dashed rgba(201,242,58,.35) !important;
    border-radius: 24px !important;
    box-shadow: none !important;
  }

  html body #panel-own-trip :is([style*="dashed"], [class*="complete"], [class*="banner"], [class*="done"]) :is(b, strong, h2, h3, h4) {
    color: #f3f5ee !important;
  }
  html body #panel-own-trip :is([style*="dashed"], [class*="complete"], [class*="banner"], [class*="done"]) :is(p, span, small) {
    color: #8d9285 !important;
  }

  /* the button: lime with dark text (was lime with white text) */
  html body #panel-own-trip :is([style*="dashed"], [class*="complete"], [class*="banner"], [class*="done"]) :is(a, button) {
    background: #c9f23a !important; color: #10120a !important;
    border: 0 !important; font-weight: 800 !important; box-shadow: none !important;
  }
}
/* ===== PATCH: professional left drawer (phones only) ===== */
@media (max-width: 600px) {

  /* panel */
  html body .tg-mtop .tg-mmenu {
    width: 296px; max-width: 84vw;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 12px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 2px !important;
    background: #0f130d !important;
    border-radius: 0 24px 24px 0 !important;
    border-right: 1px solid rgba(255,255,255,.07) !important;
    box-shadow: 20px 0 50px rgba(0,0,0,.55) !important;
  }
  html body .tg-mtop .tg-mscrim { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

  /* header: logo + close */
  html body .tg-mtop .tg-mhead { padding: 2px 8px 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
  html body .tg-mtop .tg-mlogo { font-size: 1.3rem; letter-spacing: -.03em; }
  html body .tg-mtop .tg-mhead button {
    width: 32px; height: 32px; border-radius: 10px; font-size: 1.1rem;
    background: transparent; border: 1px solid rgba(255,255,255,.1); color: #8d9285;
  }
  html body .tg-mtop .tg-mhead button:active { background: rgba(255,255,255,.06); color: #f3f5ee; }

  /* section labels */
  html body .tg-mtop .tg-msec {
    padding: 18px 12px 6px; font-size: .64rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: #5f6a5a;
  }

  /* rows: flat, 44px, icon with no tile */
  html body .tg-mtop .tg-mmenu .tg-mt {
    position: relative; height: 44px; padding: 0 12px !important; gap: 12px !important;
    border-radius: 12px !important; background: transparent !important; box-shadow: none !important;
    font-size: .92rem; font-weight: 600; color: #b9bdaf;
    transition: background-color .15s ease, color .15s ease;
  }
  html body .tg-mtop .tg-mmenu .tg-mt .tg-ic {
    width: 22px !important; height: 22px !important; flex: 0 0 22px !important;
    background: transparent !important; border-radius: 0 !important; color: #7d8374 !important;
    transition: color .15s ease;
  }
  html body .tg-mtop .tg-mmenu .tg-mt .tg-ic svg { width: 20px !important; height: 20px !important; stroke-width: 1.7; }
  html body .tg-mtop .tg-mmenu .tg-mt:active { background: rgba(255,255,255,.05) !important; }

  /* current page: soft lime tint + accent bar (no bright pill) */
  html body .tg-mtop .tg-mmenu .tg-mt.on {
    background: rgba(201,242,58,.10) !important; color: #c9f23a !important;
    font-weight: 700; box-shadow: none !important;
  }
  html body .tg-mtop .tg-mmenu .tg-mt.on .tg-ic { background: transparent !important; color: #c9f23a !important; }
  html body .tg-mtop .tg-mmenu .tg-mt.on::before {
    content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px;
    width: 3px; border-radius: 0 3px 3px 0; background: #c9f23a;
  }

  /* profile card pinned at the bottom (added by the script below) */
  html body .tg-mtop .tg-mfoot {
    position: sticky; bottom: 0; margin-top: auto; padding-top: 12px;
    background: linear-gradient(to top, #0f130d 70%, transparent);
  }
  html body .tg-mtop .tg-mfoot-in {
    display: flex; align-items: center; gap: 12px; padding: 10px;
    border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: rgba(255,255,255,.03);
  }
  html body .tg-mtop .tg-mfoot-av {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: #c9f23a; color: #10120a; font-weight: 800; font-size: .85rem;
  }
  html body .tg-mtop .tg-mfoot-tx { flex: 1; min-width: 0; line-height: 1.25; }
  html body .tg-mtop .tg-mfoot-tx b { display: block; font-size: .88rem; color: #f3f5ee; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html body .tg-mtop .tg-mfoot-tx small { display: block; font-size: .72rem; color: #7d8374; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html body .tg-mtop .tg-mfoot-out {
    flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: transparent; border: 1px solid rgba(255,255,255,.1); color: #ff8a7e; cursor: pointer;
  }
  html body .tg-mtop .tg-mfoot-out svg { width: 18px; height: 18px; }
  html body .tg-mtop .tg-mfoot-out:active { background: rgba(255,138,126,.12); }
}
/* ===== PATCH v35: Book my trip, mobile fit (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 35; }

  /* nothing may push the page sideways */
  html body :is([id*="book-my-trip"], [class*="book-my-trip"]) { max-width: 100%; overflow-x: clip; }
  html body :is([id*="book-my-trip"], [class*="book-my-trip"]) :is(div, section, label, form, fieldset) { min-width: 0; box-sizing: border-box; }

  /* inputs always fit their column */
    html body :is([id*="book-my-trip"], [class*="book-my-trip"]) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; min-height: 52px;
    font-size: 16px !important; border-radius: 14px !important;
  }
  html body input[type="date"] {
    -webkit-appearance: none; appearance: none; min-width: 0 !important; max-width: 100% !important;
    padding: 0 12px !important; text-align: left; display: block;
  }
  html body input[type="date"]::-webkit-date-and-time-value { text-align: left; min-width: 0; }

  /* Going on / Returning: two equal columns */
  html body .m-bk-dates {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important; width: 100%;
  }
  html body .m-bk-dates > * { min-width: 0; }

  /* Travellers stepper: [ - ]  number  [ + ] always fits */
  html body .m-bk-step {
    display: flex !important; align-items: stretch !important; gap: 10px !important;
    width: 100% !important; max-width: 100%; box-sizing: border-box;
  }
  html body .m-bk-step > button {
    flex: 0 0 52px !important; width: 52px !important; height: 52px !important; min-height: 0 !important;
    padding: 0 !important; border-radius: 14px !important; font-size: 1.3rem !important; font-weight: 800;
    display: grid !important; place-items: center;
    background: #262a20 !important; color: #c9f23a !important; border: 1px solid #2b2e27 !important;
  }
  html body .m-bk-step > :not(button) {
    flex: 1 1 0 !important; width: auto !important; min-width: 0 !important;
    text-align: center; height: 52px; display: grid; place-items: center;
  }
  html body .m-bk-step input { text-align: center; height: 52px; }

  /* title never runs under the Cancel trip button */
  html body .m-bk-title { padding-right: 112px !important; }

  

  /* less nested padding so the form has room */
  html body :is([id*="book-my-trip"], [class*="book-my-trip"]) :is(.card, [class*="card"]) :is(.card, [class*="card"]) {
    padding: 14px !important; border-radius: 20px !important;
  }
}
/* ===== PATCH v36: Book my trip footer + checkbox fix (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 36; }

  /* room at the bottom so nothing hides behind the buttons or the tab bar */
  html body #panel-book-my-trip { padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px)) !important; }

  /* footer strip: invisible, buttons sit bottom-right above the tab bar */
  html body #panel-book-my-trip .bmt-foot {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important; right: 0 !important; width: auto !important;
    display: flex !important; justify-content: flex-end; align-items: center;
    padding: 0 14px !important; margin: 0 !important;
    background: none !important; border: 0 !important; box-shadow: none !important;
    pointer-events: none; z-index: 40;
  }
  html body #panel-book-my-trip .bmt-foot .bmt-nav {
    display: flex !important; gap: 8px; margin: 0 !important; width: auto !important; pointer-events: none;
  }

  /* small buttons */
  html body #panel-book-my-trip .bmt-foot .bmt-nav .btn {
    pointer-events: auto; flex: 0 0 auto !important; width: auto !important;
    height: 42px; min-height: 0 !important; padding: 0 18px !important;
    border-radius: 12px !important; font-size: .88rem !important; font-weight: 800;
    white-space: nowrap; box-shadow: 0 8px 22px rgba(0,0,0,.45) !important;
  }
  html body #bmt-next { background: #c9f23a !important; color: #10120a !important; border: 0 !important; }
  html body #bmt-next.is-locked { opacity: .55; }
  html body #bmt-prev { background: #1a1c18 !important; color: #f3f5ee !important; border: 1px solid rgba(255,255,255,.14) !important; }

  /* "I have booked my transport / stay" box: normal checkbox + readable label */
  html body #panel-book-my-trip .bmt-pk {
    display: flex !important; align-items: center; gap: 12px;
    padding: 14px 16px !important; border-radius: 16px !important;
    background: #10120a !important; border: 1px solid #2b2e27 !important;
  }
  html body #panel-book-my-trip .bmt-pk.is-on { border-color: rgba(201,242,58,.5) !important; background: #161a10 !important; }
  html body #panel-book-my-trip .bmt-pk > span { flex: 1 1 auto; min-width: 0; white-space: normal; font-size: .92rem; font-weight: 700; color: #f3f5ee; }
  html body #panel-book-my-trip .bmt-pk > span small { display: block; margin-top: 2px; font-size: .74rem; font-weight: 500; color: #8d9285; }
  html body #panel-book-my-trip .bmt-pk input[type="checkbox"],
  html body #panel-book-my-trip .bmt-done input[type="checkbox"] {
    flex: 0 0 22px !important; width: 22px !important; height: 22px !important;
    min-width: 22px !important; min-height: 0 !important; padding: 0 !important;
    margin: 0 !important; border-radius: 6px !important; accent-color: #c9f23a;
  }
}
/* ===== PATCH v37: Book my trip Next button, clean (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 37; }

  /* the footer strip: pinned to the screen, no background, no blur, no smear */
  html body #panel-book-my-trip .bmt-foot {
    position: fixed !important;
    left: auto !important; right: 14px !important; width: auto !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important; padding: 0 !important;
    background: none !important; background-image: none !important;
    border: 0 !important; box-shadow: none !important; filter: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    -webkit-mask: none !important; mask: none !important;
    pointer-events: none; z-index: 40;
  }
  html body #panel-book-my-trip .bmt-foot::before,
  html body #panel-book-my-trip .bmt-foot::after { display: none !important; content: none !important; }

  /* the Done checkbox row is not used on phones */
  html body #panel-book-my-trip .bmt-foot .bmt-done { display: none !important; }

  html body #panel-book-my-trip .bmt-foot .bmt-nav {
    display: flex !important; gap: 8px; margin: 0 !important; padding: 0 !important;
    width: auto !important; background: none !important; pointer-events: none;
  }

  /* the buttons: small, solid boxes */
  html body #panel-book-my-trip .bmt-foot .bmt-nav .btn {
    pointer-events: auto; flex: 0 0 auto !important; width: auto !important;
    height: 44px; min-height: 0 !important; padding: 0 20px !important;
    border-radius: 12px !important; font-size: .9rem !important; font-weight: 800;
    white-space: nowrap; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,.55) !important;
  }
  html body #bmt-next {
    background: #c9f23a !important; background-image: none !important;
    color: #10120a !important; border: 0 !important;
  }
  html body #bmt-next.is-locked { opacity: .8; }
  html body #bmt-prev {
    background: #1a1c18 !important; color: #f3f5ee !important;
    border: 1px solid rgba(255,255,255,.16) !important;
  }

  /* enough room at the bottom so the last card is never hidden behind the button */
  html body #panel-book-my-trip { padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px)) !important; }
}
/* ===== PATCH v38: Back / Next sit at the bottom of the card (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 38; }

  /* card becomes a column so the button row is always its last item */
  html body #panel-book-my-trip > .card {
    display: flex !important; flex-direction: column;
  }
  html body #panel-book-my-trip .bmt-note { order: 1; }

  /* footer: back in normal flow, inside the card, no floating */
  html body #panel-book-my-trip .bmt-foot {
    order: 2;
    position: static !important; inset: auto !important;
    left: auto !important; right: auto !important; bottom: auto !important;
    width: 100% !important; box-sizing: border-box;
    margin: 18px 0 0 !important; padding: 16px 0 0 !important;
    background: none !important; border: 0 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: none !important; pointer-events: auto; z-index: auto;
    display: flex !important; align-items: center;
  }
  html body #panel-book-my-trip .bmt-foot .bmt-nav {
    display: flex !important; width: 100% !important; gap: 10px;
    margin: 0 !important; justify-content: flex-end; pointer-events: auto;
  }

  /* Back on the left, Next on the right */
  html body #panel-book-my-trip .bmt-foot #bmt-prev { margin-right: auto !important; }
  html body #panel-book-my-trip .bmt-foot .bmt-nav .btn {
    height: 46px; padding: 0 22px !important; border-radius: 14px !important;
    box-shadow: none !important;
  }
  html body #bmt-next.is-locked { opacity: 1; }   /* no dull olive colour */

  /* only tab-bar clearance is needed now */
  html body #panel-book-my-trip { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important; }
}
/* ===== PATCH v39: highlight the required box when a step is skipped ===== */
.bmt-must.bmt-shake { animation: bmt-shake .5s ease, bmt-glow 1.6s ease; }
@keyframes bmt-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(3px); }
}
@keyframes bmt-glow {
  0%   { box-shadow: 0 0 0 0 rgba(201,242,58,.6); }
  40%  { box-shadow: 0 0 0 6px rgba(201,242,58,.35); }
  100% { box-shadow: 0 0 0 0 rgba(201,242,58,0); }
}
/* ===== PATCH v40: remove trip summary bar + pre-filled note (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 40; }

  /* 1. the "Araku Valley · Kolkata · dates · travellers  [Edit]" bar on steps 2-5 */
  html body #panel-book-my-trip #bmt-sum { display: none !important; }

  /* 2. the "PRE-FILLED cards open with your dates..." note on the last step */
  html body #panel-book-my-trip .card:has(.bmt-hero) .bmt-note { display: none !important; }
}
/* ===== PATCH v41: remove the pre-filled note on all steps (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 41; }

  html body #panel-book-my-trip .bmt-note { display: none !important; }
}
/* ===== PATCH v42: Ready step, attractive mobile layout (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 42; }

  /* ---------- entrance: each block rises in ---------- */
  html body #bmt-body :is(.bmt-sum, .bmt-group, .bmt-pp) { animation: m-rise .5s var(--m-ease) backwards; }
  html body #bmt-body .bmt-group:nth-of-type(2) { animation-delay: .08s; }
  html body #bmt-body .bmt-group:nth-of-type(3) { animation-delay: .16s; }

  /* ---------- 1. booking recap: one clean "ticket" card ---------- */
  html body #bmt-body .bmt-sum {
    display: block !important; padding: 4px 16px !important; margin: 0 0 18px !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, rgba(201,242,58,.12), rgba(201,242,58,.03)) !important;
    border: 1px solid rgba(201,242,58,.28) !important; box-shadow: none !important;
  }
  html body #bmt-body .bmt-sum > div {
    padding: 13px 0 !important; font-size: .86rem !important; line-height: 1.5 !important; color: #cfd3c6 !important;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  html body #bmt-body .bmt-sum > div:last-child { border-bottom: 0; }
  html body #bmt-body .bmt-sum b { color: #f3f5ee !important; }

  /* ---------- 2. big friendly headline ---------- */
  html body #bmt-body h3.bmt-hero {
    font-size: 1.75rem !important; line-height: 1.08 !important; letter-spacing: -.035em;
    margin: 6px 0 8px !important; color: #f3f5ee !important;
  }
  html body #bmt-body h3.bmt-hero::before {
    content: "READY TO GO"; display: block; width: fit-content; margin: 0 0 10px;
    padding: 5px 11px; border-radius: 999px; font-size: .62rem; font-weight: 800; letter-spacing: .14em;
    background: rgba(201,242,58,.14); color: #c9f23a;
  }
  html body #bmt-body .bmt-hero + p { color: #8d9285 !important; font-size: .9rem; margin: 0 0 14px !important; }

  /* "Add this trip to My Trips" toggle */
  html body #bmt-body .bmt-pk {
    max-width: none !important; width: 100%; box-sizing: border-box;
    padding: 14px 16px !important; border-radius: 18px !important;
    background: #10120a !important; border: 1px solid #2b2e27 !important;
  }
  html body #bmt-body .bmt-pk.is-on { background: #161a10 !important; border-color: rgba(201,242,58,.5) !important; }

  /* ---------- 3. Before / During / After: one compact row ---------- */
  html body #bmt-body .bmt-tl {
    display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important; margin: 4px 0 20px !important;
  }
  html body #bmt-body .bmt-tl > div {
    display: flex !important; flex-direction: column; align-items: center; text-align: center;
    padding: 14px 6px 12px !important; border-radius: 18px !important; min-width: 0;
    background: #1a1c18 !important; background-image: none !important;
    border: 1px solid rgba(255,255,255,.07) !important; box-shadow: none !important; color: #cfd3c6 !important;
  }
  html body #bmt-body .bmt-tl > div > span { font-size: 1.5rem !important; line-height: 1; margin-bottom: 8px; }
  html body #bmt-body .bmt-tl > div b { font-size: .86rem !important; color: #f3f5ee !important; }
  html body #bmt-body .bmt-tl > div small { font-size: .64rem !important; line-height: 1.3; margin-top: 3px; color: #8d9285 !important; }
  html body #bmt-body .bmt-tl > div.is-now {
    background: rgba(201,242,58,.12) !important; border-color: #c9f23a !important;
    box-shadow: 0 8px 22px rgba(201,242,58,.18) !important;
  }
  html body #bmt-body .bmt-tl > div.is-now b { color: #c9f23a !important; }
  html body #bmt-body .bmt-tl > div.is-now small { color: #cfd3c6 !important; }

  /* section headings */
  html body #bmt-body .bmt-group > h3:not(.bmt-hero) {
    font-size: 1.08rem !important; font-weight: 800 !important; letter-spacing: -.02em; margin: 6px 0 12px !important; color: #f3f5ee !important;
  }

  /* ---------- 4. E-guide features: swipeable cards ---------- */
  html body #bmt-body .bmt-feat {
    display: flex !important; gap: 10px !important; overflow-x: auto; margin: 0 0 16px !important; padding: 2px 0 10px !important;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  html body #bmt-body .bmt-feat::-webkit-scrollbar { display: none; }
  html body #bmt-body .bmt-ft {
    flex: 0 0 68% !important; scroll-snap-align: start; box-sizing: border-box;
    padding: 16px !important; border-radius: 22px !important;
    background: linear-gradient(180deg, #1c1f17, #151811) !important;
    border: 1px solid rgba(255,255,255,.07) !important; box-shadow: 0 10px 24px rgba(0,0,0,.3) !important;
  }
  html body #bmt-body .bmt-ft i {
    display: grid !important; place-items: center; width: 46px; height: 46px; margin-bottom: 12px;
    border-radius: 14px; font-style: normal; font-size: 1.4rem;
    background: rgba(201,242,58,.1) !important; border: 1px solid rgba(201,242,58,.25);
  }
  html body #bmt-body .bmt-ft b { display: block; font-size: .98rem !important; color: #f3f5ee !important; margin-bottom: 4px; }
  html body #bmt-body .bmt-ft small { display: block; font-size: .8rem !important; line-height: 1.45; color: #8d9285 !important; }

  /* "Open destination page" = full-width lime button */
  html body #bmt-body .bmt-group > .bmt-nav { margin-top: 4px !important; }
  html body #bmt-body .bmt-group > .bmt-nav .btn {
    width: 100% !important; min-height: 50px; border-radius: 16px !important; font-weight: 800; font-size: .95rem;
    background: #c9f23a !important; color: #10120a !important; border: 0 !important; box-shadow: none !important;
  }

  /* ---------- 5. Living Passport: sample keepsake card ---------- */
  html body #bmt-body .bmt-after-note { font-size: .84rem !important; line-height: 1.5; color: #8d9285 !important; margin: 0 0 14px !important; }
  html body #bmt-body .bmt-pp {
    border-radius: 26px !important; overflow: hidden; position: relative;
    box-shadow: 0 22px 44px rgba(0,0,0,.5) !important; border: 1px solid rgba(255,255,255,.08);
  }
  html body #bmt-body .bmt-pp-l { padding: 26px 18px 22px !important; }
  html body #bmt-body .bmt-pp-r { padding: 20px 18px 22px !important; }
  html body #bmt-body .bmt-pp-r p { font-size: .88rem !important; line-height: 1.4; }
  html body #bmt-body .bmt-pp-r p b { font-size: 1.5rem !important; font-variant-numeric: tabular-nums; }
  html body #bmt-body .bmt-ach { display: flex !important; flex-wrap: wrap; gap: 6px !important; margin-top: 14px; }
  html body #bmt-body .bmt-ach span { font-size: .72rem !important; padding: 6px 11px !important; border-radius: 999px !important; }
  html body #bmt-body .bmt-pp-tag { top: 14px !important; right: 14px !important; }

  /* ---------- 6. footer on this step: big Finish button ---------- */
  html body #panel-book-my-trip:has(.bmt-hero) .bmt-foot .bmt-nav { gap: 10px; }
  html body #panel-book-my-trip:has(.bmt-hero) #bmt-next {
    flex: 1 1 auto !important; height: 52px !important; font-size: 1rem !important;
    border-radius: 16px !important; box-shadow: 0 10px 26px rgba(201,242,58,.28) !important;
  }
  html body #panel-book-my-trip:has(.bmt-hero) #bmt-prev { height: 52px !important; }
}
/* ===== PATCH v43: social card inside the Ready step ===== */
.bmt-sw { border-radius: 22px; padding: 18px 16px 16px; text-align: center; }
.bmt-sw-t b { display: block; font-size: 1.05rem; }
.bmt-sw-t small { display: block; margin-top: 4px; font-size: .8rem; line-height: 1.45; }
.bmt-sw-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.bmt-sw-a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 18px; text-decoration: none; min-width: 0; }
.bmt-sw-i { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; }
.bmt-sw-i svg { width: 100%; height: 100%; display: block; }
.bmt-sw-a b { font-size: .82rem; }
.bmt-sw-a small { font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 600px) {
  :root { --m-ver: 43; }

  html body #bmt-body .bmt-sw {
    background: linear-gradient(180deg, #1c1f17, #151811) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.35) !important;
  }
  html body #bmt-body .bmt-sw-t b { color: #f3f5ee !important; }
  html body #bmt-body .bmt-sw-t small { color: #8d9285 !important; }
  html body #bmt-body .bmt-sw-a {
    background: #10120a !important; border: 1px solid #2b2e27 !important;
    transition: transform .22s var(--m-spring), border-color .2s;
  }
  html body #bmt-body .bmt-sw-a:active { transform: scale(.95); border-color: #c9f23a !important; }
  html body #bmt-body .bmt-sw-a b { color: #f3f5ee !important; }
  html body #bmt-body .bmt-sw-a small { color: #c9f23a !important; }
}
/* ===== PATCH v44: Next button always solid lime (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 44; }
  html body #panel-book-my-trip #bmt-next,
  html body #panel-book-my-trip #bmt-next.is-locked {
    opacity: 1 !important; filter: none !important;
    background: #c9f23a !important; color: #10120a !important;
  }
}
/* ===== PATCH v45: congratulations + follow card after Finish ===== */
.bmt-cg {
  position: fixed; z-index: 2147483100; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  max-width: 420px; margin: 0 auto; box-sizing: border-box; padding: 16px 16px 14px;
  border-radius: 24px; background: linear-gradient(180deg, #1f2616, #12150e);
  border: 1px solid rgba(201,242,58,.35); box-shadow: 0 24px 50px rgba(0,0,0,.6);
  color: #f3f5ee; font-family: Manrope, Poppins, system-ui, sans-serif;
  animation: bmt-cg-in .5s cubic-bezier(.3,1.3,.5,1);
}
.bmt-cg.out { opacity: 0; transform: translateY(20px); transition: all .25s ease; }
@keyframes bmt-cg-in { from { opacity: 0; transform: translateY(40px) scale(.95); } to { opacity: 1; transform: none; } }
.bmt-cg-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.08); color: #cfd3c6; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.bmt-cg-h { display: flex; align-items: center; gap: 12px; padding-right: 34px; }
.bmt-cg-e { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; font-size: 1.5rem;
  background: rgba(201,242,58,.14); border: 1px solid rgba(201,242,58,.3); animation: bmt-cg-pop 1.2s ease .3s; }
@keyframes bmt-cg-pop { 0%,100% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-8deg); } 70% { transform: scale(1.08) rotate(6deg); } }
.bmt-cg-h b { display: block; font-size: 1.05rem; font-weight: 800; color: #c9f23a; letter-spacing: -.01em; }
.bmt-cg-h small { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.35; color: #b9bdaf; }
.bmt-cg-p { margin: 12px 0 10px; font-size: .8rem; color: #8d9285; }
.bmt-cg-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bmt-cg-a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 6px;
  border-radius: 999px; background: #fff; color: #10120a; text-decoration: none; font-size: .76rem; font-weight: 800;
  transition: transform .2s; }
.bmt-cg-a:active { transform: scale(.94); }
.bmt-cg-i { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; }
.bmt-cg-i svg { width: 100%; height: 100%; display: block; }
.bmt-cg-a b { font-weight: 800; }
@media (min-width: 601px) { .bmt-cg { left: auto; right: 24px; bottom: 24px; width: 380px; margin: 0; } }
/* ===== PATCH v46: leave-booking warning card ===== */
.bmt-leave { position: fixed; inset: 0; z-index: 2147483200; display: none; align-items: flex-end; justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: rgba(0,0,0,.7);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-family: Manrope, Poppins, system-ui, sans-serif; }
.bmt-leave.on { display: flex; animation: bmt-fade .2s ease; }
@keyframes bmt-fade { from { opacity: 0; } to { opacity: 1; } }
.bmt-leave-card { width: 100%; max-width: 400px; box-sizing: border-box; padding: 22px 18px 18px; border-radius: 28px;
  background: linear-gradient(180deg, #1c1f17, #12150e); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 70px rgba(0,0,0,.65); color: #f3f5ee; text-align: center; animation: bmt-leave-in .4s cubic-bezier(.3,1.3,.5,1); }
@keyframes bmt-leave-in { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
.bmt-leave-ico { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; font-size: 1.6rem;
  background: rgba(233,199,121,.14); border: 1px solid rgba(233,199,121,.4); }
.bmt-leave-card h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: #f3f5ee; }
.bmt-leave-card p { margin: 0 0 12px; font-size: .88rem; line-height: 1.5; color: #b9bdaf; }
.bmt-leave-card p b { color: #c9f23a; }
.bmt-leave-card ul { margin: 0 0 16px; padding: 12px 14px 12px 30px; text-align: left; border-radius: 16px;
  background: #10120a; border: 1px solid #2b2e27; font-size: .8rem; line-height: 1.5; color: #8d9285; }
.bmt-leave-card ul b { color: #f3f5ee; }
.bmt-leave-card button { font-family: inherit; cursor: pointer; min-height: 48px; border-radius: 14px; font-size: .92rem; font-weight: 800; border: 0; }
.bmt-leave-stay { width: 100%; background: #c9f23a; color: #10120a; }
.bmt-leave-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.bmt-leave-later { background: #1a1c18; color: #f3f5ee; border: 1px solid rgba(255,255,255,.14) !important; }
.bmt-leave-cancel { background: rgba(255,90,79,.14); color: #ff7a6b; border: 1px solid rgba(255,90,79,.4) !important; }
.bmt-leave-card button:active { transform: scale(.97); }
@media (min-width: 601px) { .bmt-leave { align-items: center; } }

@media (max-width: 600px) { :root { --m-ver: 46; } }
/* ===== PATCH v47: small confirm card ===== */
.tg-cf { position: fixed; inset: 0; z-index: 2147483300; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(0,0,0,.65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: Manrope, Poppins, system-ui, sans-serif; animation: tg-cf-fade .18s ease; }
.tg-cf.out { opacity: 0; transition: opacity .18s ease; }
@keyframes tg-cf-fade { from { opacity: 0; } to { opacity: 1; } }
.tg-cf-card { width: 100%; max-width: 320px; box-sizing: border-box; padding: 22px 18px 18px; border-radius: 24px; text-align: center;
  background: linear-gradient(180deg, #1c1f17, #12150e); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 26px 60px rgba(0,0,0,.65); color: #f3f5ee; animation: tg-cf-in .3s cubic-bezier(.3,1.3,.5,1); }
@keyframes tg-cf-in { from { opacity: 0; transform: scale(.92) translateY(14px); } to { opacity: 1; transform: none; } }
.tg-cf-ico { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; font-size: 1.5rem;
  background: rgba(255,90,79,.14); border: 1px solid rgba(255,90,79,.4); }
.tg-cf-card h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; color: #f3f5ee; }
.tg-cf-card p { margin: 0 0 18px; font-size: .85rem; line-height: 1.5; color: #b9bdaf; }
.tg-cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tg-cf-row button { min-height: 46px; border-radius: 14px; font-family: inherit; font-size: .88rem; font-weight: 800; cursor: pointer; }
.tg-cf-no { background: #1a1c18; color: #f3f5ee; border: 1px solid rgba(255,255,255,.14); }
.tg-cf-yes { background: #ff5a4f; color: #fff; border: 0; }
.tg-cf-row button:active { transform: scale(.96); }

@media (max-width: 600px) { :root { --m-ver: 47; } }
@media (max-width: 600px) { :root { --m-ver: 48; } }
/* ===== PATCH v49: "★ Suggested" badge on the travel mode cards ===== */
@media (max-width: 600px) {
  :root { --m-ver: 49; }

  html body #bmt-body .bmt-mode b { display: flex; flex-direction: column; align-items: center; gap: 6px; }

  html body #bmt-body .bmt-mode .bmt-star {
    display: inline-block !important;
    width: auto !important; height: auto !important;
    margin: 0 !important; padding: 3px 9px !important;
    font-size: .62rem !important; line-height: 1.2 !important;
    font-weight: 800 !important; letter-spacing: .04em;
    background: #c9f23a !important; color: #10120a !important;
    border-radius: 999px !important; box-shadow: none !important;
    white-space: nowrap;
  }

  /* the big emoji rule must only hit the icon, not the badge */
  html body #bmt-body .bmt-mode > span:first-child { font-size: 2rem !important; }
}
/* ===== PATCH: E-Guide locked / empty state (phones only) ===== */
@media (max-width: 600px) {

  /* the outer card: dark, like every other card in the app */
  html body #panel-eguide #eg-empty {
    background: linear-gradient(180deg, #1c1f17, #151811) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 28px !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.35) !important;
    padding: 32px 20px 24px !important;
    margin: 14px 0 0 !important;
    color: #8d9285 !important;
    font-size: .92rem; line-height: 1.55;
  }
  html body #panel-eguide #eg-empty br { display: none !important; }

  /* the lock: round lime-tinted bubble, no dark box */
  html body #panel-eguide #eg-empty > div:first-child {
    width: 72px; height: 72px; margin: 0 auto 16px !important; padding: 0 !important;
    display: grid !important; place-items: center;
    border-radius: 50% !important;
    background: rgba(201,242,58,.10) !important;
    border: 1px solid rgba(201,242,58,.25) !important;
    box-shadow: none !important;
    font-size: 2rem !important; line-height: 1;
  }

  /* title: readable on dark */
  html body #panel-eguide #eg-empty > b {
    display: block; margin: 0 0 8px !important;
    font-size: 1.25rem !important; font-weight: 800; letter-spacing: -.02em;
    color: #f3f5ee !important;
  }

  /* the 3 steps: one calm inner panel */
  html body #panel-eguide #eg-empty > div:not(:first-child) {
    max-width: none !important; width: 100%; box-sizing: border-box;
    margin: 20px 0 0 !important; padding: 16px !important;
    background: #10120a !important;
    border: 1px solid #2b2e27 !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    text-align: left;
  }
  html body #panel-eguide #eg-empty > div:not(:first-child) > div { margin-bottom: 12px !important; color: #b9bdaf !important; }
  html body #panel-eguide #eg-empty > div:not(:first-child) > div:last-child { margin-bottom: 0 !important; }
  /* step numbers in lime */
  html body #panel-eguide #eg-empty > div:not(:first-child) > div > span:first-child { color: #c9f23a !important; font-weight: 800; }
  /* bold words inside the steps stay inline */
  html body #panel-eguide #eg-empty > div:not(:first-child) b {
    display: inline !important; margin: 0 !important;
    font-size: inherit !important; font-weight: 800; color: #f3f5ee !important;
  }

  /* button: full width lime */
  html body #panel-eguide #eg-empty .btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 50px; margin-top: 20px;
    border-radius: 16px !important; font-weight: 800;
    background: #c9f23a !important; color: #10120a !important;
    border: 0 !important; box-shadow: none !important;
  }
}
/* ===== PATCH v50: flat, editorial sections on phones (no more card-in-card) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 50; }

  /* 1. Sections: open bands separated by a thin line, no box */
  html body .section {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }
  /* sections nested inside another section: no double side padding */
  html body .section .section,
  html body #plan-section,
  html body #faq-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 2. Headings and labels */
  html body .section h2 {
    font-size: 1.6rem !important;
    line-height: 1.1 !important;
    letter-spacing: -.03em !important;
    margin: 0 0 8px !important;
  }
  html body .section .section-sub { font-size: .92rem !important; line-height: 1.55 !important; margin: 0 0 20px !important; }
  html body .food-eyebrow {
    background: transparent !important; padding: 0 !important; margin: 0 0 8px !important;
    font-size: .68rem !important; letter-spacing: .16em !important; color: #c9f23a !important;
  }

  /* 3. Warning badges become one quiet line, not a box */
  html body .section .section-notice-badge,
  html body .section > .section-notice-badge,
  html body .section .section-header-row .section-notice-badge {
    background: transparent !important; border: 0 !important; padding: 0 !important;
    border-radius: 0 !important; font-size: .74rem !important; font-weight: 600 !important;
    color: #e9c779 !important; line-height: 1.45 !important;
  }
  html body .section-header-row { padding-left: 0 !important; margin-bottom: 4px; }
  html body .section-header-row::before { display: none !important; }

  /* 4. When to go + Transit: two plain columns with a divider */
  html body .section.when-tips-row { margin: 0 !important; padding: 30px 16px !important; gap: 16px !important; }
  html body .section.when-tips-row .when-to-go-card,
  html body .section.when-tips-row .logistics-card {
    background: transparent !important; background-image: none !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important;
  }
  html body .section.when-tips-row .logistics-card {
    border-left: 1px solid rgba(255,255,255,.1) !important; padding-left: 14px !important;
  }

  /* 5. Lists instead of boxes: stay areas, who it suits, day timeline, FAQ */
  html body .stay-area,
  html body .suits-note,
  html body .day-card,
  html body .faq-item {
    background: transparent !important; background-image: none !important;
    border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 0 !important; box-shadow: none !important;
  }
  html body .stay-area, html body .suits-note { padding: 14px 0 !important; }
  html body .day-card { padding: 4px 0 14px !important; }
  html body .faq-item[open] { box-shadow: none !important; }
  html body .faq-item summary { padding: 16px 0 !important; }
  html body .faq-a { padding: 0 0 16px !important; }

  /* 6. Food: photo-first, text under the photo, no box and no lime */
  html body .food-grid { gap: 22px 12px !important; }
  html body .food-card {
    background: transparent !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; overflow: visible !important;
  }
  html body .food-card:hover { transform: none !important; box-shadow: none !important; }
  html body .food-img {
    border-radius: 18px !important; overflow: hidden;
    background: linear-gradient(135deg, #2a2f22, #171a13) !important;
  }
  html body .food-body { padding: 10px 2px 0 !important; }
  html body .food-name { color: #f3f5ee !important; font-size: .95rem !important; }
  html body .food-cost { background: transparent !important; padding: 0 !important; color: #c9f23a !important; font-weight: 800 !important; }
  html body .food-desc { color: #8d9285 !important; font-size: .8rem !important; }
  html body .food-where { color: #cfd3c6 !important; }
  html body .food-map { color: #c9f23a !important; }

  /* 7. Budget block: lighter */
  html body #budget-calc .bd-card {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    border-top: 1px solid rgba(255,255,255,.08) !important; border-radius: 0 !important; padding: 18px 0 0 !important;
  }

  /* 8. "Book my trip" floating button: sits low when there is no bottom bar (guests) */
  html body:not(.has-tg-mdock) #bmt-fab { bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important; }
}
/* ===== PATCH v51: When to go, Transit row, floating button ===== */
@media (max-width: 600px) {
  :root { --m-ver: 51; }

  /* When to go + Transit: stacked, full width, one divider */
  html body .section.when-tips-row {
    display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important;
    padding: 30px 16px !important;
  }
  html body .section.when-tips-row .when-to-go-card { padding: 0 0 26px !important; }
  html body .section.when-tips-row .logistics-card {
    border-left: 0 !important; padding: 24px 0 0 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
  }
  html body .section.when-tips-row .when-header h2,
  html body .section.when-tips-row .logistics-header h2 { font-size: 1.35rem !important; letter-spacing: -.025em; }
  html body .section.when-tips-row .logistics-header { display: flex !important; margin: 0 0 14px !important; }

  /* 12-month bar */
  html body #when-bar .wm-head { margin-bottom: 14px; }
  html body #when-bar .wm-best { color: #f3f5ee !important; font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
  html body #when-bar .wm-now { font-size: .72rem; padding: 5px 12px; }
  html body #when-bar .wm-now.r2 { background: rgba(201,242,58,.14) !important; color: #c9f23a !important; }
  html body #when-bar .wm-now.r1 { background: rgba(242,210,143,.14) !important; color: #e9c779 !important; }
  html body #when-bar .wm-now.r0 { background: rgba(255,122,107,.14) !important; color: #ff7a6b !important; }
  html body #when-bar .wm-bar { gap: 5px; }
  html body #when-bar .wm-m { color: #8d9285 !important; font-size: .62rem; gap: 8px; }
  html body #when-bar .wm-m i { height: 46px; border-radius: 12px; }
  html body #when-bar .wm-m.r2 i { background: #c9f23a !important; }
  html body #when-bar .wm-m.r1 i { background: rgba(242,210,143,.5) !important; }
  html body #when-bar .wm-m.r0 i { background: rgba(255,122,107,.5) !important; }
  html body #when-bar .wm-m.is-now { color: #c9f23a !important; font-weight: 800; }
  html body #when-bar .wm-m.is-now i { outline: 2px solid #f3f5ee; outline-offset: 2px; }
  html body #when-bar .wm-legend { color: #8d9285 !important; margin-top: 14px; }
  html body #when-bar .wm-legend span:nth-child(1) b { background: #c9f23a !important; }
  html body #when-bar .wm-legend span:nth-child(2) b { background: rgba(242,210,143,.6) !important; }
  html body #when-bar .wm-legend span:nth-child(3) b { background: rgba(255,122,107,.6) !important; }
  html body .section.when-tips-row .wm-more { align-self: flex-start; margin-top: 14px; color: #c9f23a !important; }

  /* Transit & Local Rules: one tidy row (icon + text left, arrow right) */
  html body .section.when-tips-row .soft-tips-trigger {
    flex-direction: row !important; align-items: center !important; justify-content: space-between !important;
    text-align: left !important; gap: 12px !important; width: 100%;
  }
  html body .section.when-tips-row .soft-tips-left {
    flex-direction: row !important; align-items: center !important; width: auto !important; flex: 1 1 auto; gap: 12px !important;
  }
  html body .section.when-tips-row .soft-tips-text { align-items: flex-start !important; text-align: left !important; }
  html body .section.when-tips-row .soft-action-btn { margin: 0 !important; }

  /* Floating "Book my trip": small round button, no longer covers text */
  html body #bmt-fab {
    width: 52px !important; height: 52px !important; padding: 0 !important; gap: 0 !important;
    justify-content: center; right: 14px !important;
  }
  html body #bmt-fab .bmt-fab-txt,
  html body #bmt-fab .bmt-fab-arr { display: none !important; }
  html body #bmt-fab .bmt-fab-ico { width: 38px; height: 38px; font-size: 1.1rem; }

  /* Budget pills: icon and text on one line (interim, see note below) */
  html body #budget-widget :is(button, [role="tab"]) {
    flex-direction: row !important; align-items: center; gap: 6px; white-space: nowrap !important;
  }
}
/* ===== PATCH v52: popup, FAQ, booking CTA, floating button ===== */
@media (max-width: 600px) {
  :root { --m-ver: 52; }

  /* ---------- Timings / Rules popup (bottom sheet) ---------- */
  html body .alerts-modal {
    background: rgba(0,0,0,.6) !important;
    -webkit-backdrop-filter: blur(3px) !important; backdrop-filter: blur(3px) !important;
  }
  html body .alerts-modal-card {
    padding: 12px 18px calc(22px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: 86vh !important;
    background: #12150e !important;
    border: 1px solid rgba(255,255,255,.08) !important; border-bottom: 0 !important;
  }
  /* drag handle */
  html body .alerts-modal-card::before {
    content: ""; display: block; flex: 0 0 auto; align-self: center;
    width: 40px; height: 4px; border-radius: 99px; margin: 0 0 14px;
    background: rgba(255,255,255,.22);
  }
  html body .alerts-modal-header { border-bottom: 0 !important; padding-bottom: 0 !important; margin-bottom: 14px !important; }
  html body .alerts-header-left > span { display: none !important; }
  html body .alerts-header-left h3 { font-size: 1.2rem !important; line-height: 1.2; letter-spacing: -.02em; }
  html body .alerts-close-btn {
    width: 36px !important; height: 36px !important; flex: 0 0 36px;
    background: #1d2117 !important; border: 1px solid rgba(255,255,255,.1) !important; color: #cfd3c6 !important;
  }

  /* tabs: one segmented control, lime when selected */
  html body .lg-tabs {
    display: flex !important; flex-wrap: nowrap !important; gap: 4px !important; padding: 4px;
    background: #1a1d15; border: 1px solid rgba(255,255,255,.07); border-radius: 999px;
  }
  html body .lg-tabs[hidden], html body .lg-tab[hidden] { display: none !important; }
  html body .lg-tab {
    flex: 1 1 0; min-width: 0; padding: 10px 6px !important; white-space: nowrap;
    background: transparent !important; border: 0 !important; border-radius: 999px !important;
    color: #8d9285 !important; font-size: .76rem !important; box-shadow: none !important;
  }
  html body .lg-tab.is-on { background: #c9f23a !important; color: #10120a !important; }
  html body .alerts-modal :focus-visible { outline: 2px solid #c9f23a !important; outline-offset: 2px; }

  /* content: flat rows with a divider, no boxes */
  html body .alerts-modal-body { padding-right: 0 !important; gap: 0 !important; }
  html body #modal-rendered-cards { gap: 0 !important; margin-top: 8px; }
  html body .alerts-card-item {
    background: transparent !important; border: 0 !important; border-radius: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    padding: 16px 0 !important; gap: 14px !important; box-shadow: none !important;
  }
  html body .alerts-card-item:last-child { border-bottom: 0 !important; }
  html body .alerts-card-icon {
    width: 42px !important; height: 42px !important; border-radius: 14px !important; flex: 0 0 42px;
    background: rgba(201,242,58,.10) !important; border: 1px solid rgba(201,242,58,.22) !important; box-shadow: none !important;
  }
  html body .alerts-card-title { font-size: .98rem !important; }
  html body .alerts-card-text { font-size: .86rem !important; line-height: 1.55 !important; }
  html body .lg-list { padding-left: 18px; line-height: 1.6; }
  html body .lg-list li::marker { color: #c9f23a; }
  html body .lg-note { background: rgba(233,199,121,.12) !important; color: #e9c779 !important; border-radius: 10px; }

  /* ---------- FAQ: dark round plus buttons, lime when open ---------- */
  html body .faq-item:first-child { border-top: 1px solid rgba(255,255,255,.08) !important; }
  html body .faq-item summary { font-size: 1rem !important; line-height: 1.4; gap: 16px; }
  html body .faq-item summary::after {
    width: 30px; height: 30px; background: #1d2117 !important; color: #c9f23a !important;
    border: 1px solid rgba(255,255,255,.12);
  }
  html body .faq-item[open] summary::after { background: #c9f23a !important; color: #10120a !important; border-color: #c9f23a; }
  html body .faq-a p { font-size: .92rem !important; line-height: 1.65 !important; }

  /* ---------- "Ready to book your trip?" as one proper call-to-action ---------- */
  html body #plan-section {
    margin: 20px 16px 28px !important;
    padding: 24px 20px !important;
    border: 1px solid rgba(201,242,58,.28) !important;
    border-radius: 26px !important;
    background: linear-gradient(150deg, rgba(201,242,58,.16), rgba(201,242,58,.03) 70%) !important;
  }
  html body #plan-section h2 { font-size: 1.45rem !important; margin: 0 0 8px !important; }
  html body #plan-section .section-sub { margin: 0 0 18px !important; }
  html body #plan-section .plan-open-btn,
  html body #plan-open-btn {
    width: 100% !important; min-height: 54px !important; border-radius: 16px !important;
    font-size: 1rem !important; font-weight: 800 !important;
  }

  /* ---------- floating Book my trip: one clean round button ---------- */
  html body #bmt-fab, html body #bmt-fab.is-visible {
    width: 54px !important; height: 54px !important; padding: 0 !important;
    background: #c9f23a !important; border: 0 !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.55) !important; animation: none !important;
  }
  html body #bmt-fab::after { display: none !important; }
  html body #bmt-fab .bmt-fab-ico {
    width: auto !important; height: auto !important; background: transparent !important;
    box-shadow: none !important; font-size: 1.5rem !important;
  }
}
/* ===== PATCH v53: collapsible "How is this calculated?" (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 53; }

  html body .m3-card button.m3-info {
    background: transparent !important; color: #8d9285 !important;
    border: 1px solid rgba(255,255,255,.14) !important; margin-top: 12px;
  }
  html body .m3-card button.m3-info.is-on { background: rgba(201,242,58,.10) !important; color: #c9f23a !important; border-color: rgba(201,242,58,.35) !important; }
  html body .m3-info-i { background: #c9f23a !important; color: #10120a !important; }
  html body .m3-foot[hidden] { display: none !important; }
  html body .m3-foot {
    background: #10120a !important; border: 1px solid #2b2e27; border-radius: 14px;
    padding: 12px 14px !important; color: #8d9285 !important; font-size: .74rem !important; line-height: 1.6 !important;
  }
}
/* ===== PATCH v54: booking CTA text fix + no white flash on the trip popup (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 54; }

  /* "Ready to book your trip?" card: solid dark base so the script keeps the text light */
  html body #plan-section {
    background-color: #151811 !important;
    background-image: linear-gradient(150deg, rgba(201,242,58,.16), rgba(201,242,58,.03) 70%) !important;
  }
  html body #plan-section h2 { color: #f3f5ee !important; }
  html body #plan-section .section-sub { color: #b9bdaf !important; }

  /* trip popup: already dark on the first frame, so it never flashes white before the script runs */
  html body .gt-card { background: #1a1c18 !important; color: #cfd3c6; }
  html body .gt-head h3, html body .gt-title, html body .gt-h { color: #f3f5ee; }
  html body .gt-head p, html body .gt-note { color: #8d9285; }
  html body .gt-f label { color: #cfd3c6; }
  html body .gt-trv, html body .gt-sum, html body .gt-det { background: #151811; border-color: #2b2e27; }
  html body .gt-trv > b { color: #f3f5ee; }
  html body .gt-x { background: #1d2117; color: #cfd3c6; border: 1px solid rgba(255,255,255,.1); }
  html body .gt-ov { background: rgba(0,0,0,.65); }
}
/* ===== PATCH v55: trip popup footer button + info icon (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 55; }

  /* Next / Back row: normal button size */
  html body .gt-foot { display: flex !important; flex-direction: row !important; align-items: center !important; height: auto !important; min-height: 0 !important; }
  html body .gt-foot .gt-sp { display: flex !important; flex-direction: row !important; align-items: center !important; height: auto !important; width: 100% !important; margin-left: 0 !important; }
  html body .gt-foot .gt-btn {
    height: 52px !important; min-height: 0 !important; flex: 1 1 0 !important;
    display: inline-flex !important; align-items: center; justify-content: center; border-radius: 16px !important;
    font-size: .95rem !important; white-space: nowrap;
  }
  html body .gt-foot .gt-btn.main { background: #c9f23a !important; background-image: none !important; color: #10120a !important; border: 0 !important; }
  html body .gt-foot .gt-btn:not(.main) { background: #1a1c18 !important; color: #f3f5ee !important; border: 1px solid rgba(255,255,255,.16) !important; }

  /* info icon on the dark popup */
  html body .gt-info { background: #1d2117 !important; color: #c9f23a !important; border: 1px solid rgba(255,255,255,.14) !important; }
  html body .gt-info.on { background: #c9f23a !important; color: #10120a !important; border-color: #c9f23a !important; }
  html body .gt-trv .gt-note { color: #8d9285 !important; line-height: 1.55; }
}
/* ===== PATCH v56: trip popup is dark from the first frame (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 56; }

  html body .gt-card { background: #1a1c18 !important; color: #cfd3c6; }
  html body .gt-head h3, html body .gt-title, html body .gt-h,
  html body .gt-site b, html body .gt-mode b, html body .gt-tile b, html body .gt-nt b,
  html body .gt-pt b, html body .gt-after-t b, html body .gt-tix > b, html body .gt-hotel b,
  html body .gt-perks li b, html body .gt-ph h4, html body .gt-tk b { color: #f3f5ee !important; }
  html body .gt-head p, html body .gt-note, html body .gt-site small, html body .gt-mode small,
  html body .gt-tile small, html body .gt-nt small, html body .gt-pt small, html body .gt-pk small,
  html body .gt-after-t small, html body .gt-hs, html body .gt-perks li small, html body .gt-nt em,
  html body .gt-cta2 small { color: #8d9285 !important; }
  html body .gt-head p.gt-step { color: #6f746a !important; }

  /* surfaces */
  html body .gt-mode, html body .gt-site, html body .gt-pk, html body .gt-day, html body .gt-tile,
  html body .gt-nt, html body .gt-buddy, html body .gt-st, html body .gt-tix, html body .gt-trv,
  html body .gt-det, html body .gt-sum, html body .gt-stayban, html body .gt-hotel,
  html body .gt-panel, html body .gt-tix-th, html body .gt-tix-add {
    background: #20231b !important; border-color: #2b2e27 !important; box-shadow: none !important;
  }
  html body .gt-mode.sel, html body .gt-pk.on, html body .gt-st.done {
    background: rgba(201,242,58,.10) !important; border-color: rgba(201,242,58,.5) !important;
  }
  html body .gt-promo, html body .gt-perks { background: #151811 !important; border-color: #2b2e27 !important; }
  html body .gt-tabs { background: #151811 !important; border-color: #2b2e27 !important; }
  html body .gt-tab { color: #8d9285 !important; background: transparent !important; }
  html body .gt-tab.on { background: #20231b !important; color: #c9f23a !important; box-shadow: inset 0 -3px 0 #c9f23a !important; }
  html body .gt-logo, html body .gt-ni, html body .gt-pi, html body .gt-tile .gt-ti { background: #151811 !important; border-color: #2b2e27 !important; }
  html body .gt-empty { background: rgba(233,199,121,.10) !important; border-color: rgba(233,199,121,.3) !important; color: #e9c779 !important; }
  html body .gt-ok { background: rgba(201,242,58,.10) !important; color: #c9f23a !important; }
  html body .gt-pill { background: rgba(201,242,58,.10) !important; color: #c9f23a !important; }
  html body .gt-pre { background: rgba(201,242,58,.14) !important; color: #c9f23a !important; }
  html body .gt-site em, html body .gt-dist a, html body .gt-hl, html body .gt-day h4 { color: #c9f23a !important; }
  html body .gt-dist { color: #8d9285 !important; }
  html body .gt-day li b { color: #c9f23a !important; }
  html body .gt-day li, html body .gt-day li span { color: #cfd3c6 !important; border-color: #2b2e27 !important; }
  html body .gt-chip { background: #20231b !important; color: #f3f5ee !important; border-color: rgba(255,255,255,.14) !important; }
  html body .gt-prog i { background: #2b2e27 !important; }
  html body .gt-prog i.on { background: #c9f23a !important; }
  html body .gt-prog i.done { background: #2d6a4f !important; }
  html body .gt-pax button { background: #20231b !important; color: #c9f23a !important; border-color: #2b2e27 !important; }

  /* sticky bottom bar + buttons: fixed size, no stretching */
  html body .gt-cta2 {
    background: #1a1c18 !important; box-shadow: 0 -10px 24px rgba(0,0,0,.5) !important;
    flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important;
    height: auto !important; min-height: 0 !important;
  }
  html body .gt-cta2 .gt-btn {
    flex: 0 0 auto !important; width: 100% !important; height: 52px !important; min-height: 0 !important;
    display: inline-flex !important; align-items: center; justify-content: center; border-radius: 16px !important;
  }
  html body .gt-btn.main { background: #c9f23a !important; background-image: none !important; color: #10120a !important; border: 0 !important; }
  html body .gt-btn:not(.main):not(.green) { background: #20231b !important; color: #f3f5ee !important; border: 1px solid rgba(255,255,255,.16) !important; }
  html body .gt-btn.green { background: #2d6a4f !important; color: #fff !important; }
  html body .gt-dc .gt-btn { height: 52px !important; border-radius: 16px !important; }

  /* your ticket card: dark with a lime edge instead of orange */
  html body .gt-tk { background: #151811 !important; background-image: none !important; border: 1px solid rgba(201,242,58,.35) !important; color: #cfd3c6 !important; }
  html body .gt-tk small { color: #8d9285 !important; opacity: 1; }
  html body .gt-tk .gt-btn:not(.main) { background: transparent !important; color: #f3f5ee !important; border: 1px solid rgba(255,255,255,.3) !important; }
}
/* ===== PATCH v57: ticket card buttons + sticky bar (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 57; }

  /* Ticket card: buttons stacked, normal height */
  html body .gt-tk { padding: 18px 16px !important; }
  html body .gt-tk-b {
    display: flex !important; flex-direction: column !important; align-items: stretch !important;
    gap: 10px !important; height: auto !important; min-height: 0 !important;
  }
  html body .gt-tk-b .gt-btn,
  html body .gt-tk-b .gt-btn.main {
    flex: 0 0 auto !important; width: 100% !important; height: 50px !important; min-height: 0 !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    border-radius: 14px !important; font-size: .92rem !important; white-space: nowrap;
  }
  html body .gt-tk-b .gt-btn.main {
    background: #c9f23a !important; background-image: none !important; color: #10120a !important; border: 0 !important;
  }
  html body .gt-tk-b .gt-btn:not(.main) {
    background: transparent !important; color: #f3f5ee !important; border: 1px solid rgba(255,255,255,.3) !important;
  }

  /* Copy plan / Print row: two equal buttons */
  html body .gt-card .gt-foot { flex-wrap: nowrap !important; }
  html body .gt-card .gt-foot > .gt-btn {
    flex: 1 1 0 !important; height: 48px !important; min-height: 0 !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    border-radius: 14px !important; font-size: .86rem !important; padding: 0 10px !important;
  }

  /* Sticky "Create free account" bar: compact, flat, never covers content */
  html body .gt-cta2 {
    gap: 8px !important; margin: 14px -22px -18px !important;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
  }
  html body .gt-cta2 .gt-btn { height: 48px !important; }
  html body .gt-cta2 small { font-size: .7rem !important; line-height: 1.3; }

  /* Free-plan banner at the top of the promo: no more lime bleed behind the pill */
  html body .gt-pr-top {
    background: linear-gradient(135deg, #1d2a16, #151811) !important;
    border-bottom: 1px solid rgba(201,242,58,.2);
  }
  html body .gt-pr-top h4 { color: #f3f5ee !important; }
  html body .gt-pr-top p { color: #b9bdaf !important; }
  html body .gt-pr-top .gt-free {
    background: rgba(201,242,58,.14) !important; color: #c9f23a !important;
    border: 1px solid rgba(201,242,58,.4) !important;
  }
}
/* ===== PATCH v58: compact sticky bar, Back inside it (phones only) ===== */
@media (max-width: 600px) {
  :root { --m-ver: 58; }

  html body .gt-cta2 {
    display: flex !important; flex-direction: column !important; align-items: stretch !important;
    gap: 8px !important; height: auto !important;
    margin: 14px -22px -18px !important;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    background: #1a1c18 !important; z-index: 5;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 -14px 20px rgba(26,28,24,.95) !important;
  }
  html body .gt-cta2 small { display: none !important; }

  /* row 1: main button */
  html body .gt-cta2 > .gt-btn.main {
    width: 100% !important; height: 50px !important; flex: 0 0 auto !important;
    border-radius: 14px !important;
  }

  /* row 2: Back + I already have one */
  html body .gt-cta2 .gt-cta2-r { display: flex !important; flex-direction: row !important; gap: 8px !important; width: 100% !important; }
  html body .gt-cta2 .gt-cta2-r .gt-btn {
    flex: 1 1 0 !important; width: auto !important; height: 42px !important; min-height: 0 !important;
    border-radius: 12px !important; font-size: .84rem !important; padding: 0 10px !important;
    background: #20231b !important; color: #f3f5ee !important; border: 1px solid rgba(255,255,255,.16) !important;
    display: inline-flex !important; align-items: center; justify-content: center;
  }
  html body .gt-cta2 .gt-cta2-r .gt-btn[data-signin] { color: #c9f23a !important; }
}