:root {
  --trips-deep: #041c3c;
  --trips-navy: #0b2f6b;
  --trips-primary: #145dcc;
  --trips-primary-dark: #0d47a1;
  --trips-accent: #3fa7f5;
  --trips-accent-light: #7fc4ff;
  --trips-light: #eef5fd;
  --trips-light-2: #dbeafe;
  --trips-ink: #0a1a33;
  --trips-cream: #f7efdf;
  --trips-cream-2: #efe2c4;
  --trips-muted: #5c7290;
  --trips-gold: #ffb703;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--trips-ink);
  background-color: #ffffff;
}

a {
  color: var(--trips-primary);
  text-decoration: none;
}

a:hover {
  color: var(--trips-primary-dark);
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(20, 93, 204, 0.25);
  border-color: var(--trips-accent);
}

/* Buttons */
.btn-trips-primary {
  background-color: var(--trips-primary);
  border-color: var(--trips-primary);
  color: #fff;
  font-weight: 600;
}
.btn-trips-primary:hover {
  background-color: var(--trips-primary-dark);
  border-color: var(--trips-primary-dark);
  color: #fff;
}

.btn-trips-outline {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-weight: 600;
}
.btn-trips-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Language switcher — sits in the (now light-cream) navbar, so .btn-trips-outline's
   white-on-dark defaults (meant for the navy footer/admin header) need overriding here
   specifically, rather than changed globally where they're still correct. */
.language-switcher .btn-trips-outline {
  color: var(--trips-deep);
  border-color: rgba(4, 28, 60, 0.25);
  border-radius: 20px;
  padding: 6px 16px;
}
.language-switcher .btn-trips-outline:hover,
.language-switcher .btn-trips-outline:focus,
.language-switcher .btn-trips-outline:active {
  background-color: rgba(4, 28, 60, 0.06);
  color: var(--trips-deep);
  border-color: rgba(4, 28, 60, 0.4);
}
.language-switcher .dropdown-menu {
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(4, 28, 60, 0.18);
  padding: 6px;
  min-width: 170px;
  margin-top: 8px !important;
}
.language-switcher .dropdown-item {
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--trips-deep);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.language-switcher .dropdown-item:hover,
.language-switcher .dropdown-item:focus {
  background-color: var(--trips-light);
  color: var(--trips-primary-dark);
}
.language-switcher .dropdown-item.active {
  background: linear-gradient(135deg, var(--trips-primary), var(--trips-accent));
  color: #fff;
}

.btn-trips-gold {
  background-color: var(--trips-gold);
  border-color: var(--trips-gold);
  color: var(--trips-deep);
  font-weight: 700;
}
.btn-trips-gold:hover {
  background-color: #e6a300;
  border-color: #e6a300;
  color: var(--trips-deep);
}

.text-trips-accent { color: var(--trips-accent-light); }
.bg-trips-light { background-color: var(--trips-light); }

/* Navbar */
.navbar-trips {
  background: linear-gradient(180deg, var(--trips-cream), var(--trips-cream-2));
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 12px rgba(4, 28, 60, 0.12);
}

.navbar-trips .navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--trips-deep);
  letter-spacing: 0.5px;
}
.navbar-trips .navbar-brand .accent { color: var(--trips-primary); }

.navbar-trips .navbar-brand-logo {
  /* Dark navy, matching the logo artwork's own background tone (a photographic mockup,
     not a transparent cutout) so its edges blend into the badge instead of showing as
     a hard rectangle. */
  background: linear-gradient(135deg, var(--trips-navy), var(--trips-deep));
  border-radius: 12px;
  padding: 4px 14px;
  box-shadow: 0 1px 4px rgba(4, 28, 60, 0.25);
}
.navbar-trips .navbar-brand-logo img {
  display: block;
  height: 44px;
  width: auto;
}

.navbar-trips .nav-link {
  color: rgba(10, 26, 51, 0.75);
  font-weight: 500;
}
.navbar-trips .nav-link:hover,
.navbar-trips .nav-link.active {
  color: var(--trips-deep);
}

.navbar-trips .navbar-toggler {
  border-color: rgba(10, 26, 51, 0.3);
}
.navbar-trips .navbar-toggler-icon {
  filter: none;
}

.navbar-phone {
  color: var(--trips-deep);
  font-weight: 700;
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(63, 167, 245, 0.35), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(127, 196, 255, 0.25), transparent 40%),
    linear-gradient(135deg, var(--trips-deep) 0%, var(--trips-navy) 55%, var(--trips-primary) 100%);
  color: #fff;
  padding: 4.5rem 0 7rem;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
}

