/* ==========================================================================
   Stay In Sausalito — site.css
   Palette: page #f7f7f5, surface #fff, ink #2a2a33, accent #14505c (bay teal),
   sand #ede5d8 (warm secondary). Fonts: Fraunces (wordmark/hero), Inter (body).
   ========================================================================== */

:root {
  --page: #f7f7f5;
  --surface: #ffffff;
  --ink: #2a2a33;
  --ink-soft: #55555f;
  --accent: #14505c;
  --accent-dark: #0d3a43;
  --accent-tint: #e7eff1;
  --sand: #ede5d8;
  --sand-deep: #d9cbb4;
  --line: #e3e3df;
  --footer-bg: #1d3a41;
  --star: #96660e;
  --sand-ink: #4a4033;
  --cta-body: #d6e4e8;
  --badge-border: #bcd2d7;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(20, 30, 40, .08), 0 4px 16px rgba(20, 30, 40, .06);
  --shadow-lift: 0 2px 6px rgba(20, 30, 40, .10), 0 12px 32px rgba(20, 30, 40, .12);
  --maxw: 1140px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lightbox button:focus-visible, .site-footer a:focus-visible { outline-color: #fff; }

#book, #contact, .prop-section { scroll-margin-top: 84px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--surface); color: var(--accent); padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  min-height: 64px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.35rem; letter-spacing: .01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark span { color: var(--accent); }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500;
  font-size: .95rem; padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { background: var(--accent-tint); color: var(--accent-dark); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

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

.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: 10px; border: 0; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary {
  background: var(--surface); color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent-tint); color: var(--accent-dark); }

/* ---------- Home hero ---------- */

.hero {
  position: relative; min-height: min(78vh, 720px);
  display: flex; align-items: flex-end;
  background-color: var(--accent-dark);
  background-size: cover; background-position: center;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .12) 75%, rgba(0, 0, 0, 0) 100%);
}
.hero-inner {
  position: relative; z-index: 1; width: 100%;
  max-width: var(--maxw); margin: 0 auto; padding: 48px 20px 56px;
}
.hero .hero-eyebrow {
  font-size: .95rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .92); margin: 0 0 10px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0 0 22px; max-width: 820px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 400; max-width: 640px;
  margin: 0 0 24px; text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

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

.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: 2rem; margin-bottom: 8px; }
.section-sub { color: var(--ink-soft); margin-bottom: 32px; max-width: 720px; }

/* ---------- Property cards (home) ---------- */

.property-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.property-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.property-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .property-card, .btn { transition: none; }
  .property-card:hover { transform: none; }
}
.property-card .card-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.property-card .card-photo img { width: 100%; height: 100%; object-fit: cover; }
.property-card .card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.property-card h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 4px;
}
.property-card .card-tagline { color: var(--ink-soft); font-size: .98rem; margin-bottom: 14px; }
.spec-row {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  font-size: .93rem; font-weight: 500; color: var(--ink);
  margin: 0 0 14px; padding: 0;
}
.spec-row li { list-style: none; }
.spec-row li + li::before { content: "\00B7"; margin: 0 8px 0 0; color: var(--ink-soft); }
.amenity-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; }
.amenity-chips li {
  list-style: none; background: var(--sand); color: var(--sand-ink);
  border-radius: 999px; padding: 5px 13px; font-size: .84rem; font-weight: 500;
}
.property-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Badges ---------- */

.badge {
  display: inline-block; background: var(--accent-tint); color: var(--accent-dark);
  border: 1px solid var(--badge-border); border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  padding: 5px 14px; white-space: nowrap;
}
.badge-sand { background: var(--sand); color: var(--sand-ink); border-color: var(--sand-deep); }

/* ---------- Why Sausalito / commute ---------- */

.perk-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.perk {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.perk .perk-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.perk .perk-icon svg { width: 24px; height: 24px; }
.perk h3 { margin-bottom: 6px; }
.perk p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Property page layout ---------- */

.property-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px; align-items: start;
  max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 64px;
}
.property-main { min-width: 0; }

.property-titlebar { padding: 28px 0 4px; }
.property-titlebar h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 6px;
}
.property-titlebar .headline-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px;
}
.property-titlebar .prop-headline {
  font-size: 1.08rem; color: var(--ink-soft); margin: 0;
}
.property-titlebar .spec-row { margin-bottom: 0; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 2 / 0.95;
  gap: 8px; border-radius: var(--radius); overflow: hidden; margin: 18px 0 8px;
}
.gallery button {
  padding: 0; border: 0; cursor: pointer; background: #dcdcd8;
  position: relative; display: block; width: 100%; height: 100%;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-main { grid-row: span 2; }
.gallery button:hover img { filter: brightness(1.06); }
.gallery .g-more::after {
  content: attr(data-more); position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 20, 25, .5); color: #fff;
  font-weight: 600; font-size: 1rem;
}

/* ---------- Content sections on property pages ---------- */

.prop-section {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; margin-top: 24px;
}
.prop-section h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin-bottom: 16px; }
.prop-section .lead { font-size: 1.05rem; }

/* Amenities */
.amenity-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.amenity-group h3 {
  font-size: .95rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft); margin: 14px 0 8px; font-weight: 600;
}
.amenity-group ul { margin: 0; padding: 0; }
.amenity-group li {
  list-style: none; padding: 4px 0 4px 26px; position: relative; font-size: .96rem;
}
.amenity-group li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) scale(.8);
}
.amenities-extra[hidden] { display: none; }
.amenities-toggle { margin-top: 18px; }

