/* ============================================================
   RESORT BOOKING UI — styles.css
   Design tokens, animations, and custom utilities
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Colors - Light Mode (Default) */
  --color-emerald:        #0f7551;
  --color-emerald-light:  #1a9068;
  --color-emerald-dark:   #0a5c3f;
  --color-emerald-bg:     #e8f5f0;
  --color-emerald-pale:   #f0faf6;
  --color-navy:           #0f172a;
  --color-navy-soft:      #1e293b;
  --color-slate:          #475569;
  --color-muted:          #94a3b8;
  --color-border:         #e2e8f0;
  --color-border-light:   #f1f5f9;
  --color-white:          #ffffff;
  --color-bg:             #ffffff;
  --color-surface:        #ffffff;
  --color-surface-elevated: #ffffff;
  --color-header-bg:      rgba(255, 255, 255, 0.95);
  --color-footer-bg:      #f8fafc;
  --color-input-bg:       #ffffff;
  --color-pill-bg:        rgba(255, 255, 255, 0.92);
  --color-card-border:    var(--color-border-light);
  --hero-gradient-overlay: linear-gradient(105deg, rgba(240,250,246,.96) 0%, rgba(232,245,240,.88) 28%, rgba(232,245,240,.55) 52%, transparent 72%);
  --color-gold:           #f59e0b;
  --color-orange:         #f97316;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;
  --space-3xl:  64px;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-2xl:  40px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px 0 rgba(0,0,0,.08), 0 1px 2px -1px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px 0 rgba(0,0,0,.10), 0 2px 6px -2px rgba(0,0,0,.08);
  --shadow-lg:  0 10px 36px -4px rgba(0,0,0,.14), 0 4px 14px -4px rgba(0,0,0,.08);
  --shadow-xl:  0 20px 60px -8px rgba(0,0,0,.18), 0 8px 24px -6px rgba(0,0,0,.10);

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Fixed / sticky header offset (matches .header-inner height) */
  --site-header-height: 68px;
}

/* ---------- Dark & Night Mode Tokens ---------- */
[data-theme="dark"] {
  --color-bg:               #0b1120;
  --color-surface:          #131d31;
  --color-surface-elevated: #1a263e;
  --color-header-bg:        rgba(11, 17, 32, 0.90);
  --color-footer-bg:        #070b14;
  --color-navy:             #f1f5f9;
  --color-navy-soft:        #e2e8f0;
  --color-slate:            #94a3b8;
  --color-muted:            #64748b;
  --color-border:           rgba(255, 255, 255, 0.09);
  --color-border-light:     rgba(255, 255, 255, 0.05);
  --color-card-border:      rgba(255, 255, 255, 0.08);
  --color-emerald-bg:       rgba(15, 117, 81, 0.28);
  --color-emerald-pale:     rgba(15, 117, 81, 0.16);
  --color-input-bg:         #0f172a;
  --color-pill-bg:          rgba(19, 29, 49, 0.88);
  --hero-gradient-overlay:  linear-gradient(105deg, rgba(11, 17, 32, 0.96) 0%, rgba(11, 17, 32, 0.88) 32%, rgba(11, 17, 32, 0.65) 55%, transparent 75%);
  --shadow-sm:              0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md:              0 4px 16px 0 rgba(0, 0, 0, 0.45);
  --shadow-lg:              0 10px 36px -4px rgba(0, 0, 0, 0.55);
  --shadow-xl:              0 20px 60px -8px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--site-header-height);
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-navy);
  line-height: 1.6;
  overflow-x: clip;
  padding-top: var(--site-header-height);
  -webkit-font-smoothing: antialiased;
}

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

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 64px 0; }

/* ---------- HEADER (fixed — stays visible while scrolling) ---------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 300;
  background: var(--color-header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 20px;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-navy);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-sm);
  margin-left: auto;
}
.btn-theme-toggle:hover {
  border-color: var(--color-emerald);
  color: var(--color-emerald);
  transform: rotate(15deg) scale(1.05);
}
.btn-theme-toggle:active {
  transform: scale(0.95);
}
.theme-icon-sun,
.theme-icon-moon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  position: absolute;
}
/* In Light Mode: Sun is hidden, Moon is visible (clicking switches to Night) */
.theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
  color: #f59e0b;
}
.theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
/* In Dark Mode: Moon is hidden, Sun is visible (clicking switches to Light) */
[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  flex-shrink: 0;
  line-height: 1.2;
}
.logo-mr {
  color: var(--color-emerald);
  margin-right: 5px;
}
.logo-studio {
  color: var(--color-navy);
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }

.nav-link {
  position: relative;
  padding: 6px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-slate);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: color var(--transition-base);
}
.nav-link:hover { color: var(--color-navy); }
.nav-link.active { color: var(--color-navy); font-weight: 600; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2.5px;
  background: var(--color-emerald);
  border-radius: 2px;
}

