/* ==========================================================================
   Solid Medya — Bayilerimiz
   Yetkili bayilerimizi koyu zeminde, altın vurgulu kart ızgarasında listeliyoruz.
   ========================================================================== */

:root {
    --dealer-gold: #ffbc00;
    --dealer-gold-soft: rgba(255, 188, 0, 0.14);
    --dealer-gold-glow: rgba(255, 188, 0, 0.45);
    --dealer-surface: rgba(255, 255, 255, 0.04);
    --dealer-border: rgba(255, 255, 255, 0.08);
    --dealer-text-muted: rgba(255, 255, 255, 0.58);
    --dealer-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dealer-page-wrapper {
    padding: 96px 0 104px;
    background: #050505;
    min-height: 80vh;
    background-image:
        radial-gradient(circle at 15% 35%, rgba(255, 188, 0, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(255, 188, 0, 0.03) 0%, transparent 26%);
}

.dealer-title {
    font-family: 'Plus Jakarta Sans', 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    color: #fff;
    margin: 0 0 14px;
    text-align: center;
    letter-spacing: -0.02em;
}

.dealer-title .highlight {
    color: var(--dealer-gold);
}

.dealer-subtitle {
    color: var(--dealer-text-muted);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 32px;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
}

.dealer-map-card {
    margin: 0 0 12px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.dealer-map-stage {
    position: relative;
    width: min(620px, 100%);
    margin: 0 auto;
}

.map-explorer-container {
    margin: 0;
    padding: 0;
    line-height: 0;
    background: none;
    border: none;
    touch-action: manipulation;
}

.map-explorer-fallback {
    margin: 0 0 18px;
    padding: 20px 16px;
    line-height: 1.5;
    text-align: center;
    color: var(--dealer-text-muted);
    background: var(--dealer-surface);
    border: 1px dashed var(--dealer-border);
    border-radius: 12px;
}

#svg-turkiye-haritasi {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    vertical-align: top;
    overflow: visible;
}

#svg-turkiye-haritasi g[data-iladi] {
    cursor: pointer;
    outline: none;
}

#svg-turkiye-haritasi g[data-iladi] path {
    fill: #151515;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 0.55;
    vector-effect: non-scaling-stroke;
    transition:
        fill 0.16s ease,
        stroke 0.16s ease,
        opacity 0.16s ease;
    pointer-events: all;
}

#svg-turkiye-haritasi g[data-has-dealer='true'] path {
    fill: #c99700;
    stroke: rgba(255, 220, 120, 0.35);
}

#svg-turkiye-haritasi:not(.is-filtered) g[data-iladi]:hover path,
#svg-turkiye-haritasi:not(.is-filtered) g[data-iladi]:focus-visible path {
    fill: #242424;
    stroke: rgba(255, 188, 0, 0.75);
    stroke-width: 0.75;
}

#svg-turkiye-haritasi:not(.is-filtered) g[data-has-dealer='true']:hover path,
#svg-turkiye-haritasi:not(.is-filtered) g[data-has-dealer='true']:focus-visible path {
    fill: #ffbc00;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 0.7;
}

#svg-turkiye-haritasi g[data-iladi].is-active path {
    fill: #ffffff;
    stroke: #ffbc00;
    stroke-width: 1.05;
}

#svg-turkiye-haritasi.is-filtered g[data-iladi]:not(.is-active) {
    opacity: 0.2;
}

#svg-turkiye-haritasi.is-filtered g[data-iladi].is-active {
    opacity: 1;
}

#svg-turkiye-haritasi.is-filtered g[data-iladi]:not(.is-active):hover path {
    fill: #151515;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 0.55;
}

.dealer-map-hint {
    margin: 8px 0 0;
    min-height: 18px;
    text-align: center;
    font-family: var(--dealer-font);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--dealer-text-muted);
    transition: color 0.15s ease;
}

.dealer-map-hint strong {
    color: #fff;
    font-weight: 600;
}

.dealer-map-hint .hint-gold {
    color: var(--dealer-gold);
    font-weight: 600;
}

