/* Paradise Villa SPI
   Colors come from the house itself: pool turquoise, sand, and a coral for the Book buttons. */
:root {
  --ink: #0f2a33;
  --ink-soft: #46606a;
  --deep: #0b3a44;
  --teal: #0f8f9c;
  --teal-light: #d9f1f2;
  --sand: #f7f2e8;
  --white: #ffffff;
  --coral: #e4572e;
  --coral-dark: #c4431f;
  --line: #e3ddd0;
  --radius: 14px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--body); transition: background .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 28px; font-size: 1.08rem; }
.btn-book { background: var(--coral); color: #fff; }
.btn-book:hover { background: var(--coral-dark); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.85); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px 20px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand span { color: var(--teal); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { color: var(--teal); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,34,42,.15) 0%, rgba(8,34,42,.12) 30%, rgba(8,34,42,.6) 62%, rgba(8,34,42,.88) 100%); }
.hero-text { position: relative; width: 100%; max-width: 1120px; margin: 0 auto; padding: 60px 20px 56px; }
.eyebrow { margin: 0 0 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.4rem); max-width: 15ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.35rem); margin: 16px 0 26px; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Quick facts ---------- */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--deep); color: #fff; }
.fact { padding: 22px 12px; text-align: center; border-right: 1px solid rgba(255,255,255,.14); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; }
.fact span { font-size: .92rem; opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--deep); color: #fff; }
.section-dark a { color: #fff; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; margin: 0 0 40px; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; margin-bottom: 52px; }
.feature.flip img { order: 2; }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); cursor: zoom-in; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { padding: 9px 0 9px 30px; border-bottom: 1px solid var(--line); position: relative; }
.feature li:last-child { border-bottom: 0; }
.feature li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.cta-row { text-align: center; margin-top: 8px; }

/* ---------- Photo grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 .95rem var(--body); cursor: pointer; }
.chip:hover { border-color: var(--teal); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.grid button { padding: 0; border: 0; background: #ddd; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 2; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.grid button:hover img { transform: scale(1.04); }

/* ---------- Location ---------- */
.loc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: start; }
.loc-photo { margin: 0; }
.loc-photo img { width: 100%; border-radius: var(--radius); cursor: zoom-in; }
.loc-photo figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
.address { font-size: 1.15rem; margin: 0 0 16px; }
.loc-info h3 { margin-top: 30px; }
.walk { list-style: none; margin: 0; padding: 0; }
.walk li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.walk a { font-weight: 600; text-decoration: none; }
.walk a:hover { text-decoration: underline; }
.walk span { color: var(--ink-soft); text-align: right; font-size: .95rem; }

/* ---------- Book / contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-book p { font-size: 1.1rem; opacity: .92; margin: 0 0 22px; }
.contact-book h3 { margin-top: 44px; }
.contact-lines { font-size: 1.3rem !important; line-height: 1.8; font-weight: 600; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover, .social a:hover { text-decoration: underline; }
.social a { margin-right: 18px; font-weight: 600; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.form .opt { font-weight: 400; color: var(--ink-soft); }
.form input, .form textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1.5px solid #cfd6d8; border-radius: 9px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; }
.form input:focus, .form textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-light); }
.form button { width: 100%; padding: 14px; font-size: 1.05rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { background: #072a32; color: rgba(255,255,255,.85); text-align: center; padding: 34px 20px 40px; font-size: .95rem; }
.footer p { margin: 4px 0; }
.footer a { color: #fff; }
.footer .small { opacity: .6; margin-top: 12px; font-size: .85rem; }

/* ---------- Phone "Book" bar ---------- */
.mobile-book { display: none; }

/* ---------- Photo viewer ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5,20,25,.95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 6px; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-size: 1rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Thank-you page ---------- */
.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--sand); padding: 24px; }
.thanks h1 { font-size: 2.4rem; margin-bottom: 12px; }
.thanks p { margin: 0 0 24px; color: var(--ink-soft); }

/* ---------- Smaller screens ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .feature, .loc, .contact { grid-template-columns: 1fr; gap: 22px; }
  .feature.flip img { order: 0; }
  .feature { margin-bottom: 44px; }
  .section { padding: 60px 0; }
  .facts { grid-template-columns: repeat(6, 1fr); }
  .fact { grid-column: span 2; border-bottom: 1px solid rgba(255,255,255,.14); }
  .fact:nth-child(n+4) { grid-column: span 3; border-bottom: 0; }
  .fact:nth-child(3) { border-right: 0; }
  .contact { gap: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .topbar .btn-book { display: none; }
  .hero { min-height: 78vh; }
  .hero-img { object-position: 72% 60%; }
  .hero-text { padding-bottom: 36px; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .walk li { flex-direction: column; gap: 0; }
  .walk span { text-align: left; }
  .form { padding: 20px; }
  .mobile-book { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--coral); color: #fff; text-align: center; font-weight: 700; font-size: 1.08rem; padding: 18px 12px; text-decoration: none; box-shadow: 0 -4px 18px rgba(0,0,0,.2); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
