/* v17 preview: big-store style (app tiles, search, icon row, banners, card rows, floating dock)
   in Good Deals Nearby colours. UI only. Our own fonts, no outside files. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/dm-sans-latin-wght.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/fonts/playfair-display-latin-wght.woff2") format("woff2"); }
:root {
  --navy: #171b4a; --maroon: #7b1e3a; --gold: #d4af5a; --gold-hi: #f2cf73; --cream: #fbf5e6; --line: #ece4d2;
  --ink: #1d2140; --muted: #646880; --green: #1b7a54;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.s-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.s-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.s-preview { margin: 0; padding: 4px 10px; background: var(--maroon); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; }

/* ---------- Top band: seasonal colour + soft pattern ---------- */
.s-top {
  padding: 12px 0 10px;
  background:
    radial-gradient(circle at 12px 12px, rgba(184, 145, 58, .18) 2px, transparent 2.5px) 0 0 / 24px 24px,
    linear-gradient(180deg, #f7e7b9 0%, #fbf1d8 70%, #fff 100%);
}
.s-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.s-app {
  display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 16px; background: #fff;
  box-shadow: 0 2px 8px rgba(23, 27, 74, .08); font-size: .82rem; text-align: center; border: 2px solid transparent;
}
.s-app b { font-weight: 800; color: var(--navy); line-height: 1.1; }
.s-app.on { background: #fff3c7; border-color: var(--gold); }
.s-app-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; }
.s-app-ico .icon { width: 19px; height: 19px; }
.i-gold { background: linear-gradient(135deg, #f2cf73, #b8913a); color: var(--navy); }
.i-navy { background: var(--navy); }
.i-green { background: var(--green); }
.i-maroon { background: var(--maroon); }

.s-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; margin-top: 10px; align-items: center; }
.s-logo { display: flex; align-items: center; gap: 6px; flex: none; font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.s-logo-mark { width: 22px; height: 32px; flex: none; }
.s-logo-word { display: block; width: auto; height: 25px; }
/* Very small phones: only the pin, so "Choose your place" still fits next to it. */
@media (max-width: 349px) { .s-bar .s-logo-word { display: none; } }
.s-logo small { display: block; font-family: var(--font); font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.s-loc {
  display: flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 10px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .75);
  color: var(--ink); font: inherit; font-size: .84rem; text-align: left; cursor: pointer;
}
.s-loc .icon { width: 17px; height: 17px; color: var(--maroon); }
.s-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-loc b { margin-right: 4px; font-weight: 800; text-transform: uppercase; font-size: .74rem; letter-spacing: .04em; }
.s-chev { color: var(--muted) !important; }
.s-search {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 2px solid var(--navy);
  border-radius: 14px; background: #fff; box-shadow: 0 6px 16px -10px rgba(23, 27, 74, .5);
}
.s-search .icon { color: var(--muted); }
.s-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; color: var(--ink); }
.s-desk-link { display: none; }
.s-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5372b; color: #fff; font-size: .68rem; font-weight: 800; }

/* ---------- Category icon row ---------- */
.s-cats { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.s-cats-row { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 0; scrollbar-width: none; }
.s-cats-row::-webkit-scrollbar { display: none; }
.s-cat {
  flex: none; display: grid; justify-items: center; gap: 4px; width: 72px; padding: 2px 2px 8px; border-bottom: 3px solid transparent;
  color: var(--ink); font-size: .76rem; font-weight: 600; text-align: center; line-height: 1.15;
}
.s-cat-pic { display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border-radius: 14px; background: var(--cream); }
.s-cat-pic img { width: 100%; height: 100%; object-fit: cover; }
.s-cat-you { background: #fff3c7; color: var(--maroon); }
.s-cat.on { border-bottom-color: var(--navy); font-weight: 800; color: var(--navy); }

/* ---------- Main ---------- */
.s-main { padding-bottom: 100px; }
.s-main > section { margin-top: 18px; }
.s-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.s-head h2 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.s-round { display: grid; place-items: center; width: 36px; height: 26px; border-radius: 13px; background: var(--navy); color: #fff; }
.s-round .icon { width: 17px; height: 17px; }

/* Banners */
.s-ban-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.s-ban-track::-webkit-scrollbar { display: none; }
.s-banner {
  position: relative; flex: 0 0 100%; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; min-height: 176px; overflow: hidden;
  border-radius: 18px; color: #fff; scroll-snap-align: start;
}
.s-banner > div { position: relative; z-index: 1; padding: 18px 0 18px 20px; }
.s-banner img { box-sizing: border-box; align-self: stretch; width: calc(100% - 12px); height: auto; min-height: 156px; margin: 10px 12px 10px 0; object-fit: cover; border: 3px solid var(--gold-hi, #e7c873); border-radius: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 6px 16px rgba(0,0,0,.35); }
.s-banner h2 { margin: 2px 0 4px; font-family: var(--display); font-size: 1.45rem; line-height: 1.1; font-weight: 800; }
.s-banner p { margin: 0; font-size: .86rem; font-weight: 700; opacity: 1; }
.s-b-kick { font-size: .72rem !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: 1 !important; color: var(--gold-hi); }
.s-b-btn { display: inline-block; margin-top: 10px; padding: 7px 14px; border-radius: 10px; background: #fff; color: var(--navy); font-weight: 800; font-size: .86rem; }
.b-navy { background: linear-gradient(120deg, #171b4a, #2b3170); }
.s-banner img.s-b-scooty { object-position: 30% 60%; }
.s-banner img.s-b-shops { object-position: 45% 50%; }
.s-banner img.s-b-fert { object-position: 55% 50%; }
.s-banner img.s-b-build { object-position: 30% 55%; }
.s-banner img.s-b-reels { object-position: 60% 35%; }
.s-banner img.s-b-bike { object-position: 45% 95%; }
.s-banner img.s-b-moveout { object-position: 50% 65%; }
.s-banner img.s-b-bus { object-position: 45% 40%; }
.s-banner img.s-b-crops { object-position: 40% 62%; }
.s-banner img.s-b-car { object-position: 22% 70%; }
.b-green { background: linear-gradient(120deg, #0f4d36, #1b7a54); }
.b-gold { background: linear-gradient(120deg, #8a6a1e, #c79b3b); }
.b-gold .s-b-kick { color: #fff3c7; }
.b-maroon { background: linear-gradient(120deg, #5a1229, #7b1e3a); }
.b-plum { background: linear-gradient(120deg, #3a1430, #6b2a55); }
.b-rose { background: linear-gradient(120deg, #4a1033, #9b2457); }
.s-banner img.s-b-rooms { object-position: 50% 30%; }
.b-teal { background: linear-gradient(120deg, #0b3f4a, #146a78); }
.b-sky { background: linear-gradient(120deg, #10305e, #1d5596); }
.b-coral { background: linear-gradient(120deg, #6e2414, #a8452a); }
.b-olive { background: linear-gradient(120deg, #33401a, #5a6d2a); }
.b-brown { background: linear-gradient(120deg, #3f2a12, #6e4c22); }
.b-indigo { background: linear-gradient(120deg, #24164f, #42308a); }
.b-slate { background: linear-gradient(120deg, #1d2a36, #36495c); }
.s-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.s-dots i { width: 16px; height: 3px; border-radius: 2px; background: #d9d4c6; transition: width .3s, background .3s; }
.s-dots i.on { width: 30px; background: var(--navy); }

/* Panels (coloured background boxes) */
.s-panel { padding-top: 14px; padding-bottom: 14px; border-radius: 20px; }
.s-main > .s-panel { width: calc(100% - 24px); max-width: 1216px; }
.s-still { background: linear-gradient(180deg, #fbe7c9, #fdf2e2); }
.s-build { background: linear-gradient(180deg, #e8eefb, #f4f7fd); }
.s-farm { background: linear-gradient(180deg, #e2f3e8, #f2faf5); }

/* Card rows */
.s-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.s-row::-webkit-scrollbar { display: none; }
.s-card, .s-prod {
  flex: 0 0 136px; display: grid; gap: 3px; padding: 8px; border-radius: 14px; background: #fff; scroll-snap-align: start;
  box-shadow: 0 1px 6px rgba(23, 27, 74, .08);
}
.s-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #f4f3f0; }
.s-pic img { width: 100%; height: 100%; object-fit: cover; }
.s-t { overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.s-p { color: var(--ink); font-size: .9rem; }
.s-ex { color: var(--maroon); font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.s-flag { position: absolute; top: 0; left: 0; padding: 3px 8px; border-radius: 10px 0 10px 0; color: #fff; font-size: .7rem; font-style: normal; font-weight: 800; }
.f-green { background: var(--green); } .f-blue { background: #2350c4; } .f-gold { background: #b8913a; }
.s-card-new .s-pic { background: #fff3c7; color: var(--maroon); border: 2px dashed var(--gold); }
.s-card-new .s-pic .icon { width: 30px; height: 30px; }
.s-prod { flex-basis: 150px; }
.s-prod .s-t { color: var(--ink); font-weight: 600; white-space: normal; height: 2.5em; line-height: 1.25; }
.s-cta { color: var(--maroon); font-size: .8rem; font-weight: 800; }

/* Brand chips */
.s-brands { gap: 8px; }
.s-brand { flex: none; display: grid; justify-items: center; gap: 6px; width: 96px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: .78rem; font-weight: 700; text-align: center; }
.s-brand img { width: 48px; height: 36px; object-fit: contain; }

/* Tiles grid */
.s-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.s-tile { display: grid; gap: 4px; padding: 6px; border-radius: 12px; background: #fff; font-size: .78rem; font-weight: 700; text-align: center; box-shadow: 0 1px 4px rgba(23, 27, 74, .06); }
.s-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.s-tile small { display: block; color: var(--green); font-weight: 600; font-size: .72rem; }

/* Services */
.s-wide { flex: 0 0 230px; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.s-wide img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.s-wide span { display: grid; color: var(--muted); font-size: .8rem; }
.s-wide b { color: var(--ink); font-size: .95rem; }

/* How it works */
.s-how ol { display: grid; gap: 8px; margin: 0; padding: 14px; border-radius: 18px; background: var(--navy); color: #fff; list-style: none; }
.s-how li { display: flex; align-items: center; gap: 10px; }
.s-how li > b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy); }
.s-how li span { display: grid; font-size: .82rem; color: #d9d8e8; }
.s-how strong { color: #fff; font-size: .95rem; }
.s-foot { margin-top: 24px; color: var(--muted); font-size: .78rem; text-align: center; }
.s-foot a { color: var(--maroon); font-weight: 700; }

/* ---------- Floating dock (phone) ---------- */
.s-dock {
  position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px; border-radius: 26px;
  background: rgba(255, 255, 255, .9); box-shadow: 0 10px 30px -8px rgba(23, 27, 74, .35), 0 0 0 1px rgba(23, 27, 74, .06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.s-dock a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 7px 2px; border-radius: 20px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.s-dock a.on { background: #fff3c7; color: var(--navy); }
.s-dock a .icon { width: 22px; height: 22px; }
.s-dock .s-badge { position: absolute; top: 2px; right: calc(50% - 22px); }
.s-dock-ask .icon { width: 26px !important; height: 26px !important; padding: 4px; border-radius: 10px; background: var(--maroon); color: #fff; box-sizing: content-box; }

/* ---------- Bigger screens ---------- */
@media (min-width: 900px) {
  .s-top { padding: 8px 0 12px; }
  .s-apps { display: flex; gap: 8px; }
  .s-app { display: flex; gap: 8px; padding: 6px 14px 6px 6px; font-size: .86rem; }
  .s-app-ico { width: 28px; height: 28px; border-radius: 8px; }
  .s-app-ico .icon { width: 16px; height: 16px; }
  .s-bar { grid-template-columns: auto auto 1fr auto auto; gap: 14px; }
  .s-logo { display: flex; }
  .s-logo-mark { width: 25px; height: 36px; }
  .s-logo-word { height: 28px; }
  .s-search { grid-column: auto; height: 44px; }
  .s-loc { max-width: 260px; }
  .s-desk-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; font-weight: 700; color: var(--navy); white-space: nowrap; }
  .s-desk-link:hover { background: rgba(255, 255, 255, .7); }
  .s-cats-row { justify-content: space-between; }
  .s-cat { width: auto; min-width: 78px; }
  .s-banner { flex-basis: calc((100% - 24px) / 2.4); min-height: 200px; }
  .s-banner img { min-height: 180px; }
  .s-dock { display: none; }
  .s-main { padding-bottom: 40px; }
  .s-card { flex-basis: 170px; }
  .s-prod { flex-basis: 180px; }
  .s-tiles { grid-template-columns: repeat(8, 1fr); }
  .s-farm .s-tiles { grid-template-columns: repeat(4, 1fr); }
  .s-farm .s-tile { display: flex; align-items: center; text-align: left; gap: 10px; }
  .s-farm .s-tile img { width: 70px; flex: none; }
  .s-how ol { grid-template-columns: repeat(3, 1fr); padding: 18px 24px; }
}
/* Big screens: scale the whole page up so it fills ~93% of the width (no big empty sides). */
@media (min-width: 1500px) { html { zoom: 1.12; } }
@media (min-width: 1700px) { html { zoom: 1.27; } }
@media (min-width: 1900px) { html { zoom: 1.42; } }
@media (min-width: 2100px) { html { zoom: 1.57; } }
@media (min-width: 2400px) { html { zoom: 1.78; } }
@media (min-width: 2700px) { html { zoom: 2.0; } }
@media (min-width: 3000px) { html { zoom: 2.25; } }
@media (min-width: 3400px) { html { zoom: 2.55; } }
@media (min-width: 3800px) { html { zoom: 2.85; } }
@media (min-width: 4400px) { html { zoom: 3.3; } }
@media (min-width: 5000px) { html { zoom: 3.75; } }
@media (prefers-reduced-motion: reduce) { .s-ban-track { scroll-behavior: auto; } .s-dots i { transition: none; } }

/* ============ Provider hub ============ */
.p-top { background: linear-gradient(180deg, #171b4a, #232a6b); color: #fff; padding: 12px 0 16px; }
.p-top .s-logo { display: flex; color: #fff; }
.p-top .s-logo small { color: var(--gold-hi); }
.p-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-shop { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.p-av { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 1.2rem; }
.p-shop b { display: block; font-size: 1.05rem; }
.p-shop small { color: #c9c7dc; }
.p-live { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(52, 211, 153, .18); color: #8ee6b8; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.p-stat { padding: 10px 8px; border-radius: 14px; background: rgba(255, 255, 255, .08); text-align: center; }
.p-stat b { display: block; font-size: 1.4rem; }
.p-stat span { color: #c9c7dc; font-size: .72rem; font-weight: 700; }
.p-stat.hot { background: var(--gold); color: var(--navy); }
.p-stat.hot span { color: #3a2a06; }
.p-tabs { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 4px; scrollbar-width: none; }
.p-tab { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: .86rem; }
.p-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.p-list { display: grid; gap: 10px; margin-top: 12px; }
.p-req { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 1px 6px rgba(23, 27, 74, .06); }
.p-req img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.p-req h3 { margin: 0; font-size: 1rem; color: var(--navy); }
.p-req p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.p-meta span { padding: 2px 8px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: .72rem; font-weight: 700; }
.p-meta .p-new { background: #e7f5ee; color: var(--green); }
.p-meta .p-time { background: #fde8e8; color: #b42318; }
.p-acts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.p-send { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 12px; background: var(--maroon); color: #fff; font-weight: 800; }
.p-skip { display: grid; place-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-weight: 700; }
.p-won { border: 2px solid var(--gold); }
.p-won .p-send { background: var(--green); }
.p-tip { display: flex; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--cream); font-size: .84rem; }
.p-tip .icon { color: var(--maroon); }
@media (min-width: 900px) {
  .p-stats { grid-template-columns: repeat(4, 220px); }
  .p-list { grid-template-columns: 1fr 1fr; }
}
.p-cust { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; color: #fff; font-weight: 700; font-size: .84rem; }

/* "Your requests" example cards: 3 quotes each, lowest highlighted, money saved. */
.s-qrow { align-items: stretch; }
.s-qcard { display: flex; flex: 0 0 236px; flex-direction: column; overflow: hidden; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(23,27,74,.08); scroll-snap-align: start; }
.s-qpic { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f4f3f0; }
.s-qpic img { width: 100%; height: 100%; object-fit: cover; }
.s-qpic .s-flag { border-radius: 0 0 10px 0; }
.s-qbody { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 9px 10px 10px; }
.s-qt { color: var(--navy); font-size: .82rem; font-weight: 800; line-height: 1.2; }
.s-qlist { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.s-qlist li { display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 8px; background: #f7f4ec; font-size: .78rem; font-weight: 700; }
.s-qlist li span { flex: 1; min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.s-qlist li b { color: var(--ink); font-weight: 800; white-space: nowrap; }
.s-qlist li.best { background: #e3f4ea; outline: 1.5px solid var(--green); }
.s-qlist li.best span, .s-qlist li.best b { color: #0f5d3e; }
.s-qlist li em { padding: 1px 5px; border-radius: 6px; background: var(--green); color: #fff; font-size: .58rem; font-style: normal; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.s-save { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 9px; background: linear-gradient(90deg, #f2cf73, #e9b949); color: #3a2a05; font-size: .86rem; font-weight: 800; }
.s-save .icon { flex: none; width: 16px; height: 16px; color: var(--maroon); }
.s-save b { color: var(--maroon); font-size: 1rem; }
.s-qnote { margin-top: -3px; color: var(--muted); font-size: .66rem; font-weight: 700; }
.s-qfoot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.s-qgo { display: inline-flex; align-items: center; gap: 3px; color: var(--navy); font-size: .74rem; font-weight: 800; }
.s-qgo .icon { width: 13px; height: 13px; }
.s-qrow .s-card-new { flex: 0 0 140px; align-self: flex-start; }
@media (min-width: 900px) { .s-qcard { flex: 1 1 0; min-width: 226px; } .s-qrow .s-card-new { flex-basis: 130px; } }

/* Phone: all 12 category icons visible at once, 2 rows of 6 (no sideways scroll).
   Not sticky here, so two rows don't cover the screen while scrolling. */
@media (max-width: 899px) {
  .s-cats { position: static; }
  .s-cats-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px 2px; overflow: visible; padding-top: 10px; padding-bottom: 6px; }
  .s-cat { width: auto; min-width: 0; padding: 2px 0 5px; font-size: .68rem; font-weight: 700; }
  .s-cat-pic { width: 48px; height: 48px; }
}
@media (max-width: 359px) { .s-cat-pic { width: 42px; height: 42px; } .s-cat { font-size: .62rem; } }

/* Top 4 tiles: bigger, with a short second line. 2 x 2 on phone, one row on desktop. */
.s-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.s-app { position: relative; display: flex; align-items: center; justify-items: start; gap: 9px; min-height: 60px; padding: 9px 10px; text-align: left; font-size: .84rem; }
.s-app-txt { display: grid; gap: 1px; min-width: 0; }
.s-app-txt b { font-size: .86rem; line-height: 1.15; }
.s-app-txt small { color: var(--muted); font-size: .7rem; font-weight: 700; }
.s-app-ico { flex: none; width: 38px; height: 38px; }
.s-app-ico .icon { width: 21px; height: 21px; }
/* IT / BT move-out sale stands out */
.s-app-hot { background: linear-gradient(135deg, #171b4a, #7b1e3a); border-color: var(--gold-hi); box-shadow: 0 4px 14px rgba(123, 30, 58, .35); }
.s-app-hot b { color: #fff; }
.s-app-hot small { color: var(--gold-hi); }
.s-app-tag { position: absolute; top: -8px; right: 8px; padding: 1px 7px; border-radius: 8px; background: var(--gold-hi); color: var(--navy); font-size: .6rem; font-style: normal; font-weight: 800; letter-spacing: .04em; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
@media (min-width: 900px) {
  .s-apps { display: flex; gap: 10px; padding-top: 6px; }
  .s-app { flex: 0 1 auto; min-height: 54px; padding: 7px 16px 7px 8px; }
  .s-app-ico { width: 36px; height: 36px; border-radius: 10px; }
  .s-app-ico .icon { width: 19px; height: 19px; }
  .s-app-txt b { font-size: .9rem; }
}

/* "New" tag on the Roommates tile */
.s-tag-new { background: #e3f4ea; color: #0f5d3e; }

/* Top tiles: each one its own shade */
.s-app-rooms { background: linear-gradient(135deg, #0b4f4a, #16877a 60%, #2bb39b); border-color: #8fe3cf; box-shadow: 0 4px 14px rgba(11, 79, 74, .35); }
.s-app-pro { background: linear-gradient(135deg, #9a3412, #d9631e 60%, #f59e0b); border-color: #ffd28a; box-shadow: 0 4px 14px rgba(154, 52, 18, .35); }
.s-app-rooms b, .s-app-pro b { color: #fff; }
.s-app-rooms small { color: #c9f5e9; }
.s-app-pro small { color: #fff1cc; }
.s-app-rooms .s-app-ico, .s-app-pro .s-app-ico { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); color: #fff; }
.s-app-rooms .s-app-ico .icon { color: #f2cf73; }

/* Sale tile: what is inside, one line at a time. All lines share one spot, so the tile never changes size. */
.s-roll { display: grid; }
.s-roll > span { grid-area: 1 / 1; opacity: 0; animation: s-roll 12s infinite; }
.s-roll > span:nth-child(2) { animation-delay: 3s; }
.s-roll > span:nth-child(3) { animation-delay: 6s; }
.s-roll > span:nth-child(4) { animation-delay: 9s; }
@keyframes s-roll { 0% { opacity: 0; transform: translateY(5px); } 3%, 22% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .s-roll > span { animation: none; } .s-roll > span:first-child { opacity: 1; } }
/* Sale banner photo: the person on the left, the sofa and laptop beside him */
.s-banner img.s-b-itsale { object-position: 30% 50%; }

/* ---------- "Choose your place" box (public/places.js): GPS or type / choose ---------- */
.s-loc { cursor: pointer; }
.gp-dlg { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 22px; background: #fffdf8; color: var(--ink); box-shadow: 0 24px 60px rgba(10, 13, 45, .35); overflow: auto; }
.gp-dlg::backdrop { background: rgba(10, 13, 45, .5); }
.gp-box { display: grid; gap: 12px; padding: 20px; font-family: var(--font); }
.gp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gp-head h2 { margin: 0; font-family: var(--display); font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.gp-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3ead7; color: var(--navy); cursor: pointer; }
.gp-help { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.gp-gps { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #171b4a, #2b3170); color: #fff; font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(23, 27, 74, .8); }
.gp-gps .icon { color: var(--gold-hi); }
.gp-gps[disabled] { opacity: .75; cursor: progress; }
.gp-note { margin: -6px 0 0; color: var(--muted); font-size: .76rem; text-align: center; }
.gp-status { margin: 0; padding: 10px 12px; border-radius: 12px; background: #e7f5ee; color: #0f5d3e; font-size: .88rem; font-weight: 700; line-height: 1.4; }
.gp-status.warn { background: #fdf0dc; color: #9a3412; }
.gp-status:empty { display: none; }
.gp-near { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.gp-near:empty { display: none; }
.gp-chip { min-height: 36px; padding: 0 12px; border: 1.5px solid #e2d3b0; border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.gp-or { display: flex; align-items: center; gap: 10px; margin: 2px 0; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gp-or::before, .gp-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gp-field { display: grid; gap: 5px; color: var(--navy); font-size: .86rem; font-weight: 800; }
.gp-field input, .gp-field select { width: 100%; min-height: 46px; padding: 0 12px; border: 1.5px solid #e2d3b0; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 500; }
.gp-field input:focus, .gp-field select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 90, .25); }
.gp-field select:disabled { background: #f4f1ea; color: var(--muted); }
.gp-sug { display: grid; gap: 4px; margin-top: -6px; }
.gp-sug:empty { display: none; }
.gp-sug button { padding: 10px 12px; border: 0; border-radius: 10px; background: #f7f1e3; color: var(--navy); font: inherit; font-size: .92rem; font-weight: 700; text-align: left; cursor: pointer; }
.gp-sug button small { color: var(--muted); font-weight: 500; }
.gp-none { margin: 0; color: var(--muted); font-size: .84rem; }
.gp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gp-err { margin: 0; color: #b42318; font-size: .86rem; font-weight: 700; }
.gp-err[hidden] { display: none; }
.gp-actions { display: flex; justify-content: flex-end; gap: 10px; }
.gp-btn { min-height: 46px; padding: 0 22px; border: 1.5px solid var(--navy); border-radius: 12px; background: var(--navy); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.gp-btn.ghost { border-color: #e2d3b0; background: #fff; color: var(--navy); }
.gp-x:focus-visible, .gp-gps:focus-visible, .gp-chip:focus-visible, .gp-sug button:focus-visible, .gp-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
