/*
 * Best Before · Contact & branches (Concept B §4.7). Loaded on both page
 * templates (page-templates/contact.php, page-templates/branches.php) - see
 * bbt_contact_is_area() in inc/pages/contact.php.
 */

.bb-contactpage { display: grid; gap: var(--bb-section); }

/* ---------- Top row: hero (1.4) + quick answers (1) ---------- */
.bb-contactpage__top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
/* T2: B puts the content at the top of the hero, not vertically centred. */
.bb-contacthero { position: relative; display: flex; flex-direction: column; justify-content: flex-start; min-height: 280px; gap: 14px; overflow: hidden; }
.bb-contacthero__title { position: relative; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); color: #fff; margin: 0; }
.bb-contacthero__text { position: relative; color: #eee; font-size: 1.0625rem; max-width: 520px; margin: 0; }
/* T2: optional background photo (Customizer) with a dark scrim so the
   white heading/text stay readable; empty stays solid black, unchanged. */
.bb-contacthero--photo { background-size: cover; background-position: center; }
.bb-contacthero--photo::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(17,17,17,.92) 0%, rgba(17,17,17,.78) 45%, rgba(17,17,17,.45) 100%);
}

.bb-quickanswers__list { display: grid; }
.bb-quickanswers__item { border-top: 1px solid var(--bb-border); padding: 14px 0; }
.bb-quickanswers__list .bb-quickanswers__item:first-child { border-top: 0; padding-top: 0; }
.bb-quickanswers__q { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; font-weight: 700; font-size: .9375rem; }
.bb-quickanswers__q::-webkit-details-marker { display: none; }
.bb-quickanswers__arrow { transition: transform .2s var(--bb-ease); flex: none; }
.bb-quickanswers__item[open] .bb-quickanswers__arrow { transform: rotate(90deg); }
.bb-quickanswers__a { margin: 8px 0 0; color: var(--bb-body); font-size: .875rem; }
.bb-quickanswers__more { margin: 14px 0 0; }

