/* Helen Alpine Rentals — local mockup only. Not a live site. */
:root {
  --bg: #0c0c0c;
  --bg-2: #141414;
  --bg-3: #1b1b1b;
  --gold: #c4a06a;
  --gold-soft: #d4b483;
  --gold-dim: rgba(196, 160, 106, 0.18);
  --gold-line: rgba(196, 160, 106, 0.28);
  --cream: #f4eee4;
  --cream-dim: #cfc6b8;
  --muted: #9a9186;
  --white: #faf8f4;
  --danger-note: #c4a06a;
  --font-display: "Gilda Display", "Palatino Linotype", Palatino, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --max: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--cream); }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font-family: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(12,12,12,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-line);
  transition: background .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(12,12,12,.96);
}
.header-inner {
  width: min(1280px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo-link img {
  height: 3.35rem;
  width: auto;
  max-width: 19rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  text-decoration: none;
  color: var(--cream-dim);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.nav a:hover { color: var(--gold); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: #1a140c;
  padding: 0.8rem 1.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--gold-line);
  padding: 0.8rem 1.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1rem;
  height: 1px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0c0c0c;
  background-image:
    linear-gradient(to top, rgba(12,12,12,0.94) 0%, rgba(12,12,12,0.55) 38%, rgba(12,12,12,0.28) 68%),
    linear-gradient(to right, rgba(12,12,12,0.35), transparent 60%),
    image-set(url("hero-aerial.webp") type("image/webp"), url("hero-aerial.jpg") type("image/jpeg"));
  background-position: center, center, center 40%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  max-width: 40rem;
  padding-bottom: 0.5rem;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
.hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  color: var(--white);
  margin: 0 0 1.15rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 28px rgba(0,0,0,.45);
}
.hero .eyebrow,
.hero-savings {
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.hero-savings {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--gold-soft);
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Search placeholder under hero CTA */
.search-hint {
  margin-top: 2.25rem;
  display: flex;
  align-items: stretch;
  background: rgba(20,20,20,0.72);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  overflow: hidden;
  max-width: 36rem;
  backdrop-filter: blur(8px);
}
.search-hint .slot {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-right: 1px solid var(--gold-line);
  min-width: 0;
}
.search-hint .slot:last-of-type { border-right: none; }
.search-hint .label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}
.search-hint .value { color: var(--cream-dim); font-size: 0.92rem; }
.search-hint .btn { border-radius: 0; padding-inline: 1.6rem; flex: 0 0 auto; }

/* Sections */
section { padding: 5.5rem 0; }
.section-head { margin-bottom: 2.5rem; max-width: 36rem; }
.section-head h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.15rem);
  margin: 0.35rem 0 0.75rem;
  color: var(--white);
}
.section-head p { margin: 0; color: var(--cream-dim); }

