/* ============================================================
   DreamsTour Custom Design System
   Loaded AFTER bootstrap.min.css / style.css so it overrides them.
   ============================================================ */

:root {
  --brand-navy: #0b2545;
  --brand-navy-light: #13355e;
  --brand-teal: #0d7d75;
  --brand-teal-dark: #095e58;
  --brand-gold: #c9a15a;
  --brand-cream: #f7faf9;
  --brand-sand: #f4f7f6;
  --text-dark: #16233a;
  --text-muted: #6b7686;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 8px 24px rgba(11, 37, 69, 0.08);
  --shadow-hover: 0 16px 40px rgba(11, 37, 69, 0.16);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.fw-bold {
  font-family: 'Poppins', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

a { transition: color .15s ease; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 10px 22px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
  border: none;
  box-shadow: 0 6px 16px rgba(13, 125, 117, 0.32);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--brand-teal-dark), var(--brand-teal-dark));
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 125, 117, 0.42);
}
.btn-outline-primary {
  border: 2px solid var(--brand-navy);
  color: var(--brand-navy);
}
.btn-outline-primary:hover {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  transform: translateY(-2px);
}
.btn-outline-success { border-radius: 999px; font-weight: 600; }
.btn-sm { padding: 6px 16px; font-size: .85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(11,37,69,.08); }
.site-header .navbar {
  padding-top: 14px;
  padding-bottom: 14px;
}
.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--text-dark) !important;
  padding: 8px 14px !important;
  border-radius: 999px;
  font-size: .95rem;
}
.navbar-nav .nav-link:hover {
  color: var(--brand-teal) !important;
  background: rgba(13, 125, 117, 0.08);
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: 70px;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,20,38,.65) 0%, rgba(6,20,38,.35) 40%, rgba(6,20,38,.75) 100%);
}
.hero-section .container { position: relative; z-index: 2; }

/* Explicit color (not inherited) — the theme's own style.css sets a fixed
   dark color directly on h1-h6, which otherwise beats the inherited
   .text-white from the parent wrapper. */
.hero-title {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff !important;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #ffffff !important;
  opacity: .94;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff !important;
  backdrop-filter: blur(6px);
  font-weight: 600;
  font-size: .85rem;
  padding: 7px 16px;
  border-radius: 999px;
}

/* Search card straddles the boundary between the hero photo and the
   stats row directly below it — kept as one tight visual group rather
   than a big gap followed by a separate floating section. */
.hero-search-wrap {
  position: relative;
  z-index: 3;
  margin-top: 36px;
  margin-bottom: -56px;
}
@media (max-width: 767px) {
  .hero-search-wrap { margin-bottom: -40px; }
}
.search-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(6,20,38,.22);
}
.search-card .nav-pills .nav-link {
  border-radius: 999px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 20px;
}
.search-card .nav-pills .nav-link.active {
  background: var(--brand-navy);
  color: #fff;
}
.search-card .form-select,
.search-card .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid #e4e8ee;
  padding: 10px 14px;
}
/* Bootstrap utility overrides so price text / category badges match the
   new teal brand instead of Bootstrap's default blue */
.text-primary { color: var(--brand-teal) !important; }
.bg-primary-subtle { background-color: rgba(13, 125, 117, 0.10) !important; }
.border-primary { border-color: var(--brand-teal) !important; }

.pt-hero-overlap { padding-top: 76px; }
@media (max-width: 767px) {
  .pt-hero-overlap { padding-top: 56px; }
}

/* ---------- Hero stats row (under the search card) ---------- */
.hero-stats { color: var(--brand-navy); }
.hero-stat-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.hero-stat-num i { color: #f5b301; font-size: 1.1rem; }
.hero-stat-label { font-size: .82rem; color: var(--text-muted); font-weight: 600; }

/* ---------- Destination tile badges ---------- */
.tile-rating {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: rgba(255,255,255,.95);
  color: var(--brand-navy);
  font-size: .75rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 3px;
}
.tile-rating i { color: #f5b301; font-size: .8rem; }
.tile-heart {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-navy); transition: background .15s ease, color .15s ease;
}
.tile-heart:hover { background: var(--brand-teal); color: #fff; }

/* ---------- Holiday category tiles ---------- */
.category-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; color: var(--text-dark); font-weight: 600; font-size: .85rem;
}
.category-icon {
  width: 66px; height: 66px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--brand-navy);
  transition: transform .2s ease;
}
.category-tile:hover .category-icon { transform: translateY(-4px); }