/* ---------- Ways to contact: 4 tiles ---------- */
.bb-waystocontact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bb-contacttile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--bb-surface); border: 1px solid var(--bb-border); border-radius: var(--bb-r-panel); padding: 20px; text-decoration: none; color: var(--bb-ink); }
.bb-contacttile:hover { border-color: var(--bb-ink); text-decoration: none; }
.bb-contacttile--dark { background: var(--bb-ink); border-color: var(--bb-ink); color: #fff; }
.bb-contacttile__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--bb-r-tile); background: var(--bb-yellow); color: var(--bb-ink); margin-bottom: 4px; }
.bb-contacttile__title { font-size: 1.125rem; }
.bb-contacttile__line1 { font-size: .9375rem; }
.bb-contacttile__line2 { font-size: .8125rem; color: var(--bb-muted); }
.bb-contacttile--dark .bb-contacttile__line2 { color: #ccc; }

/* T5: "Start chat" button inside the live-chat tile. */
.bb-contacttile__cta { align-self: flex-start; margin-top: 4px; }

/* T6: "Track my order" tile - field + button instead of a plain link. */
.bb-contacttile--track .bb-contacttile__title { margin-bottom: 4px; }
.bb-contacttile__trackform { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 6px; }
.bb-contacttile__trackform .bb-input { background: #fff; color: var(--bb-ink); }
.bb-contacttile__trackform .bb-btn { width: 100%; }

/* ---------- Message row: form (1.3) + office stack (1) ---------- */
.bb-contactpage__message { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.bb-messageform .forminator-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0 0 16px; }
.bb-messageform .forminator-row .forminator-col { margin: 0 0 0; }
.bb-messageform .forminator-field { margin: 0 0 16px; }
.bb-messageform label { display: block; margin: 0 0 6px; font-size: .875rem; font-weight: 600; }
.bb-messageform input[type="text"], .bb-messageform input[type="email"], .bb-messageform input[type="tel"], .bb-messageform select, .bb-messageform textarea { width: 100%; }
.bb-messageform .forminator-button-submit { display: inline-flex; align-items: center; justify-content: center; line-height: 1; min-height: 48px; padding: 0 28px; border: 0; border-radius: var(--bb-r-control); background: var(--bb-yellow); color: var(--bb-ink); font-weight: 700; cursor: pointer; }
.bb-messageform .forminator-button-submit:hover { background: #f2c400; }
.bb-messageform .forminator-response-message { margin-top: 12px; font-size: .875rem; }

.bb-officestack { display: grid; gap: 20px; }
.bb-office h3 { margin-top: 16px; }
/* T9: the "Sell us surplus stock" button is inline, not stretched full width
   (align-items: stretch is the flex default for a column). */
.bb-supply { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* =========================================================================
 * Branch directory - 3 variants (coordinator brief, 16 Nov 2026):
 * 'full' (Branches page, Leaflet map + detailed cards), 'compact' (Contact
 * page, no map), 'chips' (About page "Visit us", lightest). See
 * template-parts/contact/branch-directory.php.
 * ====================================================================== */

.bb-branchdir__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.bb-branchdir__head h1, .bb-branchdir__head h2 { margin: 0; }

/* W2: the dedicated Branches page has only a breadcrumb above this section,
   so the big inter-section gap (--bb-section, meant to separate hero/quick-
   answers/ways-to-contact/etc. on the Contact page) left a large empty gap
   here - use a normal content gap instead. */
.bb-branchespage { gap: 20px; }

/* ---------- 'full' variant: layout (map + list) ---------- */
/* Map slot first in the DOM (mobile: map on top, list below); desktop
   flips to list-left/sticky-map-right via `order` (no DOM reorder, so nothing
   duplicates for screen readers). */
.bb-branchdir__layout { display: grid; gap: var(--bb-gap); }
.bb-branchdir__map { order: 1; }
.bb-branchdir__list { order: 2; }

.bb-branchdir__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* ---------- 'full' variant: the Leaflet map + its "tap to explore" gate ---------- */
.bb-branchdir__map {
	position: relative;
	height: 45vh;
	min-height: 260px;
	border-radius: var(--bb-r-panel);
	overflow: hidden;
	border: 1px solid var(--bb-border);
	background: var(--bb-ground);
	box-shadow: var(--bb-shadow); /* 17 Nov polish: subtle lift, matches the panel/card shadow */
}
.bb-branchdir__mapcanvas { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--bb-ground); font-family: inherit; }

/* Leaflet's own popup chrome restyled with theme tokens only. */
.bb-branchdir__mapcanvas .leaflet-popup-content-wrapper { border-radius: var(--bb-r-small); box-shadow: var(--bb-shadow); }
.bb-branchdir__mapcanvas .leaflet-popup-content { margin: 10px 12px; }
.bb-branchpopup { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .8125rem; font-family: var(--bb-font-body); text-align: center; }
.bb-branchpopup strong { font-size: .9375rem; font-weight: 700; color: var(--bb-ink); }
.bb-branchpopup span { color: var(--bb-muted); }
.bb-branchpopup a { color: var(--bb-ink); font-weight: 600; text-decoration: underline; }
.bb-branchpopup__actions { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 2px; flex-wrap: wrap; }
.bb-branchpopup__actions a,
.bb-branchpopup__setbtn {
	font-family: inherit; font-size: .75rem; font-weight: 700; color: var(--bb-ink);
	text-decoration: underline; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
}
.bb-branchpopup__setbtn:hover,
.bb-branchpopup__actions a:hover { color: var(--bb-success); }

/* Custom pin: theme-yellow teardrop with an ink centre dot; larger + inverted
   (ink teardrop, yellow dot) when "active" (focused on the map); a small
   star badge layered on top marks the shopper's own saved "my branch" -
   independent of (and combinable with) the active state.
   NB: Leaflet's own `.leaflet-marker-icon` CSS sets `display: block` on this
   element (confirmed via computed styles - it wins over a `display: flex`
   attempt here), so the centre dot is positioned with plain absolute
   centring instead of flex, and - just as important - given an explicit
   `display: block` of its own: a bare `<span>` ignores `width`/`height`
   entirely while it stays `inline` (the dot was invisible, 0×0, until this
   was added). */
.bb-branchpin { position: relative; }
.bb-branchpin__shape {
	position: absolute; inset: 0; border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: var(--bb-yellow); border: 2px solid var(--bb-ink);
	box-shadow: 0 2px 6px rgba(17, 17, 17, .35);
}
.bb-branchpin__center {
	display: block; position: absolute; z-index: 1;
	top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--bb-ink);
}
.bb-branchpin.is-active .bb-branchpin__shape { background: var(--bb-ink); border-color: var(--bb-ink); }
.bb-branchpin.is-active .bb-branchpin__center { background: var(--bb-yellow); }
.bb-branchpin__star {
	position: absolute; top: -7px; right: -5px; z-index: 2;
	display: flex; align-items: center; justify-content: center;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--bb-ink); color: var(--bb-yellow);
	font-size: 9px; line-height: 1; box-shadow: 0 1px 3px rgba(17, 17, 17, .4);
}

/* The map starts "inert" (no scroll/drag/zoom) so it never hijacks page
   scroll; this transparent full-cover button is the only way in, removed
   after the first click/tap/keypress (assets/js/branch-map.js). Pins and
   tiles are already visible and clickable underneath (pin clicks are
   handled by Leaflet regardless of the gate, since they're not scroll/drag
   gestures) - only raw pan/zoom gestures are gated. */
.bb-branchdir__mapgate {
	position: absolute; inset: 0; z-index: 500; /* above Leaflet's own panes */
	display: flex; align-items: flex-end; justify-content: center;
	padding-bottom: 14px;
	background: transparent;
	cursor: pointer;
	border: 0;
}
.bb-branchdir__mapgatehint {
	display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
	border-radius: var(--bb-r-pill); background: rgba(17, 17, 17, .78); color: #fff;
	font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.bb-branchdir__mapgate:focus-visible .bb-branchdir__mapgatehint { outline: 2px solid var(--bb-yellow); outline-offset: 2px; }

/* ---------- Leaflet zoom + the custom "Reset view" control, theme-styled ---------- */
.bb-branchdir__mapcanvas .leaflet-control-zoom {
	border: 0; box-shadow: none; display: flex; flex-direction: column; gap: 8px;
}
.bb-branchdir__mapcanvas .leaflet-control-zoom a,
.bb-mapctrl {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; padding: 0;
	border: 1.5px solid var(--bb-ink); border-radius: 50%;
	background: var(--bb-surface); color: var(--bb-ink);
	box-shadow: var(--bb-shadow);
	font-size: 1.125rem; font-weight: 700; line-height: 1;
	cursor: pointer;
}
.bb-branchdir__mapcanvas .leaflet-control-zoom a:hover,
.bb-branchdir__mapcanvas .leaflet-control-zoom a:focus,
.bb-mapctrl:hover,
.bb-mapctrl:focus-visible {
	background: var(--bb-ink); color: #fff; border-color: var(--bb-ink);
}
.bb-branchdir__mapcanvas .leaflet-control-zoom-in,
.bb-branchdir__mapcanvas .leaflet-control-zoom-out { margin: 0; }
.bb-branchdir__mapcanvas .leaflet-bar { border: 0; }
.bb-mapctrl svg { pointer-events: none; }

/* Attribution kept (required), just small and unobtrusive. */
.bb-branchdir__mapcanvas .leaflet-control-attribution {
	font-size: .625rem; line-height: 1.3; background: rgba(255, 255, 255, .8);
	padding: 2px 6px; border-radius: 6px 0 0 0;
}

/* ---------- 'full' variant: compact, minimalist card redesign ---------- */
.bb-branchcard { display: flex; flex-direction: column; gap: 8px; position: relative; padding: 16px; }
.bb-branchcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bb-branchcard__name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; font-family: var(--bb-font-body); font-size: 1rem; font-weight: 700; }
.bb-branchcard__centre { font-size: .8125rem; font-weight: 500; color: var(--bb-muted); }
.bb-branchcard__address { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: .8125rem; color: var(--bb-body); }
.bb-branchcard__address svg { flex: none; margin-top: 2px; color: var(--bb-muted); }

/* "My branch" badge (point 3): a clear, always-in-the-DOM badge next to the
   name, shown only once the card actually is the saved branch - driven by
   the `.is-selected` class (server-rendered on load, then kept in sync by
   the `bbt:branch-changed` listener in inc/pages/contact.php's inline
   script, never by two independent toggles). */
.bb-branchcard__badge {
	display: none; align-items: center; gap: 4px; flex: none;
	padding: 3px 9px; border-radius: var(--bb-r-pill);
	background: var(--bb-ink); color: var(--bb-yellow);
	font-size: .6875rem; font-weight: 800; white-space: nowrap;
}
.bb-branchcard__badge svg { flex: none; }
.bb-branchcard.is-selected .bb-branchcard__badge { display: inline-flex; }

/* Trading hours: a neat 2-3 row mini "table" (just flex rows, the data is
   one free-text string - no real columns to lay out) + a live pill, parsed
   and computed client-side in Johannesburg time (assets/js/branch-map.js).
   Unparseable strings simply never get a pill - the plain text is the
   fallback and is always shown regardless. */
.bb-branchcard__hours { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bb-branchcard__hourstext { margin: 0; font-size: .75rem; color: var(--bb-muted); line-height: 1.4; }
.bb-branchcard__hourspill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--bb-r-badge); font-size: .6875rem; font-weight: 800; white-space: nowrap; }
.bb-branchcard__hourspill.is-open { background: var(--bb-success-bg); color: var(--bb-success); }
.bb-branchcard__hourspill.is-closed { background: var(--bb-ground); color: var(--bb-muted); border: 1px solid var(--bb-border); }

