/* Seal Beach Comfort Retreat — staysealbeach.com */
:root {
  --ink: #1a2a32;
  --ink-soft: #3d4f57;
  --tide: #2c5d62;
  --tide-deep: #1e4549;
  --sea: #4f8b8a;
  --sand: #f3ead8;
  --sand-dark: #e5d6bb;
  --foam: #fbf8f2;
  --paper: #fffdf8;
  --sunset: #c46a4a;
  --sunset-deep: #a35238;
  --line: rgba(26, 42, 50, 0.12);
  --shadow: 0 18px 50px rgba(26, 42, 50, 0.12);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Figtree", "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
  --narrow: 740px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--foam);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tide-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--sunset-deep); }
h1, h2, h3, .brand-name {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.wrap-narrow { width: min(var(--narrow), calc(100% - 2.4rem)); margin-inline: auto; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; }
.muted { color: var(--ink-soft); }
.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: 0.7rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.25rem; gap: 1rem;
}
.logo {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  line-height: 1.1;
}
.logo .brand-name { font-size: 1.15rem; margin: 0; }
.logo .brand-sub { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 550; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--tide-deep); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 2.6rem; height: 2.6rem; position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; height: 2px; width: 1.35rem; background: var(--ink);
  position: absolute; left: 0.62rem; border-radius: 2px;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { content: ""; top: -6px; }
.nav-toggle span::after { content: ""; top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tide); color: #fff !important; text-decoration: none !important;
  border: 0; border-radius: 999px; padding: 0.85rem 1.35rem;
  font-weight: 650; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--tide-deep); color: #fff !important; }
.btn-ghost {
  background: transparent; color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--sand); color: var(--ink) !important; }
.btn-sunset { background: var(--sunset); }
.btn-sunset:hover { background: var(--sunset-deep); }

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 820px);
  display: grid; place-items: end stretch;
  color: #fff; overflow: hidden;
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,28,34,0.15) 0%, rgba(16,28,34,0.28) 40%, rgba(16,28,34,0.72) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 0 0 4.5rem; width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.hero-copy .kicker { color: var(--sand); }
.hero h1 { text-shadow: 0 2px 24px rgba(0,0,0,0.25); max-width: 14ch; }
.hero .lede { color: rgba(255,255,255,0.9); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  margin: -2.2rem auto 0;
  width: min(var(--max), calc(100% - 2.4rem));
  position: relative; z-index: 2;
  box-shadow: var(--shadow);
}
.hero-stats div { padding: 1.25rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 550; }
.hero-stats span { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.04em; }

/* Sections */
section { padding: 4.5rem 0; }
.band-sand { background: var(--sand); }
.band-ink { background: var(--ink); color: var(--foam); }
.band-ink h2, .band-ink a { color: var(--foam); }
.section-head { margin-bottom: 2rem; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .copy { order: 2; }
.frame {
  border-radius: 1.25rem; overflow: hidden;
  box-shadow: var(--shadow);
}
.frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Cards / grids */
.card-grid, .guide-grid, .amenity-grid, .faq-list {
  display: grid; gap: 1.25rem;
}
.card-grid { grid-template-columns: repeat(3, 1fr); }
.guide-grid { grid-template-columns: repeat(2, 1fr); }
.place-card, .guide-card, .amenity, .faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
}
.place-card img, .guide-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.place-card .body, .guide-card .body { padding: 1.15rem 1.2rem 1.3rem; }
.place-card h3, .guide-card h3 { margin-bottom: 0.35em; }
.amenity { padding: 1.1rem 1.15rem; }
.amenity h3 { font-size: 1.05rem; margin: 0 0 0.25em; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
.amenity p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.amenity-grid { grid-template-columns: repeat(3, 1fr); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.7rem;
}
.gallery a, .gallery figure { margin: 0; border-radius: 0.9rem; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery .wide { grid-row: 1 / span 2; }
.gallery .wide img { aspect-ratio: 3/4; min-height: 100%; }

/* Booking placeholder */
.booking-box {
  background: var(--paper);
  border: 1px dashed var(--tide);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.booking-box h2 { margin-top: 0; }
#hostaway-calendar-widget { min-height: 2rem; }
.booking-fallback {
  margin-top: 1rem;
  background: var(--sand);
  border-radius: 0.8rem;
  padding: 1.1rem 1.2rem;
}
.booking-fallback[hidden] { display: none; }
.policy-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 1rem; }

/* FAQ */
.faq details { padding: 0.2rem 1.15rem; }
.faq summary {
  cursor: pointer; font-weight: 650; padding: 1rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--tide); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0; }

/* Tables / distances */
.dist-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 1rem; overflow: hidden; }
.dist-table th, .dist-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.dist-table th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 650; }
.dist-caption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.7rem; }

/* Footer */
.site-footer { background: var(--ink); color: #d9e0dc; padding: 3.2rem 0 2rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.legal { font-size: 0.82rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.1rem; color: #9aadaa; }

.placeholder-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f3d9a4;
  color: #5a3d0a;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--foam); flex-direction: column; align-items: stretch;
    padding: 0.8rem 1.2rem 1.2rem; border-bottom: 1px solid var(--line);
    gap: 0.4rem;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { text-align: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:nth-child(2) { border-right: 0; }
  .hero-stats div:nth-child(1),
  .hero-stats div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .copy { order: 0; }
  .card-grid, .guide-grid, .amenity-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .wide { grid-row: auto; }
  .gallery .wide img { aspect-ratio: 4/3; }
  .hero { min-height: 78vh; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
}

.book-layout, .cta-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: start;
}
.cta-layout { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
@media (max-width: 860px) {
  .book-layout, .cta-layout { grid-template-columns: 1fr; }
}