/* Login button */
.btn-login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--color-emerald);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-login:hover {
  background: var(--color-emerald-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15,117,81,.3);
}
.btn-login:active { transform: translateY(0); }
.btn-login svg { flex-shrink: 0; }

/* ---------- NOVA "N" TOGGLE & FADE-IN MOBILE NAV ---------- */
.btn-toggle-n {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(15, 117, 81, 0.25);
  background: var(--color-emerald-pale);
  cursor: pointer;
  margin-left: auto;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 4px rgba(15, 117, 81, 0.08);
}
.btn-toggle-n:hover {
  background: var(--color-emerald-bg);
  border-color: var(--color-emerald);
  transform: scale(1.05);
}
.btn-toggle-n:active {
  transform: scale(0.95);
}

.toggle-icon-n {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-emerald);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-icon-close {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-emerald);
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When active/open: "N" cross-fades into close "✕" */
.btn-toggle-n.active {
  background: #ffffff;
  border-color: var(--color-emerald);
  box-shadow: 0 2px 10px rgba(15, 117, 81, 0.2);
}
.btn-toggle-n.active .toggle-icon-n {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}
.btn-toggle-n.active .toggle-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Mobile Nav: PURE FADE-IN (no slide down, no height push) */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  /* Pure Fade: strictly NO translateY or height slide */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none !important;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: none !important;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 20px;
}

.mobile-nav .nav-link {
  font-size: 1rem;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: var(--color-navy);
  transition: background var(--transition-base), color var(--transition-base);
}
.mobile-nav .nav-link:hover,
.mobile-nav .nav-link:focus-visible {
  background: var(--color-emerald-pale);
  color: var(--color-emerald);
}
.mobile-nav .nav-link.active {
  background: var(--color-emerald-bg);
  color: var(--color-emerald);
}
.mobile-nav .nav-link.active::after {
  display: none;
}

.mobile-nav .btn-login {
  display: flex;
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  padding: 12px;
}

/* ---------- HERO ---------- */
.hero-section {
  padding: 28px 0 100px;
  background: var(--color-bg);
}

.hero-panel {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(240,250,246,.96) 0%,
    rgba(232,245,240,.88) 28%,
    rgba(232,245,240,.55) 52%,
    transparent 72%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 52px 60px;
  max-width: 520px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--color-navy);
}
.hero-title .accent { color: var(--color-emerald); }

.hero-subtitle {
  font-size: .975rem;
  color: var(--color-slate);
  line-height: 1.65;
  max-width: 360px;
  margin-bottom: 24px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,117,81,.18);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-navy);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.hero-pill svg { color: var(--color-emerald); }

/* ---------- SEARCH PANEL ---------- */
.search-panel-wrap {
  position: relative;
  z-index: 20;
  margin-top: -70px;
  padding-bottom: 0;
}

.search-panel {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-card-border);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  overflow: hidden;
}

.sp-col {
  padding: 24px 28px;
  position: relative;
}
.sp-col + .sp-col::before {
  content: '';
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 1px;
  background: var(--color-border);
}

.sp-col-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-emerald);
  margin-bottom: 14px;
}

/* Amenity tiles */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.amenity-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  background: var(--color-emerald-pale);
  border: 1px solid rgba(15,117,81,.1);
  font-size: .68rem;
  font-weight: 600;
  color: var(--color-slate);
  text-align: center;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  cursor: default;
}
.amenity-tile:hover { background: var(--color-emerald-bg); box-shadow: var(--shadow-sm); }
.amenity-tile svg { color: var(--color-emerald); }
.amenity-tile.orange svg { color: var(--color-orange); }

/* Date field */
.date-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}

.date-input-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-input-bg);
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-navy);
  cursor: pointer;
  transition: border-color var(--transition-base);
  text-align: left;
}
.date-input-btn:hover { border-color: var(--color-emerald); }
.date-input-btn svg { color: var(--color-emerald); flex-shrink: 0; }

.guest-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-input-bg);
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-navy);
  cursor: pointer;
  transition: border-color var(--transition-base);
  text-align: left;
  margin-top: 10px;
}
.guest-btn:hover { border-color: var(--color-emerald); }
.guest-btn svg { color: var(--color-slate); flex-shrink: 0; }

/* Destinations */
.dest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dest-header-title { font-size: .875rem; font-weight: 700; color: var(--color-navy); }
.dest-search-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--color-emerald);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-base);
}
.dest-search-btn:hover { background: var(--color-emerald-light); }

