/* The Wakely Collection — site styles. Mobile-first. */

:root {
  --sand: #f7f2ea;
  --sand-deep: #ede4d6;
  --paper: #fffdf9;
  --ink: #1e2626;
  --ink-soft: #4d5856;
  --line: #ddd3c3;
  --sea: #1d5d63;
  --sea-deep: #123f44;
  --pine: #2e4637;
  --pine-deep: #1c2e23;
  --clay: #b8603a;
  --clay-deep: #9a4d2c;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(30 38 38 / 0.06), 0 8px 24px rgb(30 38 38 / 0.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 12px; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 242 234 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--clay); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a:not(.btn) { display: none; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--clay); }
@media (min-width: 720px) { .nav a:not(.btn) { display: inline; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-deep); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgb(255 255 255 / 0.12); color: inherit; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  min-height: min(82vh, 680px);
  display: flex; align-items: flex-end;
  padding: 96px 0 48px;
}
.hero-art, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-img { background: center / cover no-repeat; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.05) 30%, rgb(0 0 0 / 0.55) 100%);
}
.hero > .wrap { width: 100%; }
.hero h1 { max-width: 18ch; }
.hero .lede { font-size: 1.15rem; max-width: 40ch; opacity: 0.95; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-property h1 { max-width: 24ch; font-size: clamp(1.8rem, 5.5vw, 3rem); }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.1rem; opacity: 0.95; }

.art-home { background: linear-gradient(160deg, #3c6f71 0%, #24504f 45%, #2e4637 100%); }
.art-sea { background: linear-gradient(180deg, #8fc3c2 0%, #3f8a8c 45%, #1d5d63 100%); }
.art-pine { background: linear-gradient(180deg, #9db3a2 0%, #56715e 40%, #2e4637 100%); }

/* ---------- Quick facts ---------- */

.facts {
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.facts ul {
  list-style: none; margin: 0; padding: 14px 0;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.facts li {
  font-size: 0.92rem; font-weight: 600; color: var(--ink-soft);
  background: var(--sand); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.facts li.star { color: var(--clay-deep); }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-dark { background: var(--pine-deep); color: #f3efe7; }
.section-dark a { color: #f1c6a8; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .section-head p { color: #cfd6cf; }

.prose { max-width: 680px; }
.prose p { font-size: 1.08rem; }
.prose .kicker { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--clay-deep); }

.grid-2 { display: grid; gap: 40px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 56px; } }

.block { margin-bottom: 40px; }
.block:last-child { margin-bottom: 0; }

/* ---------- Property cards ---------- */

.cards { display: grid; gap: 24px; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media .hero-art, .card-media .hero-img { z-index: 0; }
.card-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.55rem; margin-bottom: 2px; }
.card .place { color: var(--ink-soft); margin-bottom: 12px; }
.card .meta { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 20px; }
.card .btn { margin-top: auto; align-self: flex-start; }

.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--paper); color: var(--clay-deep);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow);
}
.hero .badge { position: static; display: inline-block; margin-bottom: 14px; box-shadow: none; }

/* ---------- Why book direct ---------- */

.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perks li {
  background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius); padding: 20px 22px;
}
.perks strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; color: #fff; }
.perks span { color: #cfd6cf; }

/* ---------- Lists ---------- */

.rooms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rooms li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.rooms li span:first-child { color: var(--ink-soft); }
.rooms li span:last-child { font-weight: 600; text-align: right; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; }
.section-alt .chips li { background: var(--sand); }

.policy { list-style: none; margin: 0; padding: 0; }
.policy li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- Rating ---------- */

.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.rating .score { font-family: var(--serif); font-size: 3.4rem; font-weight: 600; line-height: 1; color: var(--clay-deep); }
.rating .stars { color: var(--clay); letter-spacing: 3px; font-size: 1.2rem; }
.rating .labels { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--clay);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 8px; }

/* ---------- Booking / signup ---------- */

.book-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 24px;
}
.book-panel .note { color: var(--ink-soft); font-size: 0.95rem; }
.book-panel .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ownerrez-slot:empty { display: none; }

.signup { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
@media (min-width: 560px) { .signup { flex-direction: row; } }
.signup input[type="email"] {
  flex: 1; min-height: 52px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; color: var(--ink);
}
.signup .btn { min-height: 52px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 12px; font-weight: 600; min-height: 1.6em; }
.form-msg.ok { color: var(--pine); }
.form-msg.err { color: var(--clay-deep); }

/* ---------- Gallery (populated once photos are added) ---------- */

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.gallery-more { margin-top: 10px; }
.gallery-more summary { list-style: none; cursor: pointer; margin: 14px auto 0; display: flex; width: fit-content; }
.gallery-more summary::-webkit-details-marker { display: none; }
.gallery-more[open] summary { display: none; }
.gallery img { cursor: zoom-in; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10 14 14 / 0.96); color: #fff; }
.lightbox::backdrop { background: rgb(10 14 14 / 0.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(10 14 14 / 0.55); color: #fff; font: 28px/1 var(--sans); cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgb(10 14 14 / 0.8); }
.lightbox-close { top: 14px; right: 14px; font-size: 20px !important; }
.lightbox-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 14px; top: 50%; translate: 0 -50%; }
.lightbox-count { position: absolute; top: 14px; left: 16px; margin: 0; padding: 12px 0; font: 14px var(--sans); opacity: 0.85; }
@media (hover: none) { .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; translate: none; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #c9cfcc; padding: 48px 0 110px; font-size: 0.95rem; }
.site-footer .brand { color: #fff; font-size: 1.3rem; }
.site-footer a { color: #fff; }
.site-footer .tagline { color: #e8d9c8; margin: 6px 0 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0; }
.footer-links a { text-decoration: none; }
.fine { color: #8d9794; font-size: 0.85rem; margin-top: 24px; }
@media (min-width: 760px) { .site-footer { padding-bottom: 48px; } }

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 253 249 / 0.97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgb(30 38 38 / 0.08);
}
.sticky-cta .label { font-size: 0.85rem; line-height: 1.3; color: var(--ink-soft); }
.sticky-cta .label strong { display: block; color: var(--ink); font-size: 0.95rem; }
@media (min-width: 760px) { .sticky-cta { display: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hide the email fallback once the OwnerRez widget has been pasted into its slot. */
.ownerrez-slot:not(:empty) + .booking-fallback { display: none; }
