.location-layout {
  --location-line:var(--bp-line,var(--border));
  --location-accent:var(--bp-primary,var(--primary));
  --location-accent-ink:var(--bp-on-primary,var(--on));
}
.location-layout--compact.location-layout {padding:12px}
.location-layout--compact :is(.location-branches,.be-preview-location-branches) {margin-block-start:10px}
.location-layout--compact > .location-map-panel .location-map-stage {height:220px}
.location-layout--directory :is(.location-address,.be-preview-location-address) {font-weight:550}
.location-layout--directory :is(.location-branches,.be-preview-location-branches) {
  width:100%;border-block-start:1px solid var(--location-line);padding-block-start:12px
}
.location-layout--directory :is(.location-branches,.be-preview-location-branches)>:is(details,div,p):not(form),
.location-layout--directory .be-preview-location-branches>div {padding-inline-start:12px}
.location-layout--centered.location-layout {text-align:center;justify-items:center}
.location-layout--centered > :is(.location-contact-actions,.location-map-actions,.location-address-actions,.be-preview-location-actions) {justify-content:center}
.location-layout--centered > :is(.location-branches,.be-preview-location-branches) {text-align:start}
.location-layout--split.location-layout {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));align-items:start;gap:6px 16px
}
.location-layout--split > * {grid-column:1/-1}
.location-layout--split > :is(.location-address,.be-preview-location-address,.location-contact-actions,.be-preview-location-actions) {grid-column:auto}
.location-layout--split > :is(.location-contact-actions,.be-preview-location-actions) {margin:0;align-self:center}
.location-layout--branches :is(.location-branches,.be-preview-location-branches) {
  display:grid;width:100%;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));align-items:start;gap:8px
}
.location-layout--branches :is(.location-branches,.be-preview-location-branches) > :is(h3,h4,form) {grid-column:1/-1}
.location-layout--branches :is(.location-branches,.be-preview-location-branches) > :is(details,p,div) {
  margin:0;padding:5px 8px;border:1px solid var(--location-line);border-radius:8px
}
.location-layout--outline.location-layout {border:1px solid var(--location-line);background:transparent}
.location-layout--plain.location-layout {border:0;border-radius:0;background:transparent;padding-inline:0}
.location-layout--marked > :is(.location-address,.be-preview-location-address) {
  box-sizing:border-box;display:block;width:fit-content;max-width:100%;padding:6px 10px;border-radius:6px;
  background:var(--location-accent);color:var(--location-accent-ink);font-weight:650
}
.be-preview-location-actions {display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.be-app .be-preview-location.location-layout--marked > .be-preview-location-address {color:var(--location-accent-ink)}
.be-location-swatches label > span {align-content:space-between}
.be-app .be-location-swatches .be-preview-location {width:100%;min-height:76px;padding:5px;gap:3px;font-size:.72rem;line-height:1.15}
.be-location-swatches .be-preview-location > * {max-width:100%;margin:0;overflow-wrap:anywhere}
.be-location-swatches .be-preview-location-actions {padding:2px 3px;font-size:.65rem;border-radius:3px;background:var(--bp-primary);color:var(--bp-on-primary)}
.be-location-swatch-branches {display:flex;gap:5px;font-size:.65rem}
.be-location-swatches .location-layout--compact {align-content:center;gap:2px}
.be-location-swatches .location-layout--compact .be-location-swatch-branches {display:none}
.be-location-swatches .location-layout--directory .be-location-swatch-branches {width:100%;border-top:1px solid var(--bp-line);padding-top:3px}
.be-app .be-location-swatches .location-layout--split {grid-template-columns:1fr 1fr;gap:2px}
.be-location-swatches .location-layout--map {display:flex;flex-direction:column;align-items:stretch}
.be-location-swatches .location-layout--map > small {order:-1;padding:3px;background:var(--bp-primary);color:var(--bp-on-primary)}
.be-location-swatches .location-layout--branches > small {display:grid;width:100%;grid-template-columns:1fr 1fr;gap:2px}
.be-location-swatches .location-layout--branches > small span {border:1px solid var(--bp-line);border-radius:2px}
@media(max-width:520px) {
  .be-app .be-location-swatches {grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Tone applies to cartography only. Markers, controls and attribution retain their colors. */
.location-map-tone--muted :is(.leaflet-tile-pane,.be-map-tone-art) {filter:saturate(.48)}
.location-map-tone--dark :is(.leaflet-tile-pane,.be-map-tone-art) {filter:grayscale(1) invert(.92)}

:is(.location-widget,.be-app :is(.be-preview-page,.be-location-swatches) .be-preview-location)[style*="--location-card-bg:"] {
  --bg:var(--location-card-bg);
  --card:var(--location-card-bg);
  --ink:var(--location-card-ink);
  --bp-background:var(--location-card-bg);
  --bp-link:var(--location-card-bg);
  --bp-text:var(--location-card-ink);
  --bp-sub:var(--location-card-ink);
  --border:color-mix(in srgb,var(--location-card-ink) 38%,transparent);
  --bp-line:var(--border);
  background:var(--location-card-bg);
  color:var(--location-card-ink);
}
@supports (background-image:linear-gradient(180deg in srgb,#fff,#000)) {
  :is(.location-widget,.be-app :is(.be-preview-page,.be-location-swatches) .be-preview-location)[style*="--location-card-image:"] {
    background-image:var(--location-card-image)
  }
}
.section-surface > .location-widget[style*="--location-card-bg:"],
.be-preview-section:is(.be-preview-section--panel,.be-preview-section--accent) > .be-preview-location[style*="--location-card-bg:"] {
  padding:clamp(12px,4vw,20px)
}
.be-app .be-preview-section[data-custom-section-color] > .be-preview-location[style*="--location-card-bg:"] > p {
  color:var(--location-card-ink)
}
:is(.location-widget,.be-preview-location)[style*="--location-address-font:"] :is(
  .location-address,.be-preview-location-address,.location-branches summary > strong + span
) {font-family:var(--location-address-font)}
.location-widget[style*="--location-route-bg:"] [data-location-route],
.be-app .be-preview-page .be-preview-location[style*="--location-route-bg:"] [data-location-route] {
  background:var(--location-route-bg);color:var(--location-route-ink);border-color:var(--location-route-ink)
}

.location-visit-columns {
  display:grid;width:100%;gap:14px 20px;align-items:start;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,15.5rem),1fr))
}
.location-visit-contact,.location-visit-schedule {min-width:0}
.location-visit-contact {display:grid;gap:6px}
.location-visit-contact :is(.location-status,.location-contact-actions) {margin-block-start:4px}
.location-visit-schedule {
  display:grid;gap:5px;padding:12px 14px;border-radius:12px;
  background:color-mix(in srgb,currentColor 6%,transparent);
  box-shadow:0 3px 9px color-mix(in srgb,currentColor 6%,transparent)
}
.location-visit-schedule > .location-hours-heading {margin-block-start:0}
.location-visit-schedule [data-opening-exceptions-zone] .location-hours-heading {margin-block-start:8px}
.location-visit-schedule :is(.location-hours,.be-preview-opening-hours) dd {font-variant-numeric:tabular-nums}
.location-visit-schedule .be-preview-opening-dates {margin-block-start:2px}
.be-location-swatches .location-visit-columns {grid-template-columns:1fr;gap:3px}
.be-location-swatches .location-visit-schedule {padding:3px;border-radius:4px;box-shadow:none}
.be-location-swatches .location-visit-contact,.be-location-swatch-hours {display:grid;gap:2px}
.be-location-swatch-hours {font-size:.62rem}
