/* ============================================
   Costa Rica Te Enamora — Premium Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
   --primary: #1e5c1a;
   --primary-light: #2e7d28;
   --primary-dark: #143d11;
   --secondary: #0e8fa0;
   --secondary-light: #14b3c8;
   --accent: #d4a040;
   --accent-light: #f0c060;
   --bg-sand: #faf7ef;
   --bg-light: #f4f7f4;
   --text-dark: #1a2e1a;
   --text-mid: #4a5e4a;
   --text-light: #7a9070;
   --white: #ffffff;
   --shadow-sm: 0 4px 12px rgba(0, 0, 0, .06);
   --shadow-md: 0 10px 30px rgba(0, 0, 0, .1);
   --shadow-lg: 0 20px 50px rgba(0, 0, 0, .15);
   --radius: 16px;
   --radius-sm: 8px;
   --transition: all .3s cubic-bezier(.25, .8, .25, 1);
   --container: 1200px;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
   box-sizing: border-box;
   margin: 0;
   padding: 0
}

html {
   scroll-behavior: smooth
}

body {
   font-family: 'Outfit', sans-serif;
   color: var(--text-dark);
   line-height: 1.6;
   background: var(--white);
   overflow-x: hidden
}

h1,
h2,
h3,
h4 {
   font-family: 'Playfair Display', serif;
   line-height: 1.2
}

a {
   text-decoration: none;
   color: inherit;
   transition: var(--transition)
}

ul {
   list-style: none
}

img {
   max-width: 100%;
   display: block
}

button {
   font-family: inherit;
   cursor: pointer
}

/* ─── Utilities ─── */
.container {
   max-width: var(--container);
   margin: 0 auto;
   padding: 0 24px
}

.section-pad {
   padding: 90px 0
}

.text-center {
   text-align: center
}

.grid-2 {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 30px
}

.grid-3 {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 30px
}

.grid-4 {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 24px
}

/* ─── Section Title ─── */
.section-title {
   text-align: center;
   margin-bottom: 56px
}

.section-title .eyebrow {
   display: inline-block;
   font-family: 'Outfit', sans-serif;
   font-size: .78rem;
   font-weight: 700;
   letter-spacing: .18em;
   text-transform: uppercase;
   color: var(--accent);
   margin-bottom: 12px
}

.section-title h2 {
   font-size: clamp(2rem, 4vw, 3rem);
   color: var(--primary);
   margin-bottom: 14px
}

.section-title p {
   color: var(--text-mid);
   max-width: 580px;
   margin: 0 auto;
   font-size: 1.05rem
}

/* ─── Buttons ─── */
.btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 13px 30px;
   border-radius: 50px;
   font-weight: 600;
   font-size: .95rem;
   border: 2px solid transparent;
   cursor: pointer;
   transition: var(--transition);
   white-space: nowrap
}

.btn-primary {
   background: var(--primary);
   color: var(--white);
   border-color: var(--primary)
}

.btn-primary:hover {
   background: var(--primary-light);
   border-color: var(--primary-light);
   transform: translateY(-2px);
   box-shadow: 0 8px 24px rgba(30, 92, 26, .3)
}

.btn-outline {
   background: transparent;
   color: var(--primary);
   border-color: var(--primary)
}

.btn-outline:hover {
   background: var(--primary);
   color: var(--white);
   transform: translateY(-2px)
}

.btn-white {
   background: var(--white);
   color: var(--primary);
   border-color: var(--white)
}

.btn-white:hover {
   background: transparent;
   color: var(--white);
   border-color: var(--white)
}

.btn-whatsapp {
   background: #25d366;
   color: var(--white);
   border-color: #25d366
}

.btn-whatsapp:hover {
   background: #1ebe58;
   transform: translateY(-2px);
   box-shadow: 0 8px 20px rgba(37, 211, 102, .3)
}

.btn-whatsapp-minimal {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 42px;
   height: 42px;
   background: #25d366;
   color: var(--white);
   border-radius: 50%;
   transition: var(--transition);
   box-shadow: var(--shadow-sm);
}

.btn-whatsapp-minimal:hover {
   background: #1ebe58;
   transform: scale(1.1);
   box-shadow: var(--shadow-md);
}

