/* ==========================================================================
   Service Areas: "Where's the party?"
   The map is the page (2026-10-03). One screen, 100dvh, no page scroll: the
   branded vector map (wp-assets/data/basemap-mbm.json) fills the stage edge
   to edge under the locked site chrome, everything outside the served
   counties recedes under a white veil, and one white card floats top left
   with the question, the search, the answer and the key. Under 768px the
   card docks to the bottom as a sheet over the full-screen map.
   The map, search pill and suggestions are styled in wp-assets/css/mbm-map.css
   (shared with the homepage and Contact); this page's overrides are here.
   One authored motion moment lives in mbm-map.js (the map settles in while
   the county fills arrive by distance from home base).
   ========================================================================== */

.sa-page {
  --sa-text: #112C48;
  --sa-muted: #526777;
  --sa-label: #3B4A63;
  --sa-blue: #2257BA;
  --sa-yellow: #FFDA54;
  --sa-gold: #BF9553;
  --sa-land: #F7F2E8;
  --sa-free: #FFCB2E;
  --sa-fee1: #4FB6E8;
  --sa-fee2: #1F4FB8;
  --sa-contact: #B48CE0;
  --sa-ease: var(--ease-enter, cubic-bezier(0.22, 1, 0.36, 1));
  --sa-chrome-bottom: calc(var(--chrome-inset, 20px) + 60px);
  --sa-edge: 24px;
  --sa-shadow: 0 18px 40px rgba(17, 44, 72, 0.18), 0 2px 6px rgba(17, 44, 72, 0.08);
  /* The same shadow pair, scaled down for the floating map controls. */
  --sa-shadow-control: 0 8px 20px rgba(17, 44, 72, 0.16), 0 1px 3px rgba(17, 44, 72, 0.08);
}

/* One screen: the page itself never scrolls. */
html:has(> body.sa-page) { height: 100%; overflow: hidden; overscroll-behavior: none; background: var(--sa-land, #F7F2E8); }
body.sa-page { height: 100%; margin: 0; overflow: hidden; }
body.sa-page,
body.sa-page #main { background-color: #F7F2E8 !important; }

.sa { color: var(--sa-text); overflow: clip; }

/* Browser surfaces, from the palette */
body.sa-page ::selection { background: var(--sa-yellow); color: var(--sa-text); }
body.sa-page .sa :focus-visible { outline: 3px solid var(--sa-blue) !important; outline-offset: 3px !important; }

/* ---------- The stage: the map, edge to edge ---------- */
.sa-stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}
.sa-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* ---------- The card ---------- */
.sa-card {
  position: absolute;
  z-index: 2;
  top: calc(var(--sa-chrome-bottom) + 16px);
  left: var(--sa-edge);
  width: 400px;
  max-width: calc(100% - 2 * var(--sa-edge));
  box-sizing: border-box;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--sa-shadow);
  color: var(--sa-text);
}

body.sa-page .sa-card .sa-title {
  margin: 0;
  color: var(--sa-text);
  font-family: var(--font-display, "DM Serif Display", Georgia, serif) !important;
  font-size: 38px !important;
  line-height: 0.98 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap;
}
.sa-title__script {
  display: inline-block;
  padding-right: 0.06em;
  color: var(--sa-gold);
  font-family: var(--font-script, "Allura", cursive);
  font-size: 1.22em;
  line-height: 0.8;
  letter-spacing: 0;
}