/* ---------- 17 Nov polish: ONE action row, fixed to the card's bottom ----------
   `.bb-branchcard` is already `flex-direction: column`; this row's own
   `margin-top: auto` (not the old per-element margin on just the CTA) pushes
   the WHOLE row down, so every card in a grid row - whatever its own content
   height - ends with its actions on the same baseline (the grid's default
   `align-items: stretch` already equalises card heights first). */
.bb-branchcard__actions {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	flex-wrap: wrap; margin-top: auto; padding-top: 10px;
}
.bb-branchcard__primary { display: flex; align-items: center; gap: 4px; min-width: 0; }

/* Primary action: "Shop & collect here" / "My branch ✓" when selected. */
.bb-branchcard__cta {
	display: inline-flex; align-items: center; gap: 6px;
	background: none; border: 0; padding: 0; margin: 0;
	font-size: .875rem; font-weight: 700; color: var(--bb-ink);
	text-align: left; cursor: pointer;
}
.bb-branchcard__cta:hover { text-decoration: underline; }
.bb-branchcard.is-selected .bb-branchcard__cta { color: var(--bb-success); }

/* "Remove as my branch" - a small × next to the primary action, only shown
   on the one selected card (point 3, Gary's follow-up: unset must be
   possible). Kept out of the tab order while hidden via `display:none`
   (no separate tabindex dance needed). */