/* ─── Reveal animation ─── */
.reveal {
   opacity: 0;
   transform: translateY(30px);
   transition: opacity .7s ease, transform .7s ease
}

.reveal.visible {
   opacity: 1;
   transform: translateY(0)
}

/* ─────────────────────────
   HEADER
───────────────────────── */
.main-header {
   padding: 0;
   position: sticky;
   top: 0;
   z-index: 999;
   transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   background: rgba(255, 255, 255, 0.8);
   backdrop-filter: blur(12px)
}

.main-header .header-inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   height: 72px;
   transition: var(--transition)
}

.main-header.scrolled {
   background: rgba(56, 56, 56, 0.5);
   backdrop-filter: blur(20px);
   box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
   border-bottom: 1px solid rgba(255, 255, 255, 0.1)
}

.main-header.transparent {
   background: rgba(0, 0, 0, 0.25);
   backdrop-filter: blur(15px);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05)
}

.main-header.transparent .logo-text,
.main-header.transparent .logo-text .brand-name {
   color: var(--white);
   text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3)
}

.main-header.transparent .logo-text .accent {
   color: var(--accent-light)
}

.main-header.transparent .main-nav a {
   color: rgba(255, 255, 255, 0.95);
   text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3)
}

.main-header.transparent .main-nav a:hover,
.main-header.transparent .main-nav a.active {
   color: var(--white)
}

.main-header.transparent .main-nav a::after {
   background: var(--white)
}

.main-header.transparent .lang-switcher a {
   color: rgba(255, 255, 255, 0.8)
}

.main-header.transparent .lang-switcher a.active {
   color: var(--accent-light)
}

.main-header.transparent .mobile-menu-toggle span {
   background: var(--white)
}

.logo-text {
   font-size: 1.6rem;
   font-weight: 700;
   color: var(--primary);
   display: flex;
   align-items: center;
   gap: 8px
}

.logo-text .brand-name {
   color: var(--primary)
}

.logo-text .accent {
   color: var(--secondary);
   font-style: italic
}

.main-nav ul {
   display: flex;
   gap: 36px;
   align-items: center
}

.main-nav a {
   font-weight: 600;
   font-size: .93rem;
   color: var(--text-dark);
   position: relative;
   padding: 4px 0;
   display: block
}

.main-nav a::after {
   content: '';
   position: absolute;
   bottom: -2px;
   left: 0;
   width: 0;
   height: 2px;
   background: var(--primary);
   transition: width .3s
}

.main-nav a:hover::after,
.main-nav a.active::after {
   width: 100%
}

.main-nav a:hover,
.main-nav a.active {
   color: var(--primary)
}

/* Dropdown Menus */
.main-nav .has-dropdown {
   position: relative;
}

.main-nav .has-dropdown>a::after {
   content: '▾';
   font-size: 0.8em;
   margin-left: 6px;
   display: inline-block;
   transition: transform 0.3s;
   background: transparent;
   width: auto;
   height: auto;
   position: static;
}

.main-nav .has-dropdown:hover>a::after {
   transform: rotate(180deg);
}

.main-nav .dropdown-menu {
   position: absolute;
   top: 100%;
   left: 0;
   background: var(--white);
   min-width: 200px;
   border-radius: var(--radius-sm);
   box-shadow: var(--shadow-md);
   padding: 10px 0;
   opacity: 0;
   visibility: hidden;
   transform: translateY(15px);
   transition: all 0.3s ease;
   display: flex;
   flex-direction: column;
   gap: 0;
   z-index: 1000;
}

.main-nav .has-dropdown:hover>.dropdown-menu {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
}

.main-nav .dropdown-menu li {
   width: 100%;
}

.main-nav .dropdown-menu a {
   padding: 10px 20px;
   font-size: 0.9rem;
   color: var(--text-mid);
   display: block;
}

.main-nav .dropdown-menu a::after {
   display: none;
   /* remove underline effect for dropdown links */
}

.main-nav .dropdown-menu a:hover,
.main-nav .dropdown-menu a.active {
   background: var(--bg-light);
   color: var(--primary);
}

/* Nested dropdowns (Submenu of submenu) */
.main-nav .dropdown-menu .has-dropdown>.dropdown-menu {
   top: 0;
   left: 100%;
   transform: translateX(15px);
}

