* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #040C1A;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==================== HEADER ==================== */
#map-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(4, 12, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#map-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

#map-logo:hover {
    opacity: 1;
}

#map-logo svg {
    width: 48px;
    height: 21px;
}

#map-title {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* ==================== MAP ==================== */
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ==================== MARKERS ==================== */
.marker-harbor {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #AFC3D5;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.marker-harbor:hover {
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(175, 195, 213, 0.5);
}

.marker-ocean {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3A7ABB;
    border: 2px solid rgba(80, 160, 220, 0.4);
    cursor: pointer;
    animation: pulse-pin 1.5s ease infinite;
}

@keyframes pulse-pin {
    0%, 100% { box-shadow: 0 0 0 0 rgba(58, 122, 187, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(58, 122, 187, 0); }
}

/* ==================== POPUPS ==================== */
.mapboxgl-popup-content {
    background: rgba(9, 19, 39, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px !important;
    padding: 16px 18px !important;
    color: white;
    font-family: 'Inter', sans-serif;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.mapboxgl-popup-tip {
    border-top-color: rgba(9, 19, 39, 0.92) !important;
}

.mapboxgl-popup-close-button {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 18px;
    padding: 4px 8px !important;
    right: 4px !important;
    top: 4px !important;
}

.mapboxgl-popup-close-button:hover {
    color: white !important;
    background: transparent !important;
}

.popup-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.popup-coords {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.popup-link {
    display: block;
    text-align: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}

.popup-link:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ==================== SWELL LOADING ==================== */
.swell-loading {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(4, 12, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 0.5px;
    z-index: 10;
    transition: opacity 0.5s;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.swell-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 768px) {
    .marker-harbor {
        width: 10px;
        height: 10px;
    }
}
