/* ──────────────────────────────────────────────────────────────
   Stars on the Bay Hybrid — shared styles
   ────────────────────────────────────────────────────────────── */

:root {
  --navy: #1e3a5f;
  --navy-deep: #142b46;
  --navy-soft: #2d4d73;
  --sunset: #e8a05a;
  --sunset-deep: #d07f3f;
  --teal: #4fd1c5;
  --sand: #f6f1e8;
  --off-white: #fbfaf7;
  --ink: #1a2332;
  --ink-soft: #5a6776;
  --line: rgba(30, 58, 95, 0.12);
  --ok: #2c8a55;
  --warn: #d77a20;
  --err: #c83e3e;

  --shadow: 0 6px 24px rgba(20, 43, 70, 0.12);
  --shadow-lg: 0 16px 42px rgba(20, 43, 70, 0.2);
  --radius: 14px;

  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space: 1.25rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 5rem;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
  margin: 0 0 var(--space) 0;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 var(--space) 0; color: var(--ink); }
a  { color: var(--navy); }

/* ──────────────────────── buttons ──────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--sunset);
  color: var(--navy-deep);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--sunset-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-primary:disabled {
  background: #c9d0d9;
  color: var(--ink-soft);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}
.btn-ghost {
  background: #fff;
  color: var(--navy-deep);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--navy);
}
.btn-large {
  font-size: 1.1rem;
  padding: 1rem 1.8rem;
}
.btn-full {
  width: 100%;
}

/* ──────────────────────── nav ──────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar.transparent {
  background: transparent;
  border: none;
  position: absolute;
  left: 0;
  right: 0;
}
.brand {
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.topbar.transparent .brand { color: #fff; }
.brand .star { color: var(--sunset); margin-right: 0.3rem; }
.topbar-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.topbar-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.topbar.transparent .topbar-links a { color: rgba(255,255,255,0.9); }
.topbar-links a:hover { color: var(--navy); }
.topbar.transparent .topbar-links a:hover { color: #fff; }

/* ──────────────────────── hero ──────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/photos/pier-sunset.jpeg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 43, 70, 0.3) 0%,
    rgba(20, 43, 70, 0.4) 55%,
    rgba(20, 43, 70, 0.78) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 1.5rem var(--space-lg) 1.5rem;
  max-width: 760px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-md);
  max-width: 540px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.save-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--teal);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

/* ──────────────────────── stats / sections ──────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--navy-deep);
  color: #fff;
}
.stat {
  padding: var(--space) var(--space-sm);
  text-align: center;
  background: var(--navy-deep);
}
.stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--sunset);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-l {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

section.container {
  padding: var(--space-xl) 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}
section.container h2 { text-align: center; margin-bottom: var(--space-md); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space);
}
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.why-card:hover { transform: translateY(-3px); }
.why-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.why-card h3 { margin-bottom: 0.5rem; }
.why-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 220px;
  gap: 8px;
}
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.04); }
.gallery-grid .g-large {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 640px) {
  .gallery-grid { grid-auto-rows: 180px; }
  .gallery-grid .g-large { grid-column: span 2; grid-row: span 1; }
}

.location {
  background: var(--sand);
  padding: var(--space-xl) 1.5rem;
  text-align: center;
}
.location p {
  max-width: 680px;
  margin: 0 auto var(--space) auto;
  color: var(--ink-soft);
}

.foot {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space) 1.5rem;
  font-size: 0.9rem;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.foot a { color: var(--sunset); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ──────────────────────── booking flow ──────────────────────── */
.flow-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-md) 1.5rem var(--space-xl);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: var(--space-md);
}
@media (max-width: 900px) {
  .flow-shell { grid-template-columns: 1fr; }
}
.flow-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow);
}
.flow-side {
  position: sticky;
  top: 90px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--sand);
  border-radius: 999px;
}
.step-chip.active {
  color: var(--navy-deep);
  background: var(--teal);
}
.step-chip.done {
  color: var(--ok);
  background: #e3f3ea;
}
.step-num {
  background: rgba(0,0,0,0.08);
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
}