.main-nav .dropdown-menu .has-dropdown:hover>.dropdown-menu {
   transform: translateX(0);
}

.header-actions {
   display: flex;
   align-items: center;
   gap: 20px
}

.lang-switcher {
   display: flex;
   gap: 8px;
   font-size: 0.85rem;
   font-weight: 700;
   letter-spacing: 0.05em
}

.lang-select {
   padding: 5px 10px;
   border: 1px solid var(--border);
   border-radius: 20px;
   background: var(--bg-light);
   font-family: inherit;
   font-size: 0.8rem;
   font-weight: 600;
   color: var(--text-dark);
   cursor: pointer;
   transition: var(--transition);
   outline: none;
}

.lang-select:hover {
   border-color: var(--primary);
   background: var(--white);
}

.lang-switcher a {
   transition: var(--transition);
   opacity: 0.8
}

.lang-switcher a:hover,
.lang-switcher a.active {
   opacity: 1;
   color: var(--secondary)
}

/* Hamburger */
.mobile-menu-toggle {
   display: none;
   flex-direction: column;
   gap: 5px;
   background: none;
   border: none;
   padding: 6px;
   cursor: pointer
}

.mobile-menu-toggle span {
   display: block;
   width: 24px;
   height: 2px;
   background: var(--text-dark);
   border-radius: 2px;
   transition: var(--transition)
}

.mobile-menu-toggle.open span:nth-child(1) {
   transform: translateY(7px) rotate(45deg)
}

.mobile-menu-toggle.open span:nth-child(2) {
   opacity: 0;
   transform: scaleX(0)
}

.mobile-menu-toggle.open span:nth-child(3) {
   transform: translateY(-7px) rotate(-45deg)
}

/* ─────────────────────────
   HERO
───────────────────────── */
.hero {
   top: -72px;
   position: relative;
   height: 100vh;
   min-height: 600px;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   overflow: hidden;
   color: var(--white)
}

.hero-bg {
   position: absolute;
   inset: 0;
   background-position: center;
   background-size: cover;
   background-repeat: no-repeat;
   background-color: #1a2e1a;
   transform: scale(1.05);
   animation: heroZoom 12s ease-in-out infinite alternate
}

.hero-bg.video-bg {
   background: none;
   animation: none;
   transform: none
}

.hero-carousel {
   position: absolute;
   inset: 0;
   z-index: 0;
}

.hero-slide {
   opacity: 0;
   transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
   opacity: 1;
}

.hero-bg iframe,
.hero-bg video {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 100vw;
   height: 56.25vw;
   min-height: 100vh;
   min-width: 177.77vh;
   transform: translate(-50%, -50%);
   pointer-events: none;
   object-fit: cover;
   z-index: -1
}

@keyframes heroZoom {
   from {
      transform: scale(1.05)
   }

   to {
      transform: scale(1)
   }
}

.hero-overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.4) 100%);
   z-index: 1;
}

.hero-content {
   position: relative;
   z-index: 2;
   max-width: 820px;
   padding: 0 20px
}

.hero-eyebrow {
   display: inline-block;
   font-size: .78rem;
   font-weight: 700;
   letter-spacing: .2em;
   text-transform: uppercase;
   color: var(--accent-light);
   margin-bottom: 20px;
   opacity: 0;
   animation: fadeUp .8s .2s forwards
}

.hero-content h1 {
   font-size: clamp(2.8rem, 7vw, 5rem);
   margin-bottom: 20px;
   text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
   opacity: 0;
   animation: fadeUp .9s .4s forwards
}

.hero-content p {
   font-size: clamp(1.1rem, 2.5vw, 1.4rem);
   margin-bottom: 36px;
   opacity: .9;
   opacity: 0;
   animation: fadeUp .9s .6s forwards
}

.hero-actions {
   display: flex;
   gap: 16px;
   justify-content: center;
   flex-wrap: wrap;
   opacity: 0;
   animation: fadeUp .9s .8s forwards
}

@keyframes fadeUp {
   from {
      opacity: 0;
      transform: translateY(24px)
   }

   to {
      opacity: 1;
      transform: translateY(0)
   }
}

.hero-scroll {
   position: absolute;
   bottom: 36px;
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 8px;
   color: rgba(255, 255, 255, .7);
   font-size: .78rem;
   letter-spacing: .1em
}

