/* Find a Distributor – store locator */
.store-locator {
    --fd-brand: var(--primary-color, #0e3b6e);
    --fd-brand-dark: #0b3057;
    --fd-text: #222;
    --fd-muted: #666;
    --fd-border: #d9d9d9;
    --fd-bg: #f5f7fa;
    padding: 70px 0 70px;
}

.store-locator .container {
    /* max-width: 1170px; */
}

.fd-search {
    background: var(--fd-brand);
    padding: 18px 20px;
    margin-bottom: 0;
}

.fd-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 18px;
}

.fd-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fd-field label {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.fd-field-location {
    flex: 1 1 280px;
    min-width: 220px;
}

.fd-field-radius,
.fd-field-results {
    flex: 0 0 auto;
    min-width: 120px;
}

.fd-field input[type="text"],
.fd-field select {
    height: 40px;
    border: 0;
    border-radius: 0;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    width: 100%;
    outline: none;
    box-shadow: none;
}

.fd-field input[type="text"]:focus,
.fd-field select:focus {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 1px;
}

.fd-search-btn {
    height: 40px;
    padding: 0 28px;
    border: 0;
    background: #e8e8e8;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    align-self: flex-end;
}

.fd-search-btn:hover {
    background: #fff;
    color: var(--fd-brand);
}

.fd-search-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.fd-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    border: 1px solid var(--fd-border);
    background: #fff;
    min-height: 560px;
}

.fd-list-panel {
    border-right: 1px solid var(--fd-border);
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.fd-list-status {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--fd-muted);
    border-bottom: 1px solid #eee;
    background: var(--fd-bg);
}

.fd-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: 560px;
    flex: 1;
}

.fd-list-item {
    border-bottom: 1px dotted #cfcfcf;
    padding: 14px 16px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fd-list-item:hover,
.fd-list-item.is-active {
    background: #f0f4f9;
}

.fd-list-item.is-active {
    border-left: 3px solid var(--fd-brand);
    padding-left: 13px;
}

.fd-store-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    line-height: 1.35;
}

.fd-store-address {
    display: block;
    font-size: 13px;
    color: #333;
    line-height: 1.45;
    margin-bottom: 6px;
}

.fd-store-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #444;
}

.fd-store-distance {
    font-weight: 500;
}

    .fd-directions {
    color: var(--fd-brand);
    font-weight: 600;
    text-decoration: none;
}

.fd-directions:hover,
.fd-store-link:hover {
    text-decoration: underline;
    color: var(--fd-brand-dark);
}

.fd-store-link {
    color: var(--fd-brand);
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

.fd-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--fd-muted);
    font-size: 14px;
}

.fd-map-panel {
    position: relative;
    min-height: 560px;
    background: #e9eef3;
}

#fd-map {
    width: 100%;
    height: 100%;
    min-height: 560px;
}

.fd-map-popup .leaflet-popup-content-wrapper {
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.fd-map-popup .leaflet-popup-content {
    margin: 12px 14px 10px;
    min-width: 180px;
    line-height: 1.4;
}

.fd-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}

.fd-popup-address {
    font-size: 13px;
    color: #333;
    margin: 0 0 4px;
}

.fd-popup-phone {
    font-size: 13px;
    color: #333;
    margin: 0 0 6px;
}

.fd-popup-phone a {
    color: inherit;
    text-decoration: none;
}

.fd-popup-phone a:hover {
    color: var(--fd-brand);
}

.fd-popup-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--fd-brand);
    text-decoration: none;
}

.fd-popup-link:hover {
    text-decoration: underline;
}

.fd-user-marker {
    background: transparent;
    border: 0;
}

@media (max-width: 991px) {
    .fd-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .fd-list-panel {
        border-right: 0;
        border-bottom: 1px solid var(--fd-border);
    }

    .fd-list {
        max-height: 340px;
    }

    .fd-map-panel,
    #fd-map {
        min-height: 420px;
    }
}

@media (max-width: 575px) {
    .store-locator {
        padding: 60px 0 60px;
    }

    .fd-search {
        padding: 14px;
    }

    .fd-search-form {
        gap: 12px;
    }

    .fd-field-location,
    .fd-field-radius,
    .fd-field-results {
        flex: 1 1 100%;
        min-width: 0;
    }

    .fd-search-btn {
        width: 100%;
    }
}
