/* Distributors page: a dark world map with one point of light per distributor, and the finder panel over it.
   Uses the tokens of css/styles.css.
   stage-1: a copy of css/distributors.css of the stage-2 prototype. Changes: every rule is nested under .ol2 (the
   wrapper of the section, components/worldwide2), so nothing reaches the header, the footer or other pages, and the
   rules weigh more than the site's old global CSS; the header placeholder rules are left out (stage-1 has its own
   header); @keyframes stays outside the nesting (it may not be nested). The base styles are in dist2/base.css. */
@keyframes distSpin { to { transform: rotate(360deg); } }

.ol2 {

.dist { --panel-left: max(32px, calc((100vw - 1360px) / 2 + 32px)); --panel-w: min(440px, calc(100vw - 64px));
  position: relative; height: min(calc(100vh - 73px), 920px); min-height: 660px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 85% at 66% 46%, #241E19 0%, var(--night) 66%); }
@supports (height: 100dvh) { .dist { height: min(calc(100dvh - 73px), 920px); } }
.dist__mapwrap { position: absolute; inset: 0; }
.dist .dist__map { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.dist.is-map .dist__map { opacity: 1; }
.dist__map canvas { outline: none; }
.dist__map .maplibregl-canvas:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.dist__loading { position: absolute; margin: 0; top: 50%; left: calc(var(--panel-left) + var(--panel-w) + (100% - var(--panel-left) - var(--panel-w)) / 2); transform: translate(-50%, -50%); font-size: 13px; letter-spacing: .5px; color: rgba(255,255,255,.6); transition: opacity .6s ease; }
.dist.is-map .dist__loading, .dist.is-nomap .dist__loading { opacity: 0; pointer-events: none; }

/* ---------- The panel ---------- */
.dist__panel { position: absolute; z-index: 4; top: 24px; bottom: 24px; left: var(--panel-left); width: var(--panel-w);
  display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); }
.dist__head { padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.dist__head h1 { margin: 6px 0 0; font-size: 30px; font-weight: 300; letter-spacing: -.8px; line-height: 1.1; }
.dist__lead { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.dist__lead strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.dist-search { margin-top: 16px; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 14px; border: 1px solid #8E8E89; border-radius: 10px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.dist-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,.12); }
.dist-search > svg { flex: none; color: var(--muted); }
.dist-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.dist-search input::placeholder { color: var(--muted-2); }
.dist-search input::-webkit-search-cancel-button { display: none; }
.dist-search__clear { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dist-search__clear:hover { background: var(--well); color: var(--ink); }
.dist-search__clear[hidden] { display: none; }
.dist-near { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--well); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.dist-near:hover { background: var(--line); }
.dist-near[aria-pressed="true"] { background: var(--ink); color: #fff; }
.dist-near.is-busy { opacity: .6; cursor: progress; }
.dist-near.is-busy svg { animation: distSpin 1.2s linear infinite; }

.dist-regions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
/* the countries of the chosen region, under the regions */
.dist-countries { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
/* Europe has 35 countries: on a wide screen the row shows about three lines and scrolls, so the list below keeps its place */
@media (min-width: 641px) { .dist-countries { max-height: 124px; overflow-y: auto; padding-right: 4px; } }
.dist-countries[hidden] { display: none; }
.dist-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--ink); font-size: 13px; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.dist-chip span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dist-chip:hover { border-color: var(--ink); }
.dist-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dist-chip[aria-pressed="true"] span { color: rgba(255,255,255,.72); }
/* a ring that also shows on the black, pressed chip */
.dist-chip:focus-visible, .dist-near:focus-visible, .dist-search__clear:focus-visible, .dist__status button:focus-visible, .dist__hint button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.dist__hint { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 22px; background: #FFF6EC; border-bottom: 1px solid #F3E2CE; font-size: 13px; color: var(--ink-2); }
.dist__hint[hidden] { display: none; }
.dist__hint svg { flex: none; color: #9A5700; }
.dist__hint p { margin: 0; flex: 1; line-height: 1.4; }
.dist__hint button { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; color: var(--ink); }
.dist__hint .dist__hint-go { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.dist__hint .dist__hint-x { flex: none; width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.dist__hint .dist__hint-x:hover { background: rgba(17,17,17,.06); color: var(--ink); }

.dist__status { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 8px 22px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--muted); }
.dist__status p { margin: 0; line-height: 1.4; }
.dist__status p strong { color: var(--ink); font-weight: 600; }
.dist__status button { flex: none; border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.dist__status button[hidden] { display: none; }

/* ---------- The list ---------- */
.dist__list { position: relative; flex: 1; min-height: 0; overflow-y: auto; outline: none; }
.dist__list:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.dist-group h2 { position: sticky; top: 0; z-index: 1; margin: 0; padding: 10px 22px 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line-2); }
.dist-group h2 span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted-2); }
.dist-group ul { list-style: none; margin: 0; padding: 0; }
.dist-card { border-bottom: 1px solid var(--line-2); transition: background .2s; }
.dist-card__head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 22px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.dist-card__head:hover, .dist-card.is-hot .dist-card__head { background: var(--surface-2); }
.dist-card__head:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.dist-card__logo { flex: none; width: 60px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 13px; font-weight: 600; letter-spacing: .5px; color: var(--muted); }
.dist-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.dist-card__logo img:not([src]) { visibility: hidden; }
.dist-card__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dist-card__id strong { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.dist-card__id span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist-card__km { flex: none; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--chip); border-radius: 10px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.dist-card__chev { flex: none; color: var(--muted-2); transition: transform .3s var(--ease-out); }
.dist-card.is-open { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--ink); }
.dist-card.is-open .dist-card__chev { transform: rotate(180deg); }
.dist-card__more { padding: 0 22px 18px 96px; font-size: 14px; line-height: 1.55; color: var(--text); }
.dist-card__more[hidden] { display: none; }
.dist-card__more address { font-style: normal; }
.dist-card__facts { margin: 10px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
.dist-card__facts dt { color: var(--muted); }
.dist-card__facts dd { margin: 0; overflow-wrap: anywhere; }
.dist-card__facts a { color: var(--ink); font-weight: 500; text-underline-offset: 2px; }
.dist-card__ext { color: var(--muted); }
.dist-card__photos { margin-top: 12px; display: flex; gap: 8px; }
.dist-card__photos a { flex: 0 0 76px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--well); }
.dist-card__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.dist-card__photos a:hover img { transform: scale(1.06); }
/* photos of the company from Google, after the distributor's own (js/distributors.js: gphotosHTML) */
.dist-card__gphotos { margin-top: 12px; }
.dist-card__gphotos[hidden] { display: none; }
.dist-card__gphotos-label { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.dist-card__gphotos-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dist-card__gphotos figure { margin: 0; flex: 0 0 76px; min-width: 0; }
.dist-card__gphoto { display: block; height: 56px; border-radius: 8px; overflow: hidden; background: var(--well); }
.dist-card__gphoto img { width: 100%; height: 100%; object-fit: cover; }
.dist-card__gphotos figcaption { margin-top: 3px; font-size: 10px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.dist-card__gphotos figcaption a { color: inherit; text-underline-offset: 2px; }
.dist-card__actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.dist-card__actions .btn { height: 38px; font-size: 13px; }
.dist-card mark { background: #FFE9CF; color: inherit; border-radius: 2px; padding: 0 1px; }

.dist-empty { padding: 28px 22px; font-size: 14px; line-height: 1.6; color: var(--text); }
.dist-empty h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--ink); }
.dist-empty p { margin: 0 0 14px; }
.dist-empty .dist-card__actions { margin-top: 0; }

/* ---------- On the map ---------- */
.dist__tools { position: absolute; z-index: 2; top: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; }
.dist__tools[hidden] { display: none; }
.dist__tool { width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(22,19,17,.74); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, border-color .2s; }
.dist__tool:hover { background: rgba(48,42,37,.92); border-color: rgba(255,255,255,.4); }
.dist__tool:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dist__legend, .dist__attrib { position: absolute; z-index: 1; margin: 0; left: calc(var(--panel-left) + var(--panel-w) + 20px); font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.66); }
.dist__legend[hidden], .dist__attrib[hidden] { display: none; }
.dist__legend { bottom: 40px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 16px; color: rgba(255,255,255,.86); background: rgba(14,13,12,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dist__legend-more { display: inline-flex; align-items: center; gap: 8px; }
.dist__legend-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #FFE2C2; box-shadow: 0 0 0 2px rgb(var(--warm)), 0 0 14px 4px rgb(var(--warm) / .55); margin: 0 4px 0 2px; }
.dist__legend-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 6px; border-radius: 50%; background: rgb(var(--warm)); color: #1A1512; font-size: 11px; font-weight: 700; box-shadow: 0 0 14px 3px rgb(var(--warm) / .4); }
.dist.is-plain .dist__legend-more { display: none; }   /* the plain globe has no numbers on its larger dots */
.dist__attrib { bottom: 10px; right: 200px; padding-left: 12px; }
.dist__attrib a { color: inherit; text-underline-offset: 2px; }
.dist__attrib a:hover { color: #fff; }

.dist .maplibregl-popup { z-index: 3; }
.dist .maplibregl-popup-content { padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--ink); font: 13px/1.4 var(--font); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.dist .maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .dist .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip, .dist .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: #fff; }
.dist .maplibregl-popup-anchor-top .maplibregl-popup-tip, .dist .maplibregl-popup-anchor-top-left .maplibregl-popup-tip, .dist .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: #fff; }
.dist .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #fff; }
.dist .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #fff; }
.dist-pop strong { display: block; font-weight: 600; }
.dist-pop span { color: var(--muted); }
.dist-pop br { display: none; }
.dist-pop button { display: none; margin-top: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.dist-pop--hover .maplibregl-popup-content { padding: 6px 10px; font-size: 12px; font-weight: 600; pointer-events: none; }
.dist .maplibregl-cooperative-gesture-screen { font-family: var(--font); font-size: 15px; background: rgba(14,13,12,.6); }
.dist-me { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid #2F7CF6; box-shadow: 0 0 0 6px rgba(47,124,246,.25); }

/* ---------- The Google Maps version (data/map-config.js, js/distributors-google.js) ---------- */
.dist-gm { position: absolute; left: 0; top: 0; }
.dist-gm > * { position: absolute; transform: translate(-50%, -50%); }
.dist-gm__ghost { width: 5px; height: 5px; border-radius: 50%; background: rgb(var(--warm) / .45); pointer-events: none; }
.dist-gm__dot { width: 15px; height: 15px; padding: 0; border-radius: 50%; border: 2px solid rgb(var(--warm)); background: #FFE2C2; box-shadow: 0 0 0 1px rgba(26,21,18,.5), 0 0 14px 5px rgb(var(--warm) / .5); cursor: pointer; }
.dist-gm__dot.is-hot { box-shadow: 0 0 0 3px #fff, 0 0 14px 5px rgb(var(--warm) / .5); z-index: 1; }
.dist-gm__dot.is-sel { width: 22px; height: 22px; border-width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(26,21,18,.5), 0 0 26px 12px rgb(var(--warm) / .6); z-index: 2; }
.dist-gm__n { padding: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: rgb(var(--warm)); color: #1A1512; font: 600 13px/1 var(--font); box-shadow: 0 0 0 1px rgba(26,21,18,.4), 0 0 18px 8px rgb(var(--warm) / .3); cursor: pointer; }
.dist-gm__pop { transform: translate(-50%, calc(-100% - 22px)); z-index: 3; width: max-content; min-width: 140px; max-width: 260px; padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--ink); font: 13px/1.4 var(--font); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.dist-gm__pop::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.dist-gm__me { z-index: 2; }
.dist__legend--pale .dist__legend-dot { background: rgb(var(--warm)); box-shadow: 0 0 0 2px #fff; }
.dist__legend--pale .dist__legend-num { box-shadow: 0 0 0 1.5px #fff; }
/* the light grey map: the same warm points, with a dark edge instead of a glow so they stand out on a pale ground */
.dist-gm--light .dist-gm__ghost { background: rgba(26,21,18,.35); }
.dist-gm--light .dist-gm__dot { background: rgb(var(--warm)); border-color: #fff; box-shadow: 0 0 0 1.5px #1A1512, 0 2px 6px rgba(0,0,0,.3); }
.dist-gm--light .dist-gm__dot.is-hot { box-shadow: 0 0 0 3px #1A1512, 0 2px 6px rgba(0,0,0,.3); }
.dist-gm--light .dist-gm__dot.is-sel { background: #1A1512; border-color: #fff; box-shadow: 0 0 0 2px #1A1512, 0 3px 10px rgba(0,0,0,.4); }
.dist-gm--light .dist-gm__n { border-color: #fff; box-shadow: 0 0 0 1.5px #1A1512, 0 2px 8px rgba(0,0,0,.3); }
.dist.is-google .dist__attrib { display: none; }   /* Google shows its own credit inside the map */
.dist.is-google .dist__legend { bottom: 30px; }
.dist__keynote { display: none; position: absolute; z-index: 1; margin: 0; top: 24px; left: calc(var(--panel-left) + var(--panel-w) + 20px); right: 90px; max-width: 520px; padding: 8px 12px; border-radius: 10px; background: rgba(14,13,12,.78); color: rgba(255,255,255,.88); font-size: 12px; line-height: 1.4; }
.dist.is-google.is-nokey.is-map .dist__keynote { display: block; }
@media (max-width: 900px) { .dist__keynote { left: 10px; right: 64px; top: 10px; } }

/* ---------- No map (script or WebGL missing): the list alone, in the page's own scroll ---------- */
.dist.is-nomap { height: auto; min-height: 0; padding: 40px 0 56px; overflow: visible; }
.dist.is-nomap .dist__mapwrap { display: none; }
.dist.is-nomap .dist__panel { position: static; margin: 0 auto; width: min(760px, calc(100vw - 32px)); overflow: visible; }
.dist.is-nomap .dist__list { overflow: visible; }
.dist.is-nomap .dist-group h2 { position: static; }

/* ---------- All countries ---------- */
.dist-all { padding-bottom: 88px; }
.dist-all__note { margin: 0; max-width: 360px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.dist-index { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 16px; align-items: start; }
.dist-index__box { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.dist-index h3 { margin: 0 0 14px; display: flex; flex-direction: column; gap: 2px; font-size: 17px; font-weight: 600; }
.dist-index h3 span { font-size: 13px; font-weight: 400; color: var(--muted); }
.dist-index ul { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 24px; }
.dist-index > .dist-index__box:first-child ul { columns: 3; }
.dist-index li { break-inside: avoid; }
.dist-index a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.dist-index a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.dist-index a span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dist-index .dist-index__stack { display: flex; flex-direction: column; gap: 16px; }

.dist-band { margin-top: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.dist-band__link { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.dist-band__link:hover { color: rgb(var(--warm)); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1180px) {
  .dist-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dist-index > .dist-index__box:first-child { grid-column: 1 / -1; }
  /* less room beside the panel: the short legend only, and the credit line clear of the assistant button */
  .dist__legend-more { display: none; }
  .dist__legend { bottom: 52px; }
  .dist__attrib { font-size: 11px; line-height: 1.35; }
}
@media (max-width: 900px) {
  .dist { display: flex; flex-direction: column; height: auto; min-height: 0; overflow: visible; background: var(--surface); }
  .dist__panel { display: contents; }
  .dist__head { order: 1; padding: 24px 32px 16px; }
  .dist__head h1 { font-size: 28px; }
  .dist__mapwrap { order: 2; position: relative; inset: auto; height: 36vh; min-height: 260px; max-height: 440px; background: radial-gradient(ellipse 80% 90% at 50% 45%, #241E19 0%, var(--night) 70%); }
  .dist__hint { order: 3; padding-left: 32px; }
  .dist__status { order: 4; padding: 8px 32px; }
  .dist__list { order: 5; overflow: visible; }
  .dist-card { scroll-margin-top: 100px; }   /* stage-1: under its fixed 94 px header (prototype: 76px) */
  .dist-group h2 { position: static; padding: 12px 32px 8px; }
  .dist-card__head { padding: 12px 28px 12px 32px; }
  .dist-card__more { padding: 0 32px 18px 32px; }
  .dist__tools { top: 12px; right: 12px; }
  .dist__loading { left: 50%; }
  .dist__legend { display: none; }
  .dist__attrib { left: 10px; right: 64px; bottom: 6px; padding-left: 0; font-size: 11px; }
  .dist-pop br { display: inline; }
  .dist-pop button { display: inline-flex; align-items: center; }
  /* fingers: the main controls are 44 px high */
  .dist-chip { height: 40px; padding: 0 14px; border-radius: 20px; }
  .dist-near, .dist-search__clear { height: 44px; min-width: 44px; justify-content: center; }
  .dist-search { height: 52px; padding-right: 4px; }
  .dist__status button { min-height: 44px; padding: 0 4px; }
  .dist__hint .dist__hint-x { width: 44px; height: 44px; }
  .dist.is-nomap { padding: 0; }
  .dist.is-nomap .dist__panel { display: contents; }
  .dist-all { padding-bottom: 56px; }
  .dist-index > .dist-index__box:first-child ul { columns: 2; }
}
@media (max-width: 760px) {
  .dist-index { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dist-index .dist-index__stack { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .dist__head { padding: 20px 16px 14px; }
  .dist__hint { padding-left: 16px; }
  .dist__status { padding: 8px 16px; }
  .dist-group h2 { padding: 12px 16px 8px; }
  .dist-card__head { padding: 12px 12px 12px 16px; }
  .dist-card__more { padding: 0 16px 18px 16px; }
  /* the regions in one row that scrolls sideways: more of the map and the list on the first screen */
  .dist__lead { display: none; }
  .dist-regions { flex-wrap: nowrap; overflow-x: auto; margin: 8px -16px -4px -4px; padding: 4px 16px 4px 4px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .dist-regions::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
  .dist-index { grid-template-columns: minmax(0, 1fr); }
  .dist-near span { display: none; }
  .dist-near { padding: 0 10px; }
  .dist-card__logo { width: 52px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .dist .dist__map, .dist-card__chev, .dist-card__photos img { transition: none; }
  .dist-near.is-busy svg { animation: none; }
}

/* Street View of the selected distributor: a small window on the Google map (js/distributors-google.js) */
.dist-sv { width: min(420px, calc(100vw - 32px)); margin: 0 16px 88px; background: #151311; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .55); color: #f3efe9; font: inherit; }
.dist-sv[hidden] { display: none; }
.dist-sv__bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; font-size: 13px; line-height: 1.3; }
.dist-sv__bar strong { font-weight: 600; white-space: nowrap; }
.dist-sv__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b9b1a6; }
.dist-sv__close { flex: none; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.dist-sv__close:hover, .dist-sv__close:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.dist-sv__view { height: 240px; background: #0c0b0a; }
.dist-sv__view[hidden], .dist-sv__none[hidden] { display: none; }
.dist-sv.is-loading .dist-sv__view { opacity: .5; }
.dist-sv__none { margin: 0; padding: 18px 14px 20px; font-size: 13px; color: #b9b1a6; }
@media (max-width: 720px) { .dist-sv { margin: 12px 16px 0; } .dist-sv__view { height: 180px; } }
}
