/* ==========================================================================
   HARDING HOLIDAYS - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  /* Colors */
  --primary: #00BCD4;
  --primary-hover: #00A0B5;
  --navy-dark: #0A1128;
  --navy-card: #121E36;
  --navy-light: #1A2847;
  --bg-gray: #F4F6F8;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --white: #FFFFFF;
  
  /* Accents */
  --accent-orange: #FF6B35;
  --accent-gold: #D4AF37;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-soft: 0 10px 30px rgba(10, 17, 40, 0.08);
  --shadow-hover: 0 20px 40px rgba(0, 188, 212, 0.18);
  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.05);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
  --glass-blur: blur(16px);
}

/* Base Styles */
* { box-sizing: border-box; }

/* .row.g-5 (used as a direct child of .container in a few sections) has a
   wider gutter than .container's own padding compensates for, which pokes
   ~12px past the edge on narrow screens. overflow-x:hidden on body alone
   doesn't fully contain it (fixed-position elements measure against html),
   so it's set here too. */
html {
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: #FFFFFF;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding-top: 80px; /* Offset for fixed sticky navbar */
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.text-primary-custom { color: var(--primary) !important; }
.bg-navy-dark { background-color: var(--navy-dark) !important; }
.bg-navy-card { background-color: var(--navy-card) !important; }
.bg-gray-custom { background-color: var(--bg-gray) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-orange { color: var(--accent-orange) !important; }

/* Custom Buttons */
.btn-primary-custom {
  background-color: var(--primary);
  color: var(--white) !important;
  border: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
  display: inline-block;
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline-custom {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white) !important;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background-color: var(--white);
  color: var(--navy-dark) !important;
  border-color: var(--white);
}

/* Glass Search Box */
.glass-search-box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.glass-input {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm);
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.glass-input option {
  background-color: var(--navy-dark);
  color: var(--white);
}

/* Cards & Isolation */
.custom-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.custom-card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

/* Stat Box */
.stat-box {
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-whatsapp { background-color: #25D366; }
.floating-phone { background-color: var(--primary); }

/* Accordion */
.accordion-item {
  border: none;
  background: var(--bg-gray);
  margin-bottom: 12px;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
}

.accordion-button {
  background: var(--bg-gray);
  font-weight: 600;
  color: var(--navy-dark);
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(0, 188, 212, 0.08);
  color: var(--primary-hover);
}

/* Mobile Overrides */
@media (max-width: 991px) {
  /* Matches the light navbar theme (.navbar-custom / .nav-link below) so
     menu text stays readable — this used to be a dark panel left over from
     an earlier dark navbar design, which made the dark .nav-link text
     unreadable against it. */
  .navbar-collapse {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 15px;
    border: 1px solid rgba(10, 17, 40, 0.08);
    box-shadow: var(--shadow-card);
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

/* Recent Booking toast is meant to be tablet/desktop-only (it starts as
   Bootstrap's d-none d-md-flex). The rotator script in index.html shows it
   by removing the "d-none" class, which also strips its "d-flex" below the
   md breakpoint since d-md-flex only applies from 768px up — the toast then
   falls back to plain display:block, breaking its icon+text layout and
   overlapping page content. Force it off below md regardless of what
   classes JS toggles, so it only ever appears where the flex layout applies. */
@media (max-width: 767.98px) {
  #bookingNotification {
    display: none !important;
  }
}

/* Hero Typography Styling */
.hero-tagline {
  background: rgba(0, 188, 212, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 188, 212, 0.4);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-uppercase;
  backdrop-filter: blur(8px);
}

.hero-title {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.5px;
}

/* Enhanced Glassmorphism Search Box */
.glass-search-box {
  background: rgba(10, 17, 40, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.glass-input {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: all 0.3s ease;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 12px rgba(0, 188, 212, 0.35) !important;
  outline: none;
}

.glass-input option {
  background-color: var(--navy-dark);
  color: #ffffff;
}

/* Custom Flatpickr Theme Adjustments */
.flatpickr-calendar {
  background: var(--navy-dark) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
  border-radius: var(--radius-md) !important;
}

.flatpickr-day.selected {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* Remove dark calendar theme and use clean default/light flatpickr */

.extra-small {
  font-size: 0.7rem;
}

/* Crisp Text Shadow for white hero text over bright background */
.text-shadow-sm {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Light Floating Tagline Badge */
.hero-tagline-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

/* International White Search Card */
.light-search-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
}

.search-field-wrapper {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field-wrapper:focus-within {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

.search-field-wrapper input:focus,
.search-field-wrapper select:focus {
  outline: none;
  box-shadow: none;
}

.bg-white-90 {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
}

/* Clean White Flatpickr Popover Theme */
.flatpickr-calendar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px !important;
  color: #1e293b !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekday {
  color: #0f172a !important;
  fill: #0f172a !important;
  font-weight: 600;
}

.flatpickr-day {
  color: #334155 !important;
}

.flatpickr-day.selected, .flatpickr-day.selected:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   HARDING HOLIDAYS - LIGHT INTERNATIONAL DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Colors */
  --primary: #00BCD4;
  --primary-hover: #00A0B5;
  --navy-dark: #0A1128;
  --navy-card: #121E36;
  --navy-light: #1A2847;
  --bg-gray: #F4F6F8;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --white: #FFFFFF;
  
  /* Accents */
  --accent-orange: #FF6B35;
  --accent-gold: #D4AF37;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-soft: 0 10px 30px rgba(10, 17, 40, 0.08);
  --shadow-hover: 0 20px 40px rgba(0, 188, 212, 0.18);
  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
* { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: #FFFFFF;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding-top: 80px;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Utilities */
.text-primary-custom { color: var(--primary) !important; }
.bg-navy-dark { background-color: var(--navy-dark) !important; }
.bg-navy-card { background-color: var(--navy-card) !important; }
.bg-gray-custom { background-color: var(--bg-gray) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-orange { color: var(--accent-orange) !important; }
.extra-small { font-size: 0.72rem; }

/* Custom Buttons */
.btn-primary-custom {
  background-color: var(--primary);
  color: var(--white) !important;
  border: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
  display: inline-block;
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Fixed Modern White Navbar */
.navbar-custom {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  color: #1e293b !important;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 6px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* At exactly the lg breakpoint (992px, before xl gives more room at 1200px)
   there isn't enough width for 8 nav links plus the "Plan My Trip" button on
   one line — the button's text used to wrap onto 3 lines, and combined with
   its pill border-radius that turned it into a small circle instead of a
   button. Tighten link spacing and keep the button on one line instead. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-link {
    margin: 0 2px;
    font-size: 0.88rem;
  }

  .navbar .btn-primary-custom {
    padding: 10px 16px;
    font-size: 0.88rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* High Contrast Hero Typography */
.text-hero-title {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 3px 12px rgba(10, 17, 40, 0.75), 0 1px 3px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.5px;
}

.text-hero-subtitle {
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(10, 17, 40, 0.8);
}

.hero-tagline-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

/* Light Floating Search Card */
.light-search-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.search-field-wrapper {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field-wrapper:focus-within {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.25);
}

.search-field-wrapper input:focus,
.search-field-wrapper select:focus {
  outline: none;
  box-shadow: none;
}

/* Floating Actions (WhatsApp / Call) */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-whatsapp { background-color: #25D366; }
.floating-phone { background-color: var(--primary); }

/* Clean Light Flatpickr Theme */
.flatpickr-calendar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
  border-radius: 14px !important;
  color: #1e293b !important;
  padding: 8px;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekday {
  color: #0f172a !important;
  fill: #0f172a !important;
  font-weight: 700;
}

.flatpickr-day {
  color: #334155 !important;
  border-radius: 8px !important;
}

.flatpickr-day.selected, 
.flatpickr-day.selected:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

section {
  scroll-margin-top: 80px; /* Account for fixed header height */
}

/* ==========================================================================
   CONTACT US ENQUIRY FORM
   ========================================================================== */
#contact .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#contact .form-control:focus {
  background-color: rgba(0, 0, 0, 0.35) !important;
  border-color: var(--primary) !important;
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.25);
}

#contactFormAlert {
  font-size: 0.9rem;
}

#contactFormSubmit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* ==========================================================================
   AFFILIATION & ACCREDITATIONS SECTION
   ========================================================================== */
.affiliation-section {
  position: relative;
  background: #ffffff;
}

.affiliation-card {
  background: #ffffff;
  border: 1px solid #e8eef5;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 20px rgba(10, 17, 40, 0.04);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.affiliation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.affiliation-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 188, 212, 0.35);
  box-shadow: 0 16px 36px rgba(0, 188, 212, 0.12);
}

.affiliation-card:hover::before {
  opacity: 1;
}

.affiliation-img-wrapper {
  height: 95px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 6px;
}

.affiliation-img {
  max-height: 85px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: contrast(1.02);
  transition: transform 0.35s ease;
}

.affiliation-card:hover .affiliation-img {
  transform: scale(1.06);
}

.affiliation-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.affiliation-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-gray);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.affiliation-card:hover .affiliation-badge {
  background: rgba(0, 188, 212, 0.1);
  color: var(--primary-hover);
}

@media (max-width: 767.98px) {
  .affiliation-card {
    padding: 18px 12px;
  }
  .affiliation-img-wrapper {
    height: 75px;
  }
  .affiliation-img {
    max-height: 65px;
  }
  .affiliation-title {
    font-size: 0.82rem;
  }
  .affiliation-badge {
    font-size: 0.68rem;
  }
}