.dest-circles {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.dest-circle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.dest-circle-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.dest-circle:hover .dest-circle-img {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}
.dest-circle-label {
  font-size: .65rem;
  font-weight: 600;
  color: var(--color-slate);
  text-align: center;
  white-space: nowrap;
}

/* ---------- FEATURED STAYS ---------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-heading-wrap { position: relative; }
.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.section-underline {
  width: 36px;
  height: 3px;
  background: var(--color-emerald-bg);
  border-radius: 2px;
  position: relative;
}
.section-underline::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 100%;
  background: var(--color-emerald);
  border-radius: 2px;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-emerald);
  text-decoration: none;
  transition: gap var(--transition-base);
}
.view-all-link:hover { gap: 8px; }

/* Property Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.property-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-card-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
}
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .card-img-wrap img { transform: scale(1.06); }

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-emerald);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: .04em;
}

.card-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1.5px solid rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-fast);
  backdrop-filter: blur(4px);
}
.card-fav-btn:hover { background: #fff; transform: scale(1.1); }
.card-fav-btn.active svg { color: #ef4444; fill: #ef4444; }
.card-fav-btn svg { color: var(--color-slate); transition: color var(--transition-base); }

.card-body { padding: 18px 20px; }
.card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}
.card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: var(--color-muted);
  margin-bottom: 14px;
}
.card-location svg { color: var(--color-emerald); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .825rem;
  font-weight: 600;
  color: var(--color-navy);
}
.card-rating svg { color: var(--color-gold); fill: var(--color-gold); }
.card-price { font-size: 1rem; font-weight: 800; color: var(--color-navy); }
.card-price span { font-size: .75rem; font-weight: 400; color: var(--color-muted); }

/* ---------- RESORT EXPERIENCES ---------- */
.experiences-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
}

.exp-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.exp-feature:last-of-type { border-bottom: none; }

.exp-icon-wrap {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-emerald-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15,117,81,.12);
}
.exp-icon-wrap svg { color: var(--color-emerald); }

.exp-feature-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 2px;
}
.exp-feature-sub {
  font-size: .8rem;
  color: var(--color-muted);
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 24px;
  border: 1.5px solid var(--color-emerald);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-emerald);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base);
}
.btn-explore:hover {
  background: var(--color-emerald);
  color: #fff;
}

/* Gallery */
.gallery-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.gallery-main {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: opacity .4s ease;
}
.gallery-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background var(--transition-base), transform var(--transition-fast);
}
.gallery-play-btn:hover {
  background: rgba(255,255,255,.38);
  transform: translate(-50%,-50%) scale(1.08);
}

.gallery-thumbs {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
}
.gallery-thumb {
  flex: 1;
  height: 62px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.55);
  cursor: pointer;
  transition: border-color var(--transition-base), transform var(--transition-fast);
  overflow: hidden;
}
.gallery-thumb:hover { border-color: #fff; transform: scale(1.04); }
.gallery-thumb.active { border-color: var(--color-emerald); border-width: 2.5px; }

/* ---------- SUMMER ESCAPE OFFER ---------- */
.offer-banner {
  background: var(--color-emerald-pale);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(15,117,81,.1);
  position: relative;
}

.offer-photo {
  flex-shrink: 0;
  width: 240px;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  align-self: stretch;
}

.offer-content {
  flex: 1;
  padding: 36px 32px;
}
.offer-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-emerald);
  margin-bottom: 6px;
}
.offer-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.offer-subtitle {
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-emerald);
  margin-bottom: 4px;
}
.offer-note {
  font-size: .82rem;
  color: var(--color-slate);
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--color-emerald);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
}
.btn-primary:hover {
  background: var(--color-emerald-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15,117,81,.3);
}

/* Discount Card */
.discount-card {
  margin: 28px;
  flex-shrink: 0;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 24px 20px;
  text-align: center;
  min-width: 140px;
  border: 1px solid var(--color-card-border);
}
.discount-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-emerald-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.discount-icon-wrap svg { color: var(--color-emerald); }
.discount-pct {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-emerald);
  line-height: 1;
}
.discount-off {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-navy);
}
.discount-note {
  font-size: .72rem;
  color: var(--color-muted);
  margin-top: 4px;
}

/* ---------- TRUSTED BY ---------- */
.trusted-panel {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 40px 0;
}
.trusted-heading {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 32px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--color-border);
}
.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-emerald-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15,117,81,.1);
  margin-bottom: 2px;
}
.stat-icon-wrap svg { color: var(--color-emerald); }
.stat-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: .82rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* ---------- NEWSLETTER ---------- */
.newsletter-banner {
  background: var(--color-emerald-dark);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 52px;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.newsletter-banner::after {
  content: '🌴';
  position: absolute;
  right: 48px;
  bottom: -8px;
  font-size: 7rem;
  opacity: .08;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.newsletter-text {}
.newsletter-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}
.newsletter-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.newsletter-sub {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.newsletter-input {
  flex: 1;
  min-width: 220px;
  padding: 11px 18px;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .9rem;
  font-family: var(--font-family);
  outline: none;
  transition: border-color var(--transition-base);
}
.newsletter-input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-input:focus { border-color: rgba(255,255,255,.5); }

.btn-subscribe {
  padding: 11px 26px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-base), border-color var(--transition-base);
}
.btn-subscribe:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.4); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
}

