#game-map {
    width: 100%;
    height: 100%;
    /* YENÄ° DENÄ°Z RENGÄ° */
    background-color: #51699C;
    z-index: 1;
}

/* Leaflet VarsayÄ±lan Arka PlanÄ± */
.leaflet-container {
    background: #51699C !important;
}

/* ... (DiÄŸer stiller aynÄ± kalsÄ±n: leaflet-bar, popup vb.) ... */
.leaflet-bar a {
    background-color: var(--bg-card) !important;
    color: var(--text-light) !important;
    border-color: var(--border) !important;
}

.leaflet-bar a:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background-color: var(--bg-card) !important;
    color: var(--text-light) !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4) !important;
}

/* --- SAVAÅž ODASI LOADER TASARIMI --- */
.map-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050a14;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out;

    /* Tekno-Grid Arka Plan */
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow: hidden;
}

/* Tarama Ã‡izgisi (Scanline) */
.map-loader-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    animation: scan 3s linear infinite;
}

/* Merkezdeki Daireler */
.loader-content {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* DÄ±ÅŸ Halka */
.ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: spin-slow 10s linear infinite;
}

/* Orta Halka (Kesik) */
.ring-middle {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px solid transparent;
    border-top: 2px solid #3b82f6;
    border-bottom: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 2s linear infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Ä°Ã§ Radar */
.ring-inner {
    position: absolute;
    width: 50%;
    height: 50%;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    animation: pulse 1.5s infinite alternate;
}

/* YazÄ± Grubu */
.loader-text-group {
    margin-top: 30px;
    text-align: center;
    z-index: 2;
}

.loading-title {
    font-family: 'Courier New', monospace;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

.loading-subtitle {
    font-family: 'Inter', sans-serif;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 5px;
    text-transform: uppercase;
}

/* Animasyonlar */
@keyframes scan {
    0% {
        top: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.map-loader-hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- HARÄ°TA ETÄ°KETLERÄ° (Age of History 3 TarzÄ±) --- */

/* Ãœlke Ä°simleri - Kompakt ve Temiz */
.country-label {
    pointer-events: none !important;
    transition: opacity 0.3s ease;
}

.country-label span {
    display: block;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.95),
        -1px -1px 1px rgba(0, 0, 0, 0.8),
        0 0 4px rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%);
}

/* --- ÅžEHÄ°R MARKER'LARI --- */

/* Åžehir Marker Container */
.city-marker {
    pointer-events: auto !important;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* Åžehir NoktasÄ± */
.city-dot {
    width: 8px;
    height: 8px;
    background: #fbbf24;
    /* AltÄ±n sarÄ±sÄ± */
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow:
        0 0 8px rgba(251, 191, 36, 0.8),
        0 0 12px rgba(251, 191, 36, 0.4);
    transition: all 0.2s ease;
}

.city-marker:hover .city-dot {
    transform: scale(1.5);
    background: #f59e0b;
    box-shadow:
        0 0 12px rgba(245, 158, 11, 1),
        0 0 20px rgba(245, 158, 11, 0.6);
}

/* Åžehir Tooltip */
.city-tooltip {
    background: rgba(0, 0, 0, 0.85) !important;
    border: 1px solid #fbbf24 !important;
    color: #fbbf24 !important;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px !important;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.city-tooltip::before {
    border-top-color: #fbbf24 !important;
}

/* Åžehir Ä°smi Label */
.city-name-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Tam merkeze hizala */
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    /* Biraz bÃ¼yÃ¼ttÃ¼m */
    font-weight: 700;
    color: #fbbf24;
    text-align: center;
    white-space: nowrap;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 1),
        -1px -1px 1px rgba(0, 0, 0, 1),
        0 0 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0.8;
    /* Hafif transparan */
}

/* Åžehir Ã¼zerine gelince (Polygon hover) label parlasÄ±n */
/* Bunu yapmak iÃ§in JS tarafÄ±nda class eklemek gerekebilir veya CSS sibling selector zordur. */
/* Åžimdilik sabit kalsÄ±n. */


/* --- ÅžEHÄ°R DETAY PANELÄ° --- */

#city-detail-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 600px;
    max-width: 90%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    box-shadow:
        0 -4px 20px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(59, 130, 246, 0.2);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

#city-detail-panel.open {
    transform: translateX(-50%) translateY(0);
}

/* Panel Header - Kompakt */
.city-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.05);
}

