/* Harita Sayfası */
.map-container {
    position: relative;
    height: calc(100vh - 65px);
    display: flex;
    flex-direction: column;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(160deg, #0D1B3E 0%, #1A2A4A 50%, #243B5C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    margin-bottom: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    animation: pulse 2s infinite;
}

.splash-title {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.splash-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-bottom: 24px;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #D4A847;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#map {
    flex: 1;
    width: 100%;
    z-index: 1;
}

/* Durum Çubuğu */
.status-bar {
    background: var(--navy, #1A2A4A);
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.9rem;
    z-index: 10;
}

.status-bar.success {
    background: #2E7D32;
}

.status-bar.error {
    background: #C62828;
}

/* Çekici Listesi Paneli */
.driver-list {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    max-height: 50vh;
    overflow-y: auto;
    z-index: 20;
    transition: transform 0.3s ease;
}

.driver-list.hidden {
    transform: translateY(100%);
}

.driver-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
}

.driver-list-header h3 {
    font-size: 1rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    padding: 4px 8px;
}

/* Çekici Kartı */
.driver-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor: pointer;
}

.driver-card:hover {
    background: #f0f4ff;
}

.driver-card.active {
    background: #e3f2fd;
    border-left: 3px solid #1A2A4A;
}

.driver-card:last-child {
    border-bottom: none;
}

.driver-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4A847, #1A2A4A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.driver-info {
    flex: 1;
}

.driver-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.driver-meta {
    font-size: 0.8rem;
    color: var(--gray);
}

.driver-distance {
    font-size: 0.75rem;
    color: #2E7D32;
    font-weight: 500;
    margin-top: 2px;
}

.driver-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-phone {
    background: #1A2A4A;
    color: white;
}

/* Liste Toggle Butonu */
.toggle-list-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 15;
    transition: transform 0.2s;
}

.toggle-list-btn:hover {
    transform: scale(1.05);
}

/* Leaflet Popup Özelleştirme */
.popup-content {
    text-align: center;
    min-width: 180px;
}

.popup-content h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.popup-meta {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.popup-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.popup-btn {
    padding: 8px 14px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.popup-btn-whatsapp {
    background: #25d366;
}

.popup-btn-phone {
    background: #1A2A4A;
}

/* Nav outline variant */
.nav-link-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.nav-link-outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* Responsive */
@media (min-width: 769px) {
    .driver-list {
        position: absolute;
        top: 50px;
        left: 20px;
        bottom: auto;
        right: auto;
        width: 350px;
        max-height: calc(100vh - 180px);
        border-radius: var(--radius);
    }

    .driver-list.hidden {
        transform: translateX(-120%);
    }

    .driver-list-header {
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .toggle-list-btn {
        bottom: auto;
        top: 50px;
        left: 20px;
        right: auto;
    }
}

/* Mobil Özelleştirmeler */
@media (max-width: 768px) {
    .map-container {
        height: calc(100vh - 56px);
    }

    .header .container {
        padding: 0 12px;
    }

    .header {
        padding: 8px 0;
    }

    .status-bar {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .driver-list {
        max-height: 45vh;
        border-radius: 16px 16px 0 0;
    }

    .driver-list-header {
        padding: 12px 16px;
        border-radius: 16px 16px 0 0;
    }

    .driver-card {
        padding: 12px 16px;
        gap: 10px;
    }

    .driver-avatar {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .driver-name {
        font-size: 0.9rem;
    }

    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .toggle-list-btn {
        bottom: 14px;
        right: 14px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .popup-content {
        min-width: 160px;
    }

    .popup-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}