.hero-scroll span {
   display: block;
   width: 1px;
   height: 40px;
   background: rgba(255, 255, 255, .4);
   animation: scrollLine 1.5s ease-in-out infinite
}

@keyframes scrollLine {

   0%,
   100% {
      opacity: .3;
      transform: scaleY(1)
   }

   50% {
      opacity: 1;
      transform: scaleY(1.3)
   }
}

/* ─────────────────────────
   PACKAGE CARDS
───────────────────────── */
.package-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
   gap: 32px;
   margin-bottom: 60px
}

.package-card {
   background: var(--white);
   border-radius: var(--radius);
   overflow: hidden;
   box-shadow: var(--shadow-sm);
   transition: var(--transition);
   display: flex;
   flex-direction: column
}

.package-card:hover {
   transform: translateY(-8px);
   box-shadow: var(--shadow-lg)
}

.package-image {
   height: 240px;
   overflow: hidden;
   position: relative
}

.package-image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform .6s ease
}

.package-card:hover .package-image img {
   transform: scale(1.08)
}

.package-tag {
   position: absolute;
   top: 14px;
   left: 14px;
   background: var(--secondary);
   color: var(--white);
   padding: 5px 14px;
   border-radius: 20px;
   font-size: .75rem;
   font-weight: 700;
   letter-spacing: .05em;
   text-transform: uppercase
}

.package-info {
   padding: 24px;
   flex: 1;
   display: flex;
   flex-direction: column
}

.package-info h3 {
   font-size: 1.25rem;
   margin-bottom: 8px;
   color: var(--text-dark)
}

.package-meta {
   display: flex;
   gap: 16px;
   margin-bottom: 12px;
   color: var(--text-light);
   font-size: .85rem
}

.package-meta span {
   display: flex;
   align-items: center;
   gap: 4px
}

.package-info p {
   color: var(--text-mid);
   font-size: .93rem;
   flex: 1;
   margin-bottom: 20px
}

.package-footer {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-top: auto
}

.package-price {
   font-size: 1.5rem;
   font-weight: 700;
   color: var(--primary)
}

.package-price small {
   font-size: .78rem;
   font-weight: 400;
   color: var(--text-light)
}

/* ─────────────────────────
   EXPERIENCE CARDS
───────────────────────── */
.experience-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
   gap: 20px
}

.experience-card {
   position: relative;
   border-radius: var(--radius);
   overflow: hidden;
   aspect-ratio: 1;
   cursor: pointer
}

.experience-card img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform .5s ease
}

.experience-card:hover img {
   transform: scale(1.1)
}

.experience-overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(to top, rgba(0, 0, 0, .65) 0%, transparent 60%);
   display: flex;
   align-items: flex-end;
   padding: 16px
}

.experience-overlay h3 {
   color: var(--white);
   font-size: 1rem;
   font-weight: 600
}

/* ─────────────────────────
   REGION CARDS
───────────────────────── */
.region-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 24px
}

.region-card {
   position: relative;
   border-radius: var(--radius);
   overflow: hidden;
   height: 260px;
   cursor: pointer
}

.region-card img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform .6s ease
}

.region-card:hover img {
   transform: scale(1.08)
}

.region-overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(to top, rgba(10, 40, 10, .8) 0%, rgba(10, 40, 10, .1) 60%);
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   justify-content: flex-end;
   padding: 24px;
   transition: var(--transition)
}

.region-card:hover .region-overlay {
   background: linear-gradient(to top, rgba(10, 40, 10, .9) 0%, rgba(10, 40, 10, .2) 60%)
}

.region-overlay h3 {
   color: var(--white);
   font-size: 1.3rem;
   margin-bottom: 6px
}

.region-overlay p {
   color: rgba(255, 255, 255, .75);
   font-size: .85rem;
   line-height: 1.4
}

/* ─────────────────────────
   ABOUT SECTION
───────────────────────── */
.about-section {
   background: var(--bg-sand);
   padding: 90px 0
}

.about-image-wrap {
   position: relative
}

.about-image-wrap img {
   border-radius: var(--radius);
   box-shadow: var(--shadow-md)
}

