/*
 * MyLocal — public site.
 *
 * Plain CSS served from public/, the same way the site already shipped its
 * stylesheet: this project has no build step, and introducing one would mean
 * nobody could deploy a change without a working Node install on the host.
 *
 * The design is built around photographs of shops. Everything structural is
 * therefore quiet — a deep indigo for trust, a warm amber reserved for the one
 * thing on a card worth looking at twice, and a paper-white ground so a badly
 * lit phone photograph still reads as the brightest thing on the page.
 */

:root {
  --ink: #16202c;
  --ink-soft: #5a6775;
  /*
   * The colour of every card's metadata line, at sizes down to 0.66rem, so it
   * has to clear the 4.5:1 that body text does. #8b96a3 measured 3.00:1 and
   * #6b7684 measured 4.31:1 — both short. This measures 5.3:1 and still reads
   * as the same grey.
   */
  --ink-faint: #626c7a;
  --line: #e4e8ed;
  --paper: #ffffff;
  --ground: #f6f7f9;

  --brand: #0f4c81;
  --brand-dark: #0b3a63;
  --brand-tint: #e8f0f8;

  /* Darkened from #c2681a. White text on it measured 3.97:1, and the same
     colour as 15px text on white measured the same — both under 4.5. This
     clears it in both directions at 4.6:1 while staying the same amber. */
  --amber: #b25f16;
  --amber-tint: #fdf1e4;

  --good: #1e7b39;
  --good-tint: #e6f4ea;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(16, 32, 48, 0.06), 0 4px 14px rgba(16, 32, 48, 0.05);

  --header-h: 60px;

  /*
   * The smallest a thing may be and still be tappable.
   *
   * Measured on the live site at 375px: 52 of 63 interactive elements were
   * under 44px tall, header and footer links among them at 15–16px. The
   * "targets" section near the bottom of this file applies it.
   */
  --tap: 44px;

  /*
   * A type scale, so a new component picks a step rather than a number.
   *
   * The site had 34 distinct rem font-sizes, 21 of them between 0.62 and
   * 1.0rem — differences nobody can see and nobody meant. Existing rules are
   * left alone; new work uses these.
   */
  --fs-3xs: 0.68rem;
  --fs-2xs: 0.72rem;
  --fs-xs: 0.78rem;
  --fs-sm: 0.85rem;
  --fs-md: 0.94rem;
  --fs-lg: 1.1rem;
  --fs-xl: 1.35rem;
  --fs-2xl: 1.8rem;

  /* Spacing, on a 4px grid. */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-7: 2rem;
  --sp-8: 3rem;

  --dur-fast: 0.12s;
  --dur: 0.15s;
  --dur-slow: 0.22s;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  line-height: 1.6;
}

h1, h2, h3, h4, .display-title {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* Keyboard users need to see where they are. */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus { left: 0; top: 0; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: var(--brand);
  color: #fff;
}

.site-header a { color: #fff; }

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
}

.city-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
}

.city-picker:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }

.header-search { flex: 1 1 auto; min-width: 0; max-width: 560px; }

.header-search .input-group { box-shadow: none; }

.header-search input {
  border: 0;
  border-radius: 999px 0 0 999px;
  font-size: 0.88rem;
}

.header-search button {
  border: 0;
  border-radius: 0 999px 999px 0;
  background: var(--amber);
  color: #fff;
  padding-inline: 0.9rem;
}

.header-search button:hover { background: #a95a15; color: #fff; }

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--amber);
  font-size: 0.68rem;
  font-weight: 700;
}

/*
 * Primary navigation: three destinations, and Explore.
 *
 * The row this replaces held Categories, Shops, Services, Products and then
 * every area in the city, all at the same level — eleven links, five of them
 * neighbourhoods. An area filters a listing; it is not a section of the site,
 * and a navigation built that way is unreadable at a hundred areas.
 */
.header-primary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: 0.5rem;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
}

