@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Jost:wght@200;300;400;500;600&family=Cinzel:wght@400;500&display=swap');

:root {
  --terracotta:    #C2714F;
  --terracotta-dk: #A05A38;
  --terracotta-lt: #D9967A;
  --cream:         #F5EFE0;
  --cream-dk:      #EDE3CC;
  --parchment:     #F9F5EC;
  --olive:         #6B7A4E;
  --olive-dk:      #4E5A36;
  --stone:         #8C7B6B;
  --stone-lt:      #C4B5A5;
  --stone-dk:      #5A4A3A;
  --charcoal:      #2C2418;
  --gold:          #C9A84C;
  --gold-lt:       #E2C97E;
  --font-display:  'Cinzel', serif;
  --font-body:     'Cormorant Garamond', serif;
  --font-ui:       'Jost', sans-serif;
  --nav-h:         88px;
  --shadow:        0 4px 24px rgba(44,36,24,0.12);
  --shadow-lg:     0 12px 48px rgba(44,36,24,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--parchment);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: background 0.45s, box-shadow 0.45s, height 0.35s;
}
.nav.scrolled {
  background: rgba(249,245,236,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(44,36,24,0.13);
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  background: transparent;
}
.nav-logo img {
  height: 62px;
  width: auto;
  transition: height 0.35s;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.45));
  background: transparent;
  display: block;
}
.nav.scrolled .nav-logo img {
  height: 50px;
  filter: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold-lt);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--stone-dk); }
.nav.scrolled .nav-links a::after { background: var(--terracotta); }
.nav-book {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.52rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,0.65);
  color: white;
  border-radius: 2px;
  transition: all 0.3s;
  background: rgba(255,255,255,0.08);
}
.nav-book:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.nav.scrolled .nav-book { border-color: var(--terracotta); color: var(--terracotta); background: transparent; }
.nav.scrolled .nav-book:hover { background: var(--terracotta); color: white; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: white; transition: all 0.3s; }
.nav.scrolled .nav-toggle span { background: var(--charcoal); }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-sm { padding: 3.5rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 2.5rem; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.section-label {
  font-family: var(--font-ui);
  font-size: 0.63rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.section-title em { font-style: italic; color: var(--terracotta-dk); }
.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.12rem;
  color: var(--stone);
  font-weight: 300;
  max-width: 580px;
  line-height: 1.75;
}
.deco-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.deco-rule::before, .deco-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--stone-lt));
}
.deco-rule::after { background: linear-gradient(to left, transparent, var(--stone-lt)); }
.deco-rule span { color: var(--gold); font-size: 1rem; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.btn-primary { background: var(--terracotta); color: white; }
.btn-primary:hover { background: var(--terracotta-dk); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(194,113,79,0.38); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.4); }
.btn-outline { background: transparent; color: var(--terracotta); border: 1.5px solid var(--terracotta); }
.btn-outline:hover { background: var(--terracotta); color: white; }
.btn-light { background: rgba(255,255,255,0.12); color: white; border: 1.5px solid rgba(255,255,255,0.55); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,0.22); }

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.page-hero {
  position: relative;
  height: 54vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4.5rem;
  overflow: hidden;
}
.ph-bg { position: absolute; inset: 0; z-index: 0; }
.ph-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.ph-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,20,10,0.84) 0%, rgba(28,20,10,0.38) 55%, transparent 100%); }
.ph-content { position: relative; z-index: 2; }
.ph-title { font-family: var(--font-display); font-size: clamp(2.5rem,5vw,4.4rem); font-weight: 400; color: white; line-height: 1.1; }
.ph-title em { font-style: italic; color: var(--gold-lt); }
.ph-sub { font-family: var(--font-ui); font-size: 1rem; color: rgba(255,255,255,0.72); font-weight: 300; margin-top: 0.75rem; max-width: 560px; }