.bb-branchcard__unset {
	display: none; align-items: center; justify-content: center; flex: none;
	width: 26px; height: 26px; padding: 0; margin-left: 2px;
	border: 0; border-radius: 50%;
	background: transparent; color: var(--bb-muted); cursor: pointer;
}
.bb-branchcard__unset:hover { background: var(--bb-ground); color: var(--bb-ink); }
.bb-branchcard.is-selected .bb-branchcard__unset { display: inline-flex; }

/* Call / Directions / Show on map: minimal round icon buttons (point 2). */
.bb-branchcard__iconrow { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }

/* QA finding: the shared `[data-bbt-tip]` tooltip (card-interactions.css)
   centres itself on its trigger - fine normally, but `.bb-branchdir__list`
   (desktop) sets `overflow-y: auto`, which per the CSS spec forces its
   `overflow-x` to compute as `auto` too (can't have one axis scrolling and
   the other truly "visible" on the same box), so a centred tooltip on the
   first card's leftmost icon (or the last card's rightmost) got clipped by
   that scroll container. Anchoring the two outer buttons' tooltips to their
   own near edge instead of centring keeps them inside the row. */
.bb-branchcard__iconrow .bb-branchcard__iconbtn:first-child[data-bbt-tip]::after {
	left: 0; transform: translateY(4px);
}
.bb-branchcard__iconrow .bb-branchcard__iconbtn:last-child[data-bbt-tip]::after {
	left: auto; right: 0; transform: translateY(4px);
}
@media (hover: hover) {
	.bb-branchcard__iconrow .bb-branchcard__iconbtn:first-child[data-bbt-tip]:hover::after,
	.bb-branchcard__iconrow .bb-branchcard__iconbtn:first-child[data-bbt-tip]:focus-visible::after,
	.bb-branchcard__iconrow .bb-branchcard__iconbtn:last-child[data-bbt-tip]:hover::after,
	.bb-branchcard__iconrow .bb-branchcard__iconbtn:last-child[data-bbt-tip]:focus-visible::after {
		transform: translateY(0);
	}
}
.bb-branchcard__iconrow .bb-branchcard__iconbtn:first-child[data-bbt-tip]:focus-visible::after,
.bb-branchcard__iconrow .bb-branchcard__iconbtn:last-child[data-bbt-tip]:focus-visible::after {
	transform: translateY(0);
}
.bb-branchcard__iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; padding: 0;
	border: 1.5px solid var(--bb-ink); border-radius: 50%;
	background: var(--bb-surface); color: var(--bb-ink);
	text-decoration: none; cursor: pointer;
}
.bb-branchcard__iconbtn:hover { background: var(--bb-ink); color: #fff; text-decoration: none; }
.bb-branchcard__iconbtn[aria-pressed="true"] { background: var(--bb-ink); border-color: var(--bb-ink); color: var(--bb-yellow); }
.bb-branchcard__iconbtn svg { flex: none; pointer-events: none; }

.bb-branchcard[data-bbt-branch-card].is-active { border-color: var(--bb-ink); box-shadow: inset 0 0 0 2px var(--bb-ink); }
/* "My branch" (point 3) gets its own yellow ring, independent of (and
   combinable with) the "currently focused on the map" ink ring above. */
.bb-branchcard.is-selected { box-shadow: inset 0 0 0 2px var(--bb-yellow); border-color: var(--bb-border-2); }
.bb-branchcard[data-bbt-branch-card].is-active.is-selected { box-shadow: inset 0 0 0 2px var(--bb-ink), inset 0 0 0 4px var(--bb-yellow); }

/* ---------- 'compact' variant (Contact page): name/area/phone only ---------- */
.bb-branchdir--compact .bb-branchdir__complist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bb-branchcomp {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 12px 14px; border: 1px solid var(--bb-border); border-radius: var(--bb-r-control);
	background: var(--bb-surface);
}
.bb-branchcomp__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bb-branchcomp__name { font-size: .9375rem; color: var(--bb-ink); }
.bb-branchcomp__area { font-size: .75rem; color: var(--bb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-branchcomp__phone { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 36px; padding: 0 8px; border-radius: var(--bb-r-small); color: var(--bb-ink); font-size: .75rem; font-weight: 600; text-decoration: none; }
.bb-branchcomp__phone:hover { background: var(--bb-ground); }
.bb-branchdir__seeall { display: inline-flex; }

/* ---------- 'chips' variant (About page "Visit us"): lightest ---------- */
.bb-branchchips { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.bb-branchchips__intro { margin: 0; font-size: .9375rem; color: var(--bb-muted); }
.bb-branchchips__grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bb-branchchip {
	display: flex; align-items: center; gap: 6px; padding: 8px 14px;
	border: 1px solid var(--bb-border); border-radius: var(--bb-r-pill); background: var(--bb-surface);
	font-size: .8125rem;
}
.bb-branchchip__name { font-weight: 700; color: var(--bb-ink); }
.bb-branchchip__area { color: var(--bb-muted); }
.bb-branchchip__area::before { content: "·"; margin-right: 6px; color: var(--bb-border-2); }

@media (prefers-reduced-motion: reduce) {
	.bb-branchdir__mapgatehint { transition: none; }
}

/* ---------- Tablet/desktop (≥1024): 'full' variant 2-column, sticky map ---------- */
@media (min-width: 1024px) {
	/*
	 * 40/60 split (list/map). Map sticky and tall rather than the mobile
	 * 45vh box, list independently scrollable so a 9-branch list doesn't
	 * force the page itself to scroll past the sticky map's bottom edge.
	 * The header isn't position:fixed/sticky (`.bb-header` is
	 * `position: relative`, confirmed in main.css), so there's no fixed
	 * header height to subtract - once scrolled to, the map simply pins
	 * 24px from the viewport top and fills nearly the full viewport height.
	 */
	.bb-branchdir__layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
	.bb-branchdir__list {
		order: 1;
		max-height: calc(100vh - 48px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding-right: 4px; /* clear the scrollbar */
	}
	.bb-branchdir__map {
		order: 2;
		position: sticky;
		top: 24px;
		height: calc(100vh - 48px);
		min-height: 420px;
	}
}

/* ---------- Mobile (<768) ---------- */
@media (max-width: 767px) {
	/*
	 * Horizontal-overflow fix: a bare `1fr` track's automatic minimum size
	 * is "auto" (the largest min-content of its items), not 0 - the classic
	 * CSS Grid shrink trap. Without `minmax(0, 1fr)` these tracks refused to
	 * shrink below their content's min-content width (confirmed overflowing
	 * to ~690px at a 390px viewport), blowing out the page horizontally.
	 */
	.bb-contactpage__top, .bb-contactpage__message { grid-template-columns: minmax(0, 1fr); }
	.bb-waystocontact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bb-branchdir__grid { grid-template-columns: minmax(0, 1fr); }
	.bb-messageform .forminator-row { grid-template-columns: minmax(0, 1fr); }
	.bb-contacthero { min-height: 220px; }
	.bb-branchdir--compact .bb-branchdir__complist { grid-template-columns: minmax(0, 1fr); }
	.bb-branchchips__grid { gap: 6px; }
}
@media (max-width: 480px) {
	.bb-waystocontact { grid-template-columns: minmax(0, 1fr); }
}

/* OSM tiles toned down to the light, low-noise map style of the design. */
.bb-branchmap__tiles { filter: grayscale(.85) brightness(1.06) contrast(.92); }
