/* Stone Pine Quinta — styles translated from the design handoff
   (inputs/design_handoff_vacation_booking.zip). Tokens: */
:root {
  --ink: #151515;
  --muted: #6b6b68;
  --faint: #9a9995;
  --disabled: #c4c3bf;
  --line-section: #ebeae7;
  --line-row: #efeeeb;
  --line-card: #e7e6e3;
  --line-control: #e2e1de;
  --line-input: #d9d8d4;
  --fill: #f4f4f2;
  --fill-edge: #ecebe8;
  --fill-photo: #f3f3f1;
  --family: var(--teal);
  --teal: oklch(0.43 0.07 195);
  --teal-light: oklch(0.95 0.025 195);
  --teal-text: oklch(0.33 0.07 195);
  --teal-dark: oklch(0.35 0.07 195);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
a:hover { color: var(--ink); }
input, textarea, button, select, output { font: inherit; color: inherit; }
input:focus, textarea:focus { outline: none; border-color: var(--ink) !important; }
button { cursor: pointer; }
form.inline { display: inline; }
[hidden] { display: none !important; }

.page { min-height: 100vh; padding-bottom: 120px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* --- type helpers --- */
.eyebrow { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; letter-spacing: -0.01em; margin: 8px 0 0; }
.t12 { font-size: 12px; } .t13 { font-size: 13px; } .t14 { font-size: 14px; } .t15 { font-size: 15px; }
.w500 { font-weight: 500; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.teal-dark { color: var(--teal-dark); }
.mono { font-family: var(--mono); font-size: 13px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minw0 { min-width: 0; } .grow { flex: 1; min-width: 0; } .right { text-align: right; }
.mt2 { margin-top: 2px; } .mt3 { margin-top: 3px; } .mt8 { margin-top: 8px; } .mt28 { margin-top: 28px; }
.mb6 { margin-bottom: 6px; } .mb12 { margin-bottom: 12px; } .mb20 { margin-bottom: 20px; } .mb28 { margin-bottom: 28px; }
.pad12 { padding: 12px 0; } .pad14 { padding: 14px 0; }
.stack10 { display: flex; flex-direction: column; gap: 10px; }
.stack22 { display: flex; flex-direction: column; gap: 22px; }
.stack40 { display: flex; flex-direction: column; gap: 40px; }

/* --- header --- */
.site-header { max-width: 1200px; margin: 0 auto; padding: 28px 32px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-section); }
.site-name { font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; }
.header-right { font-size: 13px; color: var(--muted); display: flex; align-items: baseline; gap: 4px; }
.preview-bar { background: var(--teal-light); color: var(--teal-dark); font-size: 13px; text-align: center; padding: 8px 16px; }
.preview-bar a { margin-left: 8px; }

/* --- buttons --- */
.btn { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font-size: 14px; }
.btn:hover:not(:disabled) { background: var(--teal); }
.btn:disabled { opacity: 0.3; cursor: default; }
.btn.start { align-self: flex-start; }
.btn.flex { flex: 1; padding: 12px 0; }
.text-btn { background: none; border: 0; font-size: 14px; color: var(--muted); padding: 0 8px; }
.text-btn:hover { color: var(--ink); }
.text-btn.small { font-size: 13px; padding: 8px 10px; }
.header-right .text-btn.small { padding: 0 0 0 8px; }
.circle-btn { border: 1px solid var(--line-control); border-radius: 999px; background: #fff; padding: 0; }
.circle-btn:hover:not(:disabled) { border-color: var(--ink); }
.circle-btn.nav { width: 36px; height: 36px; font-size: 15px; }
.circle-btn.nav:disabled { opacity: 0.3; cursor: default; }
.circle-btn.step { width: 30px; height: 30px; }
.x-btn { background: none; border: 0; color: var(--faint); font-size: 18px; padding: 4px 6px; }
.x-btn.sm { font-size: 17px; padding: 0 2px; }
.x-btn:hover { color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-btn.ink { color: var(--ink); }
.link-teal { background: none; border: 0; padding: 0; color: var(--teal); font-weight: 500; }
.link-teal:hover, .link-muted:hover { color: var(--ink); }
.link-muted { color: var(--muted); text-decoration: none; }
.pill-teal { flex: none; background: var(--teal); color: #fff; border: 0; border-radius: 999px; padding: 7px 14px; font-size: 13px; }

.stepper { display: flex; align-items: center; gap: 14px; }
.step-val { min-width: 16px; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.card .step-val { font-size: 15px; }

.note { font-size: 13px; line-height: 1.5; padding: 10px 12px; background: var(--fill); border-radius: 4px; }

/* --- guest: collage + letter --- */
.guest-top { padding-top: 40px; }
.collage { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-auto-rows: 224px; gap: 12px; }
.tile { min-width: 0; border-radius: 4px; overflow: hidden; background: var(--fill-photo); }
.tile.main { grid-row: span 2; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.letter { display: flex; flex-wrap: wrap; gap: 56px; padding: 64px 0 8px; }
.letter-main { flex: 1 1 480px; max-width: 660px; }
.dear { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1.05; letter-spacing: -0.015em; margin: 14px 0 28px; }
.para { font-family: var(--serif); font-size: 20px; line-height: 1.6; margin: 0 0 18px; text-wrap: pretty; }
.signature { font-family: var(--serif); font-style: italic; font-size: 20px; margin: 28px 0 0; }
.pair { display: flex; flex-direction: column; gap: 4px; }

/* --- calendar section --- */
.cal-section { padding-top: 48px; padding-bottom: 48px; }
.cal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-body { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.cal-main { flex: 1 1 600px; min-width: 0; }
.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 40px; }
.month-label { font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 6px; }
.weekdays div { font-size: 11px; color: var(--faint); padding-left: 6px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day { border-top: 1px solid var(--line-row); padding: 4px 0; user-select: none; }
.day.blank { border-top-color: transparent; }
.day.pickable { cursor: pointer; }
.day.in-sel { background: var(--fill); }
.day.sel-edge { background: var(--fill-edge); }
.num { width: 26px; height: 26px; margin: 0 0 4px 3px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.day.past .num { color: var(--disabled); }
.day.today .num { color: var(--teal); font-weight: 600; }
.day.sel-edge .num { background: var(--ink); color: #fff; font-weight: 600; }
.bar { position: relative; height: 18px; margin-bottom: 2px; border: 1px solid transparent; }
.bar.family { background: var(--family); border-color: var(--family); }
/* Guest stays: one color per invite (see guestColors in owner.go). Confirmed
   is solid; maybe is a tint with a dashed edge. */
.bar, .swatch { --c: var(--muted); }
.bar.g0 { --c: oklch(0.55 0.12 38); }  /* clay */
.bar.g1 { --c: oklch(0.56 0.1 72); }   /* ochre */
.bar.g2 { --c: oklch(0.52 0.08 135); } /* moss */
.bar.g3 { --c: oklch(0.5 0.08 255); }  /* slate */
.bar.g4 { --c: oklch(0.48 0.09 340); } /* plum */
.bar.confirmed { background: var(--c); border-color: var(--c); }
.bar.maybe { background: color-mix(in oklch, var(--c) 13%, white); border-color: var(--c); border-style: dashed; }
.bar.family, .bar.confirmed, .bar.maybe { border-left-width: 0; border-right-width: 0; }
.bar.st { margin-left: 4px; border-left-width: 1px; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.bar.en { margin-right: 4px; border-right-width: 1px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.bar-label { position: absolute; z-index: 2; left: 6px; top: 0; line-height: 16px; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; pointer-events: none; }
.bar.maybe .bar-label { color: color-mix(in oklch, var(--c) 75%, black); }
.legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; font-size: 12px; color: var(--muted); }
.legend div { display: flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 10px; border-radius: 2px; }
.swatch.family { background: var(--family); }
.swatch.confirmed { background: var(--c); }
.swatch.maybe { background: color-mix(in oklch, var(--c) 13%, white); border: 1px dashed var(--c); }

/* --- side panel --- */
.side { flex: 1 1 280px; max-width: 380px; display: flex; flex-direction: column; gap: 40px; }
.side > .note { margin-bottom: -22px; }
.card { border: 1px solid var(--line-card); border-radius: 6px; padding: 22px; }
.card .empty { font-size: 14px; line-height: 1.55; color: var(--muted); }
.sel { display: flex; flex-direction: column; gap: 18px; }
.sel-range { font-family: var(--serif); font-size: 24px; margin-top: 8px; }
.sel-nights { font-size: 13px; color: var(--muted); margin-top: 4px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: 999px; padding: 3px; }
.segmented button { border: 0; border-radius: 999px; padding: 9px 0; font-size: 14px; background: transparent; color: var(--ink); }
.segmented button.on { background: var(--ink); color: #fff; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: -6px; }
.people-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.btn-row { display: flex; gap: 10px; }
.list-title { margin-bottom: 10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-row); }
.row-main { display: flex; align-items: center; gap: 12px; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 999px; border: 1px solid var(--teal); }
.dot.ink { width: 8px; height: 8px; background: var(--ink); border: 0; }
.dot.sm { width: 8px; height: 8px; }
.dot.confirmed { background: var(--teal); }
.dot.maybe { background: var(--teal-light); border-style: dashed; }
.plan { padding: 14px 0; border-bottom: 1px solid var(--line-row); display: flex; flex-direction: column; gap: 8px; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.status { font-size: 12px; font-weight: 500; color: var(--muted); }
.status.confirmed { color: var(--teal); }
.other { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-row); }

/* --- owner: invitations --- */
.invites-section { padding-bottom: 48px; }
.invites-inner { border-top: 1px solid var(--line-section); padding-top: 48px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.invites-left { flex: 0 1 340px; display: flex; flex-direction: column; gap: 48px; min-width: 260px; }
.invites-right { flex: 1 1 560px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input { border: 0; border-bottom: 1px solid var(--line-input); padding: 8px 0; font-size: 16px; background: transparent; border-radius: 0; }
.invite-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.created { background: var(--teal-light); border-radius: 6px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.created-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.letter-input { width: 100%; border: 1px solid var(--line-control); border-radius: 4px; padding: 14px; font-family: var(--serif); font-size: 16px; line-height: 1.55; resize: vertical; background: #fff; }
.save-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 6px; min-height: 32px; }
.photo-picks { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.photo-pick label { position: relative; display: block; height: 72px; border-radius: 4px; overflow: hidden; background: var(--fill-photo); cursor: pointer; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-pick span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; background: rgba(21, 21, 21, 0.45); opacity: 0; transition: opacity 0.15s; }
.photo-pick label:hover span, .photo-pick input:focus-visible + span { opacity: 1; }
.inv-grid { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(130px, 1.3fr) minmax(90px, 0.8fr) auto; column-gap: 20px; }
.inv-head { font-size: 12px; color: var(--faint); padding: 10px 0; border-bottom: 1px solid var(--ink); }
.inv-row { align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line-row); }
.inv-dates { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.inv-booking { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.inv-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; font-size: 13px; }

.notice { padding-top: 64px; }
.notice p { max-width: 560px; line-height: 1.55; }
.private { margin: 0; padding: 40vh 32px 0; text-align: center; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* --- narrow screens (down to ~360px) --- */
@media (max-width: 720px) {
  .wrap, .site-header { padding-left: 20px; padding-right: 20px; }
  .collage { grid-auto-rows: 140px; gap: 8px; }
  .dear { font-size: 44px; }
  .letter { gap: 32px; padding: 44px 0 0; }
  .months { grid-template-columns: minmax(0, 1fr); }
  .inv-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 10px; }
  .inv-head { display: none; }
  .inv-actions { justify-content: flex-start; }
}