.about-image-wrap::before {
   content: '';
   position: absolute;
   inset: -12px -12px 12px 12px;
   border: 3px solid var(--primary);
   border-radius: var(--radius);
   z-index: -1;
   opacity: .3
}

.about-text {
   padding-left: 48px;
   display: flex;
   flex-direction: column;
   justify-content: center
}

.about-text h2 {
   font-size: clamp(2rem, 3.5vw, 2.8rem);
   color: var(--primary);
   margin-bottom: 20px
}

.about-text p {
   color: var(--text-mid);
   font-size: 1.02rem;
   margin-bottom: 16px;
   line-height: 1.8
}

.about-stats {
   display: flex;
   gap: 32px;
   margin: 28px 0
}

.stat-item {
   text-align: center
}

.stat-number {
   font-family: 'Playfair Display', serif;
   font-size: 2rem;
   font-weight: 700;
   color: var(--primary)
}

.stat-label {
   font-size: .8rem;
   color: var(--text-light);
   text-transform: uppercase;
   letter-spacing: .08em
}

/* ─────────────────────────
   CTA BANNER
───────────────────────── */
.cta-banner {
   position: relative;
   padding: 90px 0;
   text-align: center;
   color: var(--white);
   overflow: hidden
}

.cta-banner::before {
   content: '';
   position: absolute;
   inset: 0;
   background: url('https://images.unsplash.com/photo-1518982217067-79a45a15ac30?auto=format&fit=crop&q=80&w=1600') center/cover;
   filter: brightness(.4)
}

.cta-banner-content {
   position: relative;
   z-index: 1
}

.cta-banner h2 {
   font-size: clamp(2rem, 4vw, 3rem);
   margin-bottom: 16px
}

.cta-banner p {
   font-size: 1.1rem;
   margin-bottom: 36px;
   opacity: .9;
   max-width: 540px;
   margin-left: auto;
   margin-right: auto
}

/* ─────────────────────────
   FOOTER
───────────────────────── */
.main-footer {
   background: #0f1f0f;
   color: rgba(255, 255, 255, .8);
   padding: 80px 0 36px
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1.2fr;
   gap: 50px;
   margin-bottom: 50px
}

.footer-logo {
   font-family: 'Playfair Display', serif;
   font-size: 1.7rem;
   color: var(--white);
   margin-bottom: 14px
}

.footer-logo span {
   color: var(--secondary)
}

.footer-desc {
   font-size: .9rem;
   line-height: 1.7;
   margin-bottom: 20px
}

.footer-social {
   display: flex;
   gap: 12px
}

.footer-social a {
   width: 36px;
   height: 36px;
   border-radius: 50%;
   background: rgba(255, 255, 255, .1);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: .8rem;
   font-weight: 700;
   transition: var(--transition)
}

.footer-social a:hover {
   background: var(--secondary);
   color: var(--white)
}

.footer-heading {
   font-family: 'Outfit', sans-serif;
   font-size: .8rem;
   font-weight: 700;
   letter-spacing: .12em;
   text-transform: uppercase;
   color: var(--accent-light);
   margin-bottom: 18px
}

.footer-links li {
   margin-bottom: 10px
}

.footer-links a {
   color: rgba(255, 255, 255, .65);
   font-size: .9rem;
   transition: var(--transition)
}

.footer-links a:hover {
   color: var(--white);
   padding-left: 4px
}

.footer-contact p {
   color: rgba(255, 255, 255, .65);
   font-size: .9rem;
   margin-bottom: 8px;
   display: flex;
   align-items: flex-start;
   gap: 8px
}

.footer-bottom {
   border-top: 1px solid rgba(255, 255, 255, .08);
   padding-top: 28px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-size: .82rem;
   color: rgba(255, 255, 255, .4)
}

/* ─────────────────────────
   MODAL
───────────────────────── */
.modal {
   display: none;
   position: fixed;
   inset: 0;
   z-index: 2000;
   background: rgba(0, 0, 0, .55);
   backdrop-filter: blur(6px);
   align-items: center;
   justify-content: center
}

.modal.active {
   display: flex
}

.modal-content {
   background: var(--white);
   border-radius: var(--radius);
   padding: 44px;
   width: 90%;
   max-width: 480px;
   position: relative;
   animation: modalIn .35s ease
}