/* Properties */
.properties { background: var(--bg); }
.prop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.prop-card {
  background: var(--bg-3);
  border: 1px solid var(--gold-dim);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.prop-card figure { margin: 0; position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.prop-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.prop-card:hover figure img { transform: scale(1.04); }
.prop-tag {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: rgba(12,12,12,.78);
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
}
.prop-body { padding: 1.5rem 1.5rem 1.65rem; display: flex; flex-direction: column; flex: 1; }
.prop-body h3 {
  font-size: 2rem;
  margin: 0 0 0.35rem;
  color: var(--white);
}
.prop-meta {
  color: var(--gold-soft);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.prop-body p { margin: 0 0 1.25rem; color: var(--cream-dim); flex: 1; }
.prop-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* Why stay */
.why { background: var(--bg-2); }
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.why-photo {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  position: relative;
}
.why-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.why-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(12,12,12,.7);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin: 1.75rem 0 1.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label { color: var(--muted); font-size: 0.82rem; }
.why-copy h2 { font-size: clamp(2.1rem, 3.6vw, 3.15rem); margin: 0.35rem 0 1rem; color: var(--white); }
.why-copy p { color: var(--cream-dim); margin: 0 0 1rem; }
.why-copy p:last-of-type { margin-bottom: 0; }

/* Guide */
.guide { background: var(--bg); }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.guide-card {
  background: var(--bg-3);
  border: 1px solid var(--gold-dim);
  border-radius: 1.1rem;
  padding: 1.4rem 1.35rem 1.5rem;
  min-height: 100%;
}
.guide-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.guide-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.guide-card h3 {
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
  color: var(--white);
}
.guide-card p { margin: 0; color: var(--cream-dim); font-size: 0.98rem; }

/* Events strip */
.events {
  background: #16120c;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  padding: 2.25rem 0;
}
.events-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}
.events-label {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.event-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.event-date {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.event-name { color: var(--cream-dim); font-size: 0.92rem; }

/* FAQ */
.faq { background: var(--bg-2); }
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
details.faq-item {
  background: var(--bg-3);
  border: 1px solid var(--gold-dim);
  border-radius: 0.9rem;
  padding: 0;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.4rem;
  font-family: var(--font-body);
  line-height: 1;
}
details.faq-item[open] summary::after { content: "–"; }
.faq-item .answer {
  padding: 0 1.3rem 1.2rem;
  color: var(--cream-dim);
  margin: 0;
}

/* Footer */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--gold-line);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.site-footer .logo-link img { height: 3.75rem; max-width: 20rem; }
.footer-blurb { color: var(--cream-dim); margin: 1rem 0 0; max-width: 22rem; font-size: 0.95rem; }
.footer-col h3 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  color: var(--white);
}
.footer-col a, .footer-col p {
  color: var(--cream-dim);
  text-decoration: none;
  margin: 0 0 0.4rem;
  display: block;
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--gold); }
.legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold-dim);
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Placeholder chip — only used where a fact is not verified */
.placeholder-note {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px dashed var(--gold-line);
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(12,12,12,.96);
    border-bottom: 1px solid var(--gold-line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 1.1rem;
  }
  body.nav-open .nav { display: flex; }
  body.nav-open { overflow: hidden; }
  .prop-grid, .why-grid, .guide-grid { grid-template-columns: 1fr; }
  .why-photo img { aspect-ratio: 16 / 10; }
  .event-row { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .search-hint { flex-direction: column; border-radius: 1rem; }
  .search-hint .slot { border-right: none; border-bottom: 1px solid var(--gold-line); }
  .hero { align-items: flex-end; padding-bottom: 3rem; }
  .hero h1 { font-size: clamp(2.55rem, 11vw, 3.4rem); }
  .logo-link img { height: 2.65rem; max-width: 14rem; }
  .site-footer .logo-link img { height: 3.1rem; max-width: 16rem; }
  section { padding: 3.75rem 0; }
}

@media (max-width: 560px) {
  .event-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .wrap, .header-inner, .hero-content, .events-inner {
    width: min(var(--max), calc(100% - 1.75rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .prop-card:hover figure img { transform: none; }
}


/* Production additions: skip link, focus, search widget, property pages */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4.5rem;
  z-index: 100;
  background: var(--gold);
  color: #1a140c;
  padding: 0.65rem 1rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Official Hospitable search widget sits on a light card so its UI stays readable */
.search-panel {
  margin-top: 2.25rem;
  background: #f4eee4;
  color: #1a140c;
  border-radius: 1.15rem;
  padding: 1.15rem 1.15rem 1.35rem;
  max-width: 42rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.search-panel h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a6544;
  margin: 0 0 0.85rem;
}
hospitable-direct-mps {
  --hospitable-primary-color: #c4a06a;
  display: block;
  width: 100%;
  min-height: 4.25rem;
}
hospitable-direct-mps[identifier*="TODO-REPLACE"] {
  display: none;
  min-height: 0;
}

/* Hide the Hospitable iframe while placeholder TODO ids are still in the src.
   The official loader always injects a 900px iframe; a 422 from the TODO URL
   would otherwise leave a tall blank panel. Real UUIDs drop this rule. */
#booking-iframe[src*="TODO-REPLACE"] {
  display: none !important;
  height: 0 !important;
  border: 0;
}

/* Property pages */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0c0c0c;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,12,12,.9) 0%, rgba(12,12,12,.35) 55%, rgba(12,12,12,.2) 100%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  color: var(--white);
  margin: 0 0 0.6rem;
  text-shadow: 0 2px 28px rgba(0,0,0,.45);
}
.page-hero .prop-meta { color: var(--gold-soft); margin: 0; }

.property-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}
.property-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
  margin: 0 0 1rem;
}
.property-copy p { color: var(--cream-dim); margin: 0 0 1rem; }
.amenity-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.25rem;
}
.amenity-list li {
  color: var(--cream-dim);
  padding-left: 1.1rem;
  position: relative;
}
.amenity-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.45rem;
  height: 1px;
  background: var(--gold);
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  border-radius: 0.85rem;
  border: 1px solid var(--gold-dim);
}

.book-panel {
  background: #f4eee4;
  color: #1a140c;
  border-radius: 1.15rem;
  padding: 1.4rem 1.35rem 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.book-panel h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #1a140c;
  margin: 0 0 0.4rem;
}
.book-panel .lead { margin: 0 0 1rem; color: #4a4034; }
.book-fallback {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #4a4034;
}
.book-fallback a { color: #6b4e22; }

@media (max-width: 900px) {
  .property-layout { grid-template-columns: 1fr; }
  .book-panel { position: static; }
  .amenity-list { grid-template-columns: 1fr; }
  .page-hero { min-height: 54vh; }
}