/* Hero background carousel — random trio of hot-deal photos, full-bleed behind the text */
.hero-bg-carousel,
.hero-bg-carousel .carousel-inner,
.hero-bg-carousel .carousel-item {
  position: absolute;
  inset: 0;
  height: 100%;
}
.hero-bg-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(4, 28, 60, 0.5) 0%, rgba(11, 47, 107, 0.4) 55%, rgba(20, 93, 204, 0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-content h1,
.hero-content .section-eyebrow,
.hero-content .lead {
  text-shadow: 0 2px 14px rgba(4, 28, 60, 0.6);
}
.hero-bg-carousel__indicators {
  z-index: 2;
  margin-bottom: 0.5rem;
}
.hero-bg-carousel__indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 4px;
}

/* Search widget */
.search-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(4, 28, 60, 0.25);
  margin-top: -4rem;
  position: relative;
  z-index: 5;
}

.search-tabs .nav-link {
  color: var(--trips-muted);
  font-weight: 600;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}
.search-tabs .nav-link.active {
  color: var(--trips-primary);
  border-bottom-color: var(--trips-primary);
  background: none;
}

.search-field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--trips-muted);
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.search-field .form-control,
.search-field .form-select {
  border: none;
  border-bottom: 2px solid #e3ecf7;
  border-radius: 0;
  padding-left: 0;
  font-weight: 600;
  color: var(--trips-ink);
}
.search-field .form-control:focus,
.search-field .form-select:focus {
  box-shadow: none;
  border-bottom-color: var(--trips-primary);
}

/* Section headings */
.section-eyebrow {
  color: var(--trips-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
}
.section-title {
  font-weight: 800;
  color: var(--trips-deep);
}

/* Destinations / min-prices — full-width dark band, same gradient as the footer */
.destinations-band {
  background: linear-gradient(180deg, var(--trips-navy), var(--trips-deep));
}
.destinations-band .section-eyebrow {
  color: var(--trips-accent-light);
}
.destinations-band .section-title {
  color: #fff;
}

section { scroll-margin-top: 80px; }

/* Tour / deal cards */
.tour-card {
  border: 1px solid #e6eef8;
  border-radius: 0.9rem;
  overflow: hidden;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: #fff;
}
.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(11, 47, 107, 0.15);
}

.tour-card__media {
  height: 130px;
  background: linear-gradient(135deg, var(--trips-navy), var(--trips-primary));
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem 1rem;
}
.tour-card__stars { color: var(--trips-gold); font-size: 0.85rem; }

.discount-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--trips-gold);
  color: var(--trips-deep);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
}

.tour-card__body { padding: 1rem; }
.tour-card__city { font-weight: 700; color: var(--trips-deep); }
.tour-card__country { color: var(--trips-muted); font-size: 0.85rem; }
.tour-card__price-old {
  text-decoration: line-through;
  color: var(--trips-muted);
  font-size: 0.85rem;
  margin-right: 0.4rem;
}
.tour-card__price-new {
  color: var(--trips-primary-dark);
  font-weight: 800;
  font-size: 1.25rem;
}

/* Min price tiles — sit on the dark destinations-band, so no filled card background,
   just a thin light-blue outline; text goes white/near-white to read on the dark band. */
.price-tile {
  border-radius: 0.75rem;
  background: transparent;
  border: 1px solid rgba(127, 196, 255, 0.35);
  padding: 1rem 1.1rem;
  height: 100%;
}
.price-tile__country { font-weight: 700; color: #fff; }
.price-tile__price { color: #fff; font-weight: 800; font-size: 1.3rem; }
.price-tile__meta { color: rgba(255, 255, 255, 0.65); font-size: 0.8rem; }

/* Scroll-reveal — elements fade/slide in once they enter the viewport (see site.js) */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Steps */
.step-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--trips-primary), var(--trips-accent));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* About / trust */
.stat-number {
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--trips-primary-dark);
}
.stat-label { color: var(--trips-muted); font-size: 0.9rem; }

/* Contact / footer */
.footer-trips {
  background: linear-gradient(180deg, var(--trips-navy), var(--trips-deep));
  color: rgba(255, 255, 255, 0.85);
}
.footer-trips h5 { color: #fff; font-weight: 700; }
.footer-trips a { color: rgba(255, 255, 255, 0.75); }
.footer-trips a:hover { color: #fff; }
.footer-trips hr { border-color: rgba(255, 255, 255, 0.15); }

.contact-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
}

@media (max-width: 767.98px) {
  .search-card { margin-top: -2.5rem; }
}