/* Search: one row, the Check button inside it */
.sa-search { width: 100%; max-width: none; margin-top: 22px; }
body.sa-page .sa-card .mbm-search__pill { position: relative; border-radius: 12px; background: none; box-shadow: none; }
body.sa-page .sa-card .mbm-search__input {
  box-sizing: border-box;
  height: 56px;
  min-height: 56px;
  padding: 0 104px 0 18px;
  border: 1.5px solid #D9E2EE;
  border-radius: 12px;
  background: #fff;
  color: var(--sa-text);
  font: 500 17px/1.2 var(--font-body, "Manrope", system-ui, sans-serif);
  caret-color: var(--sa-blue);
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
body.sa-page .sa-card .mbm-search__input::placeholder { color: #667385; opacity: 1; font-weight: 500; }
body.sa-page .sa-card .mbm-search__input:focus {
  border-color: var(--sa-blue);
  box-shadow: 0 0 0 3px rgba(34, 87, 186, 0.3);
  outline: 2px solid transparent !important;
  outline-offset: 0 !important;
}
body.sa-page .sa-card .mbm-search__btn {
  top: 6px;
  right: 6px;
  bottom: 6px;
  min-width: 84px;
  padding: 0 18px;
  border-radius: 9px;
  background: var(--sa-yellow);
  color: var(--sa-text);
  font: 700 15px/1 var(--font-body, "Manrope", system-ui, sans-serif);
  transition: transform 120ms var(--sa-ease), background-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  body.sa-page .sa-card .mbm-search__btn:hover { background: #FFE27F; }
}

/* Suggestions match the card and the map's tiers */
.sa-page .mbm-suggest { border-radius: 14px; box-shadow: var(--sa-shadow); }
.sa-page .mbm-suggest__opt { border-radius: 10px; color: var(--sa-text); }
.sa-page .mbm-suggest__opt[aria-selected="true"],
.sa-page .mbm-suggest__opt:hover { background: #F4F7FB; }
.sa-page .mbm-suggest__opt::after { display: none; }
.sa-page .mbm-suggest__opt--free { --glow: 255 203 46; }
.sa-page .mbm-suggest__opt--fee { --glow: 79 182 232; }
.sa-page .mbm-suggest__opt--quote { --glow: 180 140 224; }
.sa-page .mbm-suggest__county { color: var(--sa-muted); }

/* The answer: empty until a pick, then the price and the place */
.sa-verdict { max-width: none; margin-top: 22px; }
.sa-verdict:not(:has(.sa-price:not([hidden]))) { display: none; }
.sa-price {
  margin: 0;
  color: var(--sa-text);
  font-family: var(--font-display, "DM Serif Display", Georgia, serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
}
.sa-price[data-band="contact"] { font-size: 40px; line-height: 1.05; }
body.sa-page .sa-card .mbm-verdict__line {
  margin: 8px 0 0;
  color: var(--sa-muted);
  font: 500 16px/1.45 var(--font-body, "Manrope", system-ui, sans-serif);
  letter-spacing: 0;
  text-wrap: pretty;
}
body.sa-page .sa-card .mbm-verdict__line:empty { display: none; }
.sa-card .mbm-verdict__detail { display: none !important; }
.sa-contact { margin: 6px 0 0; font: 600 15px/1.45 var(--font-body, "Manrope", system-ui, sans-serif); }
.sa-contact[hidden] { display: none; }
/* A search that matches no listed town: no price, an invitation instead. */
.sa-price[data-band="none"] { font-size: 28px; line-height: 1.1; letter-spacing: 0; }
.sa-unlisted { margin: 8px 0 0; color: var(--sa-muted); font: 500 15px/1.45 var(--font-body, "Manrope", system-ui, sans-serif); text-wrap: pretty; }
.sa-unlisted[hidden] { display: none; }
/* A place found on the map inside a served county but not on the list */
.sa-guess-note { margin: 6px 0 0; color: var(--sa-muted); font: 500 13px/1.45 var(--font-body, "Manrope", system-ui, sans-serif); text-wrap: pretty; }
.sa-guess-note[hidden] { display: none; }
body.sa-page .sa-contact__link {
  color: var(--sa-blue);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(34, 87, 186, 0.4);
  text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  body.sa-page .sa-contact__link:hover { text-decoration-color: currentColor; }
}

/* Key: four small items. At 12px the four labels measure 345px before any
   gap and the card's text column is 344px, so they sit as two even rows. */
.sa-key {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--sa-label);
  font: 600 12px/1.3 var(--font-body, "Manrope", system-ui, sans-serif);
  white-space: nowrap;
}
.sa-key__item { display: flex; align-items: center; gap: 6px; }
/* Swatches show what the map shows: each tier colour at the county fill
   opacity (0.4) over the basemap land #F3EFE4, per channel
   round(0.4 * tier + 0.6 * land):
   free    #FFCB2E -> #F8E19B    $35     #4FB6E8 -> #B1D8E6
   $75     #1F4FB8 -> #9EAFD2    contact #B48CE0 -> #DAC7E2
   A hairline edge keeps the pale chips readable on the white card. */
.sa-key__item::before { content: ""; flex-shrink: 0; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(17, 44, 72, 0.12); }
.sa-key__item--free::before { background: #F8E19B; }
.sa-key__item--fee1::before { background: #B1D8E6; }
.sa-key__item:is(.sa-key__item--fee2, .sa-key__item--fee3)::before { background: #9EAFD2; }
.sa-key__item--contact::before { background: #DAC7E2; }
.sa-key__item--custom::before { background: color-mix(in srgb, var(--sa-key) 25%, #F2EEE6); }
.sa-key__item[style*="--sa-key"]::before { background: color-mix(in srgb, var(--sa-key) 25%, #F2EEE6); }
.sa-key:has(.sa-key__item--custom, > :nth-child(5)) { flex-wrap: wrap; row-gap: 8px; }

/* ---------- Map overrides for this page ---------- */
.sa-page .sa-map > .mbm-map,
.sa-page .mbm-map--page {
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--sa-land);
}
.sa-page .mbm-map .leaflet-container,
.sa-page .mbm-map .mbm-map__canvas { background: var(--sa-land); background-image: none; }
.sa-page .mbm-map .leaflet-tile-pane { filter: none; }
.sa-page .mbm-map__legend { display: none; }

/* Zoom: two round white buttons, bottom right, above the credit */
.sa-page .mbm-map__bar {
  position: absolute;
  z-index: 800;
  right: var(--sa-edge);
  bottom: 50px;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}
.sa-page .mbm-map__zoom { flex-direction: column; gap: 8px; }
.sa-page .mbm-map__zoom-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--sa-text);
  box-shadow: var(--sa-shadow-control);
}
@media (hover: hover) and (pointer: fine) {
  .sa-page .mbm-map__zoom-btn:hover { box-shadow: var(--sa-shadow-control); }
}

/* Credit: a small translucent pill under the zoom */
.sa-page .mbm-map .leaflet-control-attribution {
  margin: 0 var(--sa-edge) 16px 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #5B6A80;
  font: 500 10px/1.6 var(--font-body, "Manrope", system-ui, sans-serif);
}
body.sa-page .mbm-map .leaflet-control-attribution a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  body.sa-page .mbm-map .leaflet-control-attribution a:hover { color: var(--sa-text); text-decoration: underline; text-underline-offset: 2px; }
}

/* Counties and towns */
.sa-page .mbm-map .mbm-county { transition: fill-opacity 200ms ease; }
.sa-page .mbm-map .mbm-county:is(.is-hover, .is-active) { filter: none; }
/* Hover: a soft glow in the county's own tier colour, drawn by a blurred
   halo stroke under the county (mbm-map.js), so the fill itself stays pale. */
.sa-page .mbm-map .mbm-halo { opacity: 0; filter: blur(7px); pointer-events: none; transition: opacity 220ms ease; }
.sa-page .mbm-map .mbm-halo.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sa-page .mbm-map .mbm-halo { transition: none; } }
/* Only the selected county carries the gold edge (it is brought to the front
   in mbm-map.js); every other county keeps its 2px white edge. */
.sa-page .mbm-map .mbm-county:not(.is-active) { stroke: #fff; stroke-width: 2px; }
.sa-page .mbm-map .mbm-county.is-hover:not(.is-active) { stroke-width: 2.5px; }
.sa-page .mbm-map .mbm-county.is-active { animation: none; fill-opacity: 0.5 !important; stroke: var(--sa-gold); stroke-width: 2.5px; }
body.sa-page .mbm-map :is(.mbm-county, .mbm-town):focus-visible { outline: none !important; stroke: var(--sa-text); stroke-width: 3px; }
.sa-page .mbm-map .mbm-town { transition: opacity 300ms ease, transform 160ms var(--sa-ease); }
.sa-page .mbm-map .mbm-town.is-off { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .sa-page .mbm-map :is(.mbm-county, .mbm-town) { transition: none; }
}
/* Picked pin: tier-colour dot with a 2px white edge; the 4px gold ring is
   its own circle (.mbm-pin-ring) just outside it. */
.sa-page .mbm-map .mbm-town.is-active { stroke: #fff; stroke-width: 2px; }
.sa-page .mbm-map .mbm-pin-ring { pointer-events: none; }
/* The picked town's name, on a pill under its pin, clear of the basemap's own label */
.sa-page .mbm-map .mbm-pin-label { pointer-events: none; }
.sa-page .mbm-map .mbm-pin-label__in {
  position: absolute;
  /* Centred under the pin, 14px below the gold ring (outer edge at 17px). */
  top: 31px;
  left: 0;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(17, 44, 72, 0.14);
  color: var(--sa-text);
  font: 600 13px/1.2 var(--font-body, "Manrope", system-ui, sans-serif);
  white-space: nowrap;
}
.sa-page .mbm-map .mbm-tip__in { color: var(--sa-text); box-shadow: 0 8px 20px rgba(17, 44, 72, 0.16), 0 1px 3px rgba(17, 44, 72, 0.08); }

/* ---------- Phones: map full screen, the card a sheet docked to the bottom ---------- */
@media (max-width: 767px) {
  .sa-page { --sa-chrome-bottom: calc(var(--chrome-inset, 14px) + var(--chrome-h, 44px)); --sa-edge: 16px; }
  .sa-card {
    top: auto;
    right: 16px;
    bottom: 0;
    left: 16px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - var(--sa-chrome-bottom) - 16px);
    border-radius: 20px 20px 0 0;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
  body.sa-page .sa-card .sa-title { font-size: 34px !important; }
  .sa-search { margin-top: 18px; }
  .sa-verdict { margin-top: 18px; }
  .sa-price { font-size: 44px; }
  .sa-price[data-band="contact"] { font-size: 40px; }
  .sa-key { margin-top: 18px; gap: 14px; }
  /* Phone: the picked-pin name pill sits 12px lower to clear basemap labels. */
  .sa-page .mbm-map .mbm-pin-label__in { top: 43px; }
  /* Suggestions open upward, over the map, so they never leave the screen. */
  .sa-page .mbm-suggest { top: auto; bottom: calc(100% + 8px); transform-origin: 50% 100%; }
  /* Zoom bottom right and the credit bottom left, both 12px above the sheet. */
  .sa-page .mbm-map__bar { right: 16px; bottom: calc(var(--sa-card-h, 300px) + 0px + 12px); }
  .sa-page .mbm-map .leaflet-bottom.leaflet-right { right: auto; left: 12px; bottom: calc(var(--sa-card-h, 300px) + 0px + 12px); }
  .sa-page .mbm-map .leaflet-bottom.leaflet-right .leaflet-control { float: left; clear: none; }
  body.sa-page .mbm-map .leaflet-control-attribution { margin: 0; }
  /* The dog would cover the Washington and Reston labels; the pin stays. */
  .sa-page .mbm-map .mbm-base__dog { display: none; }
}
/* Short phones: the sheet scrolls inside itself, the page never does. */
@media (max-width: 767px) and (max-height: 620px) {
  .sa-card { overflow-y: auto; overscroll-behavior: contain; }
  .sa-page .mbm-suggest { top: calc(100% + 8px); bottom: auto; transform-origin: 50% 0; }
}

/* ---------- Load: the question writes itself in (html.sa-motion is set in <head>) ---------- */

/* Load: the question writes itself in (html.sa-motion is set in <head>). */
.sa-motion .sa-title:not(.is-split) { opacity: 0; animation: saShow 0s 1.2s forwards; }
.sa-title__word { display: inline-block; white-space: nowrap; }
.sa-title.is-split :is(.sa-title__char, .sa-title__unit) {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  filter: blur(4px);
  transition:
    opacity 220ms var(--sa-ease) var(--d, 0ms),
    transform 220ms var(--sa-ease) var(--d, 0ms),
    filter 220ms var(--sa-ease) var(--d, 0ms);
}
.sa-title.is-split.is-in :is(.sa-title__char, .sa-title__unit) { opacity: 1; transform: none; filter: none; }
.sa-motion .sa-search {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms var(--sa-ease) 150ms, transform 300ms var(--sa-ease) 150ms;
}
.sa-motion .sa-search:not(.is-in) { animation: saShow 0s 1.2s forwards; }
.sa-motion .sa-search.is-in { opacity: 1; transform: none; }
@keyframes saShow { to { opacity: 1; transform: none; } }

.sa-char, .sa-char-word { display: inline-block; }
.sa-char-word { white-space: nowrap; }

/* Home base is marked by the dog alone on this page. */
.sa-page .mbm-map .mbm-base__pin { display: none; }

/* 2026-10-03 (Sabrina): the homepage shows this map in a frame (?embed=1). Inside the frame the site chrome is hidden. */
html[data-embed] .chrome-menu-btn, html[data-embed] .chrome-book, html[data-embed] .menu{ display:none !important; }

/* 2026-10-04: inside the homepage frame the card can never run past the frame's bottom edge. */
html[data-embed] .sa-card { max-height: calc(100svh - 48px); overflow: auto; scrollbar-width: none; }
html[data-embed] .sa-card::-webkit-scrollbar { display: none; }
@media (max-width: 767px) { html[data-embed] .sa-card { max-height: calc(100svh - 24px); } }
@media (max-width: 767px) {
  /* Homepage frame on phones: compact card, the map keeps the upper half. */
  html[data-embed] .sa-card { max-height: 50svh; padding-top: 18px; }
  html[data-embed] body.sa-page .sa-card .sa-title { font-size: 28px !important; }
  html[data-embed] .sa-search, html[data-embed] .sa-verdict, html[data-embed] .sa-key { margin-top: 12px; }
  html[data-embed] .sa-price { font-size: 36px; }
}

/* Client, 2026-10-05, phones only: the whole card shows (it floats above the bottom edge with all four corners),
   and the search is the site's own inflatable art instead of a template field and yellow button. */
@media (max-width: 767px) {
  .sa-page .sa-card { bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; border-radius: 22px !important; padding-bottom: 22px !important; background: #FFFBF2 !important; }
  html[data-embed] .sa-page .sa-card, html[data-embed] .sa-card { bottom: 16px !important; border-radius: 22px !important; }
  .sa-page .mbm-map__bar, .sa-page .mbm-map .leaflet-bottom.leaflet-right { bottom: calc(var(--sa-card-h, 300px) + 16px + 12px) !important; }

  body.sa-page .sa-card .mbm-search__pill { border-radius: 0; }
  body.sa-page .sa-card .mbm-search__input {
    height: 62px; min-height: 62px; padding: 0 128px 3px 24px;
    border: 0; border-style: solid; border-width: 0 32px; border-radius: 0;
    border-image: url('../bundled/preview-polish/btn-sw-ivory.webp') 0 130 fill / 0 32px / 0 stretch;
    background: transparent; box-shadow: none;
    padding-left: 0; padding-right: 100px;
    color: #173B68; font: 400 18px/1.2 "DM Serif Display", Georgia, serif;
    -webkit-appearance: none; appearance: none;
  }
  body.sa-page .sa-card .mbm-search__input::placeholder { color: #6B7A93; font-weight: 400; }
  body.sa-page .sa-card .mbm-search__input:focus { box-shadow: none; border-color: transparent; filter: drop-shadow(0 0 7px rgba(34, 87, 186, 0.45)); }
  body.sa-page .sa-card .mbm-search__btn {
    top: 50%; right: 10px; bottom: auto; transform: translateY(-50%);
    width: 120px; min-width: 0; height: 42px; padding: 0 0 3px; border-radius: 0;
    background: transparent url('../bundled/preview-polish/btn-sw-black.webp') center / 100% 100% no-repeat;
    color: #FFFDF7; font: 400 19px/1 "DM Serif Display", Georgia, serif;
  }
  body.sa-page .sa-card .mbm-search__btn:active { transform: translateY(-50%) scale(0.97); }
  body.sa-page .sa-card .mbm-search__btn:hover { background-color: transparent; }
  .sa-page .sa-key, .sa-page .sa-key * { font-family: "DM Serif Display", Georgia, serif !important; font-weight: 400 !important; }
}
@media (max-width: 767px) { body.sa-page .sa-card .mbm-search__input { font-size: 16px; } }
@media (max-width: 767px) {
  body.sa-page .sa-card .mbm-search__input { padding-right: 84px; }
  body.sa-page .sa-card .mbm-search__btn { width: 108px; height: 36px; right: 12px; font-size: 17px; }
}
/* Client, 2026-10-05: the search field is not button art. A cream field with a navy edge, an inner stitched seam
   like the inflatables, and a map pin; the black inflatable stays only as the Check button. */
@media (max-width: 767px) {
  body.sa-page .sa-card .mbm-search__pill { border-radius: 18px; background: #FFFDF7; box-shadow: inset 0 0 0 2px #173B68, 0 6px 14px -8px rgba(23, 59, 104, 0.45); }
  body.sa-page .sa-card .mbm-search__pill::before { content: ""; position: absolute; inset: 5px; border: 1.5px dashed rgba(23, 59, 104, 0.35); border-radius: 13px; pointer-events: none; }
  body.sa-page .sa-card .mbm-search__pill::after { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; pointer-events: none;
    background: #C9974A; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; }
  body.sa-page .sa-card .mbm-search__input { border: 0 !important; border-image: none !important; background: transparent; height: 58px; min-height: 58px; padding: 0 128px 2px 42px; border-radius: 18px; }
  body.sa-page .sa-card .mbm-search__input:focus { filter: none; }
  body.sa-page .sa-card .mbm-search__pill:focus-within { box-shadow: inset 0 0 0 2px #2257BA, 0 0 0 3px rgba(34, 87, 186, 0.25); }
  body.sa-page .sa-card .mbm-search__btn { right: 8px; }
}
@media (max-width: 767px) {
  body.sa-page .sa-card .mbm-search__input { padding: 0 112px 2px 38px; font-size: 15px; }
  body.sa-page .sa-card .mbm-search__pill::after { left: 14px; width: 16px; height: 16px; }
  body.sa-page .sa-card .mbm-search__btn { width: 96px; height: 34px; font-size: 16px; }
}

/* Client, 2026-10-05: PC gets the same card and search as the phone (they were phones only). */
@media (min-width: 768px) {
  .sa-page .sa-card { border-radius: 22px !important; background: #FFFBF2 !important; }
  body.sa-page .sa-card .mbm-search__pill { position: relative; border-radius: 18px; background: #FFFDF7; box-shadow: inset 0 0 0 2px #173B68, 0 6px 14px -8px rgba(23, 59, 104, 0.45); }
  body.sa-page .sa-card .mbm-search__pill::before { content: ""; position: absolute; inset: 5px; border: 1.5px dashed rgba(23, 59, 104, 0.35); border-radius: 13px; pointer-events: none; }
  body.sa-page .sa-card .mbm-search__pill::after { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; pointer-events: none;
    background: #C9974A; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; }
  body.sa-page .sa-card .mbm-search__input { height: 60px; min-height: 60px; padding: 0 124px 2px 42px; border: 0 !important; border-image: none !important; border-radius: 18px; background: transparent; box-shadow: none;
    color: #173B68; font: 400 17px/1.2 "DM Serif Display", Georgia, serif; -webkit-appearance: none; appearance: none; }
  body.sa-page .sa-card .mbm-search__input::placeholder { color: #6B7A93; font-weight: 400; }
  body.sa-page .sa-card .mbm-search__btn { top: 50%; right: 10px; bottom: auto; transform: translateY(-50%); width: 106px; min-width: 0; height: 38px; padding: 0 0 3px; border-radius: 0; border: 0;
    background: transparent url('../bundled/preview-polish/btn-sw-black.webp') center / 100% 100% no-repeat; color: #FFFDF7; font: 400 17px/1 "DM Serif Display", Georgia, serif; box-shadow: none; }
  body.sa-page .sa-card .mbm-search__btn:hover { background-color: transparent; }
  body.sa-page .sa-card .mbm-search__btn:active { transform: translateY(-50%) scale(0.97); }
  .sa-page .sa-key, .sa-page .sa-key * { font-family: "DM Serif Display", Georgia, serif !important; font-weight: 400 !important; }
}
/* No blue frame when the search is clicked (every screen size): the navy edge simply stays. */
body.sa-page .sa-card .mbm-search__input:focus { filter: none !important; box-shadow: none !important; outline: none !important; }
body.sa-page .sa-card .mbm-search__pill:focus-within { box-shadow: inset 0 0 0 2px #173B68, 0 6px 14px -8px rgba(23, 59, 104, 0.45) !important; }
/* Fix 2026-10-17: on narrow phones the placeholder "Your town or zip code" was cut by the Check button; it now fits in full. */
@media (max-width: 400px) {
  body.sa-page .sa-card .mbm-search__input:not(#x) { padding-left: 32px; padding-right: 104px; }
  body.sa-page .sa-card .mbm-search__input:not(#x)::placeholder { font-size: 13px; }
}

/* A listed town or county: a green "We deliver" box with a check mark. */
.sa-yes { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 7px 14px 7px 10px; border-radius: 10px; background: #E4F6E9; border: 1.5px solid #3FAE5E; color: #17642F; font-family: "DM Serif Display", Georgia, serif; font-size: 18px; line-height: 1.2; }
.sa-yes[hidden] { display: none; }
.sa-yes::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #3FAE5E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* The suggestion list scrolls inside the space below the search, so the last towns are never cut off. */
.sa-page .mbm-suggest { max-height: min(260px, 32vh); overflow-y: auto; overscroll-behavior: contain; }

/* Homepage map window: the card fits inside the window, and the town list can open past the card while typing. */
html[data-embed] .sa-page .sa-card { max-height: calc(100svh - 128px) !important; }
html[data-embed] .sa-page .sa-card:focus-within { overflow: visible !important; }
