/* ==========================================================================
   BnB Template — style.css
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Design Tokens ---------- */
:root {
  --white:   #ffffff;
  --black:   #0d0d0d;
  --text:    #1c1c1c;
  --muted:   #6b6b6b;
  --border:  #e8e8e8;
  --off-bg:  #f8f7f5;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --hdr: 68px;

  --s1: 1rem;
  --s2: 2rem;
  --s3: 3.5rem;
  --s4: 5rem;
  --s5: 8rem;

  --ease:     cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

/* ---------- Scroll-reveal ---------- */
.js-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.js-fade-in.is-visible  { opacity: 1; transform: none; }
.js-fade-in.delay-1     { transition-delay: 0.15s; }
.js-fade-in.delay-2     { transition-delay: 0.30s; }
.js-fade-in.delay-3     { transition-delay: 0.45s; }
.js-fade-in.from-left   { transform: translateX(-40px); }
.js-fade-in.from-right  { transform: translateX(40px); }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

p { color: var(--muted); line-height: 1.8; }

.section-title {
  text-align: center;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.section-title.left-align { text-align: left; }

/* Italic editorial accent lines */
.accent-line {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: var(--s3);
  color: rgba(255,255,255,0.65);
}
.accent-line--dark   { color: var(--muted); }
.accent-line--light  { color: rgba(255,255,255,0.55); }
.accent-line--left   { text-align: left; }

/* ---------- Layout Helpers ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s2);
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hdr);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
  border-bottom-color: transparent;
}
.header-container {
  height: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.06em;
}
.nav {
  display: flex;
  gap: var(--s3);
  align-items: center;
}
.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--muted); }
.cta-nav {
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--text);
  transition: background 0.2s, color 0.2s;
}
.cta-nav:hover { background: var(--text); color: var(--white); }

/* ---------- HERO ---------- */
.hero {
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black) center/cover no-repeat;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: var(--s2);
  max-width: 900px;
}
.hero .accent-line { margin-bottom: var(--s1); }
.hero-title {
  color: var(--white);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 28px rgba(0,0,0,0.2);
}
.hero-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--s3);
  font-family: var(--sans);
}
.cta-button {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border: 1px solid rgba(255,255,255,0.75);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s;
}
.cta-button:hover { background: rgba(255,255,255,0.14); }
.cta-button--dark {
  border-color: var(--text);
  color: var(--text);
}
.cta-button--dark:hover { background: var(--text); color: var(--white); }

/* ---------- ABOUT — SPLIT ---------- */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.split-text {
  display: flex;
  align-items: center;
  /* align inner content with the container's left edge */
  padding: var(--s5) var(--s4) var(--s5)
    max(var(--s2), calc((100vw - 1160px) / 2 + var(--s2)));
  background: var(--white);
}
.split-text-inner { max-width: 520px; }
.split-text .section-title { margin-bottom: 0.4rem; }
.split-text .accent-line   { margin-bottom: var(--s2); }
.about-description {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: var(--s3);
  color: var(--muted);
}
.property-details {
  display: flex;
  gap: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.detail-item  { display: flex; flex-direction: column; gap: 0.3rem; }
.detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.detail-value {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--text);
}
.split-image { overflow: hidden; }
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.split-image:hover img { transform: scale(1.04); }

/* Right-column text — mirrors the about section's left alignment on the right side */
.split-text--right {
  padding: var(--s5) max(var(--s2), calc((100vw - 1160px) / 2 + var(--s2))) var(--s5) var(--s4);
}

/* ---------- STORY ---------- */
.story                { background: var(--off-bg); }
.story .split-text    { background: var(--off-bg); }

/* ---------- AMENITIES ---------- */
.amenities {
  padding: var(--s4) 0;
  background: var(--off-bg);
}
.amenities .section-title { margin-bottom: var(--s2); }
.amenities-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
}
.chip {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  border-radius: 100px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  cursor: default;
  white-space: nowrap;
}
.chip:hover { border-color: var(--text); background: var(--text); color: var(--white); }

/* Chip stagger — children reveal sequentially when container enters view */
.js-stagger .chip {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.js-stagger.is-visible .chip              { opacity: 1; transform: none; }
.js-stagger.is-visible .chip:nth-child(1)  { transition-delay: 0.00s; }
.js-stagger.is-visible .chip:nth-child(2)  { transition-delay: 0.04s; }
.js-stagger.is-visible .chip:nth-child(3)  { transition-delay: 0.08s; }
.js-stagger.is-visible .chip:nth-child(4)  { transition-delay: 0.12s; }
.js-stagger.is-visible .chip:nth-child(5)  { transition-delay: 0.16s; }
.js-stagger.is-visible .chip:nth-child(6)  { transition-delay: 0.20s; }
.js-stagger.is-visible .chip:nth-child(7)  { transition-delay: 0.24s; }
.js-stagger.is-visible .chip:nth-child(8)  { transition-delay: 0.28s; }
.js-stagger.is-visible .chip:nth-child(9)  { transition-delay: 0.32s; }
.js-stagger.is-visible .chip:nth-child(10) { transition-delay: 0.36s; }
.js-stagger.is-visible .chip:nth-child(11) { transition-delay: 0.40s; }
.js-stagger.is-visible .chip:nth-child(12) { transition-delay: 0.44s; }

/* ---------- GALLERY SLIDER ---------- */
.gallery {
  padding: var(--s4) 0 var(--s2);
  background: var(--white);
  overflow: hidden;
}
.gallery .container { margin-bottom: var(--s2); }

.slider-wrapper {
  overflow: hidden;
  padding: 0 var(--s2);
  cursor: grab;
  user-select: none;
}
.slider-wrapper:active { cursor: grabbing; }

.slider-track {
  display: flex;
  gap: 1.1rem;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

.slider-item {
  flex: 0 0 calc(33.333% - 0.75rem);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--off-bg);
}
.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.65s var(--ease);
}
.slider-item:hover img { transform: scale(1.05); }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--s2) 0 var(--s1);
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.dot.active, .dot:hover { background: var(--text); transform: scale(1.4); }

