:root {
  --ink: #1C1A1F;
  --muted: #5E5560;
  --body: #3A343C;
  --wine: #1F3A5F;
  --wine-dark: #132842;
  --blush: #F6E6E2;
  --blush-2: #FBF8F6;
  --sand: #F6F1EE;
  --line: #ECE6E3;
  --line-2: #DCD3CF;
  --white: #FFFFFF;
  --ok: #1F6B45;
  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
  --tabbar: 0px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--wine); }
a:hover { color: var(--wine-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--wine); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #6F8FBF; outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--wine); color: var(--white); }
.btn-primary:hover { background: var(--wine-dark); color: var(--white); }
.btn-outline { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--sand); color: var(--ink); }
.btn-light { background: var(--white); color: var(--wine); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-block { width: 100%; border-radius: 14px; min-height: 54px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); text-decoration: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--wine); font-weight: 600; cursor: pointer; text-decoration: underline; min-height: 44px; }

/* ---------- Header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo b { font-family: var(--serif); font-weight: 600; font-size: 27px; letter-spacing: .4px; }
.logo i { font-family: var(--serif); font-size: 27px; color: var(--wine); }
.top-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; }
.top-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.top-nav a:not(.btn):hover { color: var(--wine); }
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: calc(28px + var(--tabbar)); font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--wine); }
.demo-bar { background: var(--ink); color: var(--white); font-size: 13px; text-align: center; padding: 8px 16px; }
.demo-bar button { background: none; border: 0; color: #F3C4D3; text-decoration: underline; cursor: pointer; font-weight: 600; padding: 0 4px; }

.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --tabbar: 76px; }
  .top-nav { display: none; }
  .site-header .wrap { min-height: 60px; }
  .logo b, .logo i { font-size: 23px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tabbar a.on { color: var(--wine); font-weight: 700; }
  .tabbar a > svg { width: 24px; height: 24px; flex: 0 0 24px; }
  .tabbar .plus { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 8px; background: var(--wine); display: flex; align-items: center; justify-content: center; }
  .wrap { padding: 0 16px; }
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 48px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 64px); line-height: 1.04; letter-spacing: -.5px; }
.hero h1 em { color: var(--wine); }
.hero .lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 500px; }
.hero-art { flex: 1 1 400px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hero-art .tile { border-radius: 22px; min-height: 210px; }
.hero-art .tile.tall { grid-row: span 2; min-height: 440px; }
@media (max-width: 760px) { .hero { padding-top: 28px; gap: 28px; } .hero-art { display: none; } }

.searchbar { display: flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px rgba(60,20,35,.07); overflow: hidden; }
.searchbar label { flex: 1 1 130px; display: flex; flex-direction: column; gap: 3px; padding: 13px 18px; border-right: 1px solid var(--line); min-width: 0; }
.searchbar label span { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.searchbar input, .searchbar select { border: 0; outline: none; padding: 0; background: transparent; font-size: 16px; min-width: 0; width: 100%; }
.searchbar .btn { margin: 8px; border-radius: 12px; flex: 1 1 100%; }
@media (max-width: 760px) {
  .searchbar label { flex: 1 1 45%; border-bottom: 1px solid var(--line); }
  .searchbar .btn { flex: 1 1 100%; }
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--wine); color: var(--wine); }
.chip-all { background: var(--wine); border-color: var(--wine); color: var(--white); font-weight: 700; }
.chip-all:hover { background: var(--wine-dark); color: var(--white); }

/* ---------- Photos / tiles ---------- */
.tile { position: relative; overflow: hidden; background: #EFE6DC; }
.tile svg.strands { padding: 4% 0 2%; }
.tile svg.strands { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tile .tag { position: absolute; left: 12px; top: 12px; background: var(--white); color: var(--wine); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.tile .note { position: absolute; left: 12px; bottom: 12px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; }

/* ---------- Cards / grids ---------- */
.section { padding-top: 24px; padding-bottom: 64px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 40px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 22px; }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.card .tile { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.card-actions { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.card-actions .icon-btn { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
@media (max-width: 760px) { .card-actions { top: 6px; right: 6px; gap: 6px; } .card-actions .icon-btn { width: 40px; height: 40px; min-width: 40px; } }
.like-btn { width: auto; min-width: 44px; padding: 0 12px; gap: 5px; }
.like-btn svg { flex: 0 0 auto; }
.card-actions .like-btn { width: auto; }
.like-btn .lc { font-size: 14px; font-weight: 700; color: var(--ink); }
.like-btn .lc:empty { display: none; }
.card-actions .like-btn:has(.lc:empty) { padding: 0; }
@media (max-width: 760px) { .card-actions .like-btn { padding: 0 10px; } .card-actions .like-btn:has(.lc:empty) { padding: 0; } }
.card:hover .tile { box-shadow: 0 10px 24px rgba(20,35,60,.16); }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card .price { font-size: 17px; font-weight: 700; }
.card .town { font-size: 13px; color: var(--muted); text-align: right; }
.card .title { font-size: 15px; font-weight: 500; line-height: 1.35; }
.card .meta { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .card .tile .tag { font-size: 11px; left: 8px; top: 8px; padding: 5px 8px; } .card .town { display: none; } }
.empty { padding: 48px 24px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: 22px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---------- Featured ---------- */
.featured { display: flex; flex-wrap: wrap; border-radius: 28px; overflow: hidden; background: var(--sand); }
.featured .tile { flex: 1 1 420px; min-height: 440px; }
.featured .body { flex: 1 1 420px; min-width: 0; padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.featured h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 13px; font-weight: 600; background: var(--white); padding: 6px 12px; border-radius: 999px; }
.pill.wine { color: var(--wine); font-weight: 700; }
.pill.sand { background: var(--sand); }
.pill.blush { background: var(--blush); color: var(--wine); font-weight: 700; }
@media (max-width: 760px) { .featured .tile { min-height: 340px; } .featured .body { padding: 26px 20px; } }

/* ---------- How it works / CTA ---------- */
.how { background: var(--sand); }
.how .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 40px; }
.how h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 44px); text-align: center; }
.how-cols { display: flex; flex-wrap: wrap; gap: 28px; }
.how-col { flex: 1 1 420px; min-width: 0; background: var(--white); border-radius: 22px; padding: 34px; display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; gap: 18px; }
.step .n { font-family: var(--serif); font-size: 32px; color: var(--wine); line-height: 1; min-width: 20px; }
.step strong { display: block; font-size: 17px; margin-bottom: 3px; }
.step span { color: var(--muted); font-size: 15px; line-height: 1.55; }
.cta { background: var(--wine); color: var(--white); border-radius: 28px; padding: 52px 46px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.cta p { color: #F3E3E8; font-size: 17px; margin-top: 10px; max-width: 560px; }
.status-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line-2); border-radius: 22px; padding: 26px 28px; }
.status-box h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
@media (max-width: 760px) { .cta { padding: 34px 22px; } .how-col { padding: 24px; } }

/* ---------- Search page ---------- */
.search-layout { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 28px; padding-bottom: 64px; align-items: flex-start; }
.filters { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.qbar { display: flex; gap: 10px; }
.qbar label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 50px; border: 1px solid var(--line-2); border-radius: 14px; }
.qbar input { flex: 1; border: 0; outline: none; font-size: 16px; min-width: 0; background: transparent; }
.filters-toggle { display: none; }
@media (max-width: 760px) {
  .search-layout { padding-top: 16px; gap: 16px; }
  .filters { max-width: none; position: static; display: none; flex-basis: 100%; background: var(--sand); padding: 18px; border-radius: 18px; }
  .filters.open { display: flex; }
  .filters-toggle { display: inline-flex; flex: 0 0 auto; }
  .results { flex-basis: 100%; max-width: 100%; }
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .field legend { font-size: 15px; font-weight: 700; padding: 0; }
.field small { color: var(--muted); font-size: 13px; line-height: 1.45; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.input { min-height: 50px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; font-size: 16px; background: var(--white); width: 100%; min-width: 0; }
textarea.input { padding: 12px 14px; min-height: 110px; line-height: 1.5; resize: vertical; }
.input:focus { border-color: var(--wine); outline: none; box-shadow: 0 0 0 3px rgba(31,58,95,.15); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 500; }
.choice input:checked + span { background: var(--wine); border-color: var(--wine); color: var(--white); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid #6F8FBF; outline-offset: 2px; }

/* ---------- Listing page ---------- */
.listing { display: flex; flex-wrap: wrap; gap: 44px; padding-top: 28px; padding-bottom: 64px; align-items: flex-start; }
.gallery { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
/* Keep photos pinned only when the details sit beside them, not below (iPad portrait). */
@media (min-width: 1000px) { .gallery { position: sticky; top: 96px; } }
.gallery .main { aspect-ratio: 4 / 5; border-radius: 22px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 72px; height: 88px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--sand); }
.thumbs button.on { border-color: var(--wine); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.info h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 40px); line-height: 1.12; }
.price-big { font-size: 28px; font-weight: 700; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.specs div { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.specs div:nth-child(odd) { border-right: 1px solid var(--line); }
.specs dt { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.specs dd { margin: 0; font-size: 15px; font-weight: 600; }
.seller { background: var(--sand); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 999px; background: var(--wine); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; flex: 0 0 auto; }
.best { background: var(--white); border-radius: 12px; padding: 12px 14px; }
.contacts { background: var(--white); border-radius: 12px; display: flex; flex-direction: column; }
.contacts a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.contacts a:last-child { border-bottom: 0; }
.contacts a .go { margin-left: auto; color: var(--wine); font-weight: 700; font-size: 14px; }
.contacts small { display: block; color: var(--muted); font-size: 12px; }
.contacts b { font-size: 15px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--blush); color: var(--wine-dark); font-size: 14px; line-height: 1.5; }
.notice.ok { background: #E6F1EA; color: #174E33; }
.notice.warn { background: #FDF0DD; color: #6B4310; }
.sticky-contact { display: none; }
@media (max-width: 760px) {
  .listing { padding-top: 0; gap: 22px; }
  .gallery { position: static; margin: 0 -16px; }
  .gallery .main { border-radius: 0; aspect-ratio: 1 / 1.05; }
  .thumbs { padding: 0 16px; }
  .sticky-contact { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: var(--tabbar); z-index: 35; padding: 12px 16px; background: var(--white); border-top: 1px solid var(--line); }
  .sticky-contact .btn { flex: 1; border-radius: 14px; }
  .sticky-contact .icon-btn { border: 1px solid var(--ink); border-radius: 14px; width: 52px; height: 52px; }
  .listing-page { padding-bottom: 80px; }
}

/* ---------- Forms (post / sign in) ---------- */
.narrow { max-width: 640px; margin: 0 auto; padding: 32px 24px 80px; display: flex; flex-direction: column; gap: 24px; }
.narrow h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 44px); line-height: 1.1; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.photo-grid .ph { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--sand); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .ph .x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(255,255,255,.95); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-grid .ph .cover { position: absolute; left: 6px; bottom: 6px; background: var(--white); font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.add-photo { aspect-ratio: 1; border: 1.5px dashed var(--wine); border-radius: 14px; background: var(--blush-2); color: var(--wine); font-weight: 700; font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; position: relative; }
.add-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.feature-box { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 1.5px solid var(--wine); background: var(--blush-2); cursor: pointer; }
.feature-box input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--wine); flex: 0 0 auto; }
.summary { background: var(--sand); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary hr { border: 0; border-top: 1px solid var(--line-2); margin: 2px 0; width: 100%; }
.card-box { border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.divider { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.divider h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.error { color: #A3122F; font-size: 14px; font-weight: 600; }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress div { height: 100%; background: var(--wine); width: 0; transition: width .2s; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }

/* ---------- My gowns / owner ---------- */
.page { padding-top: 32px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 42px); }
.mine { display: flex; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; flex-wrap: wrap; }
.mine .tile { width: 110px; height: 132px; border-radius: 12px; flex: 0 0 auto; }
.mine .body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mine .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .3px; }
.badge.pending { background: #FDF0DD; color: #6B4310; }
.badge.live { background: #E6F1EA; color: #174E33; }
.badge.declined, .badge.removed { background: #F8E1E4; color: #8A1630; }
.badge.sold, .badge.expired { background: var(--line); color: var(--body); }
.owner-bg { background: var(--sand); min-height: 70vh; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 999px; background: var(--white); }
.tabs a.on { background: var(--wine); color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { background: var(--white); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat b { font-size: 30px; }
.review { background: var(--white); border-radius: 22px; padding: 22px; display: flex; flex-wrap: wrap; gap: 26px; }
.review .pics { flex: 0 1 300px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; }
.review .pics a, .review .pics .tile { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; position: relative; }
.review .pics a:first-child, .review .pics .tile:first-child { grid-column: span 3; aspect-ratio: 4 / 3; }
.review .pics img { width: 100%; height: 100%; object-fit: cover; }
.review .mid { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.review .mid h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.review .side { flex: 0 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fee { background: var(--sand); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.fee b { font-size: 26px; }
.schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.day { min-height: 96px; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.day.full { background: var(--blush); }
.day.open { border: 1.5px dashed var(--line-2); color: var(--muted); background: var(--white); }
.day small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.panel { background: var(--white); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.live-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.live-row .tile { width: 56px; height: 66px; border-radius: 10px; flex: 0 0 auto; }
.live-row .t { flex: 1 1 220px; min-width: 0; }

/* ---------- Text pages ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: 36px 24px 80px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.7; color: var(--body); }
.prose h1 { font-family: var(--serif); font-weight: 400; font-size: 42px; color: var(--ink); line-height: 1.1; }
.prose h2 { font-size: 19px; color: var(--ink); margin-top: 10px; }
.prose ul { margin: 0; padding-left: 22px; }

/* ---------- Toast / loading ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--tabbar)); transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 14px 20px; border-radius: 14px; font-size: 15px; font-weight: 600; z-index: 90; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.loading { padding: 80px 24px; text-align: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--wine); margin: 0 auto 12px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(20,14,16,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 12px; }
.lightbox button { position: absolute; top: 16px; right: 16px; }

/* ---------- Home-screen popup ---------- */
.install { position: fixed; inset: 0; z-index: 100; color: var(--white); background: #142843; display: flex; flex-direction: column; overflow-y: auto; }
.install svg.strands { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.install .close { position: absolute; z-index: 3; top: max(16px, env(safe-area-inset-top)); right: 16px; background: rgba(255,255,255,.16); color: var(--white); }
.install .top { position: relative; padding: 96px 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; max-width: 520px; margin: 0 auto; }
.install .appicon { width: 78px; height: 78px; border-radius: 20px; background: var(--wine); object-fit: cover; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,.3); font-family: var(--serif); font-size: 34px; color: var(--wine); }
.install h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.12; }
.install .top p { font-size: 16px; color: #F0E4E0; }
.install .steps { position: relative; margin: auto 16px 0; max-width: 488px; align-self: center; width: calc(100% - 32px); background: var(--white); color: var(--ink); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.install .s { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.4; }
.install .s + .s { border-top: 1px solid var(--line); padding-top: 14px; }
.install .num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px; background: var(--wine); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.install .ico { flex: 0 0 auto; margin-left: auto; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; background: #F2EFED; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #0A66D8; }
.install .bottom { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 calc(18px + env(safe-area-inset-bottom)); }
.install .bottom button { background: none; border: 0; color: var(--white); text-decoration: underline; font-size: 15px; font-weight: 600; min-height: 44px; cursor: pointer; }

/* ---------- Ad popups ---------- */
.ad-pop { position: fixed; inset: 0; z-index: 98; background: rgba(20,14,16,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ad-card { position: relative; width: 100%; max-width: 400px; max-height: calc(100% - 20px); overflow-y: auto; background: var(--white); border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.ad-card .ad-close { position: absolute; top: 10px; right: 10px; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.ad-card .ad-img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.ad-card .ad-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ad-card .ad-label { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); padding-right: 44px; }
.ad-card h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--ink); }
.ad-card p { font-size: 15px; line-height: 1.55; color: var(--body); white-space: pre-line; }
.ad-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.ad-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .ad-two { grid-template-columns: 1fr; } }

/* ---------- Dec 3 fixes ---------- */
/* Town + required state pick */
.town-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; }

/* Owner: list of what a seller changed */
.changes { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.changes div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.changes div:last-child { border-bottom: 0; }
.changes s { color: var(--muted); }

/* Tablets (iPad) and phones: Featured gown sits right under the search, like on iPhone */
@media (max-width: 1023px) {
  .hero-art { display: none; }
  .hero { padding-bottom: 32px; }
}

/* Tablets and phones, Browse gowns: one column. The big filter panel sits at the
   top and folds away once you scroll into the gowns; a slim search + Filters bar
   stays pinned under the header. */
@media (max-width: 1023px) {
  .search-layout { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 16px; padding-top: 16px; }
  .search-layout .results { display: contents; }
  .search-layout .qbar { order: 0; position: sticky; top: var(--hdr, 72px); z-index: 20; background: var(--white); margin: 0 -24px; padding: 10px 24px; border-bottom: 1px solid transparent; transition: border-color .15s, box-shadow .15s; }
  .search-layout .qbar.stuck { border-bottom-color: var(--line); box-shadow: 0 6px 16px rgba(60,20,35,.06); }
  .search-layout .filters { order: 1; position: static; max-width: none; width: 100%; display: none; background: var(--sand); padding: 18px; border-radius: 18px; }
  .search-layout .filters.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: end; }
  .search-layout .filters #clear { grid-column: 1 / -1; justify-self: start; }
  .search-layout .results > div:not(#results) { order: 2; }
  .search-layout #results { order: 3; }
  .filters-toggle { display: inline-flex; flex: 0 0 auto; }
}
@media (max-width: 760px) {
  .search-layout .qbar { margin: 0 -16px; padding: 10px 16px; }
  .search-layout .filters.open { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
}

/* ---------- Family of sites (like Old Navy's Gap / Banana Republic strip) ---------- */
.family-bar { background: var(--sand); border-bottom: 1px solid var(--line); }
.family-bar .wrap { display: flex; gap: 4px; align-items: stretch; min-height: 34px; overflow-x: auto; }
.family-bar a { display: inline-flex; align-items: center; padding: 0 14px; font-family: var(--serif); font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.family-bar a:hover { color: var(--ink); }
.family-bar a.on { color: var(--ink); font-weight: 600; background: var(--white); border-bottom-color: var(--wine); }
.family-bar a i { font-style: italic; margin-left: 4px; }

.private-box { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--blush-2); border: 1px dashed var(--line-2); font-size: 14px; }
.private-box .eyebrow { font-size: 11px; letter-spacing: .5px; color: var(--muted); }
.private-box.small { margin-top: 6px; padding: 6px 10px; font-size: 13px; }

.site-footer a.social { color: var(--wine); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
