/* ============================================================
   Studds Distributor Locator Pro  v1.3.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

/* ── Design tokens ── */

:root {
    --sdl-red: #e00000;
    --sdl-red-dk: #b80000;
    --sdl-red-xs: rgba(224, 0, 0, .07);
    --sdl-red-sm: rgba(224, 0, 0, .14);
    --sdl-bg: #f6f7fa;
    --sdl-white: #ffffff;
    --sdl-panel: #ffffff;
    --sdl-card: #f8f9fb;
    --sdl-card-h: #fff3f3;
    --sdl-border: #e6e8ef;
    --sdl-border-r: rgba(224, 0, 0, .22);
    --sdl-text: #111827;
    --sdl-muted: #6b7280;
    --sdl-subtle: #9ca3af;
    --sdl-r: 18px;
    --sdl-r-sm: 10px;
    --sdl-shadow: 0 24px 60px rgba(0, 0, 0, .10);
    --sdl-h: 435px;
    --sdl-lw: 600px;
    --f-head: 'Teko', sans-serif;
    --f-body: 'Noto Sans', sans-serif;
}


/* ════════════════════════════════════
   OUTER WRAP
════════════════════════════════════ */

.sdl-wrap {
    display: grid;
    grid-template-columns: var(--sdl-lw) 1fr;
    height: var(--sdl-h);
    border-radius: var(--sdl-r);
    overflow: hidden;
    font-family: var(--f-body);
    box-shadow: var(--sdl-shadow);
    border: 1px solid var(--sdl-border);
    background: var(--sdl-bg);
    position: relative;
}


/* ════════════════════════════════════
   LEFT PANEL
════════════════════════════════════ */

.sdl-panel {
    background: var(--sdl-panel);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--sdl-border);
    position: relative;
    z-index: 2;
}


/* ── Red header ── */

.sdl-panel-top {
    background: var(--sdl-red);
    padding: 26px 22px 22px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}


/* Subtle dot-grid texture on header */

.sdl-panel-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}


/* Decorative circle accent */

.sdl-panel-top::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, .1);
    pointer-events: none;
}

.sdl-panel-top-inner {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    position: relative;
    z-index: 1;
}

.sdl-title {
    font-family: var(--f-head);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.sdl-sub {
    font-size: 18px !important;
    color: #fff;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
    font-family: var(--f-body);
}


/* ── Filters area ── */

.sdl-filters {
    padding: 18px 18px 0;
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.sdl-field {
    flex: 1;
    min-width: 0;
    margin-bottom: 14px;
}

.sdl-field-state {
    animation: sdlSlide .22s ease;
}

@keyframes sdlSlide {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sdl-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sdl-muted);
    margin-bottom: 6px;
}

.sdl-sel-wrap {
    position: relative;
}

.sdl-sel {
    width: 100%;
    height: 44px;
    padding: 0 38px 0 13px;
    border: 1.5px solid var(--sdl-border);
    border-radius: var(--sdl-r-sm);
    font-size: 13.5px;
    font-weight: 500;
    font-family: var(--f-body);
    color: var(--sdl-text);
    background: var(--sdl-card);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.sdl-sel:focus {
    border-color: var(--sdl-red);
    background: var(--sdl-white);
    box-shadow: 0 0 0 3px var(--sdl-red-sm);
}

.sdl-sel:hover:not(:focus) {
    background: var(--sdl-white);
    border-color: #cdd0da;
}

.sdl-caret {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sdl-subtle);
    pointer-events: none;
}


/* ── Result meta ── */

.sdl-meta {
    padding: 12px 18px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    animation: sdlFade .3s ease;
}

@keyframes sdlFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sdl-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    background: var(--sdl-red);
    color: #fff;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--f-head);
    letter-spacing: .04em;
    box-shadow: 0 2px 8px rgba(224, 0, 0, .28);
}

.sdl-meta-txt {
    font-size: 18px;
    color: var(--sdl-red);
    font-weight: 600;
    font-family: var(--f-body);
    letter-spacing: .01em;
}


/* ── Cards list ── */

.sdl-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    margin-top: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(224, 0, 0, .2) transparent;
}

.sdl-list::-webkit-scrollbar {
    width: 3px;
}

.sdl-list::-webkit-scrollbar-track {
    background: transparent;
}

.sdl-list::-webkit-scrollbar-thumb {
    background: rgba(224, 0, 0, .3);
    border-radius: 3px;
}


/* ── Empty state ── */

