:root {
  --site-bg: #111719;
  --site-surface: #1b2226;
  --site-card: #222a2e;
  --site-text: #f1efe9;
  --site-muted: #bbc1c3;
  --site-border: #3a4347;
  --site-accent: #e0bb68;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --dark: #111719;
  --dark2: #1b2226;
  --dark3: #222a2e;
  --off-white: #171d20;
  --cream: #111719;
  --ink: #f1efe9;
  --text: #f1efe9;
  --muted: #bbc1c3;
  --gold: #d3ad5c;
  --gold-light: #edcc7d;
  --line: #3a4347;
}

html[data-theme="light"] {
  color-scheme: light;
  --site-bg: #f6f5f1;
  --site-surface: #ffffff;
  --site-card: #ffffff;
  --site-text: #282828;
  --site-muted: #656565;
  --site-border: #dedbd3;
  --site-accent: #775514;
  --dark: #f1efe9;
  --dark2: #ffffff;
  --dark3: #f2f1ed;
  --off-white: #f6f5f1;
  --cream: #f6f5f1;
  --ink: #282828;
  --text: #282828;
  --muted: #656565;
  --gold: #8a641e;
  --gold-light: #765314;
  --line: #dedbd3;
}

html[data-theme] body {
  background-color: var(--site-bg) !important;
  color: var(--site-text) !important;
  transition: background-color 180ms ease, color 180ms ease;
}

html[data-theme] :is(.header-navigation, .header-top-bar, .booking-header, .site-header, .mobile-nav-drawer, .footer-v2, footer) {
  background-color: var(--site-surface) !important;
  color: var(--site-text) !important;
}

html[data-theme] :is(header nav a, .main-menu a, .mobile-nav-drawer a:not(.theme-btn), .booking-nav a, .site-header nav a, .brand-logo, .booking-brand, .site-header .brand) {
  color: var(--site-text);
}

html[data-theme] :is(header nav a:hover, header nav a[aria-current="page"], .main-menu a:hover, .main-menu a.active, .booking-nav a:hover, .booking-nav a[aria-current="page"], .site-header nav a:hover, .site-header nav a[aria-current="page"]) {
  color: var(--site-accent);
}

html[data-theme] :is(.google-reviews, .brands-section, .about-section, .journey-section, .commitment-section, .commitment-card, .about-cta, .faq-section, .itineraries-section, .itinerary-card, .tripex-tour-details-sec, .tripex-tour-sec, .tripex-tour-grid-item, .tripex-include-excluded-box, .tripex-review-form-area, .accordion-card-three, .tripex-tour-pricing-box, .contact-box, .toc, .guide-grid article) {
  background-color: var(--site-surface) !important;
  color: var(--site-text) !important;
  border-color: var(--site-border);
}

html[data-theme] :is(.accordion-header, .accordion-content, .itinerary-card-body, .itinerary-card-header, .content-wrap, .booking-guide) {
  background-color: var(--site-surface) !important;
  color: var(--site-text) !important;
}

html[data-theme] body :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, figcaption, label, dt, dd, .itinerary-description, .fleet-intro, .answer, .contact-box-title) {
  color: var(--site-text);
}

html[data-theme] body a:not(.theme-btn):not(.site-theme-toggle) {
  color: var(--site-accent);
}

html[data-theme] .logo-text,
html[data-theme] .booking-brand,
html[data-theme] .site-header .brand {
  color: var(--site-text) !important;
}

html[data-theme] .logo-text span,
html[data-theme] .booking-brand span,
html[data-theme] .site-header .brand span {
  color: var(--site-accent) !important;
}

html[data-theme] :is(.hero-content, .about-hero-content, .itinerary-hero-content, .fleet-hero-content) :is(h1, h2, h3, p, span, .hero-tag, .eyebrow) {
  color: #ffffff !important;
}

html[data-theme="dark"] :is(.google-reviews, .brands-section, .about-section, .journey-section, .commitment-section, .commitment-card, .about-cta, .faq-section, .itineraries-section, .itinerary-card, .tripex-tour-details-sec, .tripex-tour-sec, .tripex-tour-grid-item, .tripex-include-excluded-box, .tripex-review-form-area, .accordion-card-three, .tripex-tour-pricing-box, .contact-box, .toc, .guide-grid article, .booking-guide) {
  background-color: var(--site-surface) !important;
}

html[data-theme="dark"] :is(.google-reviews, .brands-section, .about-section, .journey-section, .commitment-section, .commitment-card, .about-cta, .faq-section, .itineraries-section, .itinerary-card, .tripex-tour-details-sec, .tripex-tour-sec, .tripex-tour-grid-item, .tripex-include-excluded-box, .tripex-review-form-area, .accordion-card-three, .tripex-tour-pricing-box, .contact-box, .toc, .guide-grid article, .booking-guide) :is(h1, h2, h3, h4, h5, h6, p, li, a, span, strong, label, .accordion-title) {
  color: var(--site-text);
}