/* Location / commute */
.commute-list { margin: 0; padding: 0; }
.commute-list li {
  list-style: none; display: flex; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: .98rem;
}
.commute-list li:last-child { border-bottom: 0; }
.commute-list .c-icon {
  flex: 0 0 38px; height: 38px; border-radius: 9px;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.commute-list .c-icon svg { width: 20px; height: 20px; }
.commute-list strong { display: block; }
.commute-list span { color: var(--ink-soft); font-size: .93rem; }

/* Reviews */
.review-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 16px; background: var(--page);
}
.review-card:last-child { margin-bottom: 0; }
.review-card--host { background: var(--sand); border-color: var(--sand-deep); }
.review-stars { color: var(--star); letter-spacing: 2px; font-size: 1rem; }
.review-meta { color: var(--ink-soft); font-size: .88rem; margin: 2px 0 10px; }
.review-card p { margin: 0; font-size: .98rem; }

/* ---------- Booking rail ---------- */

.booking-rail { min-width: 0; align-self: stretch; }
.booking-card {
  position: sticky; top: 84px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  padding: 22px;
}
.booking-card h2 { font-size: 1.2rem; margin-bottom: 4px; }
.booking-card .booking-note { color: var(--ink-soft); font-size: .9rem; margin-bottom: 14px; }
.booking-card .badge { margin-bottom: 14px; }
.booking-widget-holder { min-height: 320px; }
/* Loading skeleton — visible until the OwnerRez script populates the widget */
.booking-widget-holder .ownerrez-widget:empty {
  display: block; min-height: 300px; border-radius: 8px;
  background: repeating-linear-gradient(
    to bottom,
    var(--accent-tint) 0, var(--accent-tint) 44px,
    transparent 44px, transparent 58px
  );
}
.booking-widget-holder .ownerrez-widget:empty::before {
  content: "Loading booking form\2026";
  display: block; padding: 12px 14px;
  color: var(--ink-soft); font-size: .9rem; font-weight: 500;
}
.widget-fallback { font-size: .85rem; color: var(--ink-soft); margin: 10px 0 0; }
.booking-card .contact-alt {
  border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px;
  font-size: .9rem; color: var(--ink-soft);
}
.booking-card .contact-alt a { font-weight: 600; }

/* Mobile fixed book bar */
.mobile-book-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(20, 30, 40, .12);
  align-items: center; justify-content: space-between; gap: 14px;
}
.mobile-book-bar .mb-copy { font-size: .9rem; line-height: 1.35; }
.mobile-book-bar .mb-copy strong { display: block; font-size: .98rem; }
.mobile-book-bar .btn { padding: 12px 22px; flex-shrink: 0; }

/* ---------- Availability ---------- */

.availability-widget { overflow-x: auto; }

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--accent); color: #fff; border-radius: var(--radius);
  padding: 40px 36px; margin-top: 24px; text-align: center;
}
.final-cta h2 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; }
.final-cta p { color: var(--cta-body); max-width: 560px; margin: 0 auto 22px; }
.final-cta .btn { background: #fff; color: var(--accent-dark); }
.final-cta .btn:hover { background: var(--sand); }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

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

.site-footer {
  background: var(--footer-bg); color: #c9d8dc; margin-top: 64px;
  padding: 48px 0 32px; font-size: .95rem;
}
.site-footer a { color: #fff; }
.footer-blurb { margin-top: 12px; max-width: 340px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px;
}
.site-footer .wordmark { color: #fff; font-size: 1.25rem; }
.site-footer .wordmark span { color: #9cc4cd; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.site-footer ul { margin: 0; padding: 0; }
.site-footer li { list-style: none; padding: 3px 0; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 20px; color: #9db4ba; font-size: .85rem; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 16, 18, .93);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 1200px); max-height: 78vh; object-fit: contain;
  border-radius: 6px; background: #222;
}
.lightbox .lb-caption {
  color: #dfe6e8; margin-top: 14px; font-size: .95rem; text-align: center;
  max-width: 80vw; min-height: 1.4em;
}
.lightbox .lb-count { color: #97a6ab; font-size: .85rem; margin-top: 2px; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff;
  border: 0; border-radius: 999px; cursor: pointer;
  width: 48px; height: 48px; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .property-layout { grid-template-columns: 1fr; padding-bottom: 140px; }
  .booking-card { position: static; }
  .mobile-book-bar { display: flex; }
  .mobile-book-bar ~ .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .property-cards { grid-template-columns: 1fr; }
  .perk-grid { grid-template-columns: 1fr; }
  .amenity-groups { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); aspect-ratio: 2 / 3; }
  .gallery .g-main { grid-column: span 2; grid-row: span 1; }
  .hero { min-height: 420px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .container { padding: 0 12px; }
  .wordmark { font-size: 1.08rem; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 12px 10px; font-size: .85rem; }
  .site-nav a[data-home-link] { display: none; }
  .prop-section { padding: 20px; }
  .final-cta { padding: 32px 20px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 4 / 3; }
  .gallery .g-thumb { display: none; }
  .gallery .g-main { grid-column: auto; grid-row: auto; }
  .gallery .g-main::after {
    content: attr(data-more);
    position: absolute; right: 10px; bottom: 10px;
    background: rgba(10, 20, 25, .65); color: #fff;
    font-weight: 600; font-size: .85rem;
    padding: 6px 12px; border-radius: 999px;
  }
}

/* footer social row (2026-07-15) */
.footer-social { margin-top: 10px; font-size: var(--text-sm, .875rem); }
.footer-social a { font-weight: 600; }
