/* Elegant professional fonts - Cormorant Garamond for headings, Lato for body */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&display=swap');

body { font-family: "Lato", sans-serif; font-size: 1.25rem; }
h1, h2, h3, h4, h5, h6 { font-family: 'Cormorant Garamond', serif; font-weight: 600; }


:root{
  --bg:#0b0f14;
  --surface:#121822;
  --surface-2:#0f141d;
  --text:#e9eef6;
  --muted:#a9b4c4;
  --primary:#e09f3e; /* sunrise accent */
  --primary-700:#b57e2f;
  --accent:#ffd166;
  --crumb-color:#ffd166; /* breadcrumb link colour — matches accent in dark mode */
  --danger:#ef476f;
  --radius:12px;
  --shadow:0 10px 30px rgba(0,0,0,0.12);
  --max:1200px;
}

/* Light theme — soft grey palette, no pure white */
.light{
  --bg:#edecea;
  --surface:#e3e1de;
  --surface-2:#dad8d5;
  --text:#1e1b18;
  --muted:#5a524a;
  --crumb-color:#b57e2f; /* darker gold for breadcrumbs in light mode */
  --shadow:0 4px 20px rgba(0,0,0,0.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);line-height:1.5}
/* Anti-flash: when light theme was saved but body isn't ready yet */
html.light-pending body { background: #edecea; color: #1e1b18; }
img{max-width:100%;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{opacity:.9}
.container{max-width:var(--max);margin-inline:auto;padding:0 20px}
.section{padding:60px 0}
.section-alt{background:var(--surface)}
.center{text-align:center}
.unstyled{list-style:none;margin:0;padding:0}
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:10px;top:10px;width:auto;height:auto;padding:8px 12px;background:#000}

/* Logo adaptive styling - ALWAYS WHITE in dark mode */
.logo-adaptive{
  filter: brightness(0) invert(1) !important; /* white on dark */
  transition: filter 0.3s ease;
  height: 150px !important; /* Increased size to 300% (150px) */
  width: auto !important;
  display: block !important;
  max-height: 150px !important;
}
.light .logo-adaptive{
  filter: brightness(0) invert(0) !important; /* dark/black on light background */
}

/* Logo that stays white (for dark overlays like hero) */
.logo-light{
  filter: brightness(0) invert(1); /* Always white */
}

/* Logo that stays black (for light backgrounds) */
.logo-dark{
  filter: brightness(0) invert(0); /* Always black */
}

/* Theme toggle — inline nav button (after About link) */
.theme-toggle-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(255,255,255,0.08);
  color:var(--text);
  cursor:pointer;
  font-size:18px;
  line-height:1;
  transition:background 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink:0;
  padding:0;
}
.theme-toggle-btn:hover{
  background:rgba(255,255,255,0.18);
  transform:scale(1.1);
}
.light .theme-toggle-btn{
  border-color:rgba(0,0,0,0.18);
  background:rgba(0,0,0,0.06);
}
.light .theme-toggle-btn:hover{
  background:rgba(0,0,0,0.12);
}/* Header */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(11,15,20,.9);backdrop-filter:blur(8px);border-bottom:1px solid #1a2230; height: 180px; display: flex; align-items: center;}
.light .site-header{background:rgba(227,225,222,0.95);border-bottom-color:rgba(0,0,0,0.12);}

.header-inner{display:flex;align-items:center;justify-content:space-between;height:100%; padding: 0 !important; max-width: 100% !important;}
.header-inner .container { 
  max-width: 100% !important; 
  padding: 0 10px !important; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  width: 100%; 
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 0 0 auto;
  margin-left: -20px;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none !important;
  padding: 0;
  margin: 0;
}

/* Hide social icons from the center nav list */
.site-nav ul li.social-icon {
  display: none;
}

/* New Right-aligned social container */
.header-socials {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 0 0 auto;
  margin-right: -10px;
}

.header-socials a {
  color: var(--text);
  transition: opacity 0.2s;
}

.header-socials a:hover {
  opacity: 0.7;
}
.site-nav li { list-style: none !important; }
.site-nav a{color:var(--text);padding:8px 10px;border-radius:8px}
.site-nav a.active{background:var(--surface);color:var(--accent)}

/* Theme toggle list item — inline, no underline/link styling */
.theme-toggle-li {
  list-style: none !important;
  display: flex;
  align-items: center;
  padding: 0;
}

.breadcrumb-container {
    padding-bottom: 15px;
    text-align: center;
}
.breadcrumb {
    margin: 0 !important;
    font-size: 0.9rem;
}

.nav-toggle{display:none}
.btn{display:inline-block;padding:10px 14px;border-radius:10px;border:1px solid #253246;background:transparent;color:var(--text);cursor:pointer;font-family:'Lato',sans-serif;font-weight:500;letter-spacing:0.02em}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--primary);border-color:var(--primary);color:#24190a}
.btn-ghost{background:transparent;border-color:#2a374a}

.pill-list{display:flex;gap:10px;flex-wrap:wrap; list-style: none !important; padding: 0; margin: 0;}
.pill-list li{background:var(--surface);padding:8px 12px;border-radius:999px;border:1px solid #243046;color:var(--muted); list-style: none !important;}


/* Hero */
.hero{position:relative;isolation:isolate}
.hero-bg{position:relative;background-size:cover;background-position:center;height:64vh;min-height:460px;overflow:hidden}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero-video-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0.3308),rgba(0,0,0,0.36));pointer-events:none;z-index:1}
.hero-content{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 20px;z-index:2}
.hero h1{font-size:clamp(40px,7vw,80px);margin:0 0 10px;color:#fff;font-weight:500;letter-spacing:0.03em}
.hero p{color:rgba(255,255,255,.8);max-width:820px;margin:0 auto 16px;font-size:1.5rem;font-weight:300}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}

/* Hero logo positioned top-right - DOUBLED SIZE */
.logo-hero{
  position:absolute;
  top:24px;
  right:24px;
  width:240px; /* Doubled from 120px */
  height:auto;
  z-index:10;
}

/* Cards & grids */
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;margin-top:20px}
.card{background:var(--surface-2);border:1px solid #1a2230;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}

.card-body{padding:16px}
.card h3{margin:0 0 6px;font-size:1.4rem}
.card p{color:var(--muted)}
.card .tags{display:flex;gap:8px;flex-wrap:wrap;padding:0;margin:10px 0 0;list-style:none}
.card .tags li{background:#1a2230;border:1px solid #223049;padding:4px 8px;border-radius:999px;color:#b9c4d6;font-size:12px}

.card-actions{margin-top:12px}


/* Make Featured Regions tiles fully clickable */
.card-tile-link{
  display:block;
  height:100%;
  color:inherit;
  text-decoration:none;
}
.card-tile-link:hover{opacity:1}
.card-tile-link:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

/* Forms */
.form label{display:block;margin:0 0 6px;font-weight:400}
.form input,.form select,.form textarea{width:100%;padding:10px 12px;border-radius:10px;border:1px solid #253246;background:#0c121b;color:var(--text);font-family:'Lato',sans-serif}

.form .check{display:flex;gap:10px;align-items:flex-start;margin:10px 0}
.form .actions{display:flex;gap:10px;align-items:center;margin-top:10px}
.form .form-hint{color:var(--muted);font-size:14px}
.form .form-success{margin-top:10px;color:#b5f5cb}

.hp{position:absolute !important;left:-10000px !important;opacity:0 !important}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:780px){
  .site-nav ul{display:none}
  .nav-toggle{display:inline-block}
  .grid-2,.grid-3{grid-template-columns:1fr}
  .logo-hero { display: block; margin: 0 auto 40px; width: 312px; height: auto; position: static; transform: none; } /* Doubled from 80px */
}

/* Footer */
.site-footer{background:#0a0e14;border-top:1px solid #1a2230;margin-top:40px}

.footer-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;padding:40px 0}
.legal{text-align:center;color:#8e9bb0;border-top:1px solid #1b2431;padding:12px 0;margin:0 20px}


/* Modal */
.modal[aria-hidden="true"]{display:none}
.modal{position:fixed;inset:0;z-index:2000;overflow-y:auto;overflow-x:hidden}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.36)}
.modal-dialog{position:relative;z-index:1;background:var(--surface-2);border:1px solid #1a2230;max-width:720px;margin:5vh auto;border-radius:16px;padding:20px;max-height:calc(100vh - 10vh);overflow-y:auto;overflow-x:hidden}

.modal-close{position:absolute;right:10px;top:10px;background:#0c121b;border:1px solid #243046;border-radius:50%;width:34px;height:34px;color:#cfd8e6}


/* Typography refinement */
h1, h2, h3 {
  letter-spacing: 0.02em;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
body {
  line-height: 1.7;
  font-weight: 400;
}
.breadcrumb { margin-bottom: 20px; font-weight: 500; }
.breadcrumb a { text-decoration: none; transition: opacity 0.2s; }
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb span { color: var(--text); opacity: 0.7; }
.brand { display: flex !important; align-items: center !important; gap: 20px !important; }
.brand > div { margin-top: 5px; }
.logo-hero-v12 {
  display: block;
  margin: 40px auto;
  width: 400px;
  height: auto;
  filter: brightness(0) invert(1);
}
.logo-hero-v12 {
  display: block;
  margin: 40px auto;
  width: 400px !important;
  height: auto;
  filter: brightness(0) invert(1);
  position: relative !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
}
.footer-content-v12 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}
.footer-logo-v12 {
  height: 60px;
  filter: brightness(0) invert(1);
  margin-left: 20px;
}
#v12-final-body-logo-container img {
  width: 405px !important;
  height: auto !important;
  filter: brightness(0) invert(1) !important;
}

/* Force Tranquil Travel logo white on packages & destinations pages */
body.packages header img[src*="tranquil"],
body.destinations header img[src*="tranquil"],
body[class*="package"] header img[src*="tranquil"],
body[class*="destination"] header img[src*="tranquil"] {
  filter: invert(1) brightness(2) contrast(1.1) !important;
}
/* --- COMPACT MODAL & FORM FIXES --- */
.modal-dialog {
  padding: 15px 25px !important; /* Reduces outer spacing */
  max-width: 650px;
  max-height: calc(100vh - 10vh) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Move Header Up */
.modal h2 {
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  font-size: 1.8rem !important;
}

/* Reduce Form Text Size by 20% (approx) */
.form label {
  font-size: 0.85rem !important; /* Smaller labels */
  margin-bottom: 2px !important;
}

.form input, 
.form select, 
.form textarea {
  font-size: 0.9rem !important; /* Smaller typing text */
  padding: 6px 10px !important;  /* Slimmer boxes */
  height: auto;
}

/* Compact Styling for the Multi-Select Destination List */
.form select[multiple] {
  background: var(--surface); /* Darker background for contrast */
  height: auto;
  min-height: 100px; /* Shows about 4-5 options at once */
}

/* Tighten Layout Grids */
.form .grid-2, 
.form .grid-3 {
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.form div {
  margin-bottom: 5px;
}

/* Country page hero summary */
.hero-sub{
  margin: 10px 0 0;
  max-width: 820px;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
  font-size: 1.05rem;
}
@media (max-width: 600px){
  .hero-sub{font-size: 1rem;}
}

/* Country summary below hero */
.country-summary{
  padding: 40px 0 10px;
}
.country-summary .hero-sub{
  color: #333;
  max-width: 900px;
}


/* --- Improve hero text visibility (slightly brighter + subtle contrast) --- */
.hero h1,
.hero h2,
.hero p,
.hero .btn {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35); /* soft contrast for readability */
}

/* Ensure buttons/links remain crisp on images */
.hero .btn {
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Package page image styling */
.pkg-figure{margin:18px 0}
.pkg-figure img{width:100%;max-width:980px;border-radius:16px;display:block}
.pkg-content p{max-width:980px}


/* --- Uniform package tile images (match destinations look) --- */
.card img{
  width:100%;
  aspect-ratio: 4 / 3;      /* consistent tile shape */
  object-fit: cover;         /* crop nicely without distortion */
  display:block;
}
/* Ensure card media areas don't stretch differently */
.card{
  overflow:hidden;
}


/* --- Packages page: uniform tile image sizing --- */
.card-link img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}


/* --- Package pages: improve image rendering + typography (theme-aligned) --- */

/* Images: avoid stretching small images; keep natural size, only scale down on small screens */
.pkg-figure{
  margin: 22px 0;
}
.pkg-figure img{
  width: auto;               /* don't force stretch */
  height: auto;
  max-width: 100%;           /* responsive */
  max-height: 720px;         /* prevent huge verticals dominating */
  border-radius: 16px;
  display: block;
  margin: 0 auto;            /* center smaller images */
}

/* ── Auto-row: consecutive pkg-figure siblings sit side-by-side ────────────
   When two or more <figure class="pkg-figure"> elements follow one another
   without any block-level content between them, they form a flex row so
   small images fill the available width rather than stacking vertically.

   Strategy:
   • The FIRST figure in a run starts a flex row via display:flex on itself,
     using a negative margin trick so it stretches back to its normal block
     position and siblings "join" it.
   • Actually the cleanest CSS-only approach: make every pkg-figure that is
     an immediate sibling of another pkg-figure shrink into the row.
   • We use a wrapper-free technique:
     – Any pkg-figure that has a pkg-figure immediately before it gets
       display:inline-block and reduced top margin.
     – The FIRST figure in such a run also becomes inline-block.
     – We then rely on inline-block flow to fill the row naturally.

   Simpler and more reliable: use CSS grid on the parent .pkg-content and
   detect runs via :has() — but :has() isn't universal.

   Most reliable approach without JS or HTML changes:
   Use a flex container trick by making pkg-figure display:inline-flex,
   width:auto, and letting the browser wrap. But this breaks solo large images.

   BEST approach: JavaScript on DOMContentLoaded groups consecutive figures
   into a .pkg-figure-row wrapper automatically — already in main.js structure.
   Since we control main.js, add a small grouping function there instead of
   relying on CSS alone (CSS alone can't detect "consecutive siblings with
   small natural width" without :has() chains).
──────────────────────────────────────────────────────────────────────────── */

/* Rows created by the JS grouping function below */
.pkg-figure-row{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0;align-items:flex-start}
.pkg-figure-row.cols-2{display:grid;grid-template-columns:1fr 1fr}
.pkg-figure-row.cols-3{display:grid;grid-template-columns:1fr 1fr 1fr}
.pkg-figure-row.cols-4{display:grid;grid-template-columns:1fr 1fr 1fr 1fr}
.pkg-figure-row .pkg-figure{margin:0;flex:1 1 0;min-width:0}
.pkg-figure-row .pkg-figure img{
  width:100%;
  height:220px;
  max-height:none;
  object-fit:cover;
  border-radius:12px;
  display:block;
  margin:0;
}
@media(max-width:700px){
  .pkg-figure-row{grid-template-columns:1fr 1fr !important}
  .pkg-figure-row.cols-2{grid-template-columns:1fr !important}
}


/* Package content typography */
.pkg-content{
  max-width: 980px;
}
.pkg-content h2{
  margin: 28px 0 10px;
  letter-spacing: -0.02em;
}
.pkg-content h3{
  margin: 22px 0 8px;
  opacity: 0.95;
}
.pkg-content p{
  line-height: 1.75;
  margin: 0 0 14px;
}

/* Turn bullet-paragraphs into nicer list-like blocks */
.pkg-content p:has(> span){}

/* Many imported docs use a leading bullet character */
.pkg-content p{
  word-wrap: break-word;
}
.pkg-content p:first-child{
  margin-top: 0;
}
.pkg-content p{
  font-size: 1rem;
}

/* Style paragraphs that start with a bullet (•) */
.pkg-content p{
  /* no-op base; specialized below via attribute selector fallback */
}
.pkg-content p{
  /* keep consistent spacing */
}
.pkg-content p.bullet{
  padding-left: 18px;
  text-indent: -10px;
}

/* Fallback: JS-less way to style bullet paragraphs (works in modern browsers) */
.pkg-content p{
}
.pkg-content p::first-letter{
}

/* Simple visual separators for readability */
.pkg-content hr{
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 26px 0;
}


/* Package pages CTA spacing */
.hero .hero-cta{margin-top:14px}
#plan-my-package-cta .btn{min-width: 220px}

/* Live Quotes & Tours */
.ttc-live-shell{display:grid;gap:24px}
.ttc-split{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:start}
.ttc-panel{background:var(--surface-2);border:1px solid #1a2230;border-radius:var(--radius);box-shadow:var(--shadow)}
.ttc-panel .card-body{padding:20px}
.ttc-overline{margin:0 0 8px;color:var(--accent);font-size:.82rem;letter-spacing:.16em;text-transform:uppercase}
.ttc-search-grid{display:grid;grid-template-columns:1fr 1fr 1.2fr auto;gap:12px;align-items:end}
.ttc-helper{color:var(--muted);margin:.4rem 0 0;font-size:.95rem}
.ttc-inline-status{margin-top:12px;padding:12px 14px;border-radius:10px;background:#101723;border:1px solid #243046;color:var(--muted)}
.ttc-inline-status.success{border-color:rgba(78,205,196,.35);color:#b6f7ec}
.ttc-inline-status.error{border-color:rgba(239,71,111,.35);color:#ffc2cf}
.ttc-inline-status.info{border-color:rgba(255,209,102,.35);color:#ffe5a2}
.ttc-results-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
.ttc-tour-card{transition:transform .2s ease,border-color .2s ease}
.ttc-tour-card.is-active,.ttc-tour-card:hover{transform:translateY(-2px);border-color:#3b4b64}
.ttc-tour-card img{height:220px;object-fit:cover;width:100%}
.ttc-tour-topline{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.ttc-tour-topline p{margin:0}
.ttc-tour-from{white-space:nowrap;color:var(--accent);font-size:1rem}
.ttc-chip-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.ttc-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#16202d;border:1px solid #2a384d;color:#d7e2f4;font-size:.9rem}
.ttc-quote-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}
.ttc-quote-grid h3{margin-top:0}
.ttc-summary-list,.ttc-specials-list,.ttc-availability-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ttc-summary-list li{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #1b2431}
.ttc-summary-list li:last-child{border-bottom:0}
.ttc-summary-list span:last-child{text-align:right;color:var(--accent)}
.ttc-specials-list li{padding:12px;border-radius:10px;background:#101723;border:1px solid #243046;display:grid;gap:4px}
.ttc-availability-list li{padding:0}
.ttc-departure-select{width:100%;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 16px;border-radius:12px;border:1px solid #243046;background:#101723;color:var(--text);text-align:left;cursor:pointer}
.ttc-departure-row.is-active .ttc-departure-select,.ttc-departure-select:hover{border-color:var(--accent)}
.ttc-departure-select span{display:grid;gap:4px}
.ttc-departure-select small{color:var(--muted)}
.ttc-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.ttc-muted-card{padding:16px;border-radius:12px;background:#101723;border:1px dashed #2d3a4c;color:var(--muted)}
.ttc-note{margin-top:18px;padding:16px;border-radius:12px;background:linear-gradient(135deg,rgba(224,159,62,.1),rgba(255,209,102,.06));border:1px solid rgba(255,209,102,.2)}
.ttc-note p{margin:0;color:var(--muted)}
@media (max-width:980px){
  .ttc-split,.ttc-quote-grid{grid-template-columns:1fr}
  .ttc-search-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:680px){
  .ttc-search-grid{grid-template-columns:1fr}
  .ttc-summary-list li,.ttc-departure-select{grid-template-columns:1fr;display:grid}
  .ttc-tour-topline{display:grid}
}

/* ── Quote modal: locked region/destination fields ── */
.q-field-locked {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.12) !important;
  user-select: none;
}
.q-lock-note {
  font-size: 0.78rem;
  color: var(--primary, #e09f3e);
  margin: 4px 0 0;
  opacity: 0.85;
  font-style: italic;
}

/* =============================================================
   COMPREHENSIVE LIGHT MODE OVERRIDES
   All hardcoded dark colours swapped to light-friendly values.
   Applied only when <body class="light"> is present.
   ============================================================= */

/* ── Nav & header ── */
.light .site-nav a { color: var(--text); }
/* Remove visible block appearance from nav links in light mode —
   in dark mode the background block is invisible; in light mode it shows as a grey pill.
   Use body.light for higher specificity to beat .site-nav a.active base rule. */
body.light .site-nav a { background: transparent !important; }
body.light .site-nav a.active { background: transparent !important; color: var(--primary); }
.light .site-nav ul#nav-menu li {
  border-bottom-color: rgba(0,0,0,0.1) !important;
}
.light .site-nav ul#nav-menu li:first-child {
  border-top-color: rgba(0,0,0,0.1) !important;
}

/* ── Buttons ── */
.light .btn { border-color: rgba(0,0,0,0.2); color: var(--text); }
.light .btn-ghost { border-color: rgba(0,0,0,0.2); background: rgba(0,0,0,0.04); }
.light .btn-primary { background: var(--primary); border-color: var(--primary); color: #24190a; }

/* ── Pill list ── */
.light .pill-list li {
  background: var(--surface);
  border-color: rgba(0,0,0,0.15);
  color: var(--muted);
}

/* ── Cards ── */
.light .card {
  background: var(--surface-2);
  border-color: rgba(0,0,0,0.1);
}
.light .card .tags li {
  background: var(--surface);
  border-color: rgba(0,0,0,0.12);
  color: var(--muted);
}

/* ── Forms ── */
.light .form input,
.light .form select,
.light .form textarea {
  background: var(--surface);
  border-color: rgba(0,0,0,0.2);
  color: var(--text);
}
.light .form select[multiple] { background: var(--surface-2); }
.light .form .form-success { color: #2d6a4f; }

/* ── Footer ── */
.light .site-footer {
  background: var(--surface-2);
  border-top-color: rgba(0,0,0,0.12);
}
.light .legal {
  color: var(--muted);
  border-top-color: rgba(0,0,0,0.1);
}
/* Footer TTT logo only — identified by alt="logo" (ASATA/IATA have their own alt text and are left untouched) */
.light .site-footer img[alt="logo"] {
  filter: brightness(0) invert(0) !important;
}
/* ASATA and IATA are coloured SVGs — no filter override ever */

/* ── Modal ── */
.light .modal-dialog {
  background: var(--surface-2);
  border-color: rgba(0,0,0,0.12);
}
.light .modal-close {
  background: var(--surface);
  border-color: rgba(0,0,0,0.15);
  color: var(--text);
}

/* ── Modal locked field ── */
.light .q-field-locked {
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.12) !important;
}

/* ── Live Quotes / TTC elements ── */
.light .ttc-panel {
  background: var(--surface-2);
  border-color: rgba(0,0,0,0.1);
}
.light .ttc-inline-status {
  background: var(--surface);
  border-color: rgba(0,0,0,0.15);
  color: var(--muted);
}
.light .ttc-chip {
  background: var(--surface);
  border-color: rgba(0,0,0,0.15);
  color: var(--text);
}
.light .ttc-summary-list li {
  border-bottom-color: rgba(0,0,0,0.1);
}
.light .ttc-specials-list li {
  background: var(--surface);
  border-color: rgba(0,0,0,0.12);
}
.light .ttc-departure-select {
  background: var(--surface);
  border-color: rgba(0,0,0,0.18);
  color: var(--text);
}
.light .ttc-departure-row.is-active .ttc-departure-select,
.light .ttc-departure-select:hover { border-color: var(--primary); }
.light .ttc-muted-card {
  background: var(--surface);
  border-color: rgba(0,0,0,0.12);
  color: var(--muted);
}
.light .ttc-tour-card:hover,
.light .ttc-tour-card.is-active { border-color: rgba(0,0,0,0.25); }

/* ── Partner carousel ── */
.light .partner-carousel-section { background: var(--surface-2) !important; }
/* Partner carousel heading & tagline: override hardcoded white colours in light mode */
.light .pl-heading { color: var(--text) !important; }
.light .pl-tagline { color: var(--muted) !important; }
.light .pl-root { background: var(--surface) !important; }
.light .pl-arrow {
  background: var(--bg) !important;
  border-color: rgba(0,0,0,0.2) !important;
  color: var(--text) !important;
}
.light .pl-arrow:hover {
  background: var(--primary) !important;
  color: #24190a !important;
}

/* ── Pkg content divider ── */
.light .pkg-content hr { background: rgba(0,0,0,0.1); }

/* ── Section alt ── */
.light .section-alt { background: var(--surface); }

/* ── Logo-hero-v12 (body logo on about/hero pages) ── */
.light .logo-hero-v12 { filter: brightness(0) invert(0) !important; }
.light .footer-logo-v12 { filter: brightness(0) invert(0) !important; }
.light #v12-final-body-logo-container img { filter: brightness(0) invert(0) !important; }

/* ── Override the "always white" force-filter rules for light mode —
   only target known logo images, never ASATA/IATA ── */
.light .logo-adaptive,
.light .brand img {
  filter: brightness(0) invert(0) !important;
}

/* ── TikTok and X icons: white fill → black in light mode ── */
body.light .site-footer a[aria-label="TikTok"] svg,
body.light .site-footer a[aria-label="X (Twitter)"] svg {
  fill: #1e1b18 !important;
}


.light a { color: var(--primary-700); }
.light a:hover { opacity: 0.8; }

/* ── Calendar picker icon & date text: fix for light mode ──
   Overrides dark color-scheme, white pseudo-element text colours,
   and the filter:invert(1) used in quote modals to make icon dark. ── */
body.light input[type="date"] { color-scheme: light !important; }
body.light input[type="date"]::-webkit-datetime-edit,
body.light input[type="date"]::-webkit-datetime-edit-fields-wrapper,
body.light input[type="date"]::-webkit-datetime-edit-text,
body.light input[type="date"]::-webkit-datetime-edit-month-field,
body.light input[type="date"]::-webkit-datetime-edit-day-field,
body.light input[type="date"]::-webkit-datetime-edit-year-field { color: #1e1b18 !important; }
body.light input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0) !important;
  opacity: 0.6;
  cursor: pointer;
}

/* ── Hero links stay light gold in both modes (they're on a dark video overlay) ── */
.light .hero a { color: var(--accent) !important; }
.light .hero a:hover { opacity: 0.85; }

/* ── Footer contact links (email, WhatsApp, POPIA): darker gold in light mode ──
   These use inline style="color:var(--accent)" which resolves to #ffd166 in both modes.
   In light mode --accent is still #ffd166 (too pale on grey), so we override here.
   Targets all <a> inside .footer-grid and the POPIA link in .legal. ── */
.light .site-footer .footer-grid a[href^="mailto"],
.light .site-footer .footer-grid a[href^="https://wa.me"],
.light .legal a[href*="popia"] {
  color: var(--primary-700) !important;
}

/* ── Country summary text (already uses #333, adjust for theme) ── */
.light .country-summary .hero-sub { color: var(--text); }


   Added to make site fully functional on mobile/tablet while
   preserving all existing PC desktop behaviour.
   Breakpoints: tablet ≤ 900px, mobile ≤ 600px
   ============================================================= */

/* ── 1. HEADER & NAV ─────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Shrink header height on tablet */
  .site-header {
    height: auto !important;
    min-height: 70px !important;
    padding: 8px 0 !important;
    position: relative !important;
  }

  .header-inner,
  .header-inner .container {
    flex-wrap: nowrap !important;
    height: auto !important;
    gap: 8px !important;
    padding: 0 12px !important;
  }

  /* Shrink logo on tablet */
  .logo-adaptive {
    height: 60px !important;
    max-height: 60px !important;
  }

  /* Hide social icon row on tablet if any remains */
  .header-socials {
    display: none !important;
  }

  /* Show hamburger, hide nav by default */
  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1100;
    transition: background 0.2s;
  }

  .nav-toggle:hover {
    background: rgba(255,255,255,0.15);
  }

  /* Nav closed: hide */
  .site-nav ul#nav-menu {
    display: none !important;
  }

  /* Nav open: show as full-width block under the header row */
  .site-nav ul#nav-menu.nav-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    background: #0b0f14 !important;
    z-index: 99999 !important;
    padding: 70px 0 20px !important;
    margin: 0 !important;
    gap: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6) !important;
    list-style: none !important;
  }

  body.light .site-nav ul#nav-menu.nav-open {
    background: #edecea !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  }

  .site-nav ul#nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .site-nav ul#nav-menu li:last-child {
    border-bottom: none;
  }

  body.light .site-nav ul#nav-menu li {
    border-bottom-color: rgba(0,0,0,0.08);
  }

  /* Theme toggle item in mobile dropdown */
  .site-nav ul#nav-menu .theme-toggle-li {
    justify-content: flex-start;
    padding: 12px 20px;
  }
  .site-nav ul#nav-menu .theme-toggle-li .theme-toggle-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .site-nav a {
    display: block !important;
    padding: 14px 20px !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
  }

  .site-nav a:hover {
    background: rgba(255,255,255,0.06) !important;
  }

  body.light .site-nav a:hover {
    background: rgba(0,0,0,0.05) !important;
  }

  /* Keep toggle button on top when menu is open */
  .nav-open-active .nav-toggle,
  .site-nav .nav-toggle {
    position: relative;
    z-index: 100000;
  }

  /* No full-screen backdrop needed for dropdown nav */

  /* Theme toggle inline button — stays visible on mobile */
  .theme-toggle-btn {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
}

/* ── 2. MOBILE ≤ 600px – further adjustments ─────────────────── */
@media (max-width: 600px) {
  .logo-adaptive {
    height: 46px !important;
    max-height: 46px !important;
  }

  .site-header {
    min-height: 60px !important;
    padding: 6px 0 !important;
  }

  .header-inner .container {
    padding: 0 10px !important;
  }
}

/* ── 3. HERO SECTION ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-bg {
    height: 52vh !important;
    min-height: 320px !important;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 3rem) !important;
  }

  .hero p {
    font-size: 1.1rem !important;
    padding: 0 8px !important;
  }

  .hero-cta {
    gap: 8px !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-cta .btn {
    width: 80%;
    max-width: 260px;
    text-align: center;
  }

  /* Hero logo (hero logo v12 style) */
  .logo-hero-v12 {
    width: 220px !important;
    margin: 20px auto !important;
  }
}

@media (max-width: 600px) {
  .hero-bg {
    height: 45vh !important;
    min-height: 260px !important;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  .hero p {
    font-size: 1rem !important;
  }
}

/* ── 4. FOOTER ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    padding: 30px 0 !important;
  }

  .footer-content-v12 {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
  }

  .footer-logo-v12 {
    margin: 0 auto !important;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 20px 0 !important;
  }

  /* Legal bar: all 3 logos in one centred row, copyright full-width below */
  .legal {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 10px !important;
    font-size: 0.85rem !important;
    text-align: center !important;
  }

  /* TTT logo anchor — inline-flex so it shrinks to logo size only */
  .legal > a:first-child {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  /* ASATA + IATA wrapper — stay as a row, no wrapping */
  .legal > div[style*="display:flex"] {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 14px !important;
    flex-shrink: 0 !important;
  }

  /* All three logos: 40px tall, sized to fit 3 across portrait phone */
  .legal img[alt="logo"],
  .legal img[alt="ASATA"],
  .legal img[alt="IATA"] {
    height: 40px !important;
    width: auto !important;
    margin: 0 !important;
    display: block !important;
  }

  /* Copyright paragraph: own full-width row below logos */
  .legal > p {
    flex-basis: 100% !important;
    width: 100% !important;
    margin: 2px 0 0 !important;
    text-align: center !important;
    font-size: 0.8rem !important;
    order: 99 !important;
  }
}

/* ── 5. CARD GRIDS ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ── 6. TTL / LIVE QUOTES SPLITS ─────────────────────────────── */
@media (max-width: 900px) {
  .ttc-split,
  .ttc-quote-grid {
    grid-template-columns: 1fr !important;
  }

  .ttc-search-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
}

@media (max-width: 600px) {
  .ttc-search-grid {
    grid-template-columns: 1fr !important;
  }

  .ttc-actions {
    flex-direction: column !important;
  }

  .ttc-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* ── 7. CONTACT / ABOUT GRIDS ────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2.contact-panels,
  .grid-2.about-panels {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* ── 8. PACKAGE PAGES ────────────────────────────────────────── */
@media (max-width: 900px) {
  .pkg-figure-row.cols-3,
  .pkg-figure-row.cols-4 {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 600px) {
  .pkg-figure-row.cols-2,
  .pkg-figure-row.cols-3,
  .pkg-figure-row.cols-4 {
    grid-template-columns: 1fr !important;
  }

  .pkg-figure-row .pkg-figure img {
    height: 200px !important;
  }
}

/* ── 9. PILL LIST / WHAT WE ARRANGE ─────────────────────────── */
@media (max-width: 600px) {
  .pill-list {
    gap: 8px !important;
  }

  .pill-list li {
    font-size: 0.9rem !important;
    padding: 6px 10px !important;
  }
}

/* ── 10. MODAL ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .modal-dialog {
    margin: 10px !important;
    max-width: calc(100vw - 20px) !important;
    padding: 14px 16px !important;
    max-height: calc(100vh - 20px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .form .grid-2,
  .form .grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* ── 11. SECTION SPACING ─────────────────────────────────────── */
@media (max-width: 600px) {
  .section {
    padding: 36px 0 !important;
  }

  .container {
    padding: 0 14px !important;
  }
}

/* ── 12. PARTNER CAROUSEL ────────────────────────────────────── */
@media (max-width: 600px) {
  .pl-item img { height: 40px !important; }
  .pl-track { gap: 30px !important; }
  .pl-arrow { width: 28px !important; height: 28px !important; font-size: 16px !important; }
}

/* ── 13. BREADCRUMBS & HEADINGS ──────────────────────────────── */
@media (max-width: 600px) {
  .breadcrumb {
    font-size: 0.82rem !important;
    padding-bottom: 10px !important;
  }

  h2 {
    font-size: clamp(1.4rem, 4.5vw, 1.8rem) !important;
  }
}

/* ── 14. BUTTONS — ensure touch-friendly minimum size ─────────── */
@media (max-width: 900px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
  }
}

/* ── 15. WHEN-TO-GO ACCORDION ────────────────────────────────── */
@media (max-width: 600px) {
  .months-accordion {
    padding: 0 !important;
  }

  .month-summary {
    font-size: 1rem !important;
    padding: 14px 16px !important;
  }
}

/* ── 16. PREVENT HORIZONTAL OVERFLOW ────────────────────────── */
body {
  overflow-x: hidden;
}

/* Tables that may appear in package content */
@media (max-width: 600px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =============================================================
   MOBILE NAV BAR & OVERLAY
   Completely independent of the site-header stacking context.
   Only visible on screens ≤ 900px.
   ============================================================= */

/* ── Bar: fixed strip at top of viewport ── */
#mob-bar {
  display: none; /* shown by JS only on mobile */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  background: rgba(11,15,20,0.97);
  border-bottom: 1px solid #1a2230;
  z-index: 99998;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-sizing: border-box;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.light #mob-bar {
  background: rgba(227,225,222,0.97);
  border-bottom-color: rgba(0,0,0,0.12);
}

/* Logo inside mob-bar */
#mob-bar-logo {
  display: block;
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

body.light #mob-bar-logo {
  filter: brightness(0) invert(0);
}

#mob-bar-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Right-side buttons container */
#mob-bar-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* (site-header is hidden on mobile; mob-bar replaces it) */

/* ── Menu button ── */
.mob-menu-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #e9eef6;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 38px;
  line-height: 1;
}

body.light .mob-menu-btn {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.18);
  color: #1e1b18;
}

/* ── Theme toggle button (mobile) ── */
.mob-theme-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #e9eef6;
  font-size: 18px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

body.light .mob-theme-btn {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.18);
  color: #1e1b18;
}

/* ── Overlay: full-screen nav list ── */
#mob-nav-overlay {
  display: none; /* toggled by JS */
  position: fixed;
  top: 60px; /* below the bar */
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #0b0f14;
  z-index: 99997;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.light #mob-nav-overlay {
  background: #edecea;
}

#mob-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

#mob-nav-list li {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin: 0;
  padding: 0;
}

body.light #mob-nav-list li {
  border-bottom-color: rgba(0,0,0,0.08);
}

#mob-nav-list li a {
  display: block;
  width: 100%;
  padding: 18px 24px;
  color: #e9eef6;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  box-sizing: border-box;
}

body.light #mob-nav-list li a {
  color: #1e1b18;
}

#mob-nav-list li a.mob-active {
  color: #e09f3e;
}

#mob-nav-list li a:active,
#mob-nav-list li a:hover {
  background: rgba(255,255,255,0.06);
}

body.light #mob-nav-list li a:active,
body.light #mob-nav-list li a:hover {
  background: rgba(0,0,0,0.05);
}

/* Push site-header down to sit below the mob-bar on mobile */
@media (max-width: 900px) {
  body {
    padding-top: 0;
  }
  /* Hide the full desktop header on mobile — mob-bar replaces it */
  .site-header {
    display: none !important;
  }
}
