/* ═══════════════════════════════════════════════════════════════════════════
   RSP THEME — Ranthambore Safari Park Global Design System
   Green #009846 | Gold #FECC00 | Dark #2B2A29
   Applied to ALL pages via PageController injection
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── RESET & VARIABLES ────────────────────────────────────────────────────── */
:root {
  --green: #009846;
  --gold:  #FECC00;
  --dark:  #2B2A29;
  --light: #f7faf5;
  --muted: #6c757d;
  --border: #e4ede0;
  --white: #fff;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', 'Open Sans', sans-serif;
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', 'Georgia', serif !important; line-height: 1.25; }
a { text-decoration: none; }

/* ── TOPBAR ───────────────────────────────────────────────────────────────── */
#topbar {
  background: var(--dark) !important;
  color: #ccc !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 0 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1060 !important;
  height: auto !important;
}
.rsp-tb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
#topbar a { color: #bbb !important; transition: color .2s; }
#topbar a:hover { color: var(--gold) !important; }
#topbar i { color: var(--gold) !important; margin-right: 4px; }
.rsp-tb-phones { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rsp-tb-sep { color: #555; }

/* ── NOTICE BAR — sits in page flow directly after the hero ───────────────── */
.rsp-notice-bar {
  background: #b91c1c;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 0;
  text-align: center;
  width: 100%;
}

/* ── NAVBAR ───────────────────────────────────────────────────────────────── */
#header {
  background: #ffffff !important;
  box-shadow: 0 1px 0 #e5e7eb !important;
  border-bottom: 1px solid #e5e7eb !important;
  position: fixed !important;
  top: 36px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1040 !important;
  transition: top .3s, box-shadow .3s !important;
  height: auto !important;
  padding: 0 !important;
}
#header.rsp-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.10) !important;
}
.rsp-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 70px;
}

/* ── BRAND (logo + text) — left side ─────────────────────────────────────── */
.rsp-brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  margin-right: auto !important;
}
.rsp-brand-logo {
  height: 52px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
}
.rsp-brand-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.rsp-brand-name {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--dark) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
.rsp-brand-tagline {
  font-family: 'Nunito', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  letter-spacing: .2px !important;
  white-space: nowrap !important;
}

