/* =====================================================================
   Dealer Locator — redesigned per Figma (Find Frankford 0.1)
   Design tokens (hardcoded so this file is self-contained):
     Blue/700-brand: #373741   (dark frame, selected states)
     Blue/600:      #4F4F5E   (input border, segmented bg)
     Blue/400:      #9E9EAD   (placeholder text)
     Sun/50:        #FFFDF5   (cream for button, results bg)
     Orange/400:    #D77657   (website link)
     Sand/300:      #C3BCA9   (divider between dealers)
   ================================================================== */

.dl-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #373741;
    padding: 4px;
}

@media (min-width: 768px) {
    .dl-wrap {
        flex-direction: row;
        height: 800px;
    }
}

/* ─── Sidebar ──────────────────────────────────────────────────── */
.dl-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .dl-sidebar {
        width: 440px;
        height: 100%;
    }
}

/* ─── Search panel ─────────────────────────────────────────────── */
.dl-search-panel {
    background-color: #373741;
    border-radius: 4px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dl-search-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dl-search-input {
    flex: 1 0 0;
    min-width: 0;
    height: 40px;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #4F4F5E;
    background-color: transparent;
    color: #FFFDF5;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    outline: none;
    transition: border-color 120ms ease;
}

.dl-search-input::placeholder {
    color: #9E9EAD;
}

.dl-search-input:focus {
    border-color: #9E9EAD;
}

.dl-find-btn {
    height: 40px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: #FFFDF5;
    color: #373741;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 120ms ease;
}

.dl-find-btn:hover,
.dl-find-btn:focus {
    background-color: #EEEDE6;
    outline: none;
}

/* ─── Segmented radius control ─────────────────────────────────── */
.dl-radius {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 8px;
    background-color: #4F4F5E;
}

.dl-radius-option {
    flex: 1 0 0;
    min-width: 0;
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: #FFFDF5;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 120ms ease;
}

.dl-radius-option:hover {
    background-color: #5c5c6c;
}

.dl-radius-option[data-active="true"] {
    background-color: #373741;
}

/* ─── Results list ─────────────────────────────────────────────── */
.dl-results {
    flex: 1 0 0;
    min-height: 0;
    overflow: auto;
    background-color: #FFFDF5;
    border-radius: 4px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dl-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dl-result + .dl-result {
    border-top: 0.5px solid #C3BCA9;
    padding-top: 24px;
    margin-top: 0;
}

.dl-result-name {
    font-family: 'Season Sans Medium', 'Inter', system-ui, sans-serif;
    font-weight: 550;
    font-size: 16px;
    line-height: 1.3;
    color: #373741;
    margin: 0;
}

.dl-result-address {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dl-result-address p {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #373741;
}

.dl-result-url {
    align-self: flex-start;
    max-width: 100%;
    border-bottom: 0.5px solid #D77657;
    padding-bottom: 2px;
    color: #D77657;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    word-break: break-all;
}

.dl-result-url:hover {
    color: #A13720;
    border-bottom-color: #A13720;
}

.dl-result-trade-only {
    font-size: 13px;
    color: #373741;
    font-style: italic;
}

.dl-results-message {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    color: #373741;
    text-align: center;
    padding: 16px 0;
}

/* ─── Map ──────────────────────────────────────────────────────── */
.dl-map {
    flex: 1 0 0;
    min-height: 400px;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .dl-map {
        min-height: 0;
    }
}