.footer-main {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand-desc {
  font-size: .875rem;
  color: var(--color-slate);
  line-height: 1.7;
  margin: 12px 0 20px;
}

.social-icons {
  display: flex;
  gap: 8px;
}
.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate);
  text-decoration: none;
  transition: border-color var(--transition-base), color var(--transition-base), background var(--transition-base);
}
.social-btn:hover {
  border-color: var(--color-emerald);
  color: var(--color-emerald);
  background: var(--color-emerald-pale);
}

.footer-col-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .85rem;
  color: var(--color-slate);
  text-decoration: none;
  transition: color var(--transition-base);
}
.footer-links a:hover { color: var(--color-emerald); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem;
  color: var(--color-slate);
  margin-bottom: 10px;
}
.footer-contact-item svg { color: var(--color-emerald); flex-shrink: 0; margin-top: 1px; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy { font-size: .82rem; color: var(--color-muted); }
.footer-bottom-links {
  display: flex; gap: 20px;
}
.footer-bottom-links a {
  font-size: .82rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-base);
}
.footer-bottom-links a:hover { color: var(--color-emerald); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-emerald);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base), background var(--transition-base);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--color-emerald-light); }

/* ---------- MODALS ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,23,42,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-card-border);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(.97);
  transition: transform var(--transition-slow), background-color var(--transition-base), border-color var(--transition-base);
  position: relative;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-box-wide { max-width: 640px; }

.modal-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 1.2rem; font-weight: 800; color: var(--color-navy); }
.modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-slate);
  transition: background var(--transition-base), color var(--transition-base);
  flex-shrink: 0;
}
.modal-close:hover { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }
.modal-body { padding: 0 28px 28px; }

/* Form helpers */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-family: var(--font-family);
  color: var(--color-navy);
  background: var(--color-input-bg);
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.form-input:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(15,117,81,.1);
}
.form-input.error { border-color: #ef4444; }
.form-error-msg { font-size: .75rem; color: #ef4444; margin-top: 4px; display: none; }
.form-error-msg.show { display: block; }

.input-icon-wrap {
  position: relative;
}
.input-icon-wrap .form-input { padding-right: 40px; }
.input-icon-wrap .input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  padding: 0;
}
.input-icon-wrap .input-icon:hover { color: var(--color-navy); }

/* Booking price summary */
.price-summary {
  background: var(--color-emerald-pale);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  border: 1px solid rgba(15,117,81,.12);
}
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--color-slate);
  margin-bottom: 6px;
}
.price-row.total {
  font-weight: 700;
  color: var(--color-navy);
  font-size: .95rem;
  border-top: 1px solid rgba(15,117,81,.15);
  padding-top: 8px;
  margin-top: 4px;
}

/* Popover */
.popover {
  position: absolute;
  z-index: 50;
  background: var(--color-surface-elevated);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 20px;
  min-width: 240px;
  display: none;
}
.popover.open { display: block; }

/* Guest counter */
.counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.counter-row:last-child { margin-bottom: 0; }
.counter-label { font-size: .875rem; font-weight: 600; color: var(--color-navy); }
.counter-controls { display: flex; align-items: center; gap: 12px; }
.counter-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: background var(--transition-base), border-color var(--transition-base);
}
.counter-btn:hover { background: var(--color-emerald-pale); border-color: var(--color-emerald); }
.counter-val { font-size: .9rem; font-weight: 700; min-width: 20px; text-align: center; }

/* Video modal */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.video-container video,
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  border-radius: var(--radius-md);
}