.sdl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    gap: 14px;
    text-align: center;
    padding: 24px;
    color: var(--sdl-subtle);
}

.sdl-empty-icon {
    width: 64px;
    height: 64px;
    background: var(--sdl-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sdl-border);
}

.sdl-empty p {
    font-size: 13px;
    margin: 0;
    color: var(--sdl-muted);
    line-height: 1.55;
    max-width: 220px;
}

#sdl-list,
.sdl-list {
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.sdl-card {
    flex-shrink: 0;
}

.sdl-wrap {
    position: relative;
    overflow: hidden;
}

#sdl-list {
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.sdl-card {
    position: relative;
    flex-shrink: 0;
}


/* ── Distributor card — PREMIUM ── */

.sdl-card {
    border-radius: 14px;
    margin-bottom: 8px;
    background: var(--sdl-white);
    border: 1.5px solid var(--sdl-border);
    cursor: pointer;
    transition: background .18s, border-color .18s, transform .16s, box-shadow .18s;
    position: relative;
    overflow: hidden;
}


/* Subtle left accent bar */

.sdl-card:hover {
    background: #fff8f8;
    border-color: var(--sdl-border-r);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(224, 0, 0, .10);
}

.sdl-card:hover::before {
    background: var(--sdl-red);
}

.sdl-card.is-active {
    background: #fff3f3;
    border-color: var(--sdl-red);
    box-shadow: 0 6px 28px rgba(224, 0, 0, .15);
}

.sdl-card.is-active::before {
    background: var(--sdl-red);
}

.sdl-card-inner {
    padding: 14px 14px 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sdl-card-pin {
    width: 36px;
    height: 36px;
    background: var(--sdl-red-xs);
    border-radius: 10px;
    border: 1.5px solid rgba(224, 0, 0, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sdl-red);
    margin-top: 1px;
    transition: background .18s, border-color .18s;
}

.sdl-card.is-active .sdl-card-pin {
    background: var(--sdl-red);
    border-color: var(--sdl-red);
    color: #fff;
    box-shadow: 0 3px 10px rgba(224, 0, 0, .35);
}

.sdl-card-pin svg {
    width: 16px;
    height: 16px;
}


/* Company name — Teko 20px, bold black highlight */

.sdl-name {
    font-family: var(--f-head);
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 2px;
    letter-spacing: 0.03em;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(224, 0, 0, .06) 0%, rgba(224, 0, 0, .02) 100%);
    border-left: 3px solid var(--sdl-red);
    padding: 3px 8px 3px 8px;
    border-radius: 0 6px 6px 0;
    margin-left: -8px;
}

.sdl-place {
    font-size: 11px;
    color: var(--sdl-red);
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin: 0 0 9px;
    font-family: var(--f-body);
}


/* Details — Noto Sans 16px */

.sdl-country,
.sdl-phone,
.sdl-website {
    font-size: 16px;
    font-family: var(--f-body);
    color: var(--sdl-muted);
    margin: 0 0 4px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.sdl-country svg,
.sdl-phone svg,
.sdl-website svg {
    flex-shrink: 0;
    color: var(--sdl-subtle);
    margin-top: 3px;
    width: 13px;
    height: 13px;
}

.sdl-phone a,
.sdl-website a {
    color: var(--sdl-muted);
    text-decoration: none;
    transition: color .15s;
    word-break: break-all;
    font-size: 16px;
    font-family: var(--f-body);
}

.sdl-phone a:hover,
.sdl-website a:hover {
    color: var(--sdl-red);
}


/* ── Direction link (card) ── */

.sdl-dir-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--f-body);
    color: var(--sdl-red);
    text-decoration: none;
    letter-spacing: .02em;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--sdl-red-xs);
    border: 1px solid rgba(224, 0, 0, .12);
    transition: background .15s, box-shadow .15s;
}

.sdl-dir-link:hover {
    background: rgba(224, 0, 0, .12);
    box-shadow: 0 2px 8px rgba(224, 0, 0, .12);
}


/* ── Not found ── */

.sdl-not-found {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--sdl-muted);
    line-height: 1.5;
}


/* ════════════════════════════════════
   HELMET GIF LOADER
════════════════════════════════════ */

.sdl-loading-card {
    padding: 40px 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--sdl-muted);
    font-weight: 500;
    font-family: var(--f-body);
}

.sdl-helmet-wrap {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sdl-red-xs);
    border-radius: 50%;
    border: 1.5px solid var(--sdl-border-r);
    box-shadow: 0 4px 18px rgba(224, 0, 0, .10);
    animation: sdlHelmetPulse 2s ease-in-out infinite;
}

