/* Reference-inspired light tourism palette: deep navy, teal and warm gold. */
:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f8;
  --bg-2: #ffffff;
  --glass: rgba(255,255,255,.78);
  --glass-strong: rgba(255,255,255,.94);
  --text: #17323b;
  --muted: #62757c;
  --line: rgba(16,43,53,.13);
  --line-strong: rgba(16,43,53,.25);
  --gold: #d9a441;
  --blue: #0f6f73;
  --sand: #d9a441;
  --rose: #b85f52;
  --accent-ink: #745018;
  --shadow: 0 24px 70px rgba(16,43,53,.12);

  --mp-navy: #102b35;
  --mp-blue: #0f6f73;
  --mp-blue-deep: #0b5c60;
  --mp-gold: #d9a441;
  --mp-gold-deep: #7e5a1d;
  --mp-ivory: #f5f7f8;
  --mp-paper: #ffffff;
  --mp-muted: #62757c;
  --mp-line: rgba(16,43,53,.13);
  --mp-shadow: 0 24px 70px rgba(16,43,53,.12);

  --bk-blue: #0f6f73;
  --bk-blue-deep: #0b5c60;
  --bk-gold: #d9a441;
  --bk-gold-deep: #7e5a1d;
  --bk-navy: #102b35;
  --bk-muted: #62757c;
  --bk-line: rgba(16,43,53,.13);
}

