/* =============================================
   DEALERSHIPS / OUTLET LOCATOR
   ============================================= */

.dealerships-section { padding: 32px 0 48px; }

.dealerships-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ── Filter sidebar ── */
.dealerships-filters {
    width: 260px;
    flex-shrink: 0;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    position: sticky;
    top: 16px;
}

.filter-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a1a;
}

.filter-count {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0;
}

/* ── Map + list column ── */
.dealerships-main { flex: 1; min-width: 0; }

#dealerships-map {
    height: 460px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-bottom: 24px;
    z-index: 0;
}

/* ── Outlet cards — full-width list style ── */
.dealerships-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.outlet-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 18px 20px;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
    font-size: 14px;
    line-height: 1.5;
}

.outlet-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    border-color: var(--color-primary, #FFC200);
}

.outlet-card p { margin: 2px 0; }

/* ── Card header: icon + name/badge ── */
.outlet-card__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.outlet-card__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
    margin-top: 2px;
}

.outlet-card__meta { flex: 1; }

.outlet-card__name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 3px;
}

/* ── Address ── */
.outlet-card__address {
    color: #444;
    font-size: 13px;
    margin: 6px 0 !important;
}

.outlet-card__address-city {
    color: #666;
    font-size: 13px;
    margin: 0 0 8px !important;
}

/* ── Contact row: phone / email / website inline ── */
.outlet-card__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 8px 0 !important;
    font-size: 13px;
}

.outlet-card__contacts a {
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.outlet-card__contacts a:hover {
    color: var(--color-primary, #FFC200);
}

/* ── Products line ── */
.outlet-card__families {
    font-size: 12px;
    color: #555;
    margin-top: 8px !important;
}

.outlet-card__families strong {
    color: #333;
}

.outlet-card__families span {
    color: var(--color-primary, #FFC200);
}

/* ── Outlet type badges ── */
.outlet-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #777;
    margin-top: 1px;
}

.outlet-type::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.outlet-type--dealership::before  { background: #2a7a2a; }
.outlet-type--headoffice::before  { background: #1a4a8a; }
.outlet-type--distributor::before { background: #8a5a0a; }

/* ── Leaflet popup ── */
.leaflet-popup-content-wrapper {
    min-width: 280px;
}
.leaflet-popup-content {
    min-width: 260px;
}
.outlet-popup {
    font-size: 12px;
    line-height: 1.4;
    min-width: 260px;
}

.outlet-popup strong { display: block; font-size: 13px; margin-bottom: 3px; }
.outlet-popup p { margin: 2px 0; }
.outlet-popup .outlet-type { margin-bottom: 5px; }
.outlet-popup .outlet-families { font-size: 10px !important; color: #888; }
.outlet-permalink { display: block; margin-top: 6px; font-size: 11px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .dealerships-layout { flex-direction: column; }
    .dealerships-filters { width: 100%; position: static; }
    #dealerships-map { height: 320px; }
}