html[data-theme="dark"] :is(.tripex-tour-grid-item, .itinerary-card, .google-reviews, .guide-grid article, .accordion-card-three, [style*="background:#fff"], [style*="background: #fff"], [style*="background:white"]) {
  background-color: var(--site-surface) !important;
  border-color: var(--site-border) !important;
}

html[data-theme="dark"] .fleet-grid .col-md-6 > div {
  background-color: var(--site-surface) !important;
  border-color: var(--site-border) !important;
  color: var(--site-text);
}

html[data-theme="dark"] .fleet-grid .col-md-6 > div :is(h1, h2, h3, h4, h5, h6, p, li, span, strong, small) {
  color: var(--site-text) !important;
}

html[data-theme="dark"] :is(.tripex-include-excluded-box, .form_control) {
  background-color: var(--site-surface) !important;
  border-color: var(--site-border);
  color: var(--site-text);
}

html[data-theme="light"] :is(.site-header, .booking-header, .header-navigation, .header-top-bar, .mobile-nav-drawer, .footer-v2, footer) {
  color: var(--site-text) !important;
}

html[data-theme="light"] :is(.google-reviews, .brands-section, .about-section, .journey-section, .commitment-card, .itineraries-section, .itinerary-card, .tripex-tour-details-sec, .tripex-tour-sec, .tripex-tour-grid-item, .tripex-review-form-area, .accordion-card-three, .tripex-tour-pricing-box, .contact-box, .toc, .guide-grid article, .booking-guide) :is(h1, h2, h3, h4, h5, h6, p, li, a, span, strong, label, .accordion-title) {
  color: var(--site-text);
}

html[data-theme] .tripex-tour-pricing-box {
  --white: var(--site-text);
}

html[data-theme="light"] .tripex-tour-pricing-box :is(.form-control, .form-select, textarea, .input-group-text) {
  border-color: var(--site-border);
  background-color: var(--site-surface);
  color: var(--site-text);
}

html[data-theme="light"] .tripex-tour-pricing-box input[type="date"] {
  color-scheme: light;
}

html[data-theme="dark"] .tripex-tour-pricing-box input[type="date"] {
  color-scheme: dark;
}

html[data-theme="dark"] :is(article, .card, .bg-white, .bg-light, .white-box, .accordion-item, [style*="background:#fff"], [style*="background: #fff"], [style*="background:white"], [style*="background: white"], [style*="background:#FFFFFF"]) {
  background-color: var(--site-surface) !important;
  border-color: var(--site-border) !important;
  color: var(--site-text);
}

html[data-theme] .cta {
  background-color: #1b2226 !important;
  color: #f1efe9 !important;
}

html[data-theme] .cta :is(h1, h2, h3, h4, h5, h6, p, a, span, strong) {
  color: #f1efe9;
}

html[data-theme="dark"] :is(article, .card, .bg-white, .bg-light, .white-box, .accordion-item) :is(h1, h2, h3, h4, h5, h6, p, li, a, span, strong, label, small, blockquote, figcaption) {
  color: var(--site-text);
}

.site-theme-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 12px;
  padding: 0;
  border: 1px solid var(--site-border);
  border-radius: 50%;
  background: transparent;
  color: var(--site-text);
  cursor: pointer;
}

.primary-menu > .site-theme-toggle {
  margin-left: 0;
}

.booking-header > .site-theme-toggle {
  order: 2;
}

.site-header > .site-theme-toggle {
  margin-left: auto;
}

.site-theme-toggle:hover {
  border-color: var(--site-accent);
  color: var(--site-accent);
}

.site-theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-theme-toggle:focus-visible,
.review-controls button:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    padding-right: 60px;
  }

  .site-header > .site-theme-toggle {
    position: absolute;
    top: 14px;
    right: 6vw;
    margin: 0;
  }
}

.google-review-intro {
  margin-bottom: 12px;
  color: var(--site-muted) !important;
}

.review-slider {
  min-height: 120px;
  overflow: hidden;
}

.review-slide {
  display: none;
  margin: 0;
  padding: 14px 0;
}

.review-slide.is-active {
  display: block;
  animation: review-enter-next 420ms ease both;
}

.review-slider[data-direction="previous"] .review-slide.is-active {
  animation-name: review-enter-previous;
}

.review-slide blockquote {
  margin: 0 0 12px;
  color: var(--site-text);
  font-size: 17px;
  line-height: 1.65;
}

.review-slide figcaption {
  color: var(--site-muted);
  font-size: 14px;
  font-weight: 700;
}

.review-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.review-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--site-border);
  border-radius: 50%;
  background: var(--site-surface);
  color: var(--site-text);
  cursor: pointer;
  font-size: 20px;
}

.review-position {
  color: var(--site-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.google-review-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--site-accent) !important;
  font-weight: 700;
}

@keyframes review-enter-next {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes review-enter-previous {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme] body { transition: none; }
  .review-slide.is-active { animation: none; }
}