@keyframes sdlHelmetPulse {
    0%,
    100% {
        box-shadow: 0 4px 18px rgba(224, 0, 0, .10);
    }
    50% {
        box-shadow: 0 4px 28px rgba(224, 0, 0, .28);
    }
}

.sdl-helmet-gif {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}


/* ════════════════════════════════════
   RIGHT PANEL
════════════════════════════════════ */

.sdl-right {
    position: relative;
    overflow: hidden;
    height: var(--sdl-h);
}


/* ── Idle / Welcome state ── */

.sdl-idle {
    position: absolute;
    inset: 0;
    z-index: 10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 36px;
}

.sdl-idle.sdl-gone {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .4s ease, visibility .4s ease;
}


/* ── GIF fallback background (when no YouTube URL set) ── */

.sdl-gif-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
}


/* ── YouTube video background ── */

.sdl-video-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.sdl-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, calc(var(--sdl-h) * 16 / 9));
    height: max(100%, calc(100% * 9 / 16));
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
    object-fit: cover;
}


/* ── Dark gradient overlay on video ── */

.sdl-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient( to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .28) 55%, rgba(0, 0, 0, .18) 100%);
}


/* Red accent bar at bottom of overlay */

.sdl-video-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sdl-red);
    opacity: .85;
}


/* ── CTA pill ── */

.sdl-idle-cta {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(224, 0, 0, .15);
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sdl-text);
    font-family: var(--f-body);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
    letter-spacing: .01em;
}

.sdl-pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--sdl-red);
    border-radius: 50%;
    animation: sdlPulse 1.6s ease-out infinite;
    flex-shrink: 0;
}

@keyframes sdlPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 0, 0, .55);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(224, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(224, 0, 0, 0);
    }
}


/* ── Hint pill ── */

.sdl-hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    color: var(--sdl-text);
    font-size: 11.5px;
    font-family: var(--f-body);
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease;
    white-space: nowrap;
    border: 1px solid var(--sdl-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .09);
    z-index: 5;
}

.sdl-hint.on {
    opacity: 1;
}


/* Map container — absolutely fills .sdl-right */

.sdl-map {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.sdl-map canvas.mapboxgl-canvas {
    width: 100% !important;
    height: 100% !important;
}


/* Mapbox popup */

.mapboxgl-popup {
    z-index: 20;
}

.sdl-popup .mapboxgl-popup-content {
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22), 0 4px 16px rgba(224, 0, 0, .12);
    font-family: var(--f-body);
    overflow: hidden;
    min-width: 240px;
    max-width: 300px;
    border: 1px solid rgba(224, 0, 0, .08);
}

.sdl-popup .mapboxgl-popup-tip {
    border-top-color: var(--sdl-red) !important;
}

.sdl-popup .mapboxgl-popup-close-button {
    font-size: 20px;    
    padding: 6px 10px;
    background: none;
    border: none;
    line-height: 1;
    transition: color .15s;
}

.sdl-popup .mapboxgl-popup-close-button:hover {
    
    background: #f2f2f2
}


/* Popup header */

.sdl-popup-hd {
    background: #f2f2f2;
    padding: 16px 18px 14px;
    position: relative;
    overflow: hidden;
}

.mapboxgl-popup-content {
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.mapboxgl-popup-tip {
    border-top-color: #fff !important;
}

.mapboxgl-popup-close-button {
    top: 8px;
    right: 10px;
    font-size: 20px;
    color: var(--sdl-red);
}

.sdl-map-card {
    min-width: 300px;
    max-width: 340px;
    background: #e1e1e1;
    padding: 20px 22px;
}

.sdl-map-card__title {
    font-family: 'Teko', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #e00000;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.sdl-map-card__place {
    font-size: 11px;
    color: var(--sdl-red);
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin: 0 0 14px;
    font-family: var(--f-body);
}

.sdl-map-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.sdl-map-card__item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #5a5a5a !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.sdl-map-card__item svg {
    color: var(--sdl-red);
    flex-shrink: 0;
}

.sdl-map-card__item:hover {
    color: #e00000;
}


/* Company name — Teko 20px */