/* Date picker custom */
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.dp-day-header {
  font-size: .7rem;
  font-weight: 600;
  color: var(--color-muted);
  padding: 4px 0;
}
.dp-day {
  font-size: .82rem;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.dp-day:hover { background: var(--color-emerald-bg); color: var(--color-emerald); }
.dp-day.selected { background: var(--color-emerald); color: #fff; font-weight: 700; }
.dp-day.in-range { background: var(--color-emerald-pale); }
.dp-day.disabled { color: var(--color-border); cursor: default; pointer-events: none; }
.dp-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dp-nav-btn {
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 4px 8px;
  color: var(--color-slate);
  transition: background var(--transition-base);
}
.dp-nav-btn:hover { background: var(--color-emerald-pale); color: var(--color-emerald); }
.dp-month-label { font-size: .875rem; font-weight: 700; color: var(--color-navy); }

/* Notification */
.toast {
  position: fixed;
  bottom: 90px;
  right: 32px;
  z-index: 300;
  background: var(--color-navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  max-width: 280px;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.toast.success { background: var(--color-emerald-dark); }
.toast.error   { background: #dc2626; }

/* Focus visible */
:focus-visible {
  outline: 2.5px solid var(--color-emerald);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ========== RESPONSIVE ========== */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}

@media (max-width: 1100px) {
  .cards-grid { gap: 18px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  :root { --site-header-height: 64px; }

  .main-nav, .header-inner > .btn-login { display: none; }
  .btn-toggle-n { display: flex; }
  .header-inner { height: 64px; }

  .hero-content { padding: 36px 32px; max-width: 100%; }

  .search-panel { grid-template-columns: 1fr; }
  .sp-col + .sp-col::before { display: none; }
  .sp-col { border-top: 1px solid var(--color-border); }
  .sp-col:first-child { border-top: none; }

  .amenity-grid { grid-template-columns: repeat(4, 1fr); }

  .cards-grid { grid-template-columns: 1fr 1fr; }

  .experiences-grid { grid-template-columns: 1fr; gap: 32px; }

  .offer-banner { flex-wrap: wrap; }
  .offer-photo { width: 100%; height: 220px; object-position: center top; }

  .newsletter-banner { flex-direction: column; padding: 36px 32px; text-align: center; }
  .newsletter-form { justify-content: center; width: 100%; }
}

@media (max-width: 640px) {
  :root { --site-header-height: 60px; }

  .container { padding: 0 16px; }
  .section-pad { padding: 44px 0; }

  /* Header */
  .header-inner { height: 60px; }
  .logo { font-size: 1.15rem; }
  .mobile-nav-inner { padding: 14px 16px 18px; }

  /* Hero */
  .hero-section { padding: 10px 0 54px; }
  .hero-panel {
    min-height: 420px;
    border-radius: 26px;
  }
  .hero-bg-img {
    object-position: 78% center;
  }
  .hero-gradient {
    background: linear-gradient(
      130deg,
      rgba(240,250,246,0.97) 0%,
      rgba(240,250,246,0.91) 48%,
      rgba(240,250,246,0.72) 78%,
      rgba(240,250,246,0.38) 100%
    );
  }
  .hero-content {
    padding: 32px 18px 36px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 6.8vw, 2.25rem);
    line-height: 1.14;
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 310px;
    margin-bottom: 18px;
  }
  .hero-pill {
    font-size: 0.78rem;
    padding: 6px 13px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Search Panel */
  .search-panel-wrap { margin-top: -36px; }
  .search-panel {
    border-radius: 22px;
    box-shadow: 0 8px 28px -4px rgba(0,0,0,0.12);
  }
  .sp-col { padding: 18px 16px; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .amenity-tile { padding: 10px 8px; font-size: 0.75rem; }
  .date-input-btn, .guest-btn { min-height: 44px; font-size: 0.86rem; }

  /* Popovers */
  .popover {
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    width: calc(100vw - 64px) !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Destinations */
  .dest-circles { gap: 8px; justify-content: space-between; }
  .dest-circle-img {
    width: clamp(44px, 12vw, 50px);
    height: clamp(44px, 12vw, 50px);
  }
  .dest-circle-label { font-size: 0.65rem; }

  /* Featured Stays */
  .section-header { margin-bottom: 22px; }
  .section-heading { font-size: 1.45rem; }
  .cards-grid { grid-template-columns: 1fr; gap: 20px; }
  .property-card { border-radius: 20px; }
  .card-img-wrap { height: 210px; }
  .card-fav-btn { width: 38px; height: 38px; }
  .card-body { padding: 16px 18px; }

  /* Experiences */
  .experiences-grid { gap: 28px; }
  .gallery-main {
    height: clamp(210px, 52vw, 320px);
    border-radius: 20px;
  }
  .gallery-thumbs {
    bottom: 8px;
    left: 8px;
    right: 8px;
    gap: 6px;
  }
  .gallery-thumb { height: 46px; border-radius: 8px; }
  .gallery-play-btn { width: 48px; height: 48px; }

  /* Summer Offer */
  .offer-banner { border-radius: 24px; }
  .offer-photo {
    height: 180px;
    width: 100%;
    object-position: center top;
  }
  .offer-content {
    padding: 22px 18px 16px;
    text-align: center;
  }
  .offer-title { font-size: 1.35rem; }
  .discount-card {
    width: calc(100% - 36px);
    max-width: 240px;
    margin: 0 auto 20px auto;
  }

  /* Trusted by Travelers */
  .trusted-panel { padding: 28px 16px; border-radius: 22px; }
  .trusted-heading { font-size: 1.3rem; margin-bottom: 22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item::before { display: none !important; }
  .stat-item:nth-child(2n)::before {
    display: block !important;
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--color-border);
  }
  .stat-item:nth-child(n+3) {
    border-top: 1px solid var(--color-border);
    padding-top: 18px;
    margin-top: 10px;
  }
  .stat-value { font-size: 1.45rem; }
  .stat-label { font-size: 0.78rem; }
  .stat-icon-wrap { width: 42px; height: 42px; }

  /* Newsletter */
  .newsletter-banner {
    padding: 28px 18px;
    border-radius: 22px;
  }
  .newsletter-banner::after { display: none; }
  .newsletter-title { font-size: 1.25rem; }
  .newsletter-form {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .newsletter-input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 11px 16px;
  }
  .btn-subscribe {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 36px 0 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom-links {
    justify-content: center;
    gap: 16px;
  }

  /* Modals */
  .modal-overlay { padding: 12px; }
  .modal-box {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
  }
  .modal-header { padding: 18px 20px 0; }
  .modal-body { padding: 0 20px 20px; }

  /* Back to top */
  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .logo { font-size: 1.02rem; }
}

@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .logo { font-size: 0.92rem; }
  .hero-content { padding: 24px 12px 28px; }
  .hero-title { font-size: 1.62rem; }
  .hero-pill { font-size: 0.72rem; padding: 5px 10px; }
  .sp-col { padding: 14px 12px; }
  .dest-circle-img { width: 38px; height: 38px; }
}

@media (hover: none) or (max-width: 768px) {
  #custom-cursor,
  #custom-cursor-ring {
    display: none !important;
  }
}


/* ══════════════════════════════════════════════════════════
   PREMIUM ANIMATIONS LAYER
   ══════════════════════════════════════════════════════════ */

/* ── Floating particle canvas ──────────────────────────── */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

/* ── Hero shimmer overlay (light sweep) ────────────────── */
.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,255,255,.06) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: hero-shimmer 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}
@keyframes hero-shimmer {
  0%   { background-position: 200% 0; }
  50%  { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Animated gradient border on cards ─────────────────── */
.property-card {
  position: relative;
  isolation: isolate;
}
.property-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: conic-gradient(
    from var(--card-angle, 0deg),
    transparent 0%,
    var(--color-emerald) 10%,
    transparent 20%,
    transparent 80%,
    #f59e0b 90%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity .4s ease;
  z-index: -1;
}
.property-card:hover::before {
  opacity: 1;
  animation: card-border-spin 3s linear infinite;
}
@keyframes card-border-spin {
  to { --card-angle: 360deg; }
}
@property --card-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* ── Card shine sweep on hover ─────────────────────────── */
.card-img-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,.22) 50%,
    transparent 70%
  );
  transform: skewX(-15deg);
  transition: left .0s;
  pointer-events: none;
}
.property-card:hover .card-img-wrap::after {
  left: 125%;
  transition: left .65s ease;
}

/* ── Glowing btn-primary pulse ring ───────────────────── */
.btn-primary {
  position: relative;
  overflow: visible;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--color-emerald);
  opacity: 0;
  z-index: -1;
  transition: opacity .3s ease;
  filter: blur(10px);
}
.btn-primary:hover::after { opacity: .45; }

/* ── Clip-path reveal wipe (added via JS .clip-reveal) ── */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path .9s cubic-bezier(.77,0,.175,1);
}
.clip-reveal.revealed {
  clip-path: inset(0 0% 0 0);
}

/* ── Section heading gradient underline ────────────────── */
.section-underline {
  background: linear-gradient(90deg, var(--color-emerald), #34d399, var(--color-emerald));
  background-size: 200% 100%;
  animation: underline-flow 4s linear infinite;
}
@keyframes underline-flow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
.section-underline::before { display: none; }

/* ── Floating badge on cards ───────────────────────────── */
.card-badge {
  animation: badge-float 3s ease-in-out infinite;
  transform-origin: center;
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-3px); }
}

/* ── Stat item ambient glow on hover ───────────────────── */
.stat-item:hover .stat-icon-wrap {
  box-shadow: 0 0 0 8px rgba(15,117,81,.08), 0 0 24px rgba(15,117,81,.18);
  background: var(--color-emerald-bg);
  transition: box-shadow .3s ease, background .3s ease;
}

/* ── Animated mesh gradient — newsletter ───────────────── */
.newsletter-banner {
  background: var(--color-emerald-dark);
  position: relative;
  overflow: hidden;
}
.newsletter-banner::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,.18) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: mesh-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes mesh-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-80px, 60px) scale(1.3); }
}