/* ── AMENITY TAGS ────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tags span {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.32rem 0.9rem;
  border-radius: 20px;
  background: var(--cream-dk);
  color: var(--stone-dk);
  border: 1px solid var(--stone-lt);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer { background: var(--charcoal); padding: 4.5rem 0 2rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}
.footer-logo { height: 80px; width: auto; margin-bottom: 1.25rem; background: transparent; display: block; }
.footer-brand p { font-family: var(--font-ui); font-size: 0.82rem; color: rgba(255,255,255,0.4); font-weight: 300; line-height: 1.8; max-width: 320px; }
.footer h4 { font-family: var(--font-display); font-size: 0.95rem; color: var(--gold-lt); margin-bottom: 1.25rem; letter-spacing: 0.05em; }
.footer ul li { margin-bottom: 0.55rem; }
.footer ul li a { font-family: var(--font-ui); font-size: 0.78rem; color: rgba(255,255,255,0.42); transition: color 0.3s; letter-spacing: 0.04em; }
.footer ul li a:hover { color: var(--terracotta-lt); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-family: var(--font-ui); font-size: 0.65rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.25); }

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.75s ease, transform 0.75s ease; pointer-events: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.12s; }
[data-reveal][data-delay="2"] { transition-delay: 0.22s; }
[data-reveal][data-delay="3"] { transition-delay: 0.34s; }
[data-reveal][data-delay="4"] { transition-delay: 0.46s; }
[data-reveal][data-delay="5"] { transition-delay: 0.58s; }
[data-reveal].revealed { opacity: 1; transform: none; pointer-events: auto; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .nav { padding: 0 1.5rem; }
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--parchment);
    padding: 1rem 0 2rem;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--cream-dk);
  }
  .nav-links.open a { color: var(--stone-dk); padding: 0.8rem 2rem; font-size: 0.75rem; width: 100%; }
  .nav-links.open a::after { display: none; }
  .nav-links.open .nav-book { margin: 0.5rem 2rem 0; border-color: var(--terracotta); color: var(--terracotta); text-align: center; display: block; background: transparent; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 600px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
}

/* ── Footer Instagram link ───────────────────────────────── */
.footer-insta {
  display:inline-flex; align-items:center; gap:0.5rem;
  margin-top:1rem; text-decoration:none;
  color:rgba(255,255,255,0.55);
  font-family:var(--font-ui); font-size:0.78rem; font-weight:400;
  transition:color 0.2s;
}
.footer-insta:hover { color:var(--gold-lt); }
.footer-insta svg { flex-shrink:0; }

/* ── Mobile Optimizations ────────────────────────────────────
   Touch targets, tap spacing, font legibility on small screens
   ──────────────────────────────────────────────────────────── */

/* Ensure all tappable elements meet 44px minimum touch target */
@media (max-width: 768px) {
  .btn, .nav-book, .fsp-action-btn, .pm-action,
  .cal-btn, .btn-submit, .luna-send, .luna-launcher {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Nav links — bigger tap targets on mobile */
  .nav-links a {
    padding: 0.75rem 0;
    display: block;
    font-size: 1rem;
  }

  /* Improve body font size for mobile readability */
  body { font-size: 16px; } /* Prevents iOS zoom on form focus */

  /* Form inputs — 16px prevents iOS auto-zoom */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Better card spacing on mobile */
  .section { padding: 3rem 0; }
  .section-sm { padding: 1.5rem 0; }
  .container { padding: 0 1.25rem; }

  /* Hero adjustments */
  .ph-title { font-size: clamp(1.8rem, 8vw, 3rem); }

  /* Distance banner — scrollable on mobile */
  .dbanner { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .dbanner::-webkit-scrollbar { display: none; }
  .db-item { flex-shrink: 0; padding: 1rem 1.25rem; }

  /* Footer columns stack */
  .footer-inner { flex-direction: column; gap: 2rem; }
}

@media (max-width: 480px) {
  /* Tighter container on very small screens */
  .container { padding: 0 1rem; }

  /* Section titles scale down more aggressively */
  .section-title { font-size: clamp(1.6rem, 7vw, 2.5rem); }

  /* Booking grid single column */
  .booking-grid { grid-template-columns: 1fr; }

  /* Calendar days — slightly larger tap targets */
  .cal-day { min-height: 40px; min-width: 40px; font-size: 0.85rem; }

  /* Stripe/payment buttons full width on mobile */
  #sidebarStripeBtn, .fsp-action-btn { width: 100%; text-align: center; }

  /* Chat widget positioning */
  #lunaChat .luna-window { width: calc(100vw - 2rem); right: 1rem; bottom: 5rem; }
}

/* Smooth scrolling for all anchor links */
html { scroll-behavior: smooth; }

/* Better tap highlight on mobile */
* { -webkit-tap-highlight-color: rgba(201, 168, 76, 0.15); }

/* ── WhatsApp Floating Button ────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: white;
  border-radius: 50px;
  padding: 0.65rem 1.1rem 0.65rem 0.85rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, padding 0.3s;
  white-space: nowrap;
  overflow: hidden;
  max-width: 220px;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  color: white;
}
.whatsapp-float svg { flex-shrink: 0; }
.whatsapp-float .wa-label { white-space: nowrap; }

/* On mobile — icon only */
@media (max-width: 480px) {
  .whatsapp-float {
    padding: 0.75rem;
    border-radius: 50%;
    max-width: none;
    bottom: 1rem;
    left: 1rem;
  }
  .whatsapp-float .wa-label { display: none; }
}

/* ── Nav Local Guide link ────────────────────────────────── */
.nav-links .nav-guide {
  color: var(--gold-lt) !important;
  font-size: 0.78rem;
  border: 1px solid rgba(201,168,76,0.35);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-links .nav-guide:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold-lt);
}
