/* Map-specific styles */

.map-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.map-header {
    background: #294d73;
    padding: 20px 40px;
    border-bottom: 3px solid #ffcd00;
    flex-shrink: 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left h1 {
    font-size: 2em;
    color: #ffffff;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.header-left p {
    color: #e0e0e0;
    font-size: 1em;
    margin: 0;
}

.header-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffcd00;
}

.location-btn {
    padding: 10px;
    background: #ffcd00;
    color: #192e45;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-btn:hover {
    background: #ffda3d;
    transform: scale(1.05);
}

.map-controls {
    background: #1d3a54;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2d4f6c;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 15px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b8c9d9;
    cursor: pointer;
    font-size: 0.95em;
}

.control-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.server-count {
    color: #ffcd00;
    font-weight: 600;
    font-size: 0.95em;
}

#map {
    flex: 1;
    width: 100%;
    min-height: 400px;
}

.map-legend {
    position: absolute;
    bottom: 60px;
    left: 20px;
    background: rgba(29, 58, 84, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.map-legend h3 {
    color: #ffffff;
    margin: 0 0 12px 0;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    color: #b8c9d9;
    font-size: 0.9em;
}

.legend-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

.server-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: #1d3a54;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.server-panel.show {
    right: 0;
}

.panel-header {
    background: #294d73;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffcd00;
    flex-shrink: 0;
}

.panel-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.2em;
}

.close-btn {
    background: transparent;
    border: none;
    color: #b8c9d9;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ffffff;
}

.panel-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Scrollbar for panel */
.panel-content::-webkit-scrollbar {
    width: 8px;
}

.panel-content::-webkit-scrollbar-track {
    background: #152736;
}

.panel-content::-webkit-scrollbar-thumb {
    background: #294d73;
    border-radius: 4px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: #3a5f87;
}

/* Responsive styles */
@media (max-width: 768px) {
    .map-header {
        padding: 15px 20px;
    }

    .header-left h1 {
        font-size: 1.5em;
    }

    .header-left p {
        font-size: 0.9em;
    }

    .map-controls {
        padding: 12px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .server-panel {
        width: 100%;
        right: -100%;
    }

    .server-panel.show {
        right: 0;
    }

    .map-legend {
        bottom: 80px;
        left: 10px;
        padding: 12px 15px;
        font-size: 0.85em;
    }

    .legend-marker {
        width: 14px;
        height: 14px;
    }
}

/* Info window styling */
.gm-style .gm-style-iw-c {
    background: #1d3a54 !important;
    border-radius: 8px !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
}

.gm-style .gm-style-iw-t::after {
    background: #1d3a54 !important;
}

/* Google Maps UI adjustments */
.gm-style button {
    background: #1d3a54 !important;
}

.gm-style button:hover {
    background: #294d73 !important;
}

