/* ============================================
   Amanpuri Travellers Lodge v2
   Mobile-First | 10/10 Design
   Desert Palette + Smooth Animations
   ============================================ */

/* --- CSS Variables --- */
:root {
  --sand: #f5e6d3;
  --sand-light: #faf3eb;
  --sand-dark: #e8d5bf;
  --terracotta: #c4704b;
  --terracotta-dark: #a85a38;
  --terracotta-light: #d4916f;
  --terracotta-glow: rgba(196,112,75,0.25);
  --navy: #1a2332;
  --navy-light: #2a3a4e;
  --charcoal: #333;
  --grey: #666;
  --grey-light: #999;
  --white: #fff;
  --off-white: #fdfbf8;
  /* Two-part shadows: ambient + direct (Refactoring UI p.186) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 8px 16px rgba(0,0,0,0.04), 0 20px 60px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover { color: var(--terracotta-dark); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.15;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--grey);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--terracotta);
  margin-bottom: 12px;
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: transparent;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo-link { display: flex; align-items: center; }

.logo {
  height: 48px;
  width: auto;
  transition: filter var(--transition);
}

/* Logo on transparent header - round pill bg for visibility */
.header:not(.scrolled) .logo-link {
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  padding: 4px 8px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--terracotta);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--terracotta-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--terracotta-glow);
}

.header-cta svg { flex-shrink: 0; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
  display: block;
  border-radius: 2px;
}

.header:not(.scrolled) .nav-toggle span {
  background: #fff;
}

.nav-toggle.active span { background: #fff; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26,35,50,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-overlay a {
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  padding: 14px 0;
  display: block;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}

.nav-overlay.active a {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.active a:nth-child(1) { transition-delay: 0.08s; }
.nav-overlay.active a:nth-child(2) { transition-delay: 0.14s; }
.nav-overlay.active a:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay.active a:nth-child(4) { transition-delay: 0.26s; }
.nav-overlay.active a:nth-child(5) { transition-delay: 0.32s; }
.nav-overlay.active a:nth-child(6) { transition-delay: 0.38s; }

.nav-overlay a:hover,
.nav-overlay a:active {
  color: var(--terracotta-light);
}

/* Desktop nav */
.nav-desktop {
  display: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

/* Hero cinematic entrance */
.hero-content .hero-badge {
  animation: heroFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}
.hero-content h1 {
  animation: heroFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}
.hero-content p {
  animation: heroFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}
.hero-content .hero-buttons {
  animation: heroFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(170deg, rgba(196,112,75,0.12) 0%, transparent 40%),
    linear-gradient(170deg, rgba(26,35,50,0.6) 0%, rgba(26,35,50,0.72) 35%, rgba(26,35,50,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 720px;
}

/* Hero text: use literal #fff, never var(--white) which dark mode redefines */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-badge svg { opacity: 0.8; }

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 4px 40px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
}

.hero p {
  color: rgba(255,255,255,0.95);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 4px 20px rgba(0,0,0,0.4);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.8);
  animation: heroScrollBounce 2s ease-in-out infinite;
  cursor: pointer;
}
.hero-scroll::before {
  content: 'Scroll';
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-align: center;
  opacity: 0.6;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta);
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  min-width: 200px;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--terracotta-glow);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 200px;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

/* --- Section Dividers --- */
.section-divider {
  margin-top: -1px;
  line-height: 0;
  position: relative;
  z-index: 3;
}
.section-divider svg {
  width: 100%;
  height: 40px;
  display: block;
}

/* --- Section Accent --- */
.section-accent {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light));
  margin: 0 auto 48px;
  border-radius: 3px;
}

/* --- Trust Strip --- */
.trust-strip {
  background: var(--white);
  padding: 24px 0;
  border-top: 3px solid var(--terracotta);
  position: relative;
  z-index: 4;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.trust-icon {
  width: 40px;
  height: 40px;
  background: var(--sand-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--terracotta);
}

.trust-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

/* --- Room Cards --- */
.rooms-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 20px;
  padding: 0 20px 20px;
  margin: 0 -20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rooms-scroll::-webkit-scrollbar { display: none; }

.room-card {
  flex: 0 0 85%;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--terracotta);
  position: relative;
}
.room-card::before {
  content: '';
  position: absolute;
  top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-15deg);
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1; pointer-events: none;
}
.room-card:hover::before { left: 125%; }

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