/* ── Custom cursor ─────────────────────────────────────── */
#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-emerald);
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background .25s ease, opacity .25s ease;
  will-change: transform;
}
#custom-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-emerald);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  opacity: .5;
  transition: width .4s ease, height .4s ease, opacity .4s ease, border-color .3s ease;
  will-change: transform;
}
body:has(.property-card:hover) #custom-cursor,
body:has(.btn-primary:hover) #custom-cursor,
body:has(.btn-login:hover) #custom-cursor {
  width: 48px; height: 48px;
  background: rgba(15,117,81,.15);
}
body:has(.property-card:hover) #custom-cursor-ring,
body:has(.btn-primary:hover) #custom-cursor-ring,
body:has(.btn-login:hover) #custom-cursor-ring {
  width: 64px; height: 64px;
  opacity: .3;
}

/* ── Offer photo parallax frame ────────────────────────── */
.offer-photo {
  transition: transform .6s ease;
  will-change: transform;
}
.offer-banner:hover .offer-photo {
  transform: scale(1.04) translateY(-4px);
}

/* ── Destination circle ripple on hover ───────────────── */
.dest-circle-img {
  position: relative;
}
.dest-circle:hover .dest-circle-img {
  box-shadow: 0 0 0 4px rgba(15,117,81,.2), 0 0 0 8px rgba(15,117,81,.08);
}