/* ── NAV LINKS — right side ──────────────────────────────────────────────── */
.rsp-navbar {
  display: flex;
  align-items: center;
}
.rsp-navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.rsp-navbar ul li a {
  font-family: 'Nunito', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #374151 !important;
  padding: 8px 14px !important;
  border-radius: 5px !important;
  display: block !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: color .2s, background .2s !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.rsp-navbar ul li a:hover,
.rsp-navbar ul li a.rsp-active {
  color: var(--green) !important;
  background: rgba(0,152,70,.07) !important;
}
.rsp-dropdown { position: relative; }
.rsp-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(0,0,0,.1);
  min-width: 210px;
  padding: 8px 0;
  z-index: 300;
}
.rsp-dropdown:hover .rsp-dropdown-menu { display: block; }
.rsp-dropdown-menu a {
  display: block !important;
  padding: 10px 18px !important;
  font-size: 13.5px !important;
  color: var(--dark) !important;
  text-transform: none !important;
  transition: background .15s, color .15s !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.rsp-dropdown-menu a:hover { background: var(--light) !important; color: var(--green) !important; }

/* ── Buttons (kept for use elsewhere on site) ─────────────────────────────── */
.rsp-hdr-ctas { display: flex; gap: 8px; flex-shrink: 0; margin-left: 12px; }
.rsp-btn-primary {
  background: var(--green) !important;
  color: #fff !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
  border-radius: 6px !important;
  transition: background .2s, transform .15s !important;
  white-space: nowrap !important;
  border: none !important;
  display: inline-block !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.rsp-btn-primary:hover { background: #007a38 !important; transform: translateY(-1px) !important; color: #fff !important; }
.rsp-btn-gold {
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
  border-radius: 6px !important;
  transition: background .2s, transform .15s !important;
  white-space: nowrap !important;
  border: none !important;
  display: inline-block !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.rsp-btn-gold:hover { background: #e0b400 !important; transform: translateY(-1px) !important; color: var(--dark) !important; }
.rsp-mobile-toggle {
  display: none !important;
  background: none !important;
  border: none !important;
  font-size: 26px !important;
  color: var(--dark) !important;
  cursor: pointer !important;
  margin-left: 12px !important;
  padding: 4px !important;
  line-height: 1 !important;
}

/* ── PAGE OFFSET — recalibrate for our 3-layer fixed header stack ──────────────
   Topbar (~36px) + Notice bar (~30px) + Header nav (~68px) = ~134px total
   Original style.css used 100–140px offsets for a single-layer header.
   We standardise all page content offsets to 140px.
   ─────────────────────────────────────────────────────────────────────────── */
#booking,
#hotel,
#package-detail,
#faq,
#privacy,
#about,
#chambal,
#wildlife,
#news,
#gallery,
#contact { margin-top: 140px !important; }

/* Sections that are first children of main get the same treatment */
main > section:first-child,
main > div:first-child > section:first-child { margin-top: 0 !important; }

/* ── INNER PAGE BANNER ───────────────────────────────────────────────────── */
.rsp-page-banner {
  position: relative;
  background: var(--dark);
  padding: 80px 0 60px;
  margin-top: 140px;
  overflow: hidden;
}
.rsp-page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/gen/hero-bg.png') center/cover;
  opacity: .12;
}
.rsp-page-banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.rsp-page-banner-inner h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem) !important;
  font-weight: 800 !important;
  margin-bottom: 14px !important;
  color: #fff !important;
}
.rsp-page-banner-inner h1 span { color: var(--gold); }
.rsp-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  font-family: 'Nunito', sans-serif;
}
.rsp-breadcrumb a { color: var(--gold); }
.rsp-breadcrumb i { font-size: 10px; color: rgba(255,255,255,.4); }

/* ── SECTION HEADING ─────────────────────────────────────────────────────── */
.rsp-sec-head { text-align: center; margin-bottom: 52px; }
.rsp-sec-tag {
  display: inline-block;
  background: rgba(0,152,70,.1);
  color: var(--green);
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.rsp-sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem) !important; font-weight: 800 !important; color: var(--dark) !important; margin-bottom: 14px !important; }
.rsp-sec-head h2 span { color: var(--green); }
.rsp-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.rsp-divider span { display: block; height: 2px; width: 48px; background: var(--border); border-radius: 2px; }
.rsp-divider i { color: var(--gold); font-size: 18px; }
.rsp-sec-head p { max-width: 580px; margin: 0 auto; color: var(--muted); line-height: 1.75; font-size: 15px; }