.room-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.room-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.room-card:hover .room-card-img {
  transform: scale(1.04);
}

.room-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(26,35,50,0.8);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.room-card-body {
  padding: 24px;
}

.room-card-name {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.room-card-desc {
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.room-card-amenities {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.room-amenity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--grey);
  font-weight: 500;
}

.room-amenity svg { color: var(--terracotta-light); flex-shrink: 0; }

.room-card-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--sand);
}

.room-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--terracotta);
  font-family: 'Inter', sans-serif;
}

.room-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--grey);
}

.room-card-footer .btn-sm {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 14px 24px;
  font-size: 0.9rem;
  min-height: 48px;
}

.rooms-note {
  text-align: center;
  color: var(--grey);
  font-size: 0.85rem;
  margin-top: 32px;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--terracotta);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn-sm:hover {
  background: var(--terracotta-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* --- Why Section --- */
.why-section {
  background: var(--sand-light);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.why-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--sand-light), var(--sand));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--terracotta);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}
.why-card:hover .why-icon {
  transform: scale(1.12) rotate(-3deg);
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: #fff;
  box-shadow: 0 8px 24px var(--terracotta-glow);
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- Activities Grid --- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.activity-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover .activity-card-img {
  transform: scale(1.04);
}

.activity-card-body {
  padding: 20px;
}

.activity-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.activity-card p {
  color: var(--grey);
  font-size: 0.85rem;
  line-height: 1.6;
}

.activities-cta {
  text-align: center;
  margin-top: 32px;
}

/* --- Gallery --- */
.gallery-section {
  background: var(--sand-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  grid-auto-rows: 180px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,35,50,0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* All gallery items same size for consistency */

/* --- About --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

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

.facilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.facility-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--charcoal);
  font-weight: 500;
}

.facility-item svg { flex-shrink: 0; }

/* --- Contact / Booking --- */
.contact-section {
  background: linear-gradient(180deg, var(--sand-light) 0%, var(--off-white) 100%);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  background: var(--sand-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--terracotta);
}

.contact-card-icon-wa {
  background: #dcf8c6;
  color: #25d366;
}

.contact-card-wa {
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.contact-card-wa:hover {
  border-color: #25d366;
}

.contact-card h4 {
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--navy);
}

.contact-card p,
.contact-card a {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.6;
}

.contact-directions { margin-top: 6px; }
.contact-directions a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Booking Form */
.booking-form-wrap {
  position: relative;
}

.booking-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  box-shadow: var(--shadow-lg);
}

.booking-form h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.booking-form > p {
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--off-white);
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px var(--terracotta-glow);
}

.form-group input.error,
.form-group select.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 4px rgba(231,76,60,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}

.form-submit:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--terracotta-glow);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* --- Map --- */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 40px;
}

.map-container iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--terracotta), var(--terracotta-light), var(--sand)) 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--terracotta-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

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

.footer-social a {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--terracotta);
  color: #fff;
  transform: translateY(-2px);
}

/* --- WhatsApp FAB --- */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waPulse 3s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.35); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,0.35), 0 0 0 12px rgba(37,211,102,0.1); }
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  color: #fff;
  animation: none;
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  font-weight: 500;
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), box-shadow var(--transition);
  z-index: 998;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  -webkit-tap-highlight-color: transparent;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Form Success --- */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  animation: successFadeIn 0.5s ease;
}

.form-success.show {
  display: block;
}

@keyframes successFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.form-success svg {
  margin: 0 auto 16px;
}

.form-success h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.form-success p {
  color: var(--grey);
  line-height: 1.7;
}

