/* ===========================================================
   Sun & Sea Properties — shared stylesheet
   Brand palette + type from homepage mockup (confirmed draft)
   =========================================================== */
:root {
  --bg: #FDFBF5;
  --sand: #EBDFC4;
  --sand-soft: #F5EDD9;
  --ink: #1E2D3A;
  --ink-soft: #4A5968;
  --teal: #1B6E8A;
  --teal-deep: #144F66;
  --coral: #C2543A;
  --terracotta: #B5462E;
  --line: #DFD4BA;
  --hairline: rgba(30, 45, 58, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }

/* ---- Nav ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 0; transition: all 0.4s ease; background: transparent;
}
nav.scrolled {
  background: rgba(253, 252, 249, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 16px 0; border-bottom: 1px solid var(--hairline);
}
/* solid nav variant for pages whose hero is short or light */
nav.solid {
  background: rgba(253, 252, 249, 0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500;
  color: white; letter-spacing: 0.02em; transition: color 0.4s;
}
.logo .amp { font-style: italic; color: var(--sand); }
nav.scrolled .logo, nav.solid .logo { color: var(--ink); }
nav.scrolled .logo .amp, nav.solid .logo .amp { color: var(--teal); }
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a {
  color: white; font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.3s;
}
nav.scrolled .nav-links a, nav.solid .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--sand); }
nav.scrolled .nav-links a:hover, nav.solid .nav-links a:hover { color: var(--teal); }
.nav-cta {
  border: 1px solid currentColor; padding: 10px 22px; border-radius: 999px;
  font-size: 12px !important; transition: all 0.3s;
}
.nav-cta:hover { background: white; color: var(--ink) !important; border-color: white; }
nav.scrolled .nav-cta:hover, nav.solid .nav-cta:hover { background: var(--teal); color: white !important; border-color: var(--teal); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px;
  border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; transition: all 0.3s; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: white; color: var(--ink); }
.btn-primary:hover { background: var(--sand); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.15); }
.btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: white; }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(20,79,102,0.25); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Eyebrow / titles ---- */
.eyebrow {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 20px; display: inline-flex; align-items: center; gap: 14px; font-weight: 600;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--teal); }
.section-title {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; max-width: 720px;
}
.section-title em { font-style: italic; color: var(--teal); }
.section-lede { font-size: 18px; color: var(--ink-soft); max-width: 640px; line-height: 1.7; font-weight: 300; }
section { padding: 120px 0; }

/* ===========================================================
   VILLA PAGE COMPONENTS
   =========================================================== */

/* breadcrumb under nav */
.breadcrumb {
  padding-top: 110px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500;
}
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--line); margin: 0 8px; }

/* villa hero */
.villa-hero {
  margin-top: 28px; height: 64vh; min-height: 460px; border-radius: 6px; overflow: hidden;
  position: relative; color: white; display: flex; align-items: flex-end;
}
.villa-hero .vh-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.villa-hero .vh-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,45,58,0.05) 0%, rgba(30,45,58,0.65) 100%);
}
.villa-hero .vh-inner { position: relative; z-index: 2; padding: 48px; max-width: 760px; }
.villa-hero .vh-loc {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.92; margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 12px;
}
.villa-hero .vh-loc::before { content: ''; width: 28px; height: 1px; background: var(--sand); }
.villa-hero h1 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 6vw, 72px);
  font-weight: 400; line-height: 1.02; letter-spacing: -0.02em;
}
.villa-tagline { font-weight: 300; font-size: 17px; opacity: 0.92; margin-top: 12px; max-width: 520px; }

/* tags on hero */
.hero-badges { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.badge {
  background: rgba(253,252,249,0.92); color: var(--ink); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px; font-weight: 600;
}
.badge.teal { background: var(--teal); color: white; }

/* spec bar */
.spec-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; margin: 40px 0 0; background: white;
}
.spec {
  padding: 24px 28px; border-right: 1px solid var(--line); text-align: left;
}
.spec:last-child { border-right: none; }
.spec .spec-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; font-weight: 600; }
.spec .spec-val { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1; }
.spec .spec-val small { font-size: 14px; font-family: 'Inter', sans-serif; color: var(--ink-soft); }