@keyframes modalIn {
   from {
      opacity: 0;
      transform: scale(.9) translateY(20px)
   }

   to {
      opacity: 1;
      transform: scale(1) translateY(0)
   }
}

.modal-content h2 {
   font-size: 1.7rem;
   color: var(--primary);
   margin-bottom: 8px
}

.modal-content>p {
   color: var(--text-mid);
   margin-bottom: 28px;
   font-size: .93rem
}

.close-modal {
   position: absolute;
   right: 20px;
   top: 18px;
   font-size: 1.5rem;
   cursor: pointer;
   color: var(--text-light);
   line-height: 1;
   transition: var(--transition)
}

.close-modal:hover {
   color: var(--text-dark);
   transform: scale(1.2)
}

/* ─────────────────────────
   FORMS (public)
───────────────────────── */
.form-group {
   margin-bottom: 20px
}

.form-group label {
   display: block;
   margin-bottom: 6px;
   font-weight: 600;
   font-size: .9rem;
   color: var(--text-dark)
}

.form-group input,
.form-group select,
.form-group textarea {
   width: 100%;
   padding: 12px 16px;
   border: 1.5px solid #d8e4d8;
   border-radius: var(--radius-sm);
   font-family: inherit;
   font-size: .95rem;
   color: var(--text-dark);
   background: var(--white);
   transition: border-color .25s, box-shadow .25s
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(30, 92, 26, .1)
}

/* ─────────────────────────
   PAGE HEADER
───────────────────────── */
.page-header {
   min-height: 380px;
   display: flex;
   align-items: center;
   justify-content: center;
   background-color: #1e5c1a;
   /* default fallback — overridden inline per page */
   padding: 60px 20px !important;
   color: var(--white);
   text-align: center;
   position: relative;
   overflow: hidden;
   background-size: cover !important;
   background-position: center center !important;
}

.page-header .container {
   position: relative;
   z-index: 1;
}

.page-header h1 {
   font-size: clamp(2rem, 5vw, 3.5rem);
   margin-bottom: 12px;
   color: #fff;
   text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.page-header p {
   font-size: 1.1rem;
   opacity: .9;
   color: #fff;
   text-shadow: 0 1px 4px rgba(0,0,0,.3);
   max-width: 600px;
   margin: 0 auto;
}

/* ─────────────────────────
   FILTERS BAR
───────────────────────── */
.filters-bar {
   background: var(--bg-sand);
   border-bottom: 1px solid rgba(0, 0, 0, .06);
   padding: 24px 0
}

.filters-form {
   display: flex;
   gap: 16px;
   align-items: flex-end;
   flex-wrap: wrap
}

.filters-form .form-group {
   margin: 0;
   flex: 1;
   min-width: 160px
}

.filters-form .form-group label {
   font-size: .8rem
}

.filters-form .form-group input,
.filters-form .form-group select {
   padding: 10px 14px
}

.filter-actions {
   display: flex;
   gap: 10px
}

/* ─────────────────────────
   BOOKING SIDEBAR
───────────────────────── */
.booking-card {
   background: var(--bg-sand);
   border-radius: var(--radius);
   padding: 32px;
   position: sticky;
   top: 90px;
   border: 1px solid rgba(30, 92, 26, .1)
}

.booking-card h3 {
   font-size: .85rem;
   text-transform: uppercase;
   letter-spacing: .12em;
   color: var(--text-light);
   margin-bottom: 6px
}

.booking-price {
   font-size: 2.8rem;
   font-weight: 700;
   color: var(--primary);
   margin-bottom: 24px;
   font-family: 'Playfair Display', serif
}

.booking-meta li {
   display: flex;
   justify-content: space-between;
   padding: 10px 0;
   border-bottom: 1px solid rgba(0, 0, 0, .06);
   font-size: .92rem
}

.booking-meta li:last-child {
   border: none
}

.booking-meta li strong {
   color: var(--text-dark)
}

/* ─────────────────────────
   RESPONSIVE
───────────────────────── */
@media(max-width:1024px) {
   .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 36px
   }

   .region-grid {
      grid-template-columns: 1fr 1fr
   }

   .grid-3 {
      grid-template-columns: 1fr 1fr
   }
}

