/* Porchlight Stay — dusk palette, one warm light */
:root {
  /* Pulled from the home: leather sofas, oak cabinets, cream walls, granite, the porch light */
  --dusk: #3a281b;        /* leather */
  --dusk-deep: #2a1d14;   /* deep leather */
  --dusk-line: #4d3a2b;
  --oak: #8a6430;         /* cabinet wood */
  --bulb: #f2b441;        /* porch light */
  --bulb-soft: #f8e2ad;
  --dawn: #f4efe2;        /* cream walls */
  --paper: #fbf8f1;
  --ink: #241a12;
  --mist: #5e5d52;        /* granite */
  --line: #e2d8c6;        /* linen */
  --on-dark: #eadfcd;
  --on-dark-2: #bfae96;
  --ok: #2f6b45;
  --err: #a8321f;

  --serif: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: 2.15rem;
  --step-4: clamp(2.3rem, 5.2vw, 3.6rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --radius-sm: 6px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--dawn);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--bulb); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bulb); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--sans);
  padding: 15px 22px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; min-height: 48px;
}
.btn-light { background: var(--bulb); color: var(--dusk-deep); }
.btn-light:hover { background: #ffc75e; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-dark { background: var(--dusk); color: #fff; }
.btn-dark:hover { background: var(--dusk-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { background: var(--dusk-deep); color: var(--on-dark); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.01em; color: #fff; }
.logo { width: 22px; height: 32px; flex: none; color: var(--on-dark); filter: drop-shadow(0 0 8px rgba(242,180,65,.55)); }
.bulb-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bulb); box-shadow: 0 0 0 4px rgba(242,180,65,.18), 0 0 18px 4px rgba(242,180,65,.55); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--on-dark-2); }
.nav a:hover { color: #fff; }
.nav .btn { padding: 11px 18px; min-height: 42px; font-size: .95rem; color: var(--dusk-deep); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { background: var(--dusk-deep); color: var(--on-dark); position: relative; overflow: hidden; padding: 0; }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(242,180,65,.22) 0%, rgba(242,180,65,.07) 35%, rgba(242,180,65,0) 65%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; }
.hero h1 { font-size: var(--step-4); color: #fff; max-width: 10ch; }
.hero .lede { font-size: var(--step-1); line-height: 1.5; color: var(--on-dark-2); margin: 18px 0 32px; max-width: 30ch; }
.hero-photo { position: relative; display: flex; }
.hero-photo picture { display: block; width: 100%; }
.hero-photo picture img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-photo { order: -1; } .hero-photo picture img { aspect-ratio: 4 / 3; } .hero h1 { max-width: 10ch; } }

/* Commute picker — the one bold element */
.commute { border-top: 1px solid var(--dusk-line); padding-top: 24px; }
.commute-q { font-size: .95rem; color: var(--on-dark-2); margin: 0 0 12px; }
.commute-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.commute-opts button {
  font: 500 .92rem/1.2 var(--sans); color: var(--on-dark); background: transparent;
  border: 1.5px solid var(--dusk-line); border-radius: 999px; padding: 9px 14px; cursor: pointer; min-height: 40px;
}
.commute-opts button:hover { border-color: #7a6450; }
.commute-opts button[aria-pressed="true"] { background: var(--bulb); border-color: var(--bulb); color: var(--dusk-deep); }
.commute-result { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.commute-min { font-family: var(--serif); font-weight: 500; letter-spacing: -0.04em; font-size: clamp(4rem, 11vw, 6.5rem); line-height: .9; color: var(--bulb); text-shadow: 0 0 40px rgba(242,180,65,.35); font-variant-numeric: tabular-nums; }
.commute-text { color: var(--on-dark-2); font-size: var(--step-0); max-width: 26ch; }
.commute-text strong { color: #fff; font-weight: 600; display: block; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 48px; align-items: end; margin-bottom: 36px; }
.section-head p { color: var(--mist); margin: 0; max-width: 52ch; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* Facts strip */
.facts { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 0 0 32px; padding: 0; list-style: none; font-size: var(--step-2); font-weight: 500; font-family: var(--serif); }
.facts b { font-weight: 400; }
.facts li span { color: var(--mist); font-family: var(--sans); font-size: var(--step-0); margin-left: 6px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; }
.gallery button { padding: 0; border: 0; background: var(--line); cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery .g-big { grid-column: span 2; grid-row: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery-more { position: absolute; right: 12px; bottom: 12px; background: rgba(42,29,20,.85); color: #fff; font: 600 .9rem var(--sans); padding: 8px 14px; border-radius: 999px; }
@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery .g-big { grid-column: span 2; }
  .gallery .g-hide-sm { display: none; }
}

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: rgba(30,21,14,.97); width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; color: #fff; }
dialog.lightbox::backdrop { background: rgba(30,21,14,.92); }
.lb-inner { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); }
.lb-stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 var(--gutter); }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.lb-bottom { display: flex; justify-content: center; gap: 12px; padding: 16px; align-items: center; }
.lb-btn { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; min-width: 48px; min-height: 48px; font: 600 1rem var(--sans); cursor: pointer; padding: 0 16px; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-caption { color: var(--on-dark-2); font-size: .95rem; min-width: 0; text-align: center; flex: 1; max-width: 50ch; }

/* Details */
.details { background: var(--paper); }
.detail-grid h3 { font-size: 1.15rem; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.detail-grid > div { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); }
.detail-grid > div:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.detail-grid h3 { margin-bottom: 8px; }
.detail-grid p { color: var(--mist); margin: 0; font-size: .98rem; }
@media (max-width: 820px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > div, .detail-grid > div:not(:nth-child(3n+1)) { padding: 22px 0; border-left: 0; }
}

/* Neighborhood map */
.area-layout { display: grid; grid-template-columns: 1fr 380px; gap: 0; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
#map { min-height: 560px; background: #e9e2d4; }
.area-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px; border-bottom: 1px solid var(--line); }
.filters button { font: 500 .88rem var(--sans); border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 7px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; }
.filters button[aria-pressed="true"] { background: var(--dusk); border-color: var(--dusk); color: #fff; }
.swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.place-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 490px; }
.place-list li { border-bottom: 1px solid var(--line); }
.place-list button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 12px 1fr auto; gap: 4px 12px; width: 100%; padding: 13px 16px; cursor: pointer; align-items: baseline; }
.place-list button:hover, .place-list button.is-active { background: #f3e7cc; }
.place-list button:focus-visible { outline: 3px solid var(--bulb); outline-offset: -3px; }
.place-name { font-weight: 600; font-size: .97rem; line-height: 1.3; }
.place-addr { grid-column: 2; color: var(--mist); font-size: .85rem; }
.place-time { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; font-size: .95rem; }
.place-time small { display: block; font-weight: 400; color: var(--mist); font-size: .8rem; text-align: right; }
.map-note { color: var(--mist); font-size: .88rem; margin-top: 14px; }
.pin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin-home { width: 22px; height: 22px; border-radius: 50%; background: var(--bulb); border: 3px solid var(--dusk-deep); box-shadow: 0 0 0 6px rgba(242,180,65,.35); }
.leaflet-popup-content { font-family: var(--sans); font-size: .92rem; margin: 12px 14px; }
.leaflet-popup-content a { color: var(--dusk); font-weight: 600; }
@media (max-width: 900px) {
  .area-layout { grid-template-columns: 1fr; }
  #map { min-height: 380px; }
  .area-side { border-left: 0; border-top: 1px solid var(--line); }
  .place-list { max-height: 360px; }
}

/* Rates */
.rates { background: var(--dusk); color: var(--on-dark); }
.rates .section-head p { color: var(--on-dark-2); }
.rate-table { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--dusk-line); }
.rate-table > div { padding: 28px 28px 28px 0; }
.rate-table > div + div { padding-left: 28px; border-left: 1px solid var(--dusk-line); }
.rate-price { font-family: var(--serif); font-weight: 500; font-size: var(--step-3); color: #fff; }
.rate-price small { font-family: var(--sans); font-size: 1rem; color: var(--on-dark-2); }
.rate-table h3 { font-family: var(--sans); font-weight: 500; font-size: 1rem; color: var(--bulb); margin-bottom: 6px; }
.rate-table p { color: var(--on-dark-2); margin: 8px 0 0; font-size: .96rem; }
@media (max-width: 820px) {
  .rate-table { grid-template-columns: 1fr; }
  .rate-table > div, .rate-table > div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--dusk-line); }
}

/* Rules */
.rules-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.rule-list li b { font-weight: 600; }
.rule-list li span { color: var(--mist); }
@media (max-width: 820px) { .rules-cols { grid-template-columns: 1fr; gap: 0; } .rule-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Booking form */
.book { background: var(--paper); }
.book-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .book-layout { grid-template-columns: 1fr; } }
form { display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; align-content: start; }
.hint { font-weight: 400; color: var(--mist); font-size: .85rem; }
input, select, textarea {
  font: 400 1rem var(--sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid #cdbfa8; border-radius: var(--radius-sm); padding: 12px 13px; min-height: 48px; width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--dusk); box-shadow: 0 0 0 3px rgba(242,180,65,.45); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--dusk); }
.form-msg { border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; }
.form-msg.err { background: #fdecea; color: var(--err); }
.form-msg.ok { background: #e7f4ec; color: var(--ok); }
.hp { position: absolute; left: -5000px; }
.summary { background: var(--dawn); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 88px; }
.summary h3 { margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.sum-row span:last-child { font-variant-numeric: tabular-nums; }
.sum-total { font-weight: 600; border-bottom: 0; font-size: 1.05rem; padding-top: 12px; }
.summary p { color: var(--mist); font-size: .88rem; margin: 14px 0 0; }
.steps-after { margin: 18px 0 0; padding-left: 20px; color: var(--mist); font-size: .92rem; }
.steps-after li { margin-bottom: 6px; }
.verify-box { display: none; }
.verify-box.show { display: grid; gap: 14px; padding: 28px; background: var(--dawn); border-radius: var(--radius-lg); }
.verify-box p { margin: 0; }
.code-input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; max-width: 260px; font-variant-numeric: tabular-nums; }
.preview-flag { background: var(--bulb-soft); color: var(--ink); font-size: .85rem; padding: 6px 10px; border-radius: var(--radius-sm); }

/* Footer */
.site-footer { background: var(--dusk-deep); color: var(--on-dark-2); padding: 40px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--on-dark); }
.site-footer nav { display: flex; gap: 18px; }