/* ── Experience icon continuous rotate on hover ────────── */
.exp-feature:hover .exp-icon-wrap svg {
  animation: icon-spin-once .5s ease forwards;
}
@keyframes icon-spin-once {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ── Footer social icon hover glow ────────────────────── */
.social-btn:hover {
  box-shadow: 0 0 14px rgba(15,117,81,.3);
}

/* ── Scroll-reveal fade-up utility (CSS fallback) ──────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero location pill animated border ────────────────── */
.hero-pill {
  background: rgba(255,255,255,.92);
  animation: pill-glow 3s ease-in-out infinite;
}
@keyframes pill-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15,117,81,.0), var(--shadow-sm); }
  50%       { box-shadow: 0 0 0 5px rgba(15,117,81,.12), var(--shadow-sm); }
}

/* ── Discount card coin spin on hover ──────────────────── */
.discount-card:hover .discount-pct {
  animation: coin-flip .5s ease;
}
@keyframes coin-flip {
  0%   { transform: rotateY(0deg); }
  50%  { transform: rotateY(90deg); }
  100% { transform: rotateY(0deg); }
}

/* ── Gallery main image clip-path reveal ───────────────── */
#gallery-main-img {
  clip-path: inset(0 0 0 0 round 20px);
}

/* ── Back-to-top button spin on hover ──────────────────── */
.back-to-top:hover svg {
  animation: arrow-bounce .4s ease;
}
@keyframes arrow-bounce {
  0%,100% { transform: translateY(0); }
  40%      { transform: translateY(-5px); }
  70%      { transform: translateY(-2px); }
}

/* ── Amenity tile icon wiggle ──────────────────────────── */
.amenity-tile:hover svg {
  animation: wiggle .35s ease;
}
@keyframes wiggle {
  0%,100% { transform: rotate(0deg); }
  25%     { transform: rotate(-10deg); }
  75%     { transform: rotate(10deg); }
}

/* ── Progress bar gradient animation ───────────────────── */
#scroll-progress {
  background: linear-gradient(90deg,
    var(--color-emerald),
    #34d399,
    var(--color-emerald-light)
  ) !important;
  background-size: 200% 100% !important;
  animation: progress-flow 2s linear infinite;
}
@keyframes progress-flow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}


/* ══════════════════════════════════════════════════════════
   DARK & NIGHT MODE SPECIALIZED OVERRIDES
   ══════════════════════════════════════════════════════════ */
html, body, #site-header, .search-panel, .property-card, .discount-card,
.trusted-panel, .site-footer, .modal-box, .popover, .mobile-nav,
.hero-gradient, .amenity-tile, .date-input-btn, .guest-btn, .form-input,
.btn-theme-toggle, .stat-icon-wrap, .discount-icon-wrap, .price-summary,
.btn-toggle-n, .social-btn, .card-fav-btn {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Hero night gradient overlay */
[data-theme="dark"] .hero-gradient {
  background: linear-gradient(
    105deg,
    rgba(11, 17, 32, 0.96) 0%,
    rgba(11, 17, 32, 0.88) 32%,
    rgba(11, 17, 32, 0.65) 55%,
    transparent 75%
  ) !important;
}

@media (max-width: 640px) {
  [data-theme="dark"] .hero-gradient {
    background: linear-gradient(
      130deg,
      rgba(11, 17, 32, 0.97) 0%,
      rgba(11, 17, 32, 0.92) 50%,
      rgba(11, 17, 32, 0.75) 80%,
      rgba(11, 17, 32, 0.42) 100%
    ) !important;
  }
}

/* Hero location pill */
[data-theme="dark"] .hero-pill {
  background: rgba(19, 29, 49, 0.88);
  border-color: rgba(15, 117, 81, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  color: var(--color-navy);
}
[data-theme="dark"] .hero-pill svg {
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.6));
}