@media(max-width:768px) {

   .main-nav,
   .header-actions .btn-whatsapp {
      display: none
   }

   .mobile-menu-toggle {
      display: flex
   }

   .main-nav.mobile-open {
      display: flex;
      flex-direction: column;
      position: fixed;
      inset: 0;
      top: 72px;
      background: rgba(15, 31, 15, .97);
      padding: 40px 24px;
      gap: 0;
      z-index: 998;
      animation: slideDown .3s ease
   }

   .main-nav.mobile-open ul {
      flex-direction: column;
      gap: 0
   }

   .main-nav.mobile-open a {
      display: block;
      padding: 18px 0;
      font-size: 1.2rem;
      color: var(--white);
      border-bottom: 1px solid rgba(255, 255, 255, .1)
   }

   .main-nav.mobile-open a:hover {
      color: var(--accent-light)
   }

   /* Mobile Dropdowns */
   .main-nav.mobile-open .dropdown-menu {
      position: static;
      opacity: 1;
      visibility: visible;
      transform: none;
      background: transparent;
      box-shadow: none;
      padding-left: 20px;
      display: none;
   }

   .main-nav.mobile-open .has-dropdown:hover>.dropdown-menu {
      display: flex;
   }

   .main-nav.mobile-open .dropdown-menu a {
      font-size: 1rem;
      padding: 12px 0;
      border-bottom: none;
      color: rgba(255, 255, 255, 0.8);
   }

   @keyframes slideDown {
      from {
         opacity: 0;
         transform: translateY(-10px)
      }

      to {
         opacity: 1;
         transform: translateY(0)
      }
   }

   .grid-2,
   .grid-3,
   .grid-4 {
      grid-template-columns: 1fr
   }

   .region-grid {
      grid-template-columns: 1fr
   }

   .footer-grid {
      grid-template-columns: 1fr
   }

   .about-text {
      padding-left: 0;
      margin-top: 32px
   }

   .package-grid {
      grid-template-columns: 1fr
   }

   .hero-actions {
      flex-direction: column;
      align-items: center
   }

   .footer-bottom {
      flex-direction: column;
      gap: 10px;
      text-align: center
   }

   .experience-grid {
      grid-template-columns: repeat(2, 1fr)
   }
}

@media(max-width:480px) {
   .container {
      padding: 0 16px
   }

   .section-pad {
      padding: 60px 0
   }

   .experience-grid {
      grid-template-columns: repeat(2, 1fr)
   }

   .modal-content {
      padding: 28px
   }
}

/* ─────────────────────────
   THEME SETTINGS OVERRIDES
───────────────────────── */
/* Layout: Grid-4 */
.package-grid.grid-4 {
   grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Layout: List */
.package-grid.list {
   grid-template-columns: 1fr;
}

.package-grid.list .package-card {
   flex-direction: row;
   height: 260px;
}

.package-grid.list .package-image {
   width: 340px;
   height: 100%;
}

.package-grid.list .package-info {
   justify-content: center;
}

@media(max-width: 768px) {
   .package-grid.list .package-card {
      flex-direction: column;
      height: auto;
   }

   .package-grid.list .package-image {
      width: 100%;
      height: 240px;
   }
}

/* Dark Mode */
body.dark-mode {
   --bg-sand: #121212;
   --bg-light: #1e1e1e;
   --white: #1a1a1a;
   --text-dark: #f0f0f0;
   --text-mid: #cccccc;
   --text-light: #999999;
   --border: #333333;
   background: #121212;
   color: var(--text-dark);
}

body.dark-mode .main-header {
   background: rgba(18, 18, 18, 0.9);
   border-bottom: 1px solid #333;
}

body.dark-mode .package-card,
body.dark-mode .testimonial-card,
body.dark-mode .pkg-module,
body.dark-mode .post-card,
body.dark-mode .admin-card {
   background: var(--bg-light);
   border-color: #333;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .btn-white {
   background: #333;
   color: #fff;
   border-color: #333;
}

body.dark-mode .btn-white:hover {
   background: #555;
}

body.dark-mode .hero-overlay {
   background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 25%, rgba(0, 0, 0, 0.7) 100%);
}

body.dark-mode .tab-btn {
   background: #2a2a2a;
   color: #ccc;
}

body.dark-mode .tab-btn.active {
   background: var(--primary);
   color: #fff;
}