/* ---------- Why Choose Us (light variant) ---------- */
.why-choose-item-light {
  padding: 24px 16px;
  border-radius: var(--radius-md);
  background: var(--brand-sand);
  border: 1px solid #eef2f1;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.why-choose-item-light:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }

/* Eyebrow variant for dark section backgrounds */
.section-eyebrow-light { color: #7fd9cf; }

/* ---------- Section headings ---------- */
.section-eyebrow {
  color: var(--brand-teal);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.section-title {
  font-weight: 800;
  color: var(--brand-navy);
}

/* ---------- Cards ---------- */
.card {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-soft);
  border: 1px solid #f0f1f4 !important;
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.card.card-hover:hover,
a:hover > .card,
.destination-card:hover,
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card-img-top { transition: transform .35s ease; }
.card:hover .card-img-top { transform: scale(1.05); }

/* Destination tile */
.destination-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3/4;
  display: block;
}
.destination-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.destination-tile:hover img { transform: scale(1.08); }
.destination-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,37,69,0) 40%, rgba(11,37,69,.85) 100%);
}
.destination-tile .tile-label {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  color: #fff; font-weight: 700; font-family: 'Poppins', sans-serif;
}

/* Price badges */
.price-tag {
  font-family: 'Poppins', sans-serif;
  color: var(--brand-teal-dark);
  font-weight: 800;
}
.badge { border-radius: 999px; font-weight: 600; padding: 6px 12px; }

/* Why choose us icons */
.feature-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(13,125,117,.14), rgba(11,37,69,.10));
  color: var(--brand-teal-dark);
  font-size: 28px;
  margin-bottom: 12px;
}

/* Testimonials */
.testimonial-card { border-radius: var(--radius-md); }
.testimonial-card img { object-fit: cover; }

/* Footer */
footer.site-footer, footer.bg-dark {
  background: var(--brand-navy) !important;
}
/* Explicit color — same issue as the hero: the theme's base styles set a
   fixed dark color directly on h5/h6, which beats the inherited text-light
   from the <footer> wrapper. */
footer.bg-dark h5,
footer.bg-dark h6 {
  color: #ffffff !important;
}
footer.bg-dark p,
footer.bg-dark span,
footer.bg-dark li {
  color: rgba(255,255,255,.65);
}
footer.bg-dark a { color: rgba(255,255,255,.65); }
footer a:hover { color: var(--brand-teal-light, #4fd1c5) !important; }
footer.bg-dark .form-control { border: none; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff !important;
  transition: background .15s ease, transform .15s ease;
}
.footer-social a:hover { background: var(--brand-teal); transform: translateY(-2px); }
.trust-bar {
  background: var(--brand-cream);
  padding: 28px 0;
}
.trust-bar .trust-item {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  font-weight: 700; color: var(--brand-navy); font-size: .95rem;
}
.trust-bar .trust-item i { font-size: 26px; color: var(--brand-teal); }

/* Whatsapp float button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25D366;
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(37,211,102,.45);
  opacity: 0;
  transform: scale(.6);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.whatsapp-float.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  animation: wa-pulse 2.4s infinite;
}
.whatsapp-float:hover { color: #fff; opacity: .9; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 767px) {
  .hero-section { padding-top: 40px !important; padding-bottom: 50px !important; }
  .search-card { padding: 16px !important; }
  .search-card .nav-pills { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin-bottom: 12px !important; }
  .search-card .nav-pills .nav-link { white-space: nowrap; padding: 8px 16px; font-size: .85rem; }
  .destination-tile { aspect-ratio: 4/3; }
  .navbar-collapse { margin-top: 12px; border-top: 1px solid #eee; padding-top: 12px; }
  .navbar-nav { margin-bottom: 10px; }
  .section-title { font-size: 1.5rem !important; }
  .card-img-top { height: 170px !important; }
}

@media (max-width: 991px) {
  .admin-sidebar { display: none; }
  .admin-main, .admin-topbar { margin-left: 0 !important; }
}
