/* Pueblo Sales */
:root {
  --bg: #fbf6ee;
  --bg-alt: #f3e8d8;
  --card: #ffffff;
  --ink: #2b211b;
  --ink-soft: #6b5a4e;
  --ink-faint: #9a8878;
  --line: #e4d5c1;
  --red: #c2462b;
  --red-dark: #9c3520;
  --red-tint: #fdeee9;
  --sun: #f2b33d;
  --sun-tint: #fdf3dc;
  --sage: #6f8f72;
  --sage-dark: #3e5e41;
  --sage-tint: #e8efe8;
  --sky: #3f7fa0;
  --sky-tint: #e3eef2;
  --plum: #8a5a83;
  --plum-tint: #f3e9f1;
  --danger: #b3261e;
  --shadow: 0 14px 34px -18px rgba(60, 35, 20, .35);
  --shadow-sm: 0 4px 14px -8px rgba(60, 35, 20, .3);
  --radius: 16px;
  --header-h: 64px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: .85rem; color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
.wrap.narrow { max-width: 760px; }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 2px solid var(--red);
  background: var(--red); color: #fff; font-weight: 700; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 7px 13px; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--line); color: var(--ink); }
.btn-ghost[aria-pressed="true"] { border-color: var(--sun); background: var(--sun-tint); }
.btn-ghost[aria-pressed="true"] .icon { fill: var(--sun); stroke: #b27a14; }
.btn-danger { background: var(--card); color: var(--danger); border-color: #e7b9b5; }
.btn-danger:hover { background: #fbeceb; border-color: var(--danger); color: var(--danger); }

/* ---------- Header / footer ---------- */
.demo-bar { background: var(--ink); color: #f3e8d8; font-size: .82rem; text-align: center; padding: 7px 16px; }
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(251, 246, 238, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { height: 34px; width: auto; flex: none; display: block; }
/* wordmark set to match the logo artwork: heavy sans, SALES tracked out
   underneath to roughly the width of PUEBLO */
.logo-wm { display: grid; line-height: .92; }
.logo-wm b { font-size: 1.16rem; font-weight: 900; letter-spacing: -.02em; }
.logo-wm i { font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .34em; color: var(--red); margin-right: -.34em; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-route { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.nav-route:hover { color: var(--red); }
.count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .75rem; font-weight: 700;
}
.count:empty { display: none; }

.site-footer { border-top: 1px solid var(--line); padding-block: 32px 44px; margin-top: 64px; color: var(--ink-soft); font-size: .9rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-grid p { max-width: 42ch; margin-top: 4px; }
.footer-grid strong { color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--ink-soft); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600;
  box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center;
}

.loading { padding-block: 60px; color: var(--ink-soft); }
.page-msg { padding-block: 80px; text-align: center; }
.page-msg h1 { font-size: 2.2rem; margin-bottom: 12px; }
.page-msg p { color: var(--ink-soft); margin-bottom: 20px; }
.page-head { padding-block: 36px 24px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.page-head p { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .92rem; margin-block: 20px 16px; }
.back-link:hover { color: var(--red); }

/* ---------- Home ---------- */
.home-intro { padding-block: 36px 10px; text-align: center; }
.home-intro h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; text-wrap: balance; }
.home-intro h1 em { font-style: normal; color: var(--red); }
.intro-sub { margin-top: 10px; color: var(--ink-soft); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* What is open right this minute is the most useful fact on the page, so it
   gets its own band above the filters rather than a badge buried in the list. */
.live-strip {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 18px auto 0; max-width: 780px; text-align: left;
  background: var(--sage-tint); border: 1px solid #cfe0d0; border-radius: 14px; padding: 10px 14px;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); flex: none; position: relative; }
.live-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--sage); opacity: .45; animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse { 0% { transform: scale(.6); opacity: .6 } 100% { transform: scale(1.25); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none } }
.live-strip strong { font-size: .95rem; }
.live-names { color: var(--ink-soft); font-size: .92rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 180px; }
.live-strip button { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--sage-dark); white-space: nowrap; text-decoration: underline; }

/* Category filters. Wraps rather than scrolls — with the scrollbar hidden a
   no-wrap row silently cuts the last chips off the right edge. */
.cat-row { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 15px 8px 11px; font-weight: 700; font-size: .89rem; cursor: pointer; white-space: nowrap;
}
.cat-chip .icon { width: 18px; height: 18px; }
.cat-chip:hover { border-color: var(--ink-faint); }
.cat-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-chip[aria-pressed="true"] .cat-ico { color: #fff !important; }
.cat-ico { display: flex; }

.filters-bar { padding-block: 16px 12px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); font-weight: 600; font-size: .92rem; cursor: pointer;
}
.chip:hover { border-color: var(--ink-faint); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.seg { display: inline-flex; background: var(--bg-alt); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 9px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-soft); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.select select, .search input {
  height: 40px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 12px; font-size: .92rem;
}
.select select { padding-right: 30px; cursor: pointer; }
.search { position: relative; flex: 1 1 220px; min-width: 0; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }
.search input { width: 100%; padding-left: 36px; }
.select select:focus, .search input:focus { outline: none; border-color: var(--red); }

.view-toggle { display: none; }

.browse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; padding-top: 8px; }
.results { display: grid; gap: 12px; }
.map-col { position: sticky; top: calc(var(--header-h) + 16px); }
.map { width: 100%; height: calc(100vh - var(--header-h) - 40px); min-height: 420px; border-radius: var(--radius); border: 1px solid var(--line); background: #eef2e6; z-index: 0; }
.map-sm { height: 220px; min-height: 0; margin-top: 10px; }
.map-form { height: 320px; min-height: 0; }

/* Sale card */
.sale-card {
  position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
  transition: box-shadow .15s, border-color .15s;
}
.sale-card:hover { box-shadow: var(--shadow); border-color: #d8c5ad; }
.sale-card-link { position: absolute; inset: 0; border-radius: var(--radius); z-index: 1; }
.sale-thumb { position: relative; width: 116px; height: 104px; border-radius: 11px; overflow: hidden; }
.sale-thumb img, .sale-thumb .tile { width: 100%; height: 100%; object-fit: cover; }
.photo-count { position: absolute; right: 6px; bottom: 6px; display: inline-flex; gap: 3px; align-items: center; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.sale-body { min-width: 0; }
.sale-body h3 { font-size: 1.12rem; margin-block: 4px 2px; overflow-wrap: anywhere; }
.sale-meta-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sale-when { font-weight: 600; font-size: .92rem; }
.sale-where { display: flex; align-items: flex-start; gap: 4px; color: var(--ink-soft); font-size: .86rem; margin-top: 2px; }
.sale-where > svg { flex: none; margin-top: .15em; }
.where-street { color: var(--ink); font-weight: 600; }
.card-btns { position: relative; z-index: 2; align-self: start; display: grid; gap: 6px; }
.save-btn, .visit-btn {
  position: relative; z-index: 2; align-self: start; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; color: var(--ink-faint);
}
.save-btn:hover { color: #b27a14; border-color: var(--sun); }
.save-btn.on { background: var(--sun-tint); border-color: var(--sun); color: #b27a14; }
.save-btn.on .icon { fill: var(--sun); }
.visit-btn:hover { color: var(--sage); border-color: var(--sage); }
.visit-btn.on { background: var(--sage); border-color: var(--sage); color: #fff; }
/* Been there: faded and grey, still readable, buttons stay sharp so it can be undone. */
.sale-card.visited { background: var(--bg-alt); }
.sale-card.visited .sale-body { opacity: .6; }
.sale-card.visited .sale-thumb { filter: grayscale(1); opacity: .5; }
.badge-visited { display: inline-flex; align-items: center; gap: 3px; background: var(--sage); color: #fff; }
.badge-visited .icon { width: 12px; height: 12px; }
.visit-toggle[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }
.route-item.visited { background: var(--bg-alt); }
.route-item.visited .route-body, .route-item.visited .route-thumb { opacity: .5; }
.route-item.visited .route-thumb { filter: grayscale(1); }
.route-item.visited .route-num { background: var(--ink-faint); }
.route-ctrls button[data-visit].on { background: var(--sage); border-color: var(--sage); color: #fff; }

.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.badge-now { background: var(--sage); color: #fff; }
.badge-today { background: var(--red); color: #fff; }
.badge-soon { background: var(--sun); color: var(--ink); }
.badge-later { background: var(--bg-alt); color: var(--ink-soft); }
.badge-past { background: var(--bg-alt); color: var(--ink-faint); }
.type-label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tags span, .tags a { font-size: .74rem; font-weight: 600; background: var(--bg-alt); color: var(--ink); padding: 3px 8px; border-radius: 6px; text-decoration: none; }
.tags-lg a { font-size: .88rem; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); }
.tags-lg a:hover { border-color: var(--red); color: var(--red); }

/* Placeholder tiles */
.tile { display: grid; place-items: center; }
.tile .icon { width: 40%; height: 40%; max-width: 44px; max-height: 44px; stroke-width: 1.6; }
.tile-garage { background: var(--red-tint); color: var(--red); }
.tile-yard { background: var(--sun-tint); color: #b27a14; }
.tile-estate { background: var(--sage-tint); color: var(--sage-dark); }
.tile-moving { background: var(--sky-tint); color: var(--sky); }
.tile-multi { background: var(--plum-tint); color: var(--plum); }
.tile-community { background: #fbeee2; color: #b05c28; }

.empty { background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 36px 24px; text-align: center; list-style: none; }
.empty h3 { font-size: 1.35rem; margin-bottom: 6px; }
.empty p { color: var(--ink-soft); margin-bottom: 16px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.empty-small { color: var(--ink-soft); padding: 28px 0; }

/* Map pins */
.pin-wrap { background: none; border: 0; }
.pin {
  --c: var(--red);
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--c); transform: rotate(-45deg);
  border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); display: grid; place-items: center;
  transition: transform .15s;
}
.pin span { transform: rotate(45deg); color: #fff; font: 700 12px/1 var(--sans); }
.pin:not(:has(span:not(:empty)))::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.pin-yard { --c: #d9951f; }
.pin-estate { --c: var(--sage); }
.pin-moving { --c: var(--sky); }
.pin-multi { --c: var(--plum); }
.pin-community { --c: #b05c28; }
.pin.approx { opacity: .75; border-style: dashed; }
.pin.visited { --c: #9b958d; opacity: .7; }
.leaflet-marker-icon.hover .pin, .pin.active { transform: rotate(-45deg) scale(1.25); }
.leaflet-marker-icon.hover { z-index: 9999 !important; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2f7bd9; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,123,217,.2); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px 14px; }
.popup { display: grid; gap: 2px; text-decoration: none; color: var(--ink); font: 14px/1.4 var(--sans); min-width: 170px; }
.popup strong { font-family: var(--serif); font-size: 1rem; }
.popup span { color: var(--ink-soft); font-size: .82rem; }
.popup em { font-style: normal; color: var(--red); font-weight: 700; font-size: .85rem; margin-top: 4px; }
.leaflet-container { font-family: var(--sans); }

/* Home extras */
.home-extras { padding-top: 56px; }
.extras-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.extra-card { border-radius: 20px; padding: 28px; }
.extra-card h2 { font-size: 1.55rem; margin-bottom: 8px; }
.extra-card p { margin-bottom: 18px; max-width: 48ch; }
.extra-card.seller { background: var(--ink); color: #fff; }
.extra-card.seller p { color: #d9ccc0; }
.extra-card.alerts { background: var(--sun-tint); border: 1px solid #f0dcaa; }
.extra-card.alerts p { color: var(--ink-soft); }
.alerts-row { display: flex; gap: 8px; flex-wrap: wrap; }
.alerts-row input { flex: 1 1 200px; min-width: 0; }
.alerts-row input, .alerts-row select { height: 46px; border: 1.5px solid #ead7a6; border-radius: 12px; padding: 0 12px; background: var(--card); }

/* ---------- Sale page ---------- */
.sale-main, .sale-side { min-width: 0; }
.sale-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
/* Show the whole photo. Phone photos are usually taller than they are wide, and a
   fixed 4:3 frame cropped half of them away. Height is capped so a tall photo
   doesn't push the details off the screen. */
.gallery-main {
  display: block; margin-inline: auto;
  width: auto; max-width: 100%; max-height: 72vh; min-height: 200px;
  object-fit: contain; border-radius: var(--radius); background: var(--bg-alt);
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: none; width: 76px; height: 64px; padding: 0; border: 2.5px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.gallery-thumbs button[aria-current] { border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-tile { aspect-ratio: 16 / 7; border-radius: var(--radius); gap: 8px; align-content: center; max-width: 100%; }
.gallery-tile span { font-weight: 600; font-size: .9rem; opacity: .8; }
.gallery-tile .icon { width: 56px; height: 56px; max-width: none; max-height: none; }
.video-tile { text-decoration: none; color: inherit; }
.video-tile .play-big { width: 76px; height: 76px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.video-tile .play-big .icon { width: 30px; height: 30px; margin-left: 5px; }
.video-tile:hover .play-big { transform: scale(1.06); }
.video-link {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--card); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none;
}
.video-link:hover { border-color: var(--red); }
.video-link strong { display: block; }
.video-link small { color: var(--ink-soft); }
.play-dot { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.play-dot .icon { width: 17px; height: 17px; margin-left: 3px; }
.video-badge { position: absolute; left: 6px; bottom: 6px; display: inline-flex; gap: 3px; align-items: center; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 7px 2px 5px; border-radius: 6px; }
.video-badge .icon { width: 11px; height: 11px; }
.video-field { margin-top: 16px; }
.sale-head { margin-top: 22px; }
.sale-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 8px; overflow-wrap: anywhere; }
.sale-desc { margin-top: 18px; font-size: 1.05rem; max-width: 65ch; overflow-wrap: anywhere; }
.sale-main .tags-lg { margin-top: 20px; }
.sale-side { position: sticky; top: calc(var(--header-h) + 16px); }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.info-h { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 8px; }
.info-h:not(:first-child) { margin-top: 20px; }
.day-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.day-list li { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.address { font-weight: 600; font-size: 1.05rem; }
.hidden-addr { display: flex; gap: 8px; font-size: .92rem; color: var(--ink-soft); }
.hidden-addr .icon { margin-top: 3px; }
.action-stack { display: grid; gap: 8px; margin-top: 18px; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.report { margin-top: 14px; text-align: center; font-size: .85rem; }
.report a { color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Forms ---------- */
.sale-form { display: grid; gap: 22px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--card); display: grid; gap: 14px; min-width: 0; }
legend { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; padding: 0 6px; }
.opt { font-weight: 400; color: var(--ink-faint); font-size: .85em; font-family: var(--sans); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field small, fieldset > small { color: var(--ink-soft); font-size: .82rem; }
.field input, .field select, .field textarea, .copy-row input, .login-card input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 13px; background: var(--card);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.sale-form > .field { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.addr-row { display: flex; gap: 8px; }
.addr-row input { flex: 1; min-width: 0; }
.map-help { font-size: .88rem; color: var(--ink-soft); }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-opt input, .tag-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-opt span {
  display: flex; align-items: center; gap: 8px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; font-weight: 600; font-size: .9rem; height: 100%;
}
.type-opt span .icon { color: var(--ink-faint); }
.type-opt input:checked + span { border-color: var(--red); background: var(--red-tint); }
.type-opt input:checked + span .icon { color: var(--red); }
.type-opt input:focus-visible + span, .tag-opt input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.tag-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-opt span { display: inline-block; padding: 7px 13px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; cursor: pointer; }
.tag-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.check span { color: var(--ink-soft); }
.check strong { color: var(--ink); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.photo-item, .photo-add { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item { background: var(--bg-alt); }
.photo-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 8px; text-align: center; font-size: .75rem; font-weight: 600; color: var(--ink-soft); }
.photo-item.bad { outline: 2px solid var(--red); outline-offset: -2px; }
.photo-item.bad .photo-msg { color: var(--red); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.photo-item .cover { position: absolute; left: 6px; bottom: 6px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.photo-item button { position: absolute; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.photo-remove { right: 6px; }
.photo-first { left: 6px; }
.photo-add { display: grid; place-content: center; justify-items: center; gap: 4px; border: 2px dashed var(--line); color: var(--ink-soft); cursor: pointer; font-size: .85rem; font-weight: 600; }
.photo-add:hover { border-color: var(--red); color: var(--red); }
.photo-add .icon { width: 26px; height: 26px; }
.form-error { background: #fbeceb; border: 1.5px solid #e7b9b5; color: var(--danger); padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.form-actions { display: flex; justify-content: flex-end; }

.my-listings { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; }
.my-listings summary { cursor: pointer; font-weight: 600; }
.my-listings ul { margin-top: 10px; padding-left: 18px; display: grid; gap: 4px; }
.my-listings li span { color: var(--ink-soft); font-size: .85rem; }

.success { text-align: center; padding-block: 48px 20px; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.success-icon .icon { width: 34px; height: 34px; stroke-width: 3; }
.success h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 10px; }
.success .lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 52ch; margin: 0 auto; }
.manage-box { text-align: left; background: var(--sun-tint); border: 1px solid #f0dcaa; border-radius: var(--radius); padding: 22px; margin-top: 30px; }
.manage-box h2 { font-size: 1.3rem; margin-bottom: 6px; }
.manage-box p { color: var(--ink-soft); }
.copy-row { display: flex; gap: 8px; margin-block: 14px 10px; }
.copy-row input { flex: 1; min-width: 0; font-size: .88rem; }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

.status-line { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 14px; border-radius: 12px; margin-top: 12px; }
.status-line span { color: var(--ink-soft); font-size: .92rem; }
.status-live { background: var(--sage-tint); }
.status-live strong { color: var(--sage-dark); }
.status-pending { background: var(--sun-tint); }
.status-off { background: var(--bg-alt); }
.danger-zone { margin-top: 36px; padding: 22px; border: 1.5px solid #e7b9b5; border-radius: var(--radius); background: var(--card); }
.danger-zone h2 { font-size: 1.25rem; margin-bottom: 4px; }
.danger-zone p { color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- Route ---------- */
.route-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.route-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.route-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.route-item { display: grid; grid-template-columns: 30px 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.route-num { width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.route-thumb { width: 72px; height: 64px; border-radius: 10px; overflow: hidden; }
.route-thumb img, .route-thumb .tile { width: 100%; height: 100%; object-fit: cover; }
.route-body { display: grid; gap: 2px; min-width: 0; font-size: .88rem; }
.route-body a { color: var(--ink); text-decoration: none; }
.route-body a strong { font-family: var(--serif); font-size: 1.05rem; }
.route-body a:hover { color: var(--red); }
.route-ctrls { display: flex; gap: 4px; }
.route-ctrls button { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; }
.route-ctrls button:disabled { opacity: .35; cursor: default; }
.route-ctrls button:not(:disabled):hover { border-color: var(--ink-faint); }

/* ---------- Printable sign ---------- */
.sign-tools { padding-block: 4px 20px; }
.sign-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sign-tools .hint { color: var(--ink-soft); font-size: .88rem; margin-top: 10px; max-width: 70ch; }
/* A driver gets about two seconds, so the sheet leads with the arrow and the
   house number. --fit is driven by sign.js: it shrinks everything until a long
   headline or address stops overflowing. */
.sign-sheet {
  --fit: 1;
  width: min(100% - 32px, 1000px); aspect-ratio: 11 / 8.5; margin: 0 auto;
  background: var(--sheet, #f2b33d); color: var(--sheet-ink, #17110d);
  border-radius: 12px; padding: 3.5% 4.5%; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: center; text-align: center; overflow: hidden; container-type: inline-size;
}
.sign-sheet.cut-border { outline: 1.2cqw solid var(--sheet-ink, #17110d); outline-offset: -3cqw; }
/* heavy sans, not the serif: Fraunces' hairlines disappear at forty feet */
.sign-kind {
  font-family: var(--sans); font-weight: 900; text-transform: uppercase;
  line-height: .86; letter-spacing: -.035em; font-size: calc(19cqw * var(--fit));
}
.sign-arrow { width: calc(30cqw * var(--fit)); height: calc(19cqw * var(--fit)); }
.sign-arrow svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.sign-addr { font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; font-size: calc(12cqw * var(--fit)); }
.sign-when { font-weight: 800; line-height: 1.1; font-size: calc(5.5cqw * var(--fit)); }
.sign-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 3cqw; width: 100%; text-align: left; }
.sign-brand { display: flex; align-items: center; gap: 1.8cqw; min-width: 0; }
/* logo and QR scale with --fit too, or these two fixed blocks push the footer
   off the bottom of the sheet no matter how far the type shrinks */
.sign-brand img { display: block; height: calc(8cqw * var(--fit)); width: auto; flex: none; }
.sign-brand span { font-size: calc(3cqw * var(--fit)); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
/* the white pad is the QR quiet zone, not decoration: scanners struggle
   without it on a coloured sheet */
.sign-qr { width: calc(17cqw * var(--fit)); aspect-ratio: 1; flex: none; background: #fff; padding: 1cqw; border-radius: .8cqw; }
.sign-qr svg { width: 100%; height: 100%; display: block; }
.sheet-swatch { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; padding: 0; }
.sheet-swatch[aria-pressed="true"] { outline: 2.5px solid var(--ink); outline-offset: 2px; }

@media print {
  @page { size: letter landscape; margin: 0.35in; }
  body[data-page="sign"] { background: #fff; display: block; min-height: 0; }
  body[data-page="sign"] .site-header,
  body[data-page="sign"] .site-footer,
  body[data-page="sign"] .demo-bar,
  body[data-page="sign"] .no-print,
  body[data-page="sign"] .toast { display: none !important; }
  body[data-page="sign"] .sign-sheet {
    width: 10.3in; height: 7.8in; aspect-ratio: auto; box-shadow: none; border-radius: 0;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* ---------- Admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin-block: 8px 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.admin-list { display: grid; gap: 12px; }
.admin-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.admin-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; align-content: start; }
.admin-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.admin-body { display: grid; gap: 4px; font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }
.admin-body h3 { font-size: 1.2rem; }
.admin-desc { color: var(--ink-soft); white-space: pre-line; max-height: 7.5em; overflow: auto; }
.admin-actions { display: grid; gap: 6px; align-content: start; }
.login-card { max-width: 380px; margin: 60px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 1.8rem; }
.subs h2 { font-size: 1.4rem; margin-bottom: 10px; }
.subs p { margin-bottom: 14px; color: var(--ink-soft); }
.subs-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; font-size: .92rem; }
.subs-table th, .subs-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.subs-table th { background: var(--bg-alt); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .browse, .route-layout { grid-template-columns: 1fr; }
  .view-toggle { display: inline-flex; gap: 0; margin-bottom: 12px; }
  .view-toggle button {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1.5px solid var(--line);
    background: var(--card); font-weight: 600; cursor: pointer;
  }
  .view-toggle button:first-child { border-radius: 12px 0 0 12px; }
  .view-toggle button:last-child { border-radius: 0 12px 12px 0; border-left: 0; }
  .view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .browse[data-show="list"] .map-col { display: none; }
  .browse[data-show="map"] .results { display: none; }
  .map-col { position: static; }
  .map { height: 68vh; }
  .route-layout .map-col { order: -1; }
  .route-layout .map { height: 300px; min-height: 0; }
  .sale-layout { grid-template-columns: minmax(0, 1fr); }
  .sale-side { position: static; }
  .extras-grid { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 1fr; }
  .admin-photos { grid-template-columns: repeat(3, 90px); }
  .admin-actions { display: flex; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .logo { font-size: 1.15rem; gap: 8px; white-space: nowrap; }
  .logo-mark { height: 28px; width: auto; }
  /* Nine categories stack into six rows on a phone, so swipe them sideways instead. */
  .cat-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .cat-row::-webkit-scrollbar { display: none; }
  .cat-chip { flex: none; }
  .nav-links { gap: 10px; }
  .nav-route { white-space: nowrap; font-size: .92rem; }
  .nav-links .btn-sm { padding: 7px 11px; }
  .filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filter-row .seg { grid-column: 1 / -1; }
  .filter-row .select select { width: 100%; }
  .search { flex: none; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding-inline: 8px; }
  .sale-card { grid-template-columns: 88px minmax(0, 1fr); padding: 10px; gap: 12px; }
  .sale-thumb { width: 88px; height: 88px; }
  .card-btns { position: absolute; top: 10px; right: 10px; }
  .save-btn, .visit-btn { width: 34px; height: 34px; }
  .sale-body { padding-right: 34px; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .addr-row { flex-direction: column; }
  fieldset { padding: 16px; }
  .form-actions .btn { width: 100%; }
  .route-item { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .route-thumb { display: none; }
  .route-ctrls { flex-direction: column; }
  .copy-row { flex-direction: column; }
  .sign-controls .seg { width: 100%; }
  .alerts-row .btn { width: 100%; }
  .extra-card { padding: 22px; }
}

@media (max-width: 420px) {
  .nav-route-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Reports ---------- */
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-soft); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; text-decoration: underline; font-size: .85rem; }
.link-btn:hover { color: var(--red); }
.warn-banner { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #fff4d6; border: 1.5px solid #f0cf7a; color: #6b4b06; font-weight: 600; font-size: .95rem; }
.warn-banner .icon { margin-top: 3px; }
.badge-warn { background: #fff4d6; color: #7a5507; border: 1px solid #f0cf7a; }
.report-dialog { margin: auto; border: 0; border-radius: var(--radius); padding: 0; width: min(460px, calc(100% - 32px)); box-shadow: var(--shadow); background: var(--card); color: var(--ink); }
.report-dialog::backdrop { background: rgba(43, 33, 27, .45); }
.report-dialog form { display: grid; gap: 14px; padding: 24px; }
.report-dialog h2 { font-size: 1.4rem; }
.report-reasons { border: 0; padding: 0; background: none; display: grid; gap: 10px; }
.report-reasons .check { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; }
.report-reasons .check:has(input:checked) { border-color: var(--red); background: var(--red-tint); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.report-list { margin-top: 8px; padding: 10px 12px; background: var(--bg); border-radius: 10px; }
.report-list ul { list-style: none; padding: 0; margin-top: 6px; display: grid; gap: 8px; }
.lost-form { margin-top: 10px; }
.lost-form .copy-row { margin-bottom: 0; }

/* ---------- Share ---------- */
.share-row { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.share-h { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.share-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; border-radius: 10px;
  font-weight: 700; font-size: .88rem; text-decoration: none; cursor: pointer; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); white-space: nowrap;
}
.share-btn:hover { border-color: var(--ink-faint); }
.share-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-fb:hover { background: #0f63d1; border-color: #0f63d1; }
.share-nd { background: #0d6b3d; border-color: #0d6b3d; color: #fff; }
.share-nd:hover { background: #09542f; border-color: #09542f; }
.success-share { max-width: 460px; margin: 26px auto 0; text-align: left; }
.success-share .share-row { border-top: 0; padding-top: 0; }

/* Small maps keep their size on phones too */
.map.map-sm { height: 220px; min-height: 0; }
.map.map-form { height: 320px; min-height: 0; }

/* ---------- Quick add ---------- */
.qa-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; margin-bottom: 22px; }
.qa-card textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 13px; background: var(--card); resize: vertical; }
.qa-card textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.qa-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.source-note { margin-top: 16px; font-size: .88rem; color: var(--ink-soft); background: var(--bg-alt); padding: 10px 14px; border-radius: 10px; max-width: 65ch; }

.dup-note { background: #fff4d6; border: 1px solid #f0cf7a; color: #6b4b06; padding: 8px 12px; border-radius: 10px; font-weight: 600; }

/* ---------- Activity ---------- */
.badge-hot { background: #fde3d9; color: #a3321a; border: 1px solid #f3b6a3; }
.views-note { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 16px; }
.stat-strip div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.stat-strip strong { font: 800 1.5rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.stat-strip span { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.stat-line { color: var(--ink-soft); }

/* ---------- Photo gallery with many photos ---------- */
.gallery-stage { position: relative; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(43, 33, 27, .72); color: #fff; display: grid; place-items: center;
}
.gallery-nav:hover { background: rgba(43, 33, 27, .9); }
.gallery-nav .icon { width: 20px; height: 20px; }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-nav.next .icon { transform: rotate(180deg); }
.gallery-count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(43, 33, 27, .72); color: #fff;
  font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.gallery-thumbs button { width: 64px; height: 54px; }

/* ---------- Quick add: a list of sales ---------- */
.qa-mode { margin-bottom: 14px; }
.ql-list { display: grid; gap: 8px; margin-bottom: 30px; }
.ql-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.ql-row.done { background: var(--sage-tint); border-color: #cfe0d0; }
.ql-pick input { width: 20px; height: 20px; margin-top: 6px; accent-color: var(--red); }
.ql-body { display: grid; gap: 6px; min-width: 0; }
.ql-body input { width: 100%; border: 1.5px solid var(--line); border-radius: 9px; padding: 7px 10px; background: var(--card); }
.ql-title { font-weight: 700; }
.ql-warn { font-size: .82rem; color: #7a5507; background: #fff4d6; border-radius: 8px; padding: 4px 8px; justify-self: start; }
.ql-status { font-size: .88rem; font-weight: 600; }
.ql-ok { color: var(--sage-dark); display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ql-skip { color: var(--ink-soft); }
.ql-err { color: var(--danger); }

/* Four areas plus "All areas" don't fit a phone row, so the area switch scrolls. */
@media (max-width: 560px) {
  .filter-row .seg { overflow-x: auto; scrollbar-width: none; }
  .filter-row .seg::-webkit-scrollbar { display: none; }
  .filter-row .seg button { flex: none; padding-inline: 12px; }
}

/* ---------- Weekend post ---------- */
.wp-days { margin-bottom: 14px; }
.wp-days .chip { display: inline-flex; align-items: center; gap: 6px; }
.wp-days .chip:disabled { opacity: .45; cursor: default; }
.wp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.wp-card textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 12px; font: .92rem/1.5 var(--sans); resize: vertical; background: var(--bg); }
.wp-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- Get the app ---------- */
.footer-install { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.install-bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 900;
  display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 12px;
  background: var(--red); color: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(60, 20, 10, .35);
  max-width: 520px; margin-inline: auto; animation: install-up .45s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes install-up { from { transform: translateY(130%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .install-bar { animation: none; } }
.install-bar[hidden] { display: none; }
.install-bar img { flex: none; border-radius: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.install-text { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.install-text strong { font-size: 1.02rem; font-weight: 800; }
.install-text span { font-size: .8rem; opacity: .92; }
.install-btn {
  flex: none; border: 0; border-radius: 999px; padding: 10px 16px; background: #fff; color: var(--red);
  font: 800 .92rem/1 var(--sans); cursor: pointer;
}
.install-close { flex: none; width: 30px; height: 30px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: #fff; opacity: .8; cursor: pointer; }
.install-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: center;
  padding: 16px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, var(--red), #9e3620);
}
.install-card[hidden] { display: none; }
.install-card img { border-radius: 14px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.install-card-text { display: grid; gap: 2px; line-height: 1.35; }
.install-card-text strong { font-family: var(--serif); font-size: 1.2rem; }
.install-card-text span { font-size: .88rem; opacity: .92; }
.install-card-btn { grid-column: 1 / -1; background: #fff; color: var(--red); border-color: #fff; font-weight: 800; }
.install-steps { display: grid; gap: 10px; padding-left: 1.2em; }
.install-steps .icon { width: 18px; height: 18px; vertical-align: -3px; color: var(--sky, #2f6f9f); }