.header-primary a,
.header-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  opacity: 0.88;
  font: inherit;
}

.header-primary a:hover,
.header-explore:hover { opacity: 1; text-decoration: none; }

/*
 * The current section is marked by an underline as well as by weight, because
 * a half-step of opacity is not a state anybody can read at a glance.
 */
.header-primary a.active {
  opacity: 1;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--amber);
}

.header-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  margin-left: -0.35rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
}

/* --- City selector ------------------------------------------------------- */
.city-picker-wrap .dropdown-menu,
.header-primary .dropdown-menu {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
}

.city-menu { min-width: 220px; padding-block: 0.4rem; }

.city-menu-heading {
  padding: 0.35rem 1rem 0.15rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.city-menu-current {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  font-weight: 600;
  color: var(--ink);
}

.city-menu-current .bi { color: var(--good); }

.dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
}

/* --- The phone menu ------------------------------------------------------ */
.site-menu { width: min(86vw, 320px); }

.site-menu-heading {
  margin-top: 0.9rem;
  margin-bottom: 0.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.site-menu-heading:first-child { margin-top: 0; }

.site-menu-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--tap);
  padding-inline: 0.15rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.site-menu-link:hover { text-decoration: none; color: var(--brand); }
.site-menu-link .bi { color: var(--ink-faint); width: 1.1rem; }
.site-menu-link.active { font-weight: 700; color: var(--brand); }
.site-menu-link.active .bi { color: var(--brand); }

/* --- Layout ------------------------------------------------------------- */

/*
 * Block padding only.
 *
 * Ten templates put both classes on one element (`class="container section"`),
 * and the shorthand `padding: 1.5rem 0` was overriding `.container`'s own
 * horizontal padding to zero — so on those pages every card, heading and
 * paragraph ran hard into the edge of a phone screen.
 */
