:root {
    --map-fill: #e2e8f0;
    --map-stroke: #94a3b8;
    --map-hover: #10b981;
    --map-active: #059669;
    --map-text: #1e293b;
}

[data-theme="dark"] {
    --map-fill: #334155;
    --map-stroke: #475569;
    --map-hover: #34d399;
    --map-active: #10b981;
    --map-text: #f1f5f9;
}

* {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.turkey-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.turkey-map-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}

.turkey-map-wrapper g[id] {
    cursor: pointer;
    transition: all 0.2s ease;
}

.turkey-map-wrapper g[id] path {
    fill: var(--map-fill);
    stroke: var(--map-stroke);
    stroke-width: 0.5;
    transition: all 0.25s ease;
}

.turkey-map-wrapper g[id]:hover path {
    fill: var(--map-hover);
    stroke: var(--map-active);
    stroke-width: 1;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.turkey-map-wrapper g[id].active path {
    fill: var(--map-active);
    stroke: #047857;
    stroke-width: 1.5;
    filter: drop-shadow(0 3px 6px rgba(5, 150, 105, 0.4));
}

.map-tooltip {
    position: fixed;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    transform: translate(-50%, -100%);
    margin-top: -10px;
}

[data-theme="dark"] .map-tooltip {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(100, 116, 139, 0.3);
}

.countdown-pulse {
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-result-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.search-result-item:hover {
    background: rgba(16, 185, 129, 0.08);
}

[data-theme="dark"] .search-result-item:hover {
    background: rgba(16, 185, 129, 0.15);
}

.search-result-item:last-child {
    border-bottom: none;
}

@media (max-width: 640px) {
    .turkey-map-wrapper {
        margin: 0 -8px;
    }

    table {
        font-size: 12px;
    }

    table th, table td {
        padding: 8px 6px;
    }
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #475569;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    border-top-color: #10b981;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
