/* World Map Section Styles */
.world-map-section {
    padding: 60px 20px;
    background: #ffffff;
    position: relative;
}

.map-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

.map-header {
    text-align: center;
    margin-bottom: 40px;
}

.map-header h2 {
    color: var(--primary-gradient-start);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.map-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.map-controls {
    position: relative;
    margin: 0 auto 1rem;
    z-index: 1000;
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eef2f6;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-gradient-start);
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 29, 81, 0.1);
}

.map-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #eef2f6;
    color: var(--primary-gradient-start);
}

.filter-btn.active {
    background: var(--primary-gradient-start);
    color: #ffffff;
}

#world-map {
    height: 800px;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.info-window {
    padding: 20px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-window h3 {
    color: var(--primary-gradient-start);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.info-window p {
    color: #555;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.direction-btn {
    display: inline-block;
    background: var(--primary-gradient-start);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: 15px;
}

.direction-btn:hover {
    background: var(--primary-gradient-middle);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(11, 29, 81, 0.2);
}

.custom-marker {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.15);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .world-map-section {
        padding: 40px 15px;
    }

    .map-container {
        padding: 0 10px;
    }

    .map-header h2 {
        font-size: 2rem;
    }

    .map-header p {
        font-size: 1rem;
    }

    .map-controls {
        width: 95%;
        padding: 10px 20px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    #world-map {
        height: 600px;
    }

    .legend {
        gap: 2rem;
    }

    .legend-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .map-header h2 {
        font-size: 1.8rem;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }

    #world-map {
        height: 500px;
    }

    .legend {
        gap: 1.5rem;
    }

    .legend-item span {
        font-size: 0.8rem;
    }
}

/* Custom Marker Styles */
.marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

.marker-dot.active {
    background: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.3);
}

.marker-dot.coming {
    background: #FFC107;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.3);
}

.marker-dot .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Cluster Marker Styles */
.custom-cluster-marker {
    background: none;
}

.cluster-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient-start);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cluster-marker.small {
    background: linear-gradient(45deg, #4CAF50, #81C784);
    transform: scale(0.9);
}

.cluster-marker.medium {
    background: linear-gradient(45deg, #2196F3, #64B5F6);
    transform: scale(1);
}

.cluster-marker.large {
    background: linear-gradient(45deg, #FF5722, #FF8A65);
    transform: scale(1.1);
}

.cluster-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Station Popup Styles */
.station-popup {
    padding: 15px;
    min-width: 250px;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.status-badge.active {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-badge.coming {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.popup-content {
    margin: 10px 0;
}

.popup-content p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-content i {
    color: var(--primary-gradient-start);
    width: 16px;
}

.legend {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.active {
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.dot.coming-soon {
    background: #FFC107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.legend-item span {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
} 