/* ── MAIN_HEADING (existing pages) ──────────────────────────────────────── */
.main_heading h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem) !important;
  font-weight: 800 !important;
  color: var(--dark) !important;
}
.main_heading h2 span { color: var(--green) !important; }
.main_heading p {
  color: var(--muted) !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

/* ── CARDS — general lift effect ─────────────────────────────────────────── */
.service-content,
.card-dsg,
.card-border,
.package {
  transition: transform .3s, box-shadow .3s !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}
.service-content:hover,
.card-dsg:hover,
.package:hover { transform: translateY(-8px) !important; box-shadow: 0 16px 48px rgba(0,152,70,.13) !important; }

/* ── BOOKING FORM BUTTONS ────────────────────────────────────────────────── */
.booking-btn, .book-btn, .submit-btn,
button[type="submit"],
input[type="submit"] {
  background: var(--green) !important;
  color: #fff !important;
  border: none !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  transition: background .2s !important;
}
.booking-btn:hover, .book-btn:hover, .submit-btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover { background: #007a38 !important; }

/* ── BREADCRUMB (existing) ───────────────────────────────────────────────── */
.breadcrumb-item.active { color: var(--green) !important; }
.breadcrumb-item a { color: var(--gold) !important; }

/* ── WhatsApp float ──────────────────────────────────────────────────────── */
.rsp-wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 9999; }
.rsp-wa-float img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 6px 24px rgba(0,0,0,.25); transition: transform .2s; display: block; }
.rsp-wa-float img:hover { transform: scale(1.1); }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
#footer {
  background: var(--dark) !important;
  color: rgba(255,255,255,.75) !important;
  font-family: 'Nunito', sans-serif !important;
}
.rsp-footer-top { padding: 64px 0 40px !important; }
.rsp-ftr-info p { font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.65); margin-bottom: 4px; }
.rsp-ftr-info a { color: rgba(255,255,255,.65) !important; transition: color .2s; }
.rsp-ftr-info a:hover { color: var(--gold) !important; }
.rsp-ftr-social { display: flex; gap: 10px; margin-top: 20px; }
.rsp-ftr-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7) !important; font-size: 16px;
  transition: background .2s, color .2s;
}
.rsp-ftr-social a:hover { background: var(--green) !important; color: #fff !important; }
.rsp-ftr-col h4 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 18px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--green) !important;
  display: inline-block !important;
}
.rsp-ftr-col ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.rsp-ftr-col ul li { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.rsp-ftr-col ul li i { color: var(--gold); font-size: 13px; }
.rsp-ftr-col ul li a { color: rgba(255,255,255,.65) !important; font-size: 13.5px !important; transition: color .2s !important; }
.rsp-ftr-col ul li a:hover { color: var(--gold) !important; }
.rsp-footer-bottom {
  background: rgba(0,0,0,.3) !important;
  padding: 18px 0 !important;
  text-align: center !important;
  font-size: 13px !important;
  color: rgba(255,255,255,.45) !important;
}
.rsp-footer-bottom a { color: var(--gold) !important; }

/* ── BACK TO TOP ─────────────────────────────────────────────────────────── */
.back-to-top { background: var(--green) !important; border-radius: 50% !important; }

/* ── EXISTING STYLE OVERRIDES (content pages) ───────────────────────────── */
/* Hero/banner sections on existing pages */
.hero-section,
.page-hero,
section.hero { padding-top: 0 !important; }

/* Form inputs */
.form-control:focus { border-color: var(--green) !important; box-shadow: 0 0 0 3px rgba(0,152,70,.12) !important; }
.form-select:focus { border-color: var(--green) !important; box-shadow: 0 0 0 3px rgba(0,152,70,.12) !important; }

/* Accordion */
.accordion-button:not(.collapsed) { color: var(--green) !important; background: rgba(0,152,70,.04) !important; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(0,152,70,.15) !important; }

/* Links */
.text-green, .color-green { color: var(--green) !important; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .rsp-hdr-ctas { display: none !important; }
  .rsp-mobile-toggle { display: block !important; }
  .rsp-navbar ul {
    display: none !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important; right: 0 !important;
    background: #fff !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.1) !important;
    padding: 12px 0 !important;
    z-index: 100 !important;
  }
  .rsp-navbar ul.rsp-open { display: flex !important; }
  .rsp-navbar ul li a { font-size: 15px !important; padding: 13px 20px !important; }
  .rsp-dropdown-menu { position: static !important; box-shadow: none !important; border: none !important; padding-left: 24px !important; border-radius: 0 !important; }
}

@media (max-width: 767px) {
  .rsp-notice-bar { top: 36px !important; }
  #header { top: 68px !important; }
}

/* ── Mobile AOS: convert horizontal slides to fade-up to prevent overflow clipping ── */
@media (max-width: 991px) {
  [data-aos="fade-right"]:not(.aos-animate),
  [data-aos="fade-left"]:not(.aos-animate) {
    transform: translate3d(0, 40px, 0) !important;
    opacity: 0 !important;
  }
}

/* ── Chambal price card mobile ── */
@media (max-width: 575px) {
  .cb-price-card { padding: 18px 16px; }
  .cb-price-val { font-size: 17px; }
  .cb-price-val small { font-size: 10px; }
  .cb-price-label { font-size: 13px; }
  .cb-trust-pill { font-size: 12px; padding: 6px 11px; }
}

/* ── Contact page hero pills wrap on small screens ── */
@media (max-width: 575px) {
  .ct-quick-pills { flex-direction: column; align-items: stretch; }
  .ct-pill { text-align: center; justify-content: center; }
}
