.store-locator {
    --sl-sidebar-width: 360px;
    --sl-sidebar-min: 260px;
    --sl-gap: 16px;
    --sl-controls-gap: 8px;
    --sl-row-gap: 8px;
    --sl-map-height: 540px;
    --sl-map-height-mobile: 420px;
    --sl-panel-height: 540px;
    --sl-card-padding: 12px;
    --sl-card-radius: 10px;
    --sl-card-border: #e6e6e6;
    --sl-card-bg: #fff;
    --sl-primary: #111;
    --sl-primary-text: #fff;
    --sl-store-title-color: #000;
    --sl-alpha-btn-size: 34px;
    --sl-alpha-btn-radius: 6px;
    --sl-alpha-btn-border: #d8d8d8;
    --sl-alpha-gap: 6px;
    --sl-grid-gap: 12px;
    --sl-grid-cols-desktop: 3;
    --sl-grid-cols-tablet: 2;
    --sl-grid-cols-mobile: 1
}

.store-locator [hidden] {
    display: none !important
}

.store-locator .leaflet-container img {
    max-width: none !important;
    max-height: none !important
}

.store-locator .sl-layout {
    display: grid;
    grid-template-columns: minmax(var(--sl-sidebar-min), var(--sl-sidebar-width)) 1fr;
    gap: var(--sl-gap);
    align-items: start
}

.store-locator .sl-controls {
    display: flex;
    flex-direction: column;
    gap: var(--sl-controls-gap)
}

.store-locator .sl-row {
    display: flex;
    gap: var(--sl-row-gap);
    flex-wrap: wrap
}

.store-locator .sl-row input {
    flex: 1;
    min-width: 220px
}

.store-locator .sl-search-header {
    margin-bottom: 12px
}

.store-locator .sl-search-header h2 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.1
}

.store-locator .sl-search-header p {
    margin: 0 0 10px;
    color: #4b5563;
    font-size: 14px
}

.store-locator .sl-input-wrap {
    position: relative;
    flex: 1;
    min-width: 220px
}

.store-locator .sl-input-wrap input {
    width: 100%;
    padding-left: 36px
}

.store-locator .sl-input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.store-locator #sl-map {
    height: var(--sl-map-height)
}

.leaflet-control-attribution {
    font-size: 7px;
    line-height: 1.2;
    padding: 0 3px;
    opacity: 0.6;
    background: rgba(255, 255, 255, .6);
    box-shadow: none;
}

.leaflet-control-attribution:hover {
    opacity: 1;
}

.leaflet-control-attribution svg {
    width: 9px;
    height: 9px;
    vertical-align: middle;
}

.store-locator .sl-panel {
    max-height: var(--sl-panel-height);
    overflow: auto
}

.store-locator .sl-card {
    padding: var(--sl-card-padding);
    border: 1px solid var(--sl-card-border);
    border-radius: var(--sl-card-radius);
    margin-bottom: 10px;
    background: var(--sl-card-bg)
}

.store-locator .sl-store-card {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.store-locator .sl-store-top {
    display: flex;
    gap: 10px;
    align-items: flex-start
}

.store-locator .sl-store-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--sl-card-border);
    color: var(--sl-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto
}

.store-locator .sl-store-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: var(--sl-store-title-color)
}

.store-locator .sl-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 4px;
    background: #f1f1f1;
    color: #555
}

.store-locator .sl-store-address {
    color: #4b5563;
    font-size: 13px
}

.store-locator .sl-store-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap
}

.store-locator .sl-store-links a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
    font-size: 13px
}

.store-locator .sl-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px
}

.store-locator .sl-dot {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background: #9ca3af
}

.store-locator .sl-dot.is-open {
    background: #16a34a
}

.store-locator .sl-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border-radius: 10px;
    background: var(--sl-primary);
    color: var(--sl-primary-text);
    font-weight: 700;
    text-decoration: none
}

.store-locator .sl-btn-primary:hover {
    filter: brightness(.95)
}

.store-locator .sl-alpha {
    margin-top: 18px
}

.store-locator .sl-alpha-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 8px 0 10px
}

.store-locator .sl-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    border-bottom: 1px solid var(--sl-card-border);
    width: 100%
}