/* two-column layout: content + booking aside */
.villa-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start;
  padding: 80px 0 40px;
}
.villa-main h2 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(28px,3.4vw,40px); font-weight: 400;
  letter-spacing: -0.01em; margin-bottom: 20px; line-height: 1.15;
}
.villa-main h2 em { font-style: italic; color: var(--teal); }
.villa-main p { color: var(--ink-soft); font-size: 16px; line-height: 1.85; margin-bottom: 20px; }
.villa-main .block { margin-bottom: 56px; }

/* booking / inquiry card */
.booking-card {
  position: sticky; top: 100px; background: white; border: 1px solid var(--line);
  border-radius: 8px; padding: 28px; box-shadow: 0 10px 30px rgba(30,45,58,0.06);
}
.booking-card .price { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: var(--ink); line-height: 1; }
.booking-card .price small { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink-soft); font-weight: 400; }
.booking-card .price-note { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.booking-card .divider { height: 1px; background: var(--line); margin: 22px 0; }
.lodgify-slot {
  border: 1.5px dashed var(--teal); border-radius: 6px; background: var(--sand-soft);
  padding: 22px 18px; text-align: center; color: var(--teal-deep); margin-bottom: 18px;
}
.lodgify-slot .ls-title { font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.lodgify-slot .ls-sub { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.booking-card .channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: 11px; letter-spacing: 0.04em; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }

/* gallery */
.gallery-section { padding: 40px 0 100px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; grid-auto-flow: dense; }
.gallery-grid a { display: block; overflow: hidden; border-radius: 5px; aspect-ratio: 3/2; background: var(--sand); }
.gallery-grid a.tall { aspect-ratio: 3/4; grid-row: span 2; }
.gallery-grid a.wide { grid-column: span 2; aspect-ratio: 3/1.35; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-note {
  margin-top: 22px; font-size: 13.5px; color: var(--ink-soft); font-style: italic;
  background: var(--sand-soft); border-left: 3px solid var(--teal); padding: 12px 16px; border-radius: 4px;
}

/* amenities */
.amenities { background: var(--sand-soft); }
.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: 48px; }
.amenity-col h4 {
  font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.amenity-col ul { list-style: none; }
.amenity-col li { font-size: 14.5px; color: var(--ink-soft); padding: 6px 0 6px 22px; position: relative; }
.amenity-col li::before { content: ''; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* simple lightbox */
.lb-overlay {
  position: fixed; inset: 0; background: rgba(20,30,40,0.92); z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 40px; cursor: zoom-out;
}
.lb-overlay.open { display: flex; }
.lb-overlay img { max-width: 92vw; max-height: 88vh; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lb-close { position: absolute; top: 24px; right: 32px; color: white; font-size: 34px; cursor: pointer; line-height: 1; }

/* CTA + footer (shared with homepage) */
.cta { position: relative; color: white; text-align: center; padding: 150px 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.cta-bg::after { content:''; position:absolute; inset:0; background: rgba(30,45,58,0.5); }
.cta-content { position: relative; z-index: 2; }
.cta h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 5vw, 60px); font-weight: 400; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.02em; }
.cta h2 em { font-style: italic; color: var(--sand); }
.cta p { font-size: 18px; max-width: 560px; margin: 0 auto 40px; opacity: 0.9; font-weight: 300; }

footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 80px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 64px; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 32px; color: white; margin-bottom: 20px; letter-spacing: 0.02em; }
.footer-brand .amp { font-style: italic; color: var(--sand); }
.footer-brand-text { max-width: 320px; line-height: 1.7; font-size: 14px; }
footer h5 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: white; margin-bottom: 24px; font-weight: 600; }
footer ul { list-style: none; }
footer li { margin-bottom: 12px; }
footer a:hover { color: var(--sand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.05em; flex-wrap: wrap; gap: 16px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .villa-layout { grid-template-columns: 1fr; gap: 40px; }
  .booking-card { position: static; }
}
@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 24px; }
  section { padding: 80px 0; }
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .amenities-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid a.wide { grid-column: span 2; }
  .spec-bar { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(2) { border-right: none; }
  .spec:nth-child(1), .spec:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .villa-hero .vh-inner { padding: 28px; }
}
@media (max-width: 560px) {
  .amenities-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid a, .gallery-grid a.tall, .gallery-grid a.wide { grid-column: auto; grid-row: auto; aspect-ratio: 3/2; }
  .spec-bar { grid-template-columns: 1fr 1fr; }
}
