/* ═══════════════════════════════════════════════════════════════
   weddelp — Leah & Andrew's Wedding review page
   Values carried over verbatim from the Claude Design prototype.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --red: #b8232c;
  --red-dark: #95181f;
  --red-link-hover: #8f1a21;
  --ink: #2b2b2b;
  --ink-soft: #37332e;
  --gray-1: #4a453e;
  --gray-2: #5c574f;
  --gray-3: #8a837a;
  --gray-4: #a5a09a;
  --line: #e6e2dc;
  --line-strong: #d9d4cd;
  --line-tag: #e0dbd3;
  --line-faint: #efece7;
  --paper: #f7f5f2;
  --field: #fbfaf8;
  --green: #2f6b3a;
  --sans: "Open Sans", Helvetica, Arial, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --shell: 1120px;
}

* { box-sizing: border-box; }

/* .btn and friends set display, which would otherwise win over [hidden]. */
[hidden] { display: none !important; }

html {
  /* Without this, phones auto-inflate the small caption and chip text. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-link-hover); text-decoration: underline; }
::placeholder { color: var(--gray-4); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; padding: 10px 16px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line-strong); border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.page { min-height: 100vh; background: var(--paper); }

/* ── Top bar ──────────────────────────────────────────────────── */

.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: var(--shell); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}
.wordmark {
  font-family: var(--serif); font-size: 21px; color: var(--red);
  letter-spacing: -0.3px; flex-shrink: 0;
}
.fakesearch {
  flex: 1; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 9px 12px; background: var(--field); min-width: 0;
}
.fakesearch-icon, .fakesearch-text { color: var(--gray-4); font-size: 14px; }
.fakesearch-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; gap: 18px; font-size: 13px; font-weight: 600; }
.topnav a { color: var(--gray-2); white-space: nowrap; }
.topnav a:hover { color: var(--red); }

/* ── Photo strip ──────────────────────────────────────────────── */

.photostrip-wrap { position: relative; max-width: var(--shell); margin: 0 auto; }

.photostrip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(25% - 3px);
  gap: 4px;
  background: var(--line);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.photostrip::-webkit-scrollbar { display: none; }

.photostrip-cell {
  height: 230px; position: relative; overflow: hidden;
  scroll-snap-align: start; display: block;
}
.photostrip-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.photostrip-cell:hover img { transform: scale(1.04); }
.photo-caption {
  position: absolute; left: 12px; bottom: 12px;
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  color: var(--gray-1); background: #fffffff0;
  padding: 3px 6px; border-radius: 3px;
  max-width: calc(100% - 24px);
}

.photostrip-all {
  position: absolute; right: 14px; top: 14px;
  background: #2b2b2bd9; color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 11px; border-radius: 5px; z-index: 2;
}
.photostrip-all:hover { background: var(--red); color: #fff; text-decoration: none; }

.strip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #ffffffe8;
  color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0 0 2px; transition: opacity .18s, background .18s;
}
.strip-arrow:hover { background: #fff; color: var(--red); border-color: var(--red); }
.strip-arrow.prev { left: 10px; }
.strip-arrow.next { right: 10px; }
.strip-arrow[disabled] { opacity: 0; pointer-events: none; }

/* ── Hero ─────────────────────────────────────────────────────── */

.hero { max-width: var(--shell); margin: 0 auto; padding: 26px 24px 0; }
.hero-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.hero h1 {
  font-family: var(--serif); font-size: 40px; line-height: 1.15;
  margin: 0 0 12px; letter-spacing: -0.5px;
}
.hero-rating {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 10px;
}
.hero-stars { font-size: 26px; letter-spacing: 2px; color: var(--red); }
.hero-stars .dim { color: var(--line-tag); }
.hero-score { font-size: 15px; font-weight: 700; }
.hero-count { font-size: 14px; color: var(--gray-2); }
.pill-open {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f2f7f2; color: var(--green); border: 1px solid #cfe3d2;
  border-radius: 20px; padding: 4px 11px; font-size: 12px; font-weight: 700;
}
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  background: #fff; border: 1px solid var(--line-tag); border-radius: 20px;
  padding: 5px 13px; font-size: 13px; font-weight: 600; color: var(--gray-1);
}
.hero-meta { font-size: 14px; color: var(--gray-2); line-height: 1.7; }
.hero-meta strong { color: var(--ink); }
.hero-actions { display: flex; gap: 10px; align-items: center; }