/* Search panel on dark */
[data-theme="dark"] .search-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 20px 60px -8px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .sp-col + .sp-col::before {
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .amenity-tile {
  background: rgba(15, 117, 81, 0.15);
  border-color: rgba(15, 117, 81, 0.25);
  color: #cbd5e1;
}
[data-theme="dark"] .amenity-tile:hover {
  background: rgba(15, 117, 81, 0.28);
}
[data-theme="dark"] .dest-circle-img {
  border-color: #1a263e;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* Cards in dark mode */
[data-theme="dark"] .property-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .property-card:hover {
  box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.7);
  border-color: rgba(15, 117, 81, 0.45);
}
[data-theme="dark"] .card-fav-btn {
  background: rgba(19, 29, 49, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .card-fav-btn:hover {
  background: #1a263e;
  border-color: rgba(255, 255, 255, 0.25);
}
[data-theme="dark"] .card-location {
  color: #94a3b8;
}

/* Experience features */
[data-theme="dark"] .exp-icon-wrap {
  background: rgba(15, 117, 81, 0.2);
  border-color: rgba(15, 117, 81, 0.35);
}
[data-theme="dark"] .btn-explore {
  background: rgba(15, 117, 81, 0.14);
  border-color: rgba(15, 117, 81, 0.3);
  color: #34d399;
}
[data-theme="dark"] .btn-explore:hover {
  background: rgba(15, 117, 81, 0.28);
  border-color: var(--color-emerald);
}

/* Summer Escape Offer */
[data-theme="dark"] .offer-banner {
  background: linear-gradient(135deg, #0a2319 0%, #061711 100%);
  border-color: rgba(15, 117, 81, 0.3);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .discount-card {
  background: #131d31;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Trusted panel */
[data-theme="dark"] .trusted-panel {
  background: #131d31;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .stat-item + .stat-item::before {
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .stat-icon-wrap {
  background: rgba(15, 117, 81, 0.2);
  border-color: rgba(15, 117, 81, 0.3);
}

/* Footer */
[data-theme="dark"] .site-footer {
  background: #070b14;
  border-top-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .social-btn {
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}
[data-theme="dark"] .social-btn:hover {
  background: rgba(15, 117, 81, 0.22);
  border-color: var(--color-emerald);
  color: #34d399;
}
[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.07);
}

/* Modals */
[data-theme="dark"] .modal-overlay {
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(8px);
}
[data-theme="dark"] .modal-box {
  background: #131d31;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 64px -8px rgba(0, 0, 0, 0.85);
}
[data-theme="dark"] .modal-close {
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}
[data-theme="dark"] .modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}
[data-theme="dark"] .form-input {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}
[data-theme="dark"] .form-input:focus {
  border-color: var(--color-emerald-light);
  box-shadow: 0 0 0 3px rgba(15, 117, 81, 0.25);
}
[data-theme="dark"] .price-summary {
  background: rgba(15, 117, 81, 0.14);
  border-color: rgba(15, 117, 81, 0.24);
}
[data-theme="dark"] .price-row {
  color: #cbd5e1;
}
[data-theme="dark"] .price-row.total {
  border-top-color: rgba(15, 117, 81, 0.3);
}

/* Popovers */
[data-theme="dark"] .popover {
  background: #1a263e;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .counter-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: #131d31;
  color: #f1f5f9;
}
[data-theme="dark"] .counter-btn:hover {
  background: rgba(15, 117, 81, 0.25);
  border-color: var(--color-emerald);
}
[data-theme="dark"] .dp-day:hover {
  background: rgba(15, 117, 81, 0.3);
  color: #34d399;
}
[data-theme="dark"] .dp-day.in-range {
  background: rgba(15, 117, 81, 0.2);
  color: #f1f5f9;
}
[data-theme="dark"] .dp-day.disabled {
  color: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .dp-nav-btn {
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}
[data-theme="dark"] .dp-nav-btn:hover {
  background: rgba(15, 117, 81, 0.25);
  color: #34d399;
}

/* Mobile nav overlay */
[data-theme="dark"] .mobile-nav {
  background: rgba(11, 17, 32, 0.98);
  border-top-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .mobile-nav .nav-link:hover,
[data-theme="dark"] .mobile-nav .nav-link:focus-visible {
  background: rgba(15, 117, 81, 0.2);
  color: #34d399;
}
[data-theme="dark"] .mobile-nav .nav-link.active {
  background: rgba(15, 117, 81, 0.28);
  color: #34d399;
}

/* N toggle button in dark */
[data-theme="dark"] .btn-toggle-n {
  background: rgba(15, 117, 81, 0.2);
  border-color: rgba(15, 117, 81, 0.35);
}
[data-theme="dark"] .btn-toggle-n.active {
  background: #1a263e;
  border-color: var(--color-emerald-light);
}

/* Custom cursor in dark */
[data-theme="dark"] #custom-cursor {
  mix-blend-mode: screen;
  background: #34d399;
}
[data-theme="dark"] #custom-cursor-ring {
  border-color: #34d399;
  opacity: 0.65;
}