.city-panel-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.city-panel-title h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.city-panel-title .city-country-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
}

.city-panel-close {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.city-panel-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: scale(1.1);
}

/* Panel Body - Daha Kompakt */
.city-panel-body {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    gap: 6px;
}

.city-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.2s ease;
}

.city-stat:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.city-stat-label {
    font-size: 0.55rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.city-stat-value {
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 700;
}

.city-stat-icon {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

/* Kaynak KartÄ± Ã–zel Stil */
.resource-stat {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(251, 191, 36, 0.3);
}

.resource-stat:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border-color: rgba(251, 191, 36, 0.5);
}

.resource-stat .city-stat-value {
    color: #fbbf24;
}

/* AltyapÄ± KartÄ± */
.infra-stat {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    border-color: rgba(59, 130, 246, 0.3);
}

.infra-stat:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    border-color: rgba(59, 130, 246, 0.5);
}

.infra-stat .city-stat-value {
    color: #60a5fa;
}

/* Vergi VerimliliÄŸi KartÄ± */
.tax-stat {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    border-color: rgba(34, 197, 94, 0.3);
}

.tax-stat:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
    border-color: rgba(34, 197, 94, 0.5);
}

.tax-stat .city-stat-value {
    color: #4ade80;
}

/* Eyalet DeÄŸeri KartÄ± */
.value-stat {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(139, 92, 246, 0.05));
    border-color: rgba(168, 85, 247, 0.3);
}

.value-stat:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.1));
    border-color: rgba(168, 85, 247, 0.5);
}

.value-stat .city-stat-value {
    color: #c084fc;
}

/* Bina KartÄ± */
.building-stat {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(219, 39, 119, 0.05));
    border-color: rgba(236, 72, 153, 0.3);
}

.building-stat:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(219, 39, 119, 0.1));
    border-color: rgba(236, 72, 153, 0.5);
}

.building-stat .city-stat-value {
    color: #f472b6;
}

/* Panel Footer - Kompakt */
.city-panel-footer {
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
}

.city-detail-btn {
    width: 100%;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.city-detail-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.city-detail-btn i {
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    #city-detail-panel {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }

    .city-panel-body {
        grid-template-columns: 1fr;
    }
}

/* --- HARÄ°TA MODLARI - KOMPAKT SLÄ°DER --- */
.map-modes-panel {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 220px;
    /* Toplam geniÅŸlik (ikonlar + iÃ§erik) */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    display: flex;
    flex-direction: row-reverse;
    /* Ä°konlar saÄŸda, iÃ§erik solda */
}

/* KapalÄ± durum - sola kayarak gizle (sadece ikonlar gÃ¶rÃ¼nÃ¼r) */
.map-modes-panel.collapsed {
    transform: translateY(-50%) translateX(calc(100% - 44px));
}

/* Ä°kon Åžeridi (Her zaman saÄŸda) */
.modes-icon-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 44px;
    flex-shrink: 0;
    padding: 8px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-strip-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.icon-strip-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    transform: scale(1.1);
}

.icon-strip-btn.active {
    background: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

/* GeniÅŸletme Butonu - Ortada, hover'da gÃ¶rÃ¼nÃ¼r */
.expand-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 8px;
    color: #60a5fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    opacity: 0;
    z-index: 10;
}

/* Icon strip hover'da butonu gÃ¶ster */
.modes-icon-strip:hover .expand-btn {
    opacity: 1;
}

.expand-btn:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: #60a5fa;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

/* Header (gizlendi, artÄ±k gereksiz) */
.modes-header {
    display: none;
}

/* Toggle eski buton (gizlendi) */
.modes-toggle {
    display: none;
}

/* Pull-tab (gÃ¶rÃ¼nÃ¼r) */
.modes-pull-tab {
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 50px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.modes-pull-tab:hover {
    background: rgba(59, 130, 246, 0.3);
    width: 28px;
    left: -28px;
}

.modes-pull-tab i {
    color: #64748b;
    font-size: 0.7rem;
    transition: all 0.25s ease;
}

.modes-pull-tab:hover i {
    color: #60a5fa;
}

.map-modes-panel.collapsed .modes-pull-tab i {
    transform: rotate(0deg);
}

.map-modes-panel:not(.collapsed) .modes-pull-tab i {
    transform: rotate(180deg);
}

/* Inline Header (aÃ§Ä±k durumda) */
.modes-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modes-header-inline span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}

