/* =========================================
   BLEISURE GLOBAL TOURS — BRAND THEME
   Palette matched to official logo:
   deep navy, mid navy, sky-blue accent, warm orange-gold
   ========================================= */

:root {
  --navy: #10275c;
  --navy-dark: #091d4d;
  --navy-mid: #253b67;
  --blue-accent: #497aab;
  --gold: #d6944f;
  --gold-light: #e8b378;
  --teal: #146b7a;
  --cream: #faf6ef;
  --white: #ffffff;
  --text-dark: #1e2635;
  --text-muted: #6b7680;
  --success: #2e7d32;
  --danger: #c0392b;
  --warning: #b8860b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(16, 39, 92, 0.08);
  --shadow-lg: 0 10px 40px rgba(16, 39, 92, 0.16);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

a { transition: color 0.2s ease; }

img { max-width: 100%; height: auto; }

.brand-heading { font-weight: 700; color: var(--navy); }

/* ---------- Navbar ---------- */
.navbar-bleisure {
  background: var(--navy);
  box-shadow: var(--shadow);
  padding: 0.6rem 0;
}

.navbar-bleisure .navbar-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  height: 42px;
  width: auto;
  border-radius: 6px;
}

.navbar-bleisure .navbar-brand span.accent { color: var(--gold); }

.navbar-bleisure .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  margin: 0 0.4rem;
  transition: color 0.2s ease;
}

.navbar-bleisure .nav-link:hover,
.navbar-bleisure .nav-link.active { color: var(--gold) !important; }

.navbar-bleisure .dropdown-menu {
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: var(--shadow-lg);
}

.navbar-bleisure .dropdown-item i { color: var(--gold); width: 18px; }
.navbar-bleisure .dropdown-item:active,
.navbar-bleisure .dropdown-item:hover { background: var(--cream); color: var(--navy); }

/* ---------- Buttons ---------- */
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  transition: all 0.25s ease;
}
.btn-gold:hover, .btn-gold:focus {
  background: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  transition: all 0.25s ease;
}
.btn-navy:hover, .btn-navy:focus {
  background: var(--navy-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  border-radius: 50px;
  background: transparent;
}
.btn-outline-gold:hover, .btn-outline-gold:focus {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-accent {
  background: var(--blue-accent);
  color: var(--white);
  font-weight: 600;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  transition: all 0.25s ease;
}
.btn-accent:hover { background: var(--navy-mid); color: var(--white); transform: translateY(-2px); }

.btn-sm.btn-navy, .btn-sm.btn-gold, .btn-sm.btn-outline-gold, .btn-sm.btn-accent {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* Ensure buttons never overflow narrow screens and stay tappable */
.btn-gold, .btn-navy, .btn-outline-gold, .btn-accent {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Form controls (global) ---------- */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid #dfe3e6;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(214,148,79,0.18);
}
.form-control-sm, .form-select-sm { padding: 0.4rem 0.7rem; font-size: 0.85rem; }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }

/* Prevent iOS auto-zoom on input focus (inputs need >=16px font-size) */
input, select, textarea { font-size: 16px; }
.form-control-sm, .form-select-sm { font-size: 14px; }

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,39,92,0.55) 0%, rgba(9,29,77,0.8) 100%);
}

.hero-content { position: relative; z-index: 2; }

.hero-content .script-text {
  font-family: 'Brush Script MT', cursive;
  color: var(--gold-light);
  font-size: 1.8rem;
}

.hero-content h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.1; }
.hero-content .highlight { color: var(--gold); }

/* ---------- Cards ---------- */
.card-bleisure {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease;
  background: var(--white);
}
.card-bleisure:hover { transform: translateY(-6px); }

.badge-price {
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  display: inline-block;
}

/* ---------- Sections ---------- */
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { color: var(--navy); font-weight: 800; }
.section-navy .section-title h2 { color: var(--white); }
.section-title .underline {
  width: 60px; height: 4px; background: var(--gold);
  margin: 0.75rem auto 0; border-radius: 2px;
}

/* ---------- Business / Leisure split ---------- */
.split-box { border-radius: var(--radius); padding: 2rem; height: 100%; }
.split-box.business { background: var(--navy); color: var(--white); }
.split-box.leisure {
  background: var(--cream); color: var(--navy);
  border: 1px solid rgba(214,148,79,0.35);
}
.split-box ul { list-style: none; padding: 0; }
.split-box ul li { padding: 0.4rem 0; }
.split-box ul li i { color: var(--gold); margin-right: 8px; }

