/* AhmStay v2: two family homes. Palm side = sunlit coastal; Hideaway side = forest cabin. */
:root {
  --ink: #22302f;
  --muted: #53605d;
  --cream: #fbf7ef;
  --paper: #ffffff;
  --line: #e6dfd0;

  /* one CTA color everywhere: sun gold with dark text */
  --cta: #f2b01e;
  --cta-hover: #ffc43d;
  --cta-ink: #1b1b18;

  /* Palm: sand, sea-glass teal, coral */
  --palm-sand: #f3e6cc;
  --palm-deep: #1f6560;
  --palm-teal: #5fb3a8;
  --palm-coral: #e4604d;
  --palm-coral-ink: #b13d2c;

  /* Hideaway: pine, cream, ember */
  --pine: #1f3d33;
  --pine-soft: #e6ede7;
  --ember: #d2691e;
  --ember-ink: #9a4a0e;

  /* active theme (neutral default) */
  --brand: #26413b;
  --brand-soft: #efe9da;
  --accent: #c8795a;
  --accent-ink: #8f4a30;

  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 45, 43, .10);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.theme-palm { --brand: var(--palm-deep); --brand-soft: var(--palm-sand); --accent: var(--palm-coral); --accent-ink: var(--palm-coral-ink); }
.theme-hideaway { --brand: var(--pine); --brand-soft: var(--pine-soft); --accent: var(--ember); --accent-ink: var(--ember-ink); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.65; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .6rem; color: var(--brand); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid #0b57d0; outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--cta); color: var(--cta-ink); padding: .75rem 1rem; border-radius: 8px; font-weight: 700; z-index: 300; }
.skip-link:focus { top: 1rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section.tight { padding: 2.5rem 0; }
.section.alt { background: var(--paper); }
.section-title { text-align: center; }
.lede { max-width: 700px; margin: 0 auto 2rem; text-align: center; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin-bottom: .4rem; }

/* Buttons: one CTA style */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .8rem 1.6rem; background: var(--cta); color: var(--cta-ink); border: 0; border-radius: 999px; font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.18); transition: background .2s, transform .2s; }
.btn:hover { background: var(--cta-hover); color: var(--cta-ink); transform: translateY(-1px); }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(251, 247, 239, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { font: 700 1.55rem/1 var(--serif); color: var(--pine); text-decoration: none; padding: .5rem 0; }
.logo span { color: var(--palm-coral-ink); }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 8px; }
.site-nav a:hover { background: var(--brand-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-toggle { display: none; min-width: 44px; min-height: 44px; background: none; border: 1px solid var(--line); border-radius: 10px; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }

/* Homepage split */
.split { position: relative; display: flex; height: calc(100vh - 64px); height: calc(100svh - 64px); min-height: 560px; background: #111; }
.split-label { position: absolute; z-index: 5; top: 1.25rem; left: 50%; transform: translateX(-50%); margin: 0; padding: .5rem 1.4rem; background: rgba(20, 28, 26, .72); color: #fff; font: 600 .95rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; border-radius: 999px; white-space: nowrap; }
.panel { position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; overflow: hidden; color: #fff; display: flex; align-items: flex-end; transition: flex-grow .6s ease, filter .6s ease; }
.panel > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 14, 13, .88) 0%, rgba(8, 14, 13, .6) 38%, rgba(8, 14, 13, .12) 72%, rgba(8, 14, 13, .35) 100%); }
.panel-palm::before { background: linear-gradient(to top, rgba(6, 40, 38, .9) 0%, rgba(6, 40, 38, .62) 38%, rgba(6, 40, 38, .1) 72%, rgba(6, 40, 38, .35) 100%); }
.panel-hideaway::before { background: linear-gradient(to top, rgba(12, 28, 20, .92) 0%, rgba(12, 28, 20, .64) 38%, rgba(12, 28, 20, .12) 72%, rgba(12, 28, 20, .35) 100%); }
.panel-body { width: 100%; max-width: 640px; padding: 2rem clamp(1.25rem, 4vw, 3.5rem) clamp(2rem, 6vh, 4rem); }
.panel-place { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; margin-bottom: .4rem; }
.panel-palm .panel-place { color: #ffb3a6; }
.panel-hideaway .panel-place { color: #ffc999; }
.panel h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: .5rem; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.panel-hook { font-size: clamp(1.02rem, 1.4vw, 1.25rem); margin-bottom: 1rem; }
.facts { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.facts li { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: .25rem .7rem; border-radius: 999px; font-size: .9rem; backdrop-filter: blur(3px); }
.rating-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: var(--ink); font-weight: 700; font-size: .92rem; padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1.1rem; }
.rating-badge .star { color: #b9770e; }
.rating-badge small { font-weight: 500; color: var(--muted); }
.panel .btn::after { content: ""; position: absolute; inset: 0; z-index: 3; } /* whole panel is one big link */
.panel .btn { position: static; }
.panel .btn:hover { transform: none; }

@media (min-width: 768px) {
  .panel:hover, .panel:focus-within { flex-grow: 1.8; }
  .panel:hover > img, .panel:focus-within > img { transform: scale(1.04); }
  .split:has(.panel:hover) .panel:not(:hover), .split:has(.panel:focus-within) .panel:not(:focus-within) { filter: brightness(.7) saturate(.85); }
}
@media (max-width: 767px) {
  .split { flex-direction: column; height: auto; min-height: 0; }
  .panel { flex: none; min-height: 58vh; min-height: 58svh; }
  .split-label { top: .75rem; font-size: .8rem; }
  .panel-body { padding-top: 4rem; }
}

/* Direct band */
.direct-band { background: var(--pine); color: #fff; padding: 2.25rem 0; }
.direct-band h2 { color: #fff; text-align: center; margin-bottom: 1.25rem; }
.direct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem 1.5rem; text-align: center; }
.direct-grid strong { display: block; font: 700 1.3rem/1.2 var(--serif); color: #ffd98a; }
.direct-grid span { font-size: .95rem; color: #e7efe9; }
.direct-note { text-align: center; margin: 1.25rem 0 0; font-size: .95rem; color: #e7efe9; }
.direct-note a { color: #ffd98a; }
.direct-note code, .code { background: rgba(255,255,255,.14); padding: .1rem .45rem; border-radius: 6px; font-weight: 700; letter-spacing: .04em; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.review { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; margin: 0; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review p { margin-bottom: 1rem; }
.review cite { margin-top: auto; font-style: normal; font-size: .9rem; color: var(--muted); }
.review cite strong { color: var(--ink); }
.review .stars { color: #b9770e; letter-spacing: .1em; display: block; }
.review.palm { border-top-color: var(--palm-coral); }
.review.hideaway { border-top-color: var(--ember); }
.rating-line { text-align: center; font-weight: 600; color: var(--brand); margin-bottom: 1.5rem; }

/* Seasonal cards */
.season-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.season-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow); }
.season-card { isolation: isolate; }
.season-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.season-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,14,13,.9), rgba(8,14,13,.4) 60%, rgba(8,14,13,.15)); }
.season-card div { padding: 1.5rem; }
.season-card h3 { color: #fff; }
.season-card a { color: #fff; font-weight: 700; }
.season-card a::after { content: ""; position: absolute; inset: 0; z-index: 3; }

/* Calendar / OwnerRez containers */
.calendar-placeholder { background: #f3efe4; border: 2px dashed #b9b09a; border-radius: var(--radius); padding: 2rem; text-align: center; margin: 1.5rem 0; color: var(--muted); }
.calendar-placeholder code { background: #e6dfcc; padding: .15rem .45rem; border-radius: 6px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .75rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 1.25rem; min-height: 48px; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--ink); }

/* Signup */
.signup { background: var(--brand-soft); text-align: center; }
.signup-form { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; max-width: 540px; margin: 0 auto; position: relative; }
.signup-form input[type=email] { flex: 1 1 260px; min-height: 48px; padding: .7rem 1.1rem; border: 2px solid #8a948f; border-radius: 999px; font: 1rem var(--sans); background: #fff; color: var(--ink); }

/* Footer */
.site-footer { background: #17231f; color: #d7dfda; padding: 3rem 0 1.5rem; }
.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer a { color: #f1d9a0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.footer-grid p { margin-bottom: .4rem; }
.copyright { text-align: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #34453f; font-size: .9rem; }

/* Property pages */
.property-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "intro aside" "rest aside"; column-gap: 3rem; padding-top: 1.5rem; padding-bottom: 3rem; align-items: start; }
.pl-intro { grid-area: intro; }
.pl-rest { grid-area: rest; }
.booking-aside { grid-area: aside; align-self: stretch; }
.booking-box { position: sticky; top: 84px; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.booking-box h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.booking-box .rating-badge { background: var(--brand-soft); margin-bottom: .75rem; }
.booking-box .mini-review { font-size: .93rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: .8rem; margin: 0 0 1rem; }
.booking-box .calendar-placeholder { padding: 1.2rem; margin: 0 0 1rem; font-size: .9rem; }
.booking-note { font-size: .9rem; color: var(--muted); margin: .75rem 0 0; }
.booking-note a { font-weight: 600; }
.instant { font-weight: 700; color: var(--brand); margin-bottom: .5rem; }
.property-title { padding-top: .5rem; margin-bottom: 1rem; }
.property-title h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .25rem; }
.property-title p { color: var(--muted); margin: 0; font-size: 1.1rem; }

.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .5rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.mosaic a { display: block; overflow: hidden; background: var(--brand-soft); }
.mosaic a:first-child { grid-row: 1 / 3; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic .all-photos { position: absolute; right: .75rem; bottom: .75rem; z-index: 2; min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; background: #fff; color: var(--ink); font-weight: 700; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); }

.quickfacts { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.quickfacts li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem; line-height: 1.3; }
.quickfacts b { display: block; font: 700 1.3rem/1.2 var(--serif); color: var(--brand); }
.quickfacts span { font-size: .85rem; color: var(--muted); }

.pl-rest section { padding: 2.25rem 0; border-top: 1px solid var(--line); }
.pl-rest section:first-child { border-top: 0; }
.persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin-top: 1rem; }
.persona { background: var(--brand-soft); border-radius: var(--radius); padding: 1.3rem; }
.persona h3 { margin-bottom: .4rem; }
.persona p { margin-bottom: .6rem; }
.persona q { font-style: italic; color: var(--ink); }
.persona .who { font-size: .85rem; color: var(--muted); }

.amenities { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.amenity { background: var(--brand-soft); color: var(--ink); padding: .4rem .9rem; border-radius: 999px; font-size: .92rem; font-weight: 600; }

.pl-rest .reviews { grid-template-columns: 1fr; }
@media (min-width: 640px) { .pl-rest .reviews { grid-template-columns: 1fr 1fr; } }

.policy-grid, .guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; margin-top: 1rem; }
.guidebook { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.guidebook h3 { color: var(--brand); border-bottom: 2px solid var(--brand-soft); padding-bottom: .5rem; margin-bottom: .8rem; }
.guidebook ul { margin: 0; padding-left: 1.2rem; }
.guidebook li { margin-bottom: .5rem; }
.policy-card { border-left: 5px solid var(--accent); }
.guide-intro { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; margin-top: 1rem; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

.season-link { background: var(--brand-soft); border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: 1rem; }
.season-link p { margin: 0; }

.mobile-cta { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 12, 11, .92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 3.5rem 1rem; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; min-width: 48px; min-height: 48px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-close { top: .75rem; right: .75rem; }
.lightbox .lb-prev { left: .75rem; top: 50%; }
.lightbox .lb-next { right: .75rem; top: 50%; }

/* Seasonal article pages */
.article-hero { position: relative; min-height: 52vh; display: flex; align-items: flex-end; color: #fff; }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(8,14,13,.9), rgba(8,14,13,.45) 55%, rgba(8,14,13,.2)); }
.article-hero .container { position: relative; z-index: 2; padding-bottom: 2.5rem; padding-top: 4rem; }
.article-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); text-shadow: 0 2px 10px rgba(0,0,0,.4); max-width: 18ch; }
.article-hero p { font-size: 1.2rem; max-width: 40rem; margin: 0 0 1.25rem; }
.article-body { max-width: 860px; margin: 0 auto; display: grid; gap: 1.1rem; }
.article-cta { text-align: center; margin-top: 1.5rem; }

@media (max-width: 959px) {
  .property-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "aside" "rest"; }
  .booking-box { position: static; }
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(251, 247, 239, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.1); transition: transform .3s; }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  body.has-mobile-cta { padding-bottom: 76px; }
}
@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-header .container { position: relative; }
  .section { padding: 3rem 0; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; aspect-ratio: auto; height: 300px; }
  .mosaic a:first-child { grid-column: 1 / 3; grid-row: 1; }
  .mosaic a:nth-child(n+4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* v2 review fixes: stronger scrim for text legibility on mobile + brighter eyebrow on photos */
.panel .eyebrow { color: #ffd9a8; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.panel h1, .panel h2, .panel p { text-shadow: 0 1px 4px rgba(0,0,0,.45); }
@media (max-width: 767px) {
  .panel-palm::before { background: linear-gradient(to top, rgba(6,40,38,.92) 0%, rgba(6,40,38,.75) 55%, rgba(6,40,38,.55) 100%); }
  .panel-hideaway::before { background: linear-gradient(to top, rgba(12,28,20,.92) 0%, rgba(12,28,20,.75) 55%, rgba(12,28,20,.55) 100%); }
}
.ownerrez-embed{scroll-margin-top:90px;min-height:120px}
.direct-grid a { color: #ffd98a; }