.sdl-popup-name {
    font-family: var(--f-head);
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.15;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

.sdl-popup-place {
    font-size: 16px;
    font-family: var(--f-body);
    color: #fff;
    margin: 4px 0 0;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 600;
    position: relative;
    z-index: 1;
}


/* Popup body */

.sdl-popup-bd {
    padding: 14px 16px 16px;
    background: #fff;
}


/* Details — Noto Sans 16px */

.sdl-popup-row {
    font-size: 16px;
    font-family: var(--f-body);
    color: #444;
    margin: 7px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.4;
}

.sdl-popup-row svg {
    color: #ccc;
    flex-shrink: 0;
    margin-top: 3px;
    width: 13px;
    height: 13px;
}

.sdl-popup-row a {
    color: var(--sdl-red);
    text-decoration: none;
    font-size: 16px;
    font-family: var(--f-body);
}

.sdl-popup-row a:hover {
    text-decoration: underline;
}


/* ── Custom map marker ── */

.sdl-marker {
    width: 32px;
    height: 40px;
    cursor: pointer;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .22));
    transition: transform .2s, filter .2s;
}

.sdl-marker:hover,
.sdl-marker.is-active {
    transform: scale(1.35) translateY(-4px);
    filter: drop-shadow(0 7px 14px rgba(224, 0, 0, .5));
}


/* ════════════════════════════════════
   RESPONSIVE (base component, pre-SMK override)
════════════════════════════════════ */

@media (max-width: 860px) {
    .sdl-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: auto 360px;
        height: auto;
        border-radius: 14px;
    }
    /* NOTE: this rule is dead once the SMK override below makes
       .sdl-wrap display:flex — kept only for non-SMK usage of this
       component. It is neutralized for the SMK layout further down. */
    .sdl-panel {
        max-height: 520px;
    }
    .sdl-right {
        height: 360px;
    }
    .sdl-video-bg iframe {
        width: max(100%, calc(360px * 16 / 9));
        height: max(360px, calc(100% * 9 / 16));
    }
    .sdl-filters {
        gap: 10px;
    }
    .sdl-map {
        height: 100% !important;
    }
}

@media (max-width: 560px) {
    .sdl-panel-top {
        padding: 20px 18px 18px;
    }
    .sdl-title {
        font-size: 20px;
    }
    .sdl-sub {
        font-size: 13px;
    }
    .sdl-filters {
        padding: 14px 14px 0;
        flex-direction: column;
        gap: 0;
    }
    .sdl-field {
        width: 100%;
    }
    .sdl-list {
        padding: 8px;
    }
    .sdl-card-inner {
        padding: 11px;
    }
    .sdl-idle-cta {
        font-size: 11.5px;
        padding: 8px 16px;
    }
}


/* ============================================================
   SMK Design — layout override
   ============================================================ */

:root {
    --sdl-red: #e00000;
    --sdl-bg: #000;
    --sdl-text: #2b2b2b;
    --sdl-muted: #555;
    --sdl-px: 22px;
    --sdl-pt: 28px;
    --sdl-pb: 28px;
    --sdl-gap: 20px;
}


/* ── Outer wrap: just a bg container ── */

.sdl-wrap {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--sdl-bg) !important;
    overflow: hidden !important;
    padding: var(--sdl-pt) var(--sdl-px) var(--sdl-pb) var(--sdl-px);
    font-family: var(--f-body);
    box-sizing: border-box;
}


/* ── Heading: full width, sits above the 2-col body ── */