/* ──────────────────────── calendar ──────────────────────── */
.cal-wrap { display: flex; flex-direction: column; gap: var(--space); }
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.cal-head button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-size: 1rem;
}
.cal-head button:hover { background: var(--sand); }
.cal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy-deep);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  text-align: center;
  padding: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.cal-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  user-select: none;
  background: #fff;
  border: 1px solid transparent;
}
.cal-cell:hover:not(.disabled):not(.blocked) {
  border-color: var(--navy-soft);
}
.cal-cell.off { color: #c5c9d0; pointer-events: none; }
.cal-cell.disabled { color: #c5c9d0; pointer-events: none; }
.cal-cell.blocked {
  background: repeating-linear-gradient(
    135deg,
    #ffe6e0,
    #ffe6e0 4px,
    #ffd4cc 4px,
    #ffd4cc 8px
  );
  color: #9a5b52;
  cursor: not-allowed;
}
.cal-cell.in-range {
  background: rgba(79, 209, 197, 0.25);
  border-radius: 0;
  color: var(--navy-deep);
}
.cal-cell.start, .cal-cell.end {
  background: var(--teal);
  color: var(--navy-deep);
  font-weight: 700;
}
.cal-cell.start { border-radius: 8px 0 0 8px; }
.cal-cell.end { border-radius: 0 8px 8px 0; }
.cal-cell.start.end { border-radius: 8px; }
.cal-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.cal-legend .sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* ──────────────────────── forms ──────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-body);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: -1px;
  border-color: var(--teal);
}
.field .hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.field.err input, .field.err select, .field.err textarea {
  border-color: var(--err);
}
.field .err-msg {
  font-size: 0.78rem;
  color: var(--err);
}

.agreement-box {
  margin-top: var(--space);
  padding: var(--space);
  background: var(--sand);
  border-radius: 10px;
  border: 1px solid var(--line);
}
.agreement-body {
  max-height: 280px;
  overflow: auto;
  background: #fff;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.agreement-body strong { color: var(--ink); }
.agreement-body em { color: var(--ink-soft); }
.check-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.93rem;
}
.check-row input { margin-top: 0.25rem; }

/* ──────────────────────── summary sidebar ──────────────────────── */
.summary h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.summary .su-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}
.su-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.93rem;
  color: var(--ink);
}
.su-row.muted { color: var(--ink-soft); }
.su-row.sub { color: var(--ink-soft); font-size: 0.85rem; padding: 0.15rem 0; }
.su-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0.6rem 0;
}
.su-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-deep);
  padding: 0.5rem 0;
  border-top: 2px solid var(--navy-deep);
  margin-top: 0.5rem;
}
.su-save {
  background: rgba(79, 209, 197, 0.15);
  color: var(--navy-deep);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.5rem;
  text-align: center;
}
.su-empty {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: var(--space) 0;
}

/* ──────────────────────── payment / success ──────────────────────── */
.pay-card {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--space-md);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pay-lock {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-bottom: var(--space);
}
.mock-badge {
  display: inline-block;
  background: #fff4d6;
  color: #8a6000;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: var(--space);
  border: 1px solid #f0d07a;
}
.success-card {
  max-width: 640px;
  margin: var(--space-md) auto;
  padding: var(--space-md);
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.success-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space);
}
.email-preview {
  margin-top: var(--space-md);
  text-align: left;
  background: var(--sand);
  border: 1px dashed var(--navy-soft);
  border-radius: 10px;
  padding: var(--space);
  font-size: 0.9rem;
}
.email-preview h4 {
  margin: 0 0 0.25rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.email-preview .ep-body {
  white-space: pre-wrap;
  color: var(--ink);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.82rem;
  background: #fff;
  padding: 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-top: 0.5rem;
}

/* ──────────────────────── admin ──────────────────────── */
.login-card {
  max-width: 400px;
  margin: 15vh auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow);
}
.login-card h1 {
  font-size: 1.5rem;
  text-align: center;
}
.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space) 1.5rem var(--space-xl);
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space);
  margin-bottom: var(--space-md);
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space);
  box-shadow: var(--shadow);
}
.kpi-n {
  font-size: 1.8rem;
  font-family: var(--font-display);
  color: var(--navy-deep);
  font-weight: 600;
  line-height: 1.1;
}
.kpi-l {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.92rem;
}
.tbl th, .tbl td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.tbl th {
  background: var(--sand);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--sand); }
.pill-status {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}
.pill-status.booked { background: #e3f3ea; color: var(--ok); }
.pill-status.refunded { background: #fde3e3; color: var(--err); }
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.sync-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(44, 138, 85, 0.18);
}

/* ──────────────────────── misc helpers ──────────────────────── */
.hidden { display: none !important; }
.dim { color: var(--ink-soft); }
.small { font-size: 0.85rem; }
.row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

::selection { background: var(--sunset); color: var(--navy-deep); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Admin verify-lookup buttons + Turnstile widget container */
.lookup-cell { display: flex; flex-direction: column; gap: 0.25rem; align-items: stretch; }
.lookup-cell .btn { font-size: 0.75rem; padding: 0.25rem 0.5rem; }
.turnstile-box { display: flex; justify-content: flex-start; min-height: 65px; }