/* ── Buttons ──────────────────────────────────────────────────── */

.btn {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  padding: 12px 22px; border-radius: 6px; cursor: pointer;
  display: inline-block; border: none; line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; text-decoration: none; }
.btn-secondary { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ── Main grid ────────────────────────────────────────────────── */

.main {
  max-width: var(--shell); margin: 0 auto; padding: 26px 24px 64px;
  display: grid; grid-template-columns: 1fr 330px; gap: 32px; align-items: start;
}
.col-left { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 24px;
}
.card.flush { padding: 0; overflow: hidden; }
.card.pad20 { padding: 20px; }

.card-title { font-size: 17px; margin: 0 0 18px; font-weight: 800; }
.card-title.tight { margin: 0 0 6px; }
.card-title.bare { margin: 0; }
.card-sub { margin: 0 0 18px; font-size: 13px; color: var(--gray-3); }

/* ── Rating breakdown ─────────────────────────────────────────── */

.breakdown {
  display: grid; grid-template-columns: 96px 1fr 46px;
  gap: 10px 14px; align-items: center;
}
.bd-label { font-size: 13px; font-weight: 600; color: var(--gray-2); }
.bd-track {
  height: 12px; background: var(--line-faint); border-radius: 6px;
  overflow: hidden; display: block;
}
.bd-fill {
  display: block; height: 100%; background: var(--red);
  border-radius: 6px; transition: width .5s ease;
}
.bd-count { font-size: 13px; color: var(--gray-3); text-align: right; }

/* ── Review form ──────────────────────────────────────────────── */

.review-form { display: flex; flex-direction: column; gap: 14px; }

.field {
  border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 12px 14px; font-size: 14px; font-family: var(--sans);
  background: var(--field); color: var(--ink); width: 100%;
}
textarea.field { resize: vertical; min-height: 96px; }
.field:focus { border-color: var(--red); outline: none; background: #fff; }

.star-row { display: flex; align-items: center; gap: 12px; }
.star-picker { display: flex; gap: 4px; font-size: 30px; line-height: 1; }
.star-picker button {
  background: none; border: none; padding: 2px 3px; cursor: pointer;
  font-size: inherit; line-height: 1; color: #ded9d1;
  transition: color .12s, transform .12s;
}
.star-picker button.on { color: var(--red); }
.star-picker button:active { transform: scale(.9); }
.rating-label { font-size: 13px; font-weight: 600; color: var(--gray-2); }

.dropzone {
  border: 1px dashed var(--line-strong); border-radius: 8px;
  padding: 14px; background: var(--field); transition: border-color .15s, background .15s;
}
.dropzone.dragover { border-color: var(--red); background: #fdf6f2; }
.dropzone-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.dropzone-title { font-size: 13.5px; font-weight: 700; }
.dropzone-sub { font-size: 12px; color: var(--gray-3); margin-top: 2px; }
.choose-btn {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: border-color .15s, color .15s;
}
.choose-btn:hover { border-color: var(--red); color: var(--red); }
.dropzone-foot { margin-top: 12px; font-size: 12px; color: var(--gray-3); }

.draft-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.draft-photo {
  width: 66px; height: 66px; border-radius: 6px; border: 1px solid var(--line);
  overflow: hidden; display: block; position: relative; padding: 0; background: none;
}
.draft-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.draft-photo .remove {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #2b2b2bcc; color: #fff; border: none;
  font-size: 11px; line-height: 18px; padding: 0; cursor: pointer; text-align: center;
}
.draft-photo .remove:hover { background: var(--red); }

.submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-note { font-size: 12px; color: var(--gray-3); }
.form-note.err { color: var(--red); }

/* ── Feed ─────────────────────────────────────────────────────── */

.feed-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 6px 0 14px; gap: 12px;
}
.feed-sort { font-size: 13px; color: var(--gray-3); white-space: nowrap; }
.feed-sort select {
  font-family: var(--sans); font-size: 13px; color: var(--gray-3);
  background: transparent; border: none; padding: 0 16px 0 2px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%238a837a'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
.feed-sort select:hover { color: var(--red); }

.feed {
  display: flex; flex-direction: column; gap: 16px;
  max-height: 900px; overflow-y: auto; padding-right: 10px;
  /* The cap comes from the design. Fade the cut edge and keep the
     scrollbar visible so it reads as "more below", not "broken card". */
  mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
  scrollbar-width: thin;
  scrollbar-color: #d9d4cd transparent;
}
.feed.at-end {
  mask-image: none; -webkit-mask-image: none;
}
.feed::-webkit-scrollbar { width: 8px; }
.feed::-webkit-scrollbar-track { background: transparent; }
.feed::-webkit-scrollbar-thumb { background: #ddd8d0; border-radius: 4px; }
.feed::-webkit-scrollbar-thumb:hover { background: #c9c3ba; }

.review {
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 22px;
}
.review.fresh { animation: pop .45s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.review-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; background: #efe7e0;
  color: var(--red); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; flex-shrink: 0;
}
.review-name { display: block; font-size: 15px; font-weight: 700; }
.review-meta { display: block; font-size: 12px; color: var(--gray-3); margin-top: 2px; }

.review-stars-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-stars { font-size: 17px; letter-spacing: 1px; color: var(--red); }
.review-stars .dim { color: var(--line-tag); }
.review-time { font-size: 12px; color: var(--gray-3); }

.review-text {
  margin: 0 0 14px; font-size: 14.5px; line-height: 1.65;
  color: var(--ink-soft); text-wrap: pretty; white-space: pre-wrap; overflow-wrap: break-word;
}

.review-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.review-photo {
  width: 104px; height: 104px; border-radius: 8px; border: 1px solid var(--line);
  overflow: hidden; display: block; padding: 0; background: none; cursor: zoom-in;
}
.review-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.review-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 8px 15px; font-size: 12.5px; font-weight: 700; color: var(--gray-1);
  font-family: var(--sans);
}
button.chip { cursor: pointer; transition: border-color .15s, color .15s; }
button.chip:hover { border-color: var(--red); color: var(--red); }
button.chip.voted { border-color: var(--red); color: var(--red); background: #fdf6f2; cursor: default; }

.feed-empty { font-size: 13.5px; color: var(--gray-3); padding: 8px 2px; }

/* ── Owner replies ────────────────────────────────────────────── */

.replies {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line-faint);
  display: flex; flex-direction: column; gap: 14px;
}
.reply {
  background: #fdf6f2; border: 1px solid #f0dfd6; border-radius: 8px;
  padding: 14px 16px; position: relative;
}
.reply-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.reply-badge {
  background: var(--red); color: #fff; border-radius: 4px;
  padding: 2px 7px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
}
.reply-author { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.reply-time { font-size: 12px; color: var(--gray-3); }
.reply-text {
  margin: 0; font-size: 13.5px; line-height: 1.6; color: #6b5f57;
  white-space: pre-wrap; overflow-wrap: break-word;
}
.reply-delete {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; color: var(--gray-3);
}
.reply-delete:hover { color: var(--red); }

.reply-form { display: flex; flex-direction: column; gap: 10px; }
.reply-input { font-size: 13.5px; min-height: 62px; }
.reply-form-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── Host bar ─────────────────────────────────────────────────── */

.host-bar {
  background: #2b2b2b; color: #e8e3dc;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: none; padding: 10px 24px; font-size: 12.5px;
}
.host-badge {
  background: var(--red); color: #fff; border-radius: 4px;
  padding: 3px 9px; font-weight: 800; font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase;
}
.host-copy { color: #b6afa6; }
.host-signout {
  margin-left: auto; background: none; border: 1px solid #56504a;
  color: #e8e3dc; border-radius: 5px; padding: 5px 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 700; cursor: pointer;
}
.host-signout:hover { border-color: var(--red); color: #fff; }

/* ── Sidebar ──────────────────────────────────────────────────── */

.sidebar {
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 20px;
}

.map-frame { width: 100%; height: 200px; border: none; display: block; }
.map-body { padding: 18px 20px; }
.map-address { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.map-directions { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; }

.side-title { font-size: 15px; margin: 0 0 14px; font-weight: 800; }
.side-title.tight { margin: 0 0 4px; }
.side-title.tight8 { margin: 0 0 8px; }
.side-sub { margin: 0 0 14px; font-size: 12.5px; color: var(--gray-3); }

.rows { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.rows.small { font-size: 13px; }
.row { display: flex; justify-content: space-between; gap: 12px; }
.row-k { color: var(--gray-2); }
.row-v { font-weight: 600; text-align: right; }
.row-v.green { color: var(--green); }

.side-note {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-faint);
  font-size: 12.5px; color: var(--gray-3); line-height: 1.6;
}

.brunch { margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink-soft); }
.brunch .muted { color: var(--gray-2); }

.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.price { font-size: 22px; font-weight: 800; color: var(--red); letter-spacing: 1px; }
.price-dim { color: #ddd8d0; }
.price-note { font-size: 13px; color: var(--gray-2); }

.amenities {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 11px 14px; font-size: 13px;
}
.amenities span { display: flex; gap: 8px; align-items: center; }
.amenities i { font-style: normal; font-weight: 800; }
.amenities .yes { color: var(--green); }
.amenities .no { color: var(--gray-4); }

.owners {
  background: #fdf6f2; border-color: #f0dfd6; padding: 20px;
  font-size: 13px; line-height: 1.65; color: #6b5f57;
}
.owners strong { display: block; color: var(--red); font-size: 13px; margin-bottom: 6px; }

.hospitality { padding: 20px; font-size: 13px; line-height: 1.65; color: var(--gray-2); }
.hospitality strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 6px; }

.album-title { display: block; font-size: 14px; margin-bottom: 8px; }
.album-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px;
}
.album-grid img, .album-grid a {
  width: 100%; height: 88px; object-fit: cover; border-radius: 6px; display: block;
}
.album-copy { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: var(--gray-2); }
.album-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.album-actions .btn { flex: 1 1 auto; text-align: center; }
.album-drive-link {
  display: block; margin-top: 10px; font-size: 12.5px; font-weight: 700;
}
.album-note { margin-top: 10px; font-size: 12px; color: var(--gray-3); line-height: 1.5; }
.album-note.err { color: var(--red); }

/* ── Lightbox ─────────────────────────────────────────────────── */

.lightbox {
  position: fixed; inset: 0; z-index: 90; background: #1a1817f2;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; display: block; }
.lightbox-close {
  position: absolute; top: 18px; right: 20px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid #ffffff44; background: #ffffff1a;
  color: #fff; font-size: 15px; cursor: pointer;
}
.lightbox-close:hover { background: #ffffff33; }

/* ── Offline / not-configured banner ──────────────────────────── */

.local-banner {
  max-width: var(--shell); margin: 0 auto; padding: 10px 24px 0;
  font-size: 12.5px; color: var(--gray-3);
}
.local-banner span {
  display: inline-block; background: #fff8e8; border: 1px solid #eadfc4;
  color: #7a6a45; border-radius: 6px; padding: 7px 12px;
}

/* ── Mobile ───────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .topnav { display: none; }
  .photostrip { grid-auto-columns: calc(50% - 2px); }
  .photostrip-cell { height: 150px; }
  .strip-arrow { display: none; }
  .hero h1 { font-size: 28px; }
  .main { grid-template-columns: 1fr; padding: 20px 16px 48px; }
  .sidebar { position: static; }
  .hero { padding: 20px 16px 0; }
  .topbar-inner { padding: 12px 16px; gap: 12px; }
  .feed { max-height: none; overflow-y: visible; padding-right: 0; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; text-align: center; }
  .review-photo { width: 88px; height: 88px; }
}

@media (max-width: 760px) {
  /* The search bar is one of the better jokes — keep it on phones,
     just let it shrink. */
  .fakesearch { padding: 8px 10px; }
  .fakesearch-text { font-size: 13px; }
  .photo-caption { font-size: 10.5px; padding: 3px 5px; }
  .chip { padding: 9px 15px; }
  .feed-sort select { padding: 6px 18px 6px 2px; }
  .map-directions, .album-copy a { padding: 4px 0; display: inline-block; }
}

@media (max-width: 360px) {
  .fakesearch { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .photostrip { scroll-behavior: auto; }
}