.collapse-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.collapse-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* Ä°Ã§erik AlanÄ± (Solda) */
.modes-content {
    flex: 1;
    padding: 12px;
    overflow: hidden;
}

/* Expand/collapse iÃ§in width animation yerine translateX kullanÄ±ldÄ±, 
   bu yÃ¼zden display:none gerekmiyor */

/* Mod ButonlarÄ± - 2x4 Grid */
.mode-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.6rem;
}

.mode-btn i {
    font-size: 0.95rem;
}

.mode-btn span {
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
}

.mode-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    transform: translateY(-1px);
}

.mode-btn.active {
    background: rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
    color: #60a5fa;
}

/* Mod Bilgi Kutusu */
.mode-info {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mode-info i {
    font-size: 1rem;
    color: #60a5fa;
}

.mode-info span {
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
}

.mode-info small {
    font-size: 0.6rem;
    color: #64748b;
}

/* ==========================================
   MAP LEGEND (LEJANT)
   ========================================== */
.map-legend {
    position: absolute;
    bottom: 30px;
    right: 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    z-index: 1000;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-family: 'Inter', sans-serif;
}

.legend-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-header i {
    font-size: 0.9rem;
    color: #60a5fa;
}

.legend-header span {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.legend-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legend-items li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 0.7rem;
    color: #e2e8f0;
}

.color-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* =====================================================
   FLIGHT TRACKING SYSTEM - Flightradar24 Style
   ===================================================== */

/* UÃ§ak Marker - Daha bÃ¼yÃ¼k ve animasyonlu */
.flight-marker {
    cursor: pointer;
    transition: all 0.3s ease;
}

.flight-icon-wrapper {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flight-marker:hover .flight-icon-wrapper {
    transform: scale(1.5) !important;
    animation: planePulse 0.6s ease-in-out;
}

@keyframes planePulse {

    0%,
    100% {
        transform: scale(1.5);
    }

    50% {
        transform: scale(1.7);
    }
}

.flight-icon-wrapper i {
    font-size: 22px;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 1px white);
    transition: all 0.3s ease;
}

/* Hover Tooltip */
.flight-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.flight-marker:hover .flight-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(2px);
}

.tooltip-type {
    font-size: 10px;
    font-weight: 700;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.tooltip-route {
    font-size: 11px;
    font-weight: 600;
    color: white;
}

/* UÃ§uÅŸ Detay Paneli */
.flight-panel {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    width: 380px;
    max-width: 90vw;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-right: none;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    z-index: 10001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flight-panel.open {
    right: 0;
}

/* Panel Header */
.flight-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.05);
}