.section { padding-block: 1.5rem; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.section-title { margin: 0; font-size: 1.15rem; }
.section-sub { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: 0.85rem; }

.breadcrumbs {
  padding: 0.6rem 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 0.35rem; opacity: 0.6; }
.breadcrumbs a { color: var(--ink-soft); }

/* --- Cards -------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.card-grid.is-tight { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.tile {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tile:hover { box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }

.tile-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eef1f5, #e3e8ee);
  overflow: hidden;
}

.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/*
 * The stand-in for a record with no photograph.
 *
 * Most of the catalogue is in that state, so this is not an error case — it is
 * the ordinary appearance of a card, and it should look deliberate. The
 * record's initials in a soft, low-contrast wash: enough to break up a grid of
 * cards without competing with the ones that do have a picture, and drawn
 * rather than fetched.
 */
.tile-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e9eef4 0%, #dde5ee 100%);
  color: #8fa1b5;
  font-family: "Plus Jakarta Sans", sans-serif;
  /* cqw scales with the card; the rem bounds keep it sane where container
     queries are not supported, which is the whole point of the clamp. */
  font-size: clamp(1.75rem, 22cqw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: none;
}

.tile-fallback .bi {
  font-size: clamp(1.6rem, 26cqw, 2.75rem);
  opacity: 0.55;
  line-height: 1;
}

/* Lets the mark scale with the card rather than the viewport. */
.tile-media, .vendor-banner { container-type: inline-size; }

.vendor-banner { position: relative; }
.vendor-banner .tile-fallback { font-size: clamp(2rem, 10cqw, 4rem); }

.tile-body { padding: 0.7rem 0.8rem 0.85rem; flex: 1 1 auto; }

.tile-title {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.tile-meta { font-size: 0.76rem; color: var(--ink-faint); }
.tile-text { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--ink-soft); }

/* Two lines, then ellipsis — keeps every card in a row the same height. */
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge-verified { color: var(--brand); font-size: 0.8rem; }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  background: var(--good-tint);
  color: var(--good);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.price { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-was { margin-left: 0.35rem; font-size: 0.8rem; color: var(--ink-faint); text-decoration: line-through; }

.price-off {
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 5px;
  background: var(--amber-tint);
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.78rem;
  white-space: nowrap;
}

.pill:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.pill-row {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: none;
}

.pill-row::-webkit-scrollbar { display: none; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  padding: 2rem 0 1.75rem;
  background: linear-gradient(160deg, var(--brand) 0%, #14639f 100%);
  color: #fff;
}

.hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin: 0 0 0.4rem; }
.hero p { margin: 0; opacity: 0.9; font-size: 0.92rem; max-width: 54ch; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.1rem;
  font-size: 0.82rem;
}

.hero-stat strong { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* --- The hero's search and its three paths ------------------------------- */
.hero-search {
  display: flex;
  gap: 0.5rem;
  max-width: 620px;
  margin-top: 1.1rem;
}

.hero-search .form-control {
  border: 0;
  border-radius: var(--radius);
  font-size: 0.94rem;
}

.hero-search .btn { flex: 0 0 auto; border-radius: var(--radius); padding-inline: 1.25rem; }

/*
 * Services, Shops and Products as equals.
 *
 * Products used to be a row halfway down the page and Services had no entry
 * point here at all, which made the site read as a shop directory with some
 * other things attached to it.
 */
.hero-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 620px;
  margin-top: 0.9rem;
}

.hero-path {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-height: var(--tap);
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background var(--dur) ease, border-color var(--dur) ease;
}

.hero-path:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.hero-path .bi { font-size: 1.15rem; margin-bottom: 0.15rem; }
.hero-path-title { font-weight: 700; font-size: 0.94rem; }
.hero-path-sub { font-size: 0.74rem; opacity: 0.82; }

/* --- Detail pages ------------------------------------------------------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.panel-title { margin: 0 0 0.7rem; font-size: 1rem; }

.vendor-banner {
  aspect-ratio: 3 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #eef1f5, #dfe5ec);
}

.vendor-banner img { width: 100%; height: 100%; object-fit: cover; }

.detail-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 992px) {
  .detail-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 0.75rem; font-size: 0.85rem; }
.kv dt { color: var(--ink-faint); font-weight: 500; }
.kv dd { margin: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #eef1f5;
}

.review {
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.review:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.stars { color: #e0a512; letter-spacing: 0.05em; font-size: 0.85rem; }

/* --- Star rating input ---------------------------------------------------
 *
 * Radio buttons underneath, stars on top. The inputs stay in the document —
 * moved off-screen rather than `display: none` — so they remain focusable and
 * a screen reader still announces the choice; only the appearance is replaced.
 *
 * The values run 5 to 1 in the markup so that `~` can reach the stars that
 * follow the checked one, which are the lower numbers.
 */
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
}

.star-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.star-input label {
  cursor: pointer;
  padding: 0.1rem;
  color: #d8dee6;
  font-size: 1.5rem;
  line-height: 1;
  transition: color 0.12s ease, transform 0.12s ease;
}

.star-input label:hover { transform: scale(1.12); }

/* The chosen star and everything to its left. */
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #e0a512; }

/* Keyboard focus has to be visible even though the input itself is not. */
.star-input input:focus-visible + label {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Buttons ------------------------------------------------------------ */
.btn { border-radius: 999px; font-weight: 600; font-size: 0.86rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-amber:hover { background: #9b5313; border-color: #9b5313; color: #fff; }
.btn-whatsapp { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.btn-whatsapp:hover { background: #188446; color: #fff; }

/* --- Confirmation toast -------------------------------------------------
 *
 * Adding something to the list used to give no sign at all: the page reloaded,
 * the badge quietly incremented, and nothing said so. This is the answer to
 * "did that work?", and it sits above the phone tab bar rather than behind it.
 */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(70px + env(safe-area-inset-bottom));
  z-index: 1080;
  width: min(92vw, 420px);
  transform: translate(-50%, 1.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1), visibility 0.22s;
}

@media (min-width: 768px) { .toast-host { bottom: 1.5rem; } }

.toast-host[data-show] {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast-host .toast-body {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  background: #14202c;
  color: #fff;
  font-size: 0.86rem;
  box-shadow: 0 8px 28px rgba(16, 32, 48, 0.28);
}

.toast-host .bi { font-size: 1.05rem; color: #6ee7a8; flex: 0 0 auto; }

.toast-host span {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-host a { color: #9fd0ff; font-weight: 600; white-space: nowrap; }

/* The badge pulses once when it changes, so the eye is drawn to the number
   that just moved rather than having to hunt for it. */
@keyframes cart-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.cart-count.is-bumped { animation: cart-bump 0.4s ease; }

/* The button says what it is doing while the request is in flight. */
.btn[data-adding] { pointer-events: none; opacity: 0.75; }

/* --- Services ------------------------------------------------------------
 *
 * For a plumber or a coaching centre this list is the listing, so it gets a
 * row each with its rate — not the grey pills a shop's "we also do" services
 * are shown as.
 */
.service-list { display: flex; flex-direction: column; }

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child { border-bottom: 0; padding-bottom: 0; }

.service-name { font-size: 0.95rem; font-weight: 600; }
.service-desc { margin-top: 0.15rem; font-size: 0.84rem; color: var(--ink-soft); }

.service-side { flex: 0 0 auto; text-align: right; }

.service-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--good);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  /* Stacked on a phone: a rate pushed to the right of a two-line description
     leaves both cramped. */
  .service-row { flex-direction: column; gap: 0.35rem; }
  .service-side { text-align: left; }
}

/* --- Cart drawer ---------------------------------------------------------
 *
 * Clicking the bag used to leave the page you were reading. The drawer shows
 * the list where you are, and "Proceed to checkout" is the thing that
 * navigates — so leaving the page is a decision rather than a side effect.
 */
.cart-drawer { width: min(92vw, 380px); }

.cart-drawer .offcanvas-body { display: flex; flex-direction: column; padding: 0; }

.cart-drawer-group { padding: 0.75rem 1rem 0.25rem; border-bottom: 1px solid var(--line); }

.cart-drawer-shop {
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cart-drawer-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
}

.cart-drawer-line img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef1f5;
}

/* The same stand-in the cards use, at line size. */
.cart-drawer-mark {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e9eef4, #dde5ee);
  color: #8fa1b5;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-drawer-name {
  font-size: 0.86rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sticks to the bottom of the drawer so the total and the button are reachable
   without scrolling past a long list. */
.cart-drawer-foot {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* --- Checkout lines ------------------------------------------------------ */
.checkout-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.checkout-line:last-of-type { border-bottom: 0; }

/* Only the picture and the name toggle the tick. */
.checkout-line-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.checkout-line img {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef1f5;
}

/* An unticked line stays readable — it is excluded, not gone. Guarded because
   :has() is unsupported in older browsers, where the tick alone says it. */
@supports selector(:has(*)) {
  .checkout-line:has([data-check-item]:not(:checked)) { opacity: 0.5; }
}

/* --- Empty state -------------------------------------------------------- */
.empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty i { display: block; font-size: 2rem; opacity: 0.35; margin-bottom: 0.6rem; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 1.25rem;
  background: #14202c;
  color: #c3ccd6;
  font-size: 0.84rem;
}

.site-footer .footer-heading {
  margin-bottom: 0.6rem;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a { color: #c3ccd6; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.3rem; }

.footer-base {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: #8f9aa6;
}

/* --- Bottom navigation (phones) ----------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  display: flex;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 56px;
  padding: 0.4rem 0.25rem 0.5rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 600;
}

.bottom-nav a:hover { text-decoration: none; }
.bottom-nav i { font-size: 1.12rem; }

/*
 * The current tab is marked twice — colour and a rule along the top — because
 * colour alone is not a state a colour-blind visitor can read.
 */
.bottom-nav a.active {
  color: var(--brand);
  box-shadow: inset 0 2px 0 var(--brand);
}

/* The badge sits on the icon, so it does not widen the tab or shift the label. */
.bottom-nav-icon { position: relative; display: inline-flex; }

.bottom-nav-badge {
  position: absolute;
  top: -4px;
  left: 68%;
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 768px) { .bottom-nav { display: none; } }
/* Clears the fixed bar so the last thing on the page is reachable. */
@media (max-width: 767.98px) { body { padding-bottom: 66px; } }

/* --- Pagination --------------------------------------------------------- */
.pagination { flex-wrap: wrap; row-gap: 0.4rem; justify-content: center; }
.page-link { color: var(--brand); font-size: 0.85rem; }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); }

@media (max-width: 575.98px) {
  .page-link { min-width: 2.5rem; text-align: center; }
}

/* --- Forms -------------------------------------------------------------- */
.form-control, .form-select { font-size: 0.88rem; border-radius: var(--radius-sm); }
.form-label { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.25rem; }

/* --- Article copy ------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.1rem; margin-top: 1.6rem; }
.prose p { margin-bottom: 0.9rem; }
.prose ul { padding-left: 1.1rem; }

/* --- Phones -------------------------------------------------------------
 *
 * Bootstrap's 12px gutter is tight for a page that is mostly cards: the
 * content ends up nearly touching the bezel, and two cards side by side have
 * less air between them than the text inside them. The edges, the gaps and the
 * panels all open up a little here — and the rhythm between sections with
 * them, so a long scrolling page reads as separate blocks rather than one
 * continuous slab.
 */
@media (max-width: 575.98px) {
  .container,
  .container-fluid { padding-inline: 1rem; }

  /* Not tighter than the desktop rhythm — a phone needs the separation
     between blocks more, not less, because only one is on screen at a time. */
  .section { padding-block: 1.4rem; }
  .section-head { margin-bottom: 0.8rem; }

  .card-grid { gap: 0.85rem; }
  .card-grid.is-tight { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }

  .panel { padding: 1rem; margin-bottom: 0.85rem; }
  .tile-body { padding: 0.65rem 0.75rem 0.8rem; }

  .hero { padding: 1.75rem 0 1.5rem; }
  .hero-stats { gap: 1.1rem; margin-top: 0.9rem; }

  /* Three columns at 320px leaves 90px each, which fits neither the label nor
     the line under it. Stacked, each is a full-width target. */
  .hero-paths { grid-template-columns: minmax(0, 1fr); }
  .hero-path { flex-direction: row; align-items: baseline; gap: 0.5rem; }
  .hero-path .bi { margin-bottom: 0; }
  .hero-path-sub { margin-left: auto; }

  .hero-search { flex-wrap: wrap; }
  .hero-search .form-control { flex: 1 1 100%; }
  .hero-search .btn { width: 100%; }

  .breadcrumbs { padding: 0.5rem 0; }

  /* The scrolling rows are inset with everything else, but keep a little
     overhang so it is visible that they continue past the edge. */
  .pill-row { margin-inline: -1rem; padding-inline: 1rem; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.5rem; }
}

/* --- Targets ------------------------------------------------------------
 *
 * Everything a finger has to hit, given a height it can be hit at.
 *
 * The measurement that prompted this: at 375px on the shops listing, 52 of 63
 * interactive elements were under 44px tall. The two worst were the rows
 * carrying most of the navigation — header links at 16px and footer links at
 * 15–16px, which is the height of the text and nothing more.
 *
 * The links are inline, so min-height alone would do nothing; each becomes an
 * inline-flex box that centres its own text. Where a row already had margin
 * doing the spacing, the margin goes — otherwise the gap doubles.
 */
.btn,
.form-control,
.form-select,
.page-link,
.pill {
  min-height: var(--tap);
}

.btn,
.page-link,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pill { padding-block: 0; }

.breadcrumbs a,
.site-footer a,
.brand,
.city-picker,
.header-action,
.btn-close,
.section-head a,
.toast-body a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

/* These three sit inside the 60px header bar, so giving them a full target
   costs no height at all. */
.brand,
.city-picker,
.header-action { flex-shrink: 0; }

/* The "All shops" link opposite a section heading. It is the shorter of the
   two, so it is the one that must not wrap — the heading has the room. */
.section-head > a { white-space: nowrap; flex-shrink: 0; }

.site-footer li { margin-bottom: 0; }

/* The breadcrumb separator sits on the li, so it must stay centred with the
   taller links rather than on the text baseline. */
.breadcrumbs li { display: inline-flex; align-items: center; }

/*
 * Applied to four flex children — in the cart, the cart drawer, the service
 * list and the provider card — and defined in no stylesheet on the site.
 * Without it a long shop name cannot shrink below its content width, and the
 * row pushes the page sideways at 320px.
 */
.min-w-0 { min-width: 0; }

/* An in-page anchor under a sticky header lands behind it otherwise. */
[id] { scroll-margin-top: calc(var(--header-h) + var(--sp-2)); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* --- Listing layout and filters ------------------------------------------ */
/*
 * A sidebar from lg up, one column below it.
 *
 * minmax(0, 1fr) on the results column, because a grid track defaults to a
 * min-width of auto and a wide card would otherwise refuse to shrink and push
 * the page sideways.
 */
.listing-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 992px) {
  .listing-split { grid-template-columns: 232px minmax(0, 1fr); }
}

.filter-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* Long enough lists scroll inside the panel rather than growing the page. */
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow-y: auto;
}

.filter-group { margin-bottom: 1.1rem; border: 0; padding: 0; }
.filter-group:last-of-type { margin-bottom: 0.75rem; }

.filter-label {
  display: block;
  margin-bottom: 0.4rem;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/*
 * The box is 16px because that is what a checkbox looks like; the label beside
 * it carries the 44px so the whole row is the target. Growing the control
 * itself turns it into a grey slab.
 */
.filter-form .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tap);
  margin: 0;
  padding: 0;
}

.filter-form .form-check-input { margin: 0; flex: 0 0 auto; }

.filter-form .form-check-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-height: var(--tap);
  font-size: 0.86rem;
  cursor: pointer;
}

.filter-count {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.filter-actions .btn { flex: 1 1 auto; }
.filter-actions .btn-link { flex: 0 0 auto; }

/* A count on the phone button, so it is obvious the list is being narrowed. */
.filter-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 0.35rem;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

/* --- The filter sheet ---------------------------------------------------- */
/*
 * Bootstrap sizes a bottom sheet through --bs-offcanvas-height, and setting
 * `height` here loses to it: both selectors are one class, and the custom
 * property is what its own rule reads. Setting the property is the supported
 * way and does not depend on which stylesheet loads last.
 */
.filter-sheet {
  --bs-offcanvas-height: 82vh;
  border-radius: var(--radius) var(--radius) 0 0;
}

.filter-sheet .offcanvas-body { padding-top: 0; }

/* The apply button stays reachable however long the list of areas is. */
.filter-sheet .filter-actions {
  position: sticky;
  bottom: 0;
  margin: 0 -1rem -1rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
  background: var(--paper);
}

/* --- Category groups ----------------------------------------------------- */
/*
 * <details> rather than a scripted accordion: it opens and closes without
 * JavaScript, it is keyboard-operable for free, and a browser find-in-page
 * will open one to reveal a match.
 */
.cat-group {
  margin-bottom: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cat-group-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--tap);
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
}

/* Safari draws its own disclosure triangle unless this is said twice. */
.cat-group-head::-webkit-details-marker { display: none; }

.cat-group-count {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.cat-group-head .bi { color: var(--ink-faint); transition: transform var(--dur) ease; }
.cat-group[open] .cat-group-head .bi { transform: rotate(180deg); }
.cat-group-body { padding: 0 0.9rem 0.9rem; }

/*
 * Open by default from md up, where there is room; closed on a phone, where
 * forty-eight cards at once is a page somebody scrolls past rather than reads.
 */
@media (max-width: 767.98px) {
  .cat-group:not([open]) .cat-group-body { display: none; }
}

/* --- Business profile ---------------------------------------------------- */
/*
 * Section links rather than tabs.
 *
 * Every section stays in the page, so a link to #reviews works from anywhere,
 * find-in-page finds text in all of them, and there is no state to lose on a
 * reload. Tabs would hide two thirds of a page that is mostly worth reading.
 */
.profile-nav {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}

.profile-nav::-webkit-scrollbar { display: none; }

.profile-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.profile-nav a:hover { background: var(--brand-tint); color: var(--brand); text-decoration: none; }

/*
 * One trust badge, with the one thing it means.
 *
 * "Verified" alone invites the reading that the site vouches for the work. It
 * does not: somebody checked the details were real, which is what this says.
 */
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--good-tint);
  color: var(--good);
  font-size: 0.72rem;
  font-weight: 600;
}

/*
 * The sticky contact bar, on phones.
 *
 * Sits above the tab bar rather than over the content. `padding-bottom` on the
 * body clears both, so the last thing on the page is still reachable.
 */
.profile-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 66px;
  z-index: 1045;
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(16, 32, 48, 0.08);
}

.profile-actions .btn { flex: 1 1 0; min-height: var(--tap); }

@media (max-width: 991.98px) {
  /* Clears the tab bar (66) and the contact bar (60) together. */
  body:has(.profile-actions) { padding-bottom: 126px; }
}

/* --- Choosing what to list ----------------------------------------------- */
/*
 * Three cards, one radio each. The input stays in the document and focusable —
 * `display: none` would take it out of the tab order, which is the usual way
 * a styled radio group stops being operable by keyboard.
 */
.type-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.type-option { position: relative; margin: 0; cursor: pointer; }

.type-option input {
  position: absolute;
  inset: 0.75rem auto auto 0.75rem;
  margin: 0;
}

.type-option-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  height: 100%;
  padding: 0.75rem 0.85rem 0.85rem 2.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color var(--dur) ease, background var(--dur) ease;
}

.type-option:hover .type-option-body { border-color: var(--brand); }

/* Checked shows as a filled card as well as a filled radio, because the radio
   alone is 16px of signal on a card the size of a business card. */
.type-option input:checked + .type-option-body {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.type-option input:focus-visible + .type-option-body {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.type-option .bi { font-size: 1.15rem; color: var(--brand); }
.type-option-title { font-weight: 700; font-size: 0.94rem; }
.type-option-hint { color: var(--ink-soft); font-size: 0.78rem; }

/* --- Field errors -------------------------------------------------------- */
/*
 * Shown under the field that caused them. The listing and contact forms had no
 * per-field message at all — a rejected submission said only that something
 * was wrong, somewhere.
 */
.field-error {
  margin-top: 0.25rem;
  color: #b3261e;
  font-size: 0.78rem;
  font-weight: 500;
}

legend.panel-title, legend.form-label { float: none; width: auto; }

/* --- Reviews ------------------------------------------------------------- */
.review-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.review-score { display: flex; flex-direction: column; gap: 0.1rem; }
.review-score strong { font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.review-score .stars { color: var(--amber); font-size: 0.9rem; }

.review-spread { flex: 1 1 200px; max-width: 320px; display: grid; gap: 0.2rem; }

.review-spread-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr 1.8rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.review-spread-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.review-spread-bar span { display: block; height: 100%; background: var(--amber); }
.review-spread-count { text-align: right; font-variant-numeric: tabular-nums; }

/*
 * The review form, behind a disclosure.
 *
 * <details> so it opens without JavaScript and is keyboard-operable for free.
 */
.review-writer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap);
  cursor: pointer;
  list-style: none;
}

.review-writer-head::-webkit-details-marker { display: none; }
.review-writer[open] .review-writer-head .btn { display: none; }

/* --- How it works -------------------------------------------------------- */
/*
 * Numbered because it is a sequence — search, then explore, then contact —
 * rather than because a number looks tidy beside a heading.
 */
.how-it-works {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.how-it-works li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.how-it-works li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.86rem;
}

.how-it-works strong { display: block; color: var(--ink); }

/*
 * Contact with nothing in the aside. The two-column split is right when there
 * is a published email or phone to put beside the form, and only then.
 */
.contact-single { max-width: 44rem; }

/* --- FAQ groups ---------------------------------------------------------- */
/*
 * A section label above each accordion. Sits tight to the questions it heads
 * so the grouping is read as grouping, not as five unrelated pages stacked.
 */
.faq-group {
  margin: 1.6rem 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.faq-group:first-of-type { margin-top: 1.1rem; }

/*
 * A target has two dimensions.
 *
 * The rule above gave these a 44px height and left the width alone, which is
 * fine for a text link and useless for an icon: the cart button in the header
 * is one glyph, and it measured 13px across at 375px wide. min-width only ever
 * widens something narrower than the target, so the text links beside it are
 * untouched.
 */
.header-action,
.btn-close,
.icon-action {
  min-width: var(--tap);
  justify-content: center;
}

/* No exception for the text ones. :has() was the obvious way to write it and
   the wrong one: the cart link carries a "List" span that is display:none
   below 576px, and :has() does not care whether a child is being rendered —
   so the exception fired exactly where the target was needed. A text link is
   already wider than 44px, so the rule above never touches it. */

/*
 * A section heading and its toolbar, on one line only while they fit.
 *
 * `.section-head` was a flex row that never wrapped, so at 375px the store's
 * "Products in Vijayawada" plus a Filters button plus a sort select ran 4px
 * past the viewport and gave the whole page a horizontal scrollbar. The text
 * block gets min-width:0 so a long heading can shrink instead of shoving, and
 * the toolbar drops to its own line when there is no room beside it.
 */
.section-head { flex-wrap: wrap; }
.section-head > :first-child { flex: 1 1 12rem; min-width: 0; }

/*
 * Bootstrap's outline-secondary is #6c757d, which measures 4.69:1 on white
 * and 4.37:1 on this site's off-white ground — under 4.5 either way once the
 * button sits on a panel. --ink-soft is the same grey, two shades down.
 */
.btn-outline-secondary {
  --bs-btn-color: var(--ink-soft);
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-bg: var(--ground);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-border-color: var(--ink-faint);
}

/* --- The header at 320px -------------------------------------------------- */
/*
 * A 320px screen is the narrowest anyone still ships, and the header did not
 * fit on one: burger, wordmark, city picker and the list button came to 365px
 * inside a 288px container, so every page scrolled sideways by 36px.
 *
 * Nothing is removed. The wordmark stands down to its "ML" tile — which is the
 * brand, and still a link home — and the city name truncates rather than
 * pushing. Both come back at 360px, where there is room.
 */
@media (max-width: 359.98px) {
  .header-bar { gap: 0.5rem; }

  /* The tile carries the identity on its own at this width. */
  .brand > span:not(.brand-mark) { display: none; }

  .city-picker {
    min-width: 0;
    max-width: 8.5rem;
    padding-inline: 0.45rem;
  }

  /* The name is the part that can go; the chevron says it is a menu. */
  .city-picker > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* The picker must be allowed to give ground at any width — without min-width:0
   a flex item refuses to shrink below its content, which is what turned a long
   city name into a horizontal scrollbar rather than an ellipsis. */
.city-picker-wrap { min-width: 0; }