/* ---------- Auth pages ---------- */
.auth-page { background: var(--cream); min-height: 80vh; display: flex; align-items: center; }
.auth-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.5rem;
}
.staff-card { border-top: 4px solid var(--gold); }
.badge-staff {
  background: var(--navy); color: var(--gold);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
  padding: 0.3rem 0.9rem; border-radius: 50px;
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed; bottom: 25px; right: 25px;
  background: #25D366; color: white; border-radius: 50%;
  width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 999; transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* ---------- Footer ---------- */
.footer-bleisure { background: var(--navy-dark); color: rgba(255,255,255,0.8); padding: 3rem 0 1.5rem; }
.footer-bleisure h5 { color: var(--gold); font-weight: 700; margin-bottom: 1rem; }
.footer-bleisure a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-bleisure a:hover { color: var(--gold); }
.footer-bleisure ul li { padding: 0.25rem 0; }
.footer-bleisure ul li a { font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem;
  padding-top: 1.5rem; text-align: center; font-size: 0.85rem;
}
.footer-bottom a { color: var(--gold-light); }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom strong { color: var(--gold-light); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.75rem; height: 100%;
}
.testimonial-card .stars { color: var(--gold); }

/* ---------- Error pages ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page h1 { font-size: 6rem; color: var(--navy); font-weight: 800; }

/* =========================================
   TOURS & CAR HIRE
   ========================================= */
.badge.bg-light.text-dark { border: 1px solid #e5e5e5; font-weight: 500; }

.pagination .page-link { color: var(--navy); border-radius: var(--radius-sm); margin: 0 3px; border: none; background: var(--cream); }
.pagination .page-item.active .page-link { background: var(--gold); color: var(--navy-dark); }
.pagination .page-item.disabled .page-link { background: transparent; color: var(--text-muted); }

.auth-card.sticky-top { z-index: 10; }

/* =========================================
   BOOKINGS FLOW
   ========================================= */
details > summary { cursor: pointer; color: var(--navy); font-weight: 600; }
details > summary:hover { color: var(--gold); }

/* =========================================
   PAYMENTS
   ========================================= */
.spinner-border { width: 3rem; height: 3rem; border-color: var(--gold); border-right-color: transparent; }

/* =========================================
   POS TERMINAL / RECEIPT
   ========================================= */
#receipt { font-family: 'Courier New', monospace; }
#receipt hr { border-top: 1px dashed #ccc; }

@media print {
  .navbar-bleisure, .footer-bleisure, .whatsapp-float, .no-print { display: none !important; }
  #receipt { box-shadow: none !important; border: 1px solid #ccc; }
  body { background: white !important; }
}

/* =========================================
   RESPONSIVE / MOBILE STYLING
   (mobile-first priority: this section is
   deliberately thorough since mobile is primary)
   ========================================= */

/* Large tablets / small desktops */
@media (max-width: 1200px) {
  .hero-content h1 { font-size: 2.7rem; }
}

/* Tablets */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.4rem; }
  .split-box { padding: 1.5rem; }
  .section-title { margin-bottom: 2rem; }
  .auth-card { padding: 2rem; }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* Phones (landscape and small tablets) */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.1rem; }
  .hero-section { min-height: 70vh; }
  .hero-content .script-text { font-size: 1.4rem; }
  .hero-content .lead { font-size: 1rem; }

  .section-title { margin-bottom: 1.75rem; }
  .section-title h2 { font-size: 1.6rem; }

  .auth-card { padding: 1.5rem; border-radius: var(--radius-sm); }

  .card-bleisure:hover { transform: none; } /* disable hover-lift on touch devices */
  .card-bleisure img { height: 180px !important; } /* consistent shorter card images on mobile */

  .navbar-logo { height: 34px; }
  .navbar-bleisure .navbar-brand { font-size: 1.1rem; gap: 8px; }

  .whatsapp-float {
    width: 50px; height: 50px; font-size: 1.4rem;
    bottom: 15px; right: 15px;
  }

  .footer-bleisure { padding: 2rem 0 1rem; text-align: center; }
  .footer-bleisure .col-md-4,
  .footer-bleisure .col-lg-4,
  .footer-bleisure .col-lg-2,
  .footer-bleisure .col-md-6 { margin-bottom: 1.5rem; }
  .footer-bleisure .d-flex.gap-3 { justify-content: center; }
  .footer-bottom .row > div { margin-bottom: 0.4rem; }

  .btn-gold, .btn-navy, .btn-outline-gold, .btn-accent {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
  }
  /* Buttons sitting inline together (e.g. hero CTAs) stay side-by-side, not full width */
  .d-flex.flex-wrap.gap-3 > .btn-gold,
  .d-flex.flex-wrap.gap-3 > .btn-outline-gold,
  .d-flex.flex-wrap.gap-3 > .btn-navy { width: auto; flex: 1 1 auto; }

  .badge-price { font-size: 0.85rem; padding: 0.35rem 0.75rem; }

  /* Stack sticky booking/rates panel below content instead of floating on mobile */
  .col-lg-5 .auth-card.sticky-top {
    position: static !important;
    top: auto !important;
    margin-top: 1.5rem;
  }

  /* Receipt fits narrow screens */
  #receipt { padding: 1.5rem !important; font-size: 0.9rem; }

  /* Tables scroll horizontally rather than overflowing */
  .table-responsive { font-size: 0.85rem; -webkit-overflow-scrolling: touch; }

  /* Modals/dropdowns full-width friendly */
  .dropdown-menu { min-width: 220px; }

  /* Forms: full-width fields, comfortable tap targets */
  .form-control, .form-select { padding: 0.7rem 0.9rem; }

  /* Navbar collapse background matches navy on mobile so it doesn't look like a floating white box */
  .navbar-collapse { background: var(--navy); border-radius: var(--radius-sm); padding: 1rem; margin-top: 0.5rem; }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.7rem; }
  .hero-content .lead { font-size: 0.9rem; }
  .navbar-bleisure .navbar-brand { font-size: 1.05rem; }
  .navbar-logo { height: 30px; }
  .error-page h1 { font-size: 4rem; }

  .split-box h4 { font-size: 1.1rem; }
  .split-box { padding: 1.25rem; }
  .testimonial-card { padding: 1.25rem; }

  .auth-card { padding: 1.25rem; }

  .stat-card, .dash-card { padding: 1rem; }

  .card-bleisure img { height: 160px !important; }
  .section-title h2 { font-size: 1.4rem; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
}

/* Extra-small phones (older/budget devices) */
@media (max-width: 360px) {
  .hero-content h1 { font-size: 1.5rem; }
  .navbar-logo { height: 26px; }
  .btn-gold, .btn-navy, .btn-outline-gold, .btn-accent { font-size: 0.85rem; padding: 0.55rem 1rem; }
}