body,
html[data-theme="light"] body,
body.mp-page,
body.bk-page {
  color: #17323b;
  background:
    radial-gradient(circle at 4% 1%, rgba(15,111,115,.11), transparent 31rem),
    radial-gradient(circle at 95% 12%, rgba(217,164,65,.16), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f5f7f8 44%, #fbfaf6 100%);
}

html[data-theme="dark"] {
  color-scheme: light;
  --bg: #f5f7f8;
  --bg-2: #ffffff;
  --glass: rgba(255,255,255,.78);
  --glass-strong: rgba(255,255,255,.94);
  --text: #17323b;
  --muted: #62757c;
  --line: rgba(16,43,53,.13);
  --line-strong: rgba(16,43,53,.25);
  --gold: #d9a441;
  --blue: #0f6f73;
  --accent-ink: #745018;
}

.site-header,
.mp-header,
.bk-header,
html[data-theme="light"] .site-header,
html[data-theme="light"] .mp-header,
html[data-theme="light"] .bk-header,
html[data-theme="dark"] .mp-header {
  color: #fff;
  border-color: rgba(255,255,255,.1);
  background: rgba(16,43,53,.97);
  box-shadow: 0 12px 36px rgba(11,34,41,.16);
  backdrop-filter: blur(18px) saturate(130%);
}

.site-header .brand,
.site-header .brand small,
.mp-header .mp-brand,
.bk-header .brand,
.bk-header .brand small {
  color: #fff;
}

.site-header .nav-links a,
.mp-header .mp-links a,
.bk-header .nav-links a {
  color: rgba(255,255,255,.76);
}

.nav-links a:hover,
.nav-links a.active,
.mp-links a:hover,
.mp-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.site-header .icon-btn,
.mp-header .mp-icon-btn,
.bk-header .icon-btn {
  color: #fff;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

.brand-mark,
.mp-brand-mark,
.bk-brand-mark {
  color: #102b35;
  background: linear-gradient(145deg, #d9a441, #f1ca75);
  box-shadow: 0 10px 28px rgba(164,112,24,.22);
}

.btn-primary,
.mp-btn:not(.mp-btn-gold):not(.mp-btn-ghost),
.bk-btn-primary,
.action-btn.details-link,
.mp-filter-button.is-active,
.mp-filter-button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, #0f6f73, #0b5c60);
  border-color: #0f6f73;
  box-shadow: 0 12px 30px rgba(15,111,115,.22);
}

.btn-primary:hover,
.mp-btn:not(.mp-btn-gold):not(.mp-btn-ghost):hover,
.bk-btn-primary:hover {
  background: linear-gradient(135deg, #0b5c60, #102b35);
}

.mp-btn-gold,
.announcement,
.gold-chip,
.bk-badge-gold {
  color: #102b35;
  background: #d9a441;
}

.glass,
html[data-theme="light"] .glass,
html[data-theme="dark"] .glass,
.mp-side-card,
.mp-highlight,
.mp-request-scope article,
.mp-hub-controls,
.mp-tour-card,
.bk-panel,
.bk-card {
  border-color: rgba(16,43,53,.13);
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(243,248,248,.86));
  box-shadow: inset 0 1px rgba(255,255,255,.95), 0 20px 55px rgba(16,43,53,.09);
}

.mp-booking-card {
  border-color: rgba(15,111,115,.25);
  background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(230,243,243,.92));
}

.mp-hero,
.mp-hub-hero,
.tour-hero,
.page-hero {
  background-color: #173f4d;
}

.mp-hero::after {
  background:
    linear-gradient(90deg, rgba(16,43,53,.94) 0%, rgba(16,43,53,.6) 52%, rgba(16,43,53,.08) 100%),
    linear-gradient(0deg, rgba(16,43,53,.76), transparent 60%);
}

.mp-related a::after,
.card-image::after,
.tour-image::after {
  background: linear-gradient(0deg, rgba(16,43,53,.88), rgba(16,43,53,.04));
}

.mp-kicker,
.eyebrow,
.section-kicker,
.bk-kicker,
.mp-step-time,
.mp-sources a,
.mp-tour-search::before {
  color: #0f6f73;
}

.mp-booking-link,
.bk-booking-link {
  color: #fff;
  border-color: rgba(217,164,65,.45);
  background: rgba(217,164,65,.14);
}

.mp-filter-button,
.filter-btn,
.chip {
  color: #52676e;
  background: rgba(15,111,115,.08);
}

.mp-filter-button:hover,
.filter-btn:hover {
  color: #0b5c60;
  background: rgba(15,111,115,.14);
}

.mp-status,
.notice-gold,
.booking-note {
  border-color: rgba(217,164,65,.48);
  background: rgba(217,164,65,.12);
}

.mp-footer,
.site-footer,
.bk-footer,
body > footer {
  color: rgba(255,255,255,.82);
  background: #0b2229;
  border-color: rgba(255,255,255,.1);
}

body > footer .brand,
body > footer .brand small,
body > footer b,
body > footer h2 {
  color: #fff;
}

.mp-footer a:hover,
.site-footer a:hover,
.bk-footer a:hover {
  color: #f1ca75;
}

input:focus,
select:focus,
textarea:focus,
.mp-booking-field input:focus,
.mp-booking-field select:focus,
.mp-booking-field textarea:focus {
  border-color: #0f6f73;
  outline-color: rgba(15,111,115,.18);
}

::selection {
  color: #102b35;
  background: #e8c77f;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Phone layouts shared by the catalogue, guides, articles and booking pages. */
@media (max-width: 700px) {
  html:root body main :is(h1,h2,h3,p,li,label) { overflow-wrap: break-word; }
  html:root body main h1 { font-size: clamp(1.9rem, 8vw, 2.8rem) !important; line-height: 1.1 !important; }
  html:root body main h2 { font-size: clamp(1.4rem, 5.8vw, 2rem) !important; line-height: 1.18 !important; }
  html:root body main :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { box-sizing: border-box; max-inline-size: 100%; min-inline-size: 0; font-size: max(16px,1em); }
  html:root body main :is(.hero-actions,.bk-actions) { flex-wrap: wrap; }
  html:root body footer:is(.site-footer,.mp-footer), html:root body footer { padding-block: 16px 12px !important; min-height: 0 !important; }
  html:root body footer :is(.mp-footer-grid,.footer-grid) { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px 14px !important; align-items: start !important; padding-block: 0 !important; }
  html:root body footer :is(.mp-footer-grid,.footer-grid) > div { min-width: 0; margin: 0 !important; padding-block: 0 !important; }
  html:root body footer :is(.mp-footer-grid,.footer-grid) > div:first-child,
  html:root body footer .mp-footer-grid > div:has(.ttd-footer-contacts) { grid-column: 1/-1 !important; }
  html:root body footer :is(.footer-col,.mp-footer-grid > div) > :is(h2,h3,h4,strong) { margin-block: 0 4px !important; }
  html:root body footer :is(.footer-bottom,.mp-footer-bottom) { margin-block-start: 12px !important; padding-block: 8px 0 !important; }
  html:root body footer .ttd-footer-contacts a { white-space: normal; overflow-wrap: anywhere; }
  html:root body footer .ttd-brand-lockup { flex-wrap: wrap; max-width: 100%; }
}

/* Comfortable brand targets without changing the logo artwork. */
html body header .ttd-brand-lockup,html body footer .ttd-brand-lockup{gap:6px!important}
html body header a.ttd-company-link,html body footer a.ttd-company-link{display:flex!important;align-items:center;justify-content:center;min-height:28px!important;margin-top:4px!important}

/* Keep itinerary controls above the sticky header. */
html body #panelOverlay{z-index:1200!important}
html body #itineraryPanel{z-index:1201!important}