/* --- Loading / Lazy --- */
/* Doherty Threshold (Laws of UX): shimmer skeleton during image load */
.lazy {
  opacity: 0;
  transition: opacity 0.6s ease;
  background: linear-gradient(110deg, var(--sand-dark) 8%, var(--sand-light) 18%, var(--sand-dark) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.lazy.loaded {
  opacity: 1;
  animation: none;
  background: none;
}

/* --- Guest Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--terracotta);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-stars {
  color: var(--terracotta);
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.review-text {
  font-style: italic;
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.review-author {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.85rem;
}
.review-author span {
  font-weight: 400;
  color: var(--grey-light);
  margin-left: 4px;
}

/* --- Mobile Nav CTA --- */
.nav-overlay-cta {
  margin-top: 16px !important;
  background: var(--terracotta);
  padding: 14px 40px !important;
  border-radius: 50px;
  font-family: 'Inter', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Gallery click indicator --- */
.gallery-item::before {
  content: '+';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  z-index: 2;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 300;
  color: var(--navy);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  line-height: 44px; text-align: center;
}
.gallery-item:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --- Activity card counter --- */
.activities-grid { counter-reset: activity; }
.activity-card { counter-increment: activity; position: relative; }
.activity-card-body { position: relative; }
.activity-card-body::before {
  content: counter(activity, decimal-leading-zero);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem; font-weight: 700;
  color: var(--sand-dark);
  position: absolute;
  top: 10px; right: 12px;
  opacity: 0.4; line-height: 1;
}

/* --- Desert grain texture --- */
.why-section,
.gallery-section {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-color: var(--sand-light);
}

/* --- Form label focus --- */
.form-group label {
  transition: color 0.2s ease, transform 0.2s ease;
}
.form-group:focus-within label {
  color: var(--terracotta);
  transform: translateX(4px);
}

/* --- Lightbox crossfade --- */
.lightbox-img-wrap img {
  transition: opacity 0.15s ease;
  animation: lightboxFadeIn 0.3s ease;
}
@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Scrolled nav active color --- */
.header.scrolled .nav-desktop a.active {
  color: var(--terracotta);
}

/* ========================
   RESPONSIVE BREAKPOINTS
   ======================== */

/* Small mobile improvements */
@media (max-width: 599px) {
  .btn-primary, .btn-ghost { min-width: 160px; padding: 14px 24px; font-size: 0.9rem; }
  .section { padding: 56px 0; }
}

/* Tablet */
@media (min-width: 600px) {
  .hero h1 { font-size: 3.2rem; }
  .hero-buttons { flex-direction: row; }
  .trust-items { grid-template-columns: repeat(4, 1fr); }
  .rooms-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
    padding: 0;
    margin: 0;
  }
  .room-card { flex: none; max-width: none; }
  .room-card:last-child { grid-column: span 2; max-width: 380px; justify-self: center; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .activities-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 10px; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .section-divider svg { height: 60px; }
  .about-content { grid-template-columns: 1fr 1fr; align-items: center; }
  .about-img img { height: 100%; min-height: 400px; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .section-title { font-size: 2.4rem; }
  .map-container iframe { height: 350px; }
}

/* Desktop */
@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .nav-desktop a {
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
  }

  .header:not(.scrolled) .nav-desktop a {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  }

  .nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
    border-radius: 2px;
  }

  .nav-desktop a:hover::after,
  .nav-desktop a.active::after {
    transform: scaleX(1);
  }

  .hero h1 { font-size: 3.8rem; }
  .hero p { font-size: 1.1rem; max-width: 540px; margin-left: auto; margin-right: auto; }

  .rooms-scroll { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .room-card:last-child { grid-column: auto; max-width: none; justify-self: auto; }
  .room-card:nth-last-child(2),
  .room-card:last-child { grid-column: auto; }

  .activities-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
  .section { padding: 96px 0; }
  .section-title { font-size: 2.6rem; }
  .map-container iframe { height: 400px; }

  .booking-form { padding: 40px 36px; }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .rooms-scroll { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .room-card:last-child { grid-column: auto; justify-self: auto; }
  /* Center the last row of 2 cards */
  .rooms-scroll { justify-items: center; }
  .room-card { width: 100%; }
  .activities-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 12px; }
}

/* --- Dark Mode --- */
/* Dark mode removed: lodge site is warm sand/terracotta, always light.
   Ensures dev (dark mode laptop) sees exactly what guests see. */

/* --- Print --- */
@media print {
  .header, .whatsapp-fab, .scroll-top, .nav-overlay, .lightbox, .hero-scroll { display: none; }
  .hero { min-height: auto; padding: 40px 0; }
  .section { padding: 20px 0; }
  .rooms-scroll, .activities-grid { display: block; }
}
