/* RURIS Authorized Dealer Locator - Premium Split View & Map Styles */

.ruris-dealer-network-wrapper {
    max-width: 1240px;
    margin: 30px auto;
    font-family: inherit;
    box-sizing: border-box;
}

/* Hero & Pretraga */
.ruris-dealer-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 14px;
    padding: 36px 32px;
    color: #ffffff;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
}

.ruris-dealer-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f87171;
    margin-bottom: 8px;
}

.ruris-dealer-headline {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: #ffffff;
    line-height: 1.2;
}

.ruris-dealer-subline {
    font-size: 15px;
    color: #94a3b8;
    margin: 0 0 25px 0;
    max-width: 760px;
    line-height: 1.5;
}

.ruris-dealer-filter-bar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}

.ruris-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ruris-search-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #64748b;
    pointer-events: none;
}

#ruris-dealer-search-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#ruris-dealer-search-input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

.ruris-city-select-wrap select,
.ruris-tier-select-wrap select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    outline: none;
    height: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

/* Split View Container */
.ruris-dealer-split-container {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 24px;
    height: 680px;
    box-sizing: border-box;
}

/* Leva kolona: Scrollable lista */
.ruris-dealer-list-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.ruris-dealer-results-count {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    padding-left: 2px;
}

.ruris-dealer-cards-scroll {
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.ruris-dealer-cards-scroll::-webkit-scrollbar {
    width: 6px;
}
.ruris-dealer-cards-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Pojedinačna kartica dilera */
.ruris-dealer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ruris-dealer-card:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 20px -4px rgba(220, 38, 38, 0.12);
    transform: translateY(-2px);
}

.ruris-dealer-card.selected-dealer {
    border-color: #dc2626;
    background: #fffafa;
    box-shadow: 0 0 0 2px #dc2626;
}

.ruris-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ruris-dealer-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.ruris-badge-flagship {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.ruris-badge-premium {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.ruris-badge-auth {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.ruris-dealer-city-tag {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.ruris-dealer-name {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #0f172a;
    line-height: 1.3;
}

.ruris-dealer-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    line-height: 1.4;
}

.ruris-meta-icon {
    flex-shrink: 0;
    font-size: 14px;
}

.ruris-dealer-cats-pillbox {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    margin-bottom: 14px;
}

.ruris-cat-pill {
    font-size: 11px;
    background: #f1f5f9;
    color: #334155;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 500;
}

.ruris-cat-more {
    background: #e2e8f0;
    font-weight: 700;
}

.ruris-dealer-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.ruris-btn-call,
.ruris-btn-navigate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}

.ruris-btn-call {
    background: #f8fafc;
    color: #1e293b !important;
    border: 1px solid #cbd5e1;
}

.ruris-btn-call:hover {
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
}

.ruris-btn-navigate {
    background: #dc2626;
    color: #ffffff !important;
    border: 1px solid #dc2626;
}

.ruris-btn-navigate:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Desna kolona: Leaflet Mapa */
.ruris-dealer-map-pane {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#ruris-dealer-map {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    z-index: 1;
}

/* Leaflet Custom Pin */
.ruris-map-custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #dc2626;
    color: #ffffff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.35);
}

.ruris-map-custom-marker-inner {
    transform: rotate(45deg);
    font-size: 14px;
    font-weight: 900;
}

.ruris-map-custom-marker.flagship {
    background: #0f172a;
    width: 36px;
    height: 36px;
}

/* Mobilna prilagođenost */
@media (max-width: 900px) {
    .ruris-dealer-split-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .ruris-dealer-map-pane {
        height: 380px;
        order: -1;
        margin-bottom: 20px;
    }

    .ruris-dealer-filter-bar {
        grid-template-columns: 1fr;
    }

    .ruris-dealer-cards-scroll {
        max-height: 500px;
    }
}