/* ---------- LOCATION ---------- */
.location {
  padding: var(--s4) 0;
  background: var(--white);
}
.location .section-title { margin-bottom: 0.4rem; }

.map-container {
  height: 420px;
  background: var(--off-bg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* ---------- REVIEWS ---------- */
.reviews {
  position: relative;
  padding: var(--s5) 0;
  background: var(--black) center/cover no-repeat;
  overflow: hidden;
}
.reviews-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
.reviews-content { position: relative; z-index: 1; }
.reviews-heading {
  color: var(--white);
  text-align: center;
  margin-bottom: var(--s3);
}
.reviews-stage {
  position: relative;
  min-height: 280px;
}
.review-card {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  pointer-events: none;
}
.review-card.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.review-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s2);
  flex-shrink: 0;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-initials {
  color: rgba(255,255,255,0.6);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
}
.review-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.88);
  max-width: 700px;
  margin: 0 auto var(--s1);
  line-height: 1.65;
}
.review-author {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--s2);
}

/* ---------- BOOKING ---------- */
.booking {
  padding: var(--s4) 0 var(--s5);
  background: var(--off-bg);
  text-align: center;
}
.booking .accent-line   { margin-bottom: 0.5rem; }
.booking .section-title { margin-bottom: var(--s3); }

/* Two-column grid: availability calendar left, booking engine right */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  align-items: start;
  text-align: left;
  margin-bottom: var(--s3);
}
.booking-calendar,
.booking-engine { min-height: 200px; }

/* Minimal WhatsApp footnote */
.booking-whatsapp-line {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: var(--s2);
  font-weight: 400;
}
.booking-whatsapp-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 400;
  transition: color 0.2s;
}
.booking-whatsapp-link:hover { color: var(--text); }

/* ---------- CONSENT MODAL ---------- */
#consent-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(13,13,13,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s2);
}
.consent-card {
  background: var(--white);
  max-width: 460px;
  width: 100%;
  padding: var(--s4) var(--s3);
  text-align: center;
}
.consent-prop-name {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.consent-heading {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 var(--s1);
}
.consent-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 var(--s2);
}
.consent-policy-line { margin: 0 0 var(--s3); }
.consent-policy-link {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.consent-policy-link:hover { color: var(--text); }
.consent-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  border: 1px solid;
  background: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.consent-btn--accept {
  background: var(--text);
  border-color: var(--text);
  color: var(--white);
  margin-bottom: 0.75rem;
}
.consent-btn--accept:hover  { background: var(--black); border-color: var(--black); }
.consent-btn--decline       { border-color: var(--border); color: var(--muted); }
.consent-btn--decline:hover { border-color: var(--muted); color: var(--text); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: var(--s4) 0 var(--s2);
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s3);
  padding-bottom: var(--s3);
  margin-bottom: var(--s2);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-section h3 {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: var(--s1);
}
.footer-section h4 { color: rgba(255,255,255,0.3); margin-bottom: var(--s1); }
.footer-section p,
.footer-section a  { color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 2.2; }
.footer-section a:hover { color: var(--white); }
.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.78rem;
}

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

@media (max-width: 900px) {
  /* About split stacks */
  .section-split {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .split-text {
    padding: var(--s4) var(--s2);
  }
  .split-image {
    height: 380px;
    order: -1;
  }
  /* Gallery: 2 items visible */
  .slider-item { flex: 0 0 calc(50% - 0.55rem); }
  /* Story text column — use symmetric padding when stacked */
  .split-text--right { padding: var(--s4) var(--s2); }
  /* Booking grid stacks vertically */
  .booking-grid { grid-template-columns: 1fr; }
  /* Location */
  .map-container { height: 300px; }
  /* Footer */
  .footer-content { grid-template-columns: 1fr 1fr; }
  /* Consent card padding tightens on mobile */
  .consent-card { padding: var(--s3) var(--s2); }
}

@media (max-width: 600px) {
  :root { --s3: 2.5rem; --s4: 3.5rem; --s5: 5rem; }
  /* Nav hidden on mobile (burger menu future phase) */
  .nav { display: none; }
  /* Hero shorter */
  .hero { min-height: 480px; }
  /* Gallery: 1.1 items visible (peek) */
  .slider-item { flex: 0 0 88%; }
  /* Split image */
  .split-image { height: 260px; }
  /* Footer */
  .footer-content { grid-template-columns: 1fr; }
  /* Property details */
  .property-details { flex-direction: column; gap: var(--s1); }
  /* Reviews stage min-height */
  .reviews-stage { min-height: 320px; }
  /* Location */
  .map-container { height: 240px; }
}