.dealer-filter-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--dealer-gold-soft);
    border: 1px solid color-mix(in srgb, var(--dealer-gold) 35%, transparent);
}

.dealer-filter-bar.is-visible {
    display: flex;
}

.dealer-filter-bar__text {
    margin: 0;
    font-family: var(--dealer-font);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.dealer-filter-bar__text strong {
    color: var(--dealer-gold);
}

.dealer-filter-bar__reset {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--dealer-font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.dealer-filter-bar__reset:hover {
    background: var(--dealer-gold);
    color: #000;
}

.dealer-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.dealer-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 14px 14px 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.dealer-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 188, 0, 0.28);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.dealer-card.is-match {
    border-color: rgba(255, 188, 0, 0.45);
    background: rgba(255, 188, 0, 0.04);
    box-shadow: 0 0 0 1px rgba(255, 188, 0, 0.12);
}

.dealer-card.hidden {
    display: none;
}

.dealer-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
}

.dealer-card__city {
    font-family: var(--dealer-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dealer-gold);
}

.dealer-card__district {
    font-family: var(--dealer-font);
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48%;
    text-align: right;
}

.dealer-card__name {
    margin: 0 0 8px;
    font-family: var(--dealer-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dealer-card__address {
    margin: 0 0 12px;
    flex: 1;
    font-family: var(--dealer-font);
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dealer-card__foot {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dealer-card__contact {
    display: block;
    font-family: var(--dealer-font);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-results {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 24px;
    border-radius: 16px;
    background: #101010;
    border: 1px dashed var(--dealer-border);
}

.no-results__icon {
    font-size: 36px;
    margin-bottom: 14px;
    color: var(--dealer-gold);
    opacity: 0.55;
}

.no-results__title {
    margin: 0 0 8px;
    font-family: var(--dealer-font);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.no-results__text {
    margin: 0 0 18px;
    font-family: var(--dealer-font);
    font-size: 14px;
    color: var(--dealer-text-muted);
}

.no-results__btn {
    border: none;
    border-radius: 999px;
    padding: 11px 22px;
    background: var(--dealer-gold);
    color: #000;
    font-family: var(--dealer-font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.no-results__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 188, 0, 0.25);
}

.dm-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    padding: 20px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dm-overlay.active {
    display: grid !important;
    place-items: center;
    align-content: center;
}

.dm-content {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    margin: auto;
    padding: 22px 22px 20px;
    border-radius: 12px;
    background: #0e0e0e;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: dmModalIn 0.22s ease;
}

@keyframes dmModalIn {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    cursor: pointer;
    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.dm-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.dm-title {
    margin: 0 28px 6px 0;
    font-family: var(--dealer-font);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

.dm-subtitle {
    margin: 0 0 18px;
    font-family: var(--dealer-font);
    font-size: 13px;
    line-height: 1.5;
    color: var(--dealer-text-muted);
}

.dm-subtitle .dm-city {
    color: var(--dealer-gold);
    font-weight: 600;
}

.dm-form-group {
    margin-bottom: 12px;
}

.dm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-family: var(--dealer-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.dm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dm-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-family: var(--dealer-font);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease;
}

.dm-input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.dm-input:focus {
    border-color: rgba(255, 188, 0, 0.55);
}

.dm-input[readonly] {
    color: var(--dealer-gold);
    font-weight: 600;
    background: rgba(255, 188, 0, 0.06);
    border-color: rgba(255, 188, 0, 0.2);
}

.dm-btn {
    width: 100%;
    margin-top: 6px;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: var(--dealer-gold);
    color: #000;
    font-family: var(--dealer-font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.dm-btn:hover:not(:disabled) {
    opacity: 0.92;
}

.dm-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

@media (max-width: 1280px) {
    .dealer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .dealer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dealer-page-wrapper {
        padding: 88px 0 80px;
    }

    .dealer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dealer-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .dm-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dealer-grid {
        grid-template-columns: 1fr;
    }
}