.flight-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flight-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.flight-airline {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.flight-panel-close {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.flight-panel-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: scale(1.1);
}

/* Panel Body */
.flight-panel-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Rota GÃ¶sterimi */
.flight-route {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.route-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.route-point i {
    font-size: 1.2rem;
    color: #60a5fa;
}

.route-city {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.route-line {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.route-progress {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
    transition: width 2s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Ä°statistikler */
.flight-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.flight-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.flight-stat:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.flight-stat i {
    font-size: 1.1rem;
    color: #60a5fa;
    width: 24px;
    text-align: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.6rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 0.85rem;
    color: white;
    font-weight: 700;
}

/* Durum */
.flight-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #4ade80;
}

.status-badge i {
    font-size: 0.5rem;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.progress-text {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .flight-panel {
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        top: auto;
        bottom: -100%;
        right: 0;
        transform: none;
    }

    .flight-panel.open {
        bottom: 0;
    }

    .flight-stats {
        grid-template-columns: 1fr;
    }
}
/* VIP Uçak Bilgileri */
.vip-info {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.vip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 600;
}

.vip-header i {
    font-size: 1rem;
}

.vip-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.vip-label {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
}

.vip-value {
    font-size: 0.75rem;
    color: white;
    font-weight: 700;
}

.flight-type-badge.vip {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* =====================================================
   AIRPORT SYSTEM - Flightradar24 Style
   ===================================================== */

/* Airport Marker */
.airport-marker {
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 500;
}

.airport-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.airport-marker:hover .airport-icon {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.6);
}

.airport-icon i {
    font-size: 14px;
    color: white;
}

.airport-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4px;
    padding: 2px 6px;
    background: rgba(59, 130, 246, 0.9);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    pointer-events: none;
}

/* Airport Panel */
.airport-panel {
    position: fixed;
    top: 50%;
    right: -450px;
    transform: translateY(-50%);
    width: 420px;
    max-width: 90vw;
    max-height: 80vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-right: none;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    z-index: 10002;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.airport-panel.open {
    right: 0;
}

/* Panel Header */
.airport-panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.05);
    flex-shrink: 0;
}

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

.airport-code {
    font-size: 2rem;
    font-weight: 900;
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.airport-panel-close {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.airport-panel-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: scale(1.1);
}

.airport-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.airport-location {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.country-flag {
    font-size: 1.2rem;
}

/* Panel Body */
.airport-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Ýstatistikler */
.airport-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.airport-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.airport-stat:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.airport-stat i {
    font-size: 1.2rem;
    color: #60a5fa;
}

.airport-stat .stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.airport-stat .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.airport-stat .stat-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
}

/* Tabs */
.airport-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.airport-tab {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.airport-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.airport-tab.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

/* Tab Content */
.airport-tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Flight List */
.flight-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flight-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.flight-list-item.departure {
    border-left-color: #22c55e;
}

.flight-list-item.arrival {
    border-left-color: #3b82f6;
}

.flight-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.flight-list-time {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    min-width: 50px;
}

.flight-list-info {
    flex: 1;
}

.flight-list-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #60a5fa;
}

.flight-list-route {
    font-size: 0.75rem;
    color: #94a3b8;
}

.flight-list-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.flight-list-status.scheduled {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.flight-list-status.departed {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.flight-list-status.en-route {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.flight-list-status.landed {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.empty-flights {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 0.85rem;
}

/* Basit ok iþareti - test için */
.flight-arrow {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* SVG Uçak Ýkonu */
.flight-plane-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.flight-marker:hover .flight-plane-icon {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

/* Premium Flight Detail Panel */
.flight-panel {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%) translateX(-120%);
    width: 360px;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    z-index: 2000;
    color: white;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

.flight-panel.active {
    transform: translateY(-50%) translateX(0);
}

.flight-panel-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flight-number-group .flight-no {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1;
}

.flight-number-group .airline-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.close-panel {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
}

.close-panel:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

.flight-route-visual {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.route-point {
    flex: 1;
}

.point-code {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.point-city {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 2px 0 5px;
}

.point-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b82f6;
}

.route-line-container {
    flex: 2;
    padding: 0 15px;
}

.route-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.route-progress {
    height: 100%;
    background: #3b82f6;
    position: absolute;
    top: 0;
    left: 0;
}

.route-plane {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.flight-panel-content {
    padding: 0 20px 20px;
}

.flight-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.flight-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
}

.flight-stat-card.wide {
    grid-column: span 2;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
}

.text-gold {
    color: #fbbf24;
}

.vip-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.02) 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.flight-footer-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.f-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.f-stat i {
    font-size: 0.9rem;
    color: #3b82f6;
}

/* Pulse effect */
.flight-plane-icon {
    animation: plane-pulse 2s infinite ease-in-out;
}

@keyframes plane-pulse {
    0% { filter: drop-shadow(0 0 2px rgba(255,255,255,0.2)); }
    50% { filter: drop-shadow(0 0 12px rgba(255,255,255,0.6)); }
    100% { filter: drop-shadow(0 0 2px rgba(255,255,255,0.2)); }
}

/* GEMÝ SÝSTEMÝ - Age of History 3 Tarzý */
.ship-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ship-marker:hover {
    transform: scale(1.3);
    z-index: 9999 !important;
}

.ship-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transition: transform 0.15s ease;
}

/* AGE OF HISTORY 3 TARZI PREVIEW TOOLTIP */
.ship-preview-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 24, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    overflow: hidden;
}

.ship-marker:hover .ship-preview-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.country-flag {
    font-size: 1.8rem;
    line-height: 1;
}

.preview-title {
    display: flex;
    flex-direction: column;
}

.country-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.ship-type {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.preview-route {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-cargo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}

.cargo-icon {
    font-size: 1.1rem;
}

.cargo-name {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

/* GEMÝ DETAY PANELÝ */
.ship-panel {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%) translateX(-120%);
    width: 340px;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    z-index: 2000;
    color: white;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

.ship-panel.active {
    transform: translateY(-50%) translateX(0);
}

.ship-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ship-flag-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.big-flag {
    font-size: 2.2rem;
    line-height: 1;
}

.ship-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.ship-type-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.ship-route-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
}

.route-port {
    display: flex;
    align-items: center;
    gap: 10px;
}

.port-flag {
    font-size: 1.4rem;
}

.port-city {
    font-size: 1rem;
    font-weight: 600;
}

.port-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.route-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #3b82f6;
}

.progress-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.ship-cargo-section {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cargo-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cargo-icon-big {
    font-size: 1.5rem;
}

.cargo-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.cargo-amount {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

.ship-stats {
    display: flex;
    justify-content: space-around;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ship-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.ship-stat i {
    color: #3b82f6;
}

/* LÝMAN SÝSTEMÝ */
.port-marker {
    cursor: pointer;
}

.port-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.port-marker:hover .port-icon {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.port-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 17, 23, 0.9);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    margin-top: 4px;
}

/* Liman Paneli */
.port-panel {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) translateX(120%);
    width: 320px;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    z-index: 2000;
    color: white;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

.port-panel.active {
    transform: translateY(-50%) translateX(0);
}

.port-panel-header {
    padding: 20px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.15) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.port-panel-header .close-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
}

.port-panel-header .close-panel:hover {
    color: #ff4d4d;
}

.port-code {
    font-size: 2rem;
    font-weight: 800;
    color: #0ea5e9;
    letter-spacing: 2px;
}

.port-name {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 4px;
}

.port-location {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.port-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 16px 12px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.port-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.port-stat i {
    color: #0ea5e9;
    font-size: 1rem;
}

.port-stat .stat-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.port-stat .stat-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.port-tabs {
    display: flex;
    padding: 12px;
    gap: 8px;
}

.port-tab {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.port-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.port-tab.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-color: transparent;
}

.port-ship-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0 12px 12px;
}

.ship-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #0ea5e9;
    border-radius: 6px;
    margin-bottom: 8px;
}

.ship-list-item.departure {
    border-left-color: #22c55e;
}

.ship-list-item.arrival {
    border-left-color: #f97316;
}

.ship-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0ea5e9;
    min-width: 40px;
}

.ship-info {
    flex: 1;
}

.ship-code {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.ship-dest {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.ship-cargo {
    font-size: 1.2rem;
}

.no-ships {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* DENÝZ ROTALARI */
.sea-route-line {
    pointer-events: none;
}

.route-label {
    pointer-events: none;
}

.route-label-text {
    background: rgba(13, 17, 23, 0.85);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    border-left: 3px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Gemi tooltip rota bilgisi */
.preview-route-name {
    margin-top: 6px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.2);
    border-left: 2px solid;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
}

.ship-route-badge {
    margin: 0 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ship-route-badge i {
    font-size: 0.9rem;
}

/* ROTA ETÝKETLERÝ - ÇÝZGÝYE PARALEL VE SÝLÝK */
.route-label-text {
    background: transparent;
    color: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    transform-origin: center center;
    pointer-events: none;
}

.route-label.hovered .route-label-text {
    color: white;
    background: rgba(13, 17, 23, 0.85);
    border-left: 2px solid var(--route-color, #0ea5e9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.sea-route-line {
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ROTA SÝSTEMÝ - MÝNÝMAL VE AKICI */
.sea-route-line {
    cursor: pointer;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.route-label {
    pointer-events: none;
}

.route-label-text {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.25);
    background: transparent;
    padding: 2px 6px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: color 0.4s ease, background 0.4s ease;
    transform-origin: center center;
}

.route-label.hovered .route-label-text {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

/* ROTA ÝSÝMLERÝ - ÞIK VE MODERN */
.route-label-text {
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.3) !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    white-space: nowrap !important;
    text-shadow: 
        0 0 4px rgba(0,0,0,0.8),
        0 1px 2px rgba(0,0,0,0.5) !important;
    transition: all 0.3s ease !important;
}

.route-label.hovered .route-label-text,
.route-label-text:hover {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 
        0 0 8px rgba(0,0,0,0.9),
        0 0 20px var(--route-color, #0ea5e9) !important;
}

/* ROTA ÝSÝMLERÝ - SÝMETRÝK VE SADE */
.route-label {
    pointer-events: none !important;
}

.route-label-text {
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.2) !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    text-align: center !important;
    display: block !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
    transition: color 0.3s ease !important;
}

.route-label.hovered .route-label-text {
    color: rgba(255, 255, 255, 0.75) !important;
}