.store-locator .sl-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 10px 2px;
    margin: 0;
    font-weight: 700;
    cursor: pointer;
    color: #111;
    border-bottom: 3px solid transparent
}

.store-locator .sl-tab.is-active {
    border-bottom-color: var(--sl-primary)
}

.store-locator .sl-alpha-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sl-alpha-gap);
    margin-bottom: 12px
}

.store-locator .sl-region-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--sl-alpha-gap);
    margin-bottom: 12px;
    overflow: auto;
    padding-bottom: 6px
}

.store-locator .sl-region-btn {
    white-space: nowrap;
    padding: 0 12px;
    height: var(--sl-alpha-btn-size);
    border: 1px solid var(--sl-alpha-btn-border);
    border-radius: var(--sl-alpha-btn-radius);
    background: var(--sl-card-bg);
    font-weight: 600;
    cursor: pointer
}

.store-locator .sl-region-btn.is-active {
    background: var(--sl-primary);
    border-color: var(--sl-primary);
    color: var(--sl-primary-text)
}

.store-locator .sl-alpha-btn {
    width: var(--sl-alpha-btn-size);
    height: var(--sl-alpha-btn-size);
    border: 1px solid var(--sl-alpha-btn-border);
    border-radius: var(--sl-alpha-btn-radius);
    background: var(--sl-card-bg);
    font-weight: 600;
    cursor: pointer
}

.store-locator .sl-alpha-btn[disabled] {
    opacity: .35;
    cursor: not-allowed
}

.store-locator .sl-alpha-btn.is-active {
    background: var(--sl-primary);
    border-color: var(--sl-primary);
    color: var(--sl-primary-text)
}

.store-locator .sl-hint {
    color: #6b6b6b;
    font-size: 14px;
    padding: 6px 2px
}

.store-locator .sl-alpha-grid {
    display: grid;
    grid-template-columns: repeat(var(--sl-grid-cols-desktop), minmax(0, 1fr));
    gap: var(--sl-grid-gap)
}

@media (max-width:900px) {
    .store-locator .sl-layout {
        grid-template-columns: 1fr
    }

    .store-locator .sl-panel {
        max-height: none
    }

    .store-locator #sl-map {
        height: var(--sl-map-height-mobile)
    }

    .store-locator .sl-alpha-grid {
        grid-template-columns: repeat(var(--sl-grid-cols-mobile), minmax(0, 1fr))
    }
}

@media (min-width:901px) and (max-width:1200px) {
    .store-locator .sl-alpha-grid {
        grid-template-columns: repeat(var(--sl-grid-cols-tablet), minmax(0, 1fr))
    }
}

/* Single store/garage page */
.store-locator.sl-single {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 20px;
}

.sl-single-article .sl-badge {
    margin-bottom: 8px;
}

.sl-single-title {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.15;
}

/*
 * Studio badges — highlighted pills shown on a store's detail page (one per
 * ticked studio: Bathroom / Flooring / Colour) and, in a smaller form, on
 * each store card in the search results/map so shoppers can spot the right
 * store at a glance. Each studio gets its own accent colour below; a studio
 * type added later without a matching rule here just falls back to the
 * plain default pill instead of erroring.
 */
.sl-single-studios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.sl-studio-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    color: #fff;
    background: var(--sl-primary, #111);
    white-space: nowrap;
}

.sl-studio-badge-bathroom {
    background: #1d6fd1;
}

.sl-studio-badge-flooring {
    background: #8a5a2b;
}

.sl-studio-badge-color {
    background: #a1268f;
}

.sl-studio-badge-bathroom_stockist {
    background: #1f8a5c;
}