.sdl-heading {
    padding-bottom: 20px;
    flex-shrink: 0;
}
.sdl-title {
    font-family: var(--f-head), sans-serif !important;
    color: var(--sdl-red) !important;
    font-size: 52px !important;
    line-height: .95 !important;
    letter-spacing: .045em !important;
    margin: 0 0 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

.sdl-sub {
    color: #4b4b4b !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}


/* ── Body: 2-col grid — filters+list | map ── */

.sdl-body {
    display: grid;
    grid-template-columns: 46% 1fr;
    gap: 0 var(--sdl-gap);
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}

/* ── Left panel: filters + scrollable list ── */
.sdl-panel {
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
    border-right: 0 !important;
    overflow: visible !important;
    min-width: 0;
    height: 100% !important;
    position: static !important;
    z-index: auto !important;
}


/* hide old panel-top if it exists (legacy) */

.sdl-panel-top {
    display: none !important;
}


/* ── Filters ── */

.sdl-filters {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 !important;
    margin: 0 0 16px !important;
    flex-shrink: 0;
}

.sdl-field {
    margin: 0 !important;
}

.sdl-field-state {
    display: block !important;
}

.sdl-label {
    display: block !important;
    color: #fff !important;
    font-size: 13px !important;
    letter-spacing: .06em !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    margin: 0 0 7px !important;
}

.sdl-label svg {
    display: none !important;
}

.sdl-sel-wrap {
    position: relative;
}

.sdl-sel {
    width: 100%;
    height: 38px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #e1e1e1 !important;
    color: var(--sdl-red) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .05em !important;
    padding: 0 38px 0 14px !important;
    box-shadow: none !important;
    text-transform: uppercase;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.sdl-caret {
    color: var(--sdl-red) !important;
    right: 12px !important;
}

.sdl-caret path {
    stroke: var(--sdl-red) !important;
}


/* ── Cards list ── */

.sdl-list {
    flex: 1 1 0 !important;
    overflow-y: auto !important;
    padding: 0 4px 0 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: var(--sdl-red) transparent;
}

.sdl-list::-webkit-scrollbar {
    width: 4px;
}

.sdl-list::-webkit-scrollbar-track {
    background: transparent;
}

.sdl-list::-webkit-scrollbar-thumb {
    background: var(--sdl-red);
    border-radius: 4px;
}

.sdl-empty {
    display: none !important;
}


/* ── Cards ── */

.sdl-card {
    background: #e1e1e1 !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    margin: 0 0 10px !important;
    overflow: hidden;
    cursor: pointer;
}

.sdl-card:hover,
.sdl-card.is-active {
    background: #e4e4e4 !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.sdl-card-inner {
    display: block !important;
    padding: 0 !important;
}

.sdl-card-logo {
    display: none !important;
}

.sdl-card-body {
    padding: 13px 15px;
    min-width: 0;
}

.sdl-name {
    background: transparent !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 5px !important;
    color: var(--sdl-red) !important;
    font-size: 19px !important;
    line-height: 1 !important;
    letter-spacing: .06em !important;
    font-weight: 700 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sdl-place,
.sdl-website,
.sdl-country,
.sdl-phone {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 14px 0 0 !important;
    color: #5a5a5a !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase;
}

.sdl-place svg {
    color: var(--sdl-red);
    flex-shrink: 0;
}

.sdl-website svg,
.sdl-country svg,
.sdl-phone svg {
    color: var(--sdl-red) !important;
    margin-top: 0 !important;
}

.sdl-website a,
.sdl-phone a {
    font-size: 11px !important;
    color: #5a5a5a !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}


/* ── Right panel: map — fills exact same rows as left panel ── */

.sdl-right {
    position: relative !important;
    min-height: 400px;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #e8e8e8;
    align-self: stretch;
}

.sdl-map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #e8e8e8;
}

.sdl-idle {
    display: none !important;
}

.sdl-hint {
    display: none !important;
}

.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-attrib {
    opacity: .35;
}

.sdl-marker svg path {
    fill: var(--sdl-red) !important;
}

.sdl-marker svg circle:last-child {
    fill: var(--sdl-red) !important;
}

.sdl-marker.is-active {
    transform: scale(1.12);
}


/* ── Responsive ── */

@media (max-width: 1100px) {
  
    .sdl-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px;
        height: auto;
        flex: none;
    }
    .sdl-wrap {
        height: auto !important;
    }
    .sdl-panel {
        height: auto !important;
        max-height: none !important; /* neutralizes the legacy 860px rule above */
        min-height: 0;
        width: 100%;
        flex: 0 0 auto;
    }
    .sdl-right {
        position: relative !important;
        width: 100%;
        flex: 0 0 420px;
        height: 420px !important;
        border-radius: 16px !important;
        z-index: 1; /* keeps map from ever painting over card list, even if a stray absolute rule appears */
    }
    .sdl-map {
        border-radius: 16px !important;
    }
    .sdl-title {
        font-size: 40px !important;
    }
    .sdl-list {
        max-height: 360px !important; /* !important needed: #sdl-list{max-height:none} has higher specificity (ID > class) and was always winning, so the list never had a capped, scrollable height on mobile */
        overflow-y: auto !important;
        flex: 0 1 auto !important;
    }
}

@media (max-width: 700px) {
    .sdl-wrap {
        padding: 18px 14px 22px;
    }
    .sdl-title {
        font-size: 30px !important;
    }
    .sdl-sub {
        font-size: 15px !important;
    }
    .sdl-filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .sdl-right {
        height: 300px !important;
        flex-basis: 300px;
    }
    .sdl-name {
        font-size: 17px !important;
        white-space: normal;
    }
}