#tr-harita {
    max-width: 100%;
    margin: 0 auto;
}

#tr-harita svg {
    width: 100%;
    height: auto;
    display: block;
}

#tr-harita g[data-plakakodu] path {
    fill: #e5e7eb;
    stroke: #fff;
    stroke-width: 1;
    transition: fill .15s ease;
    cursor: pointer;
}

#tr-harita g[data-plakakodu]:hover path,
#tr-harita g[data-plakakodu]:focus path {
    fill: var(--theme-color-1);
}

#tr-harita g[data-plakakodu]:focus {
    outline: none;
}

#tr-harita g[data-disabled="true"] path {
    cursor: default;
    opacity: .5;
}

#tr-harita g[data-disabled="true"]:hover path {
    fill: #e5e7eb;
}

/* Tooltip */
#tr-harita-tooltip {
    position: fixed;
    padding: 6px 12px;
    background: rgba(0, 0, 0, .85);
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
    z-index: 9999;
    white-space: nowrap;
}

#tr-harita-tooltip.visible {
    opacity: 1;
}

/* İl listesi — plaka formatı */
#tr-il-listesi {
    max-width: 1000px;
    margin: 30px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

#tr-il-listesi a {
    display: inline-flex;
    align-items: stretch;
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    transition: border-color .15s ease, box-shadow .15s ease;
    height: 28px;
}

#tr-il-listesi a:hover,
#tr-il-listesi a.active {
    border-color: var(--theme-color-1);
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

#tr-il-listesi .plaka-kod {
    background: #003399;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
    display: flex;
    align-items: center;
    min-width: 26px;
    justify-content: center;
}

#tr-il-listesi .plaka-il {
    background: #fff;
    color: #222;
    font-size: 11px;
    font-weight: 600;
    padding: 0 8px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

#tr-il-listesi a:hover .plaka-il,
#tr-il-listesi a.active .plaka-il {
    color: var(--theme-color-1);
}

/* Harita üzerinde JS ile aktif edilen il */
#tr-harita g[data-plakakodu].highlight path {
    fill: var(--theme-color-1);
}

/* Responsive */
@media (max-width: 768px) {
    #tr-harita {
        max-width: 100%;
        padding: 0 10px;
    }
    #tr-il-listesi {
        padding: 0 10px;
        gap: 5px;
    }
    #tr-il-listesi a {
        height: 24px;
    }
    #tr-il-listesi .plaka-kod {
        font-size: 10px;
        padding: 0 4px;
        min-width: 22px;
    }
    #tr-il-listesi .plaka-il {
        font-size: 10px;
        padding: 0 5px;
    }
}