.sl-store-studios {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

.sl-store-studios .sl-studio-badge {
    padding: 3px 10px;
    font-size: 10px;
    text-transform: uppercase;
}

.sl-single-body {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.sl-single-details {
    flex: 1 1 320px;
    min-width: 280px;
}

.sl-single-map-wrap {
    flex: 1.4 1 380px;
    min-width: 300px;
}

.sl-single-map-wrap .sl-single-map {
    height: 360px;
    border-radius: var(--sl-card-radius);
    overflow: hidden;
    background: #f4f4f4;
}

/*
 * Defensive override: page-builder themes (e.g. Breakdance's own theme)
 * commonly apply a global image reset like `img { max-width: 100%; height:
 * auto; }` for responsive content images. Leaflet positions and sizes each
 * map tile individually via inline styles set in JS, and a global reset like
 * that can override those inline styles, causing every tile to stretch to
 * fill the container and stack directly on top of each other — which looks
 * like one solid gray block instead of a tiled map. This rule's selector
 * specificity (two classes) beats a plain `img {}` rule even if both use
 * !important, so it re-locks tile sizing/position regardless of what a
 * theme's own reset does elsewhere on the page.
 */
.sl-single-map-wrap .sl-single-map .leaflet-tile-container img.leaflet-tile {
    width: 256px !important;
    height: 256px !important;
    max-width: none !important;
    max-height: none !important;
    position: absolute !important;
}

.sl-map-shop-icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sl-map-shop-icon-inner svg {
    width: 18px;
    height: 18px;
}

/*
 * This trimmed Leaflet build ships with no default tooltip styling at all
 * (unlike the full leaflet.css), so the bubble, arrow, and even its
 * positioning need to be defined here from scratch.
 */
.leaflet-tooltip {
    position: absolute;
    pointer-events: none;
    white-space: nowrap;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.leaflet-tooltip-top:before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: -6px;
    margin-bottom: -6px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #111 transparent transparent transparent;
}

.sl-single-address,
.sl-single-phone {
    font-size: 15px;
    margin: 0 0 8px;
    color: #333;
}

.sl-single-status {
    margin: 10px 0 16px;
}

.sl-single-hours {
    margin: 16px 0 20px;
}

.sl-single-hours h3 {
    font-size: 15px;
    margin: 0 0 8px;
}

.sl-single-hours table {
    border-collapse: collapse;
    width: 100%;
    max-width: 340px;
}

.sl-single-hours td {
    padding: 4px 10px 4px 0;
    font-size: 14px;
}

.sl-single-hours td:first-child {
    font-weight: 600;
    width: 100px;
}

.sl-single-directions {
    max-width: 260px;
    margin-top: 6px;
}

.sl-single-content {
    margin-top: 30px;
    width: 100%;
}

.sl-single-about,
.sl-single-nearby {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--sl-card-border);
    width: 100%;
}

.sl-single-about h2 {
    font-size: 20px;
    margin: 0 0 16px;
    color: var(--sl-store-title-color);
}

.sl-single-nearby h2 {
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    margin: 0 0 16px;
    color: var(--sl-store-title-color);
}

.sl-single-website-row {
    margin: 0 0 8px;
}

.sl-single-about p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    max-width: 720px;
    margin: 0;
}

.sl-nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--sl-grid-gap, 20px);
    max-width: 100%;
}

.sl-nearby-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sl-nearby-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.sl-nearby-icon {
    display: inline-flex;
    color: #111;
    flex-shrink: 0;
}

.sl-nearby-icon svg {
    width: 22px;
    height: 22px;
}

.sl-nearby-card h3 {
    margin: 0;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    color: #111;
}

.sl-nearby-address {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 14px;
    line-height: 1.5;
}

.sl-nearby-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.sl-nearby-distance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #374151;
}

.sl-nearby-pin {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.sl-nearby-directions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    text-decoration: underline;
    color: #000 !important;
}

.sl-nearby-directions svg {
    width: 13px;
    height: 13px;
}

.sl-nearby-status.sl-status {
    margin: 0 0 18px;
    font-size: 14px;
    color: #374151;
}

/*
 * Unscoped fallback: .sl-dot's color/size is normally defined only inside
 * the .store-locator wrapper (see near the top of this file). The nearby
 * card can be placed directly into a Breakdance template without that
 * wrapper present, so this repeats the same rule without requiring it.
 */
.sl-nearby-status .sl-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background: #9ca3af;
}

.sl-nearby-status .sl-dot.is-open {
    background: #16a34a;
}

.sl-nearby-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #1a1a1a;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

.sl-nearby-btn:hover {
    background: #000;
    color: #fff;
}

@media (max-width: 780px) {
    .sl-single-body { flex-direction: column; }
    .sl-single-map-wrap { width: 100%; }
}