html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#map-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #2c3e50;
    color: #ecf0f1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    flex-shrink: 0;
    flex-wrap: wrap;
}

#toolbar h1 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.toolbar-sep {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.25);
}

.layer-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.layer-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.layer-toggle input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #3498db;
}

.layer-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

#map {
    flex: 1;
    background: #a8d4f5;
}

#status-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 16px;
    background: #34495e;
    color: #bdc3c7;
    font-size: 0.78rem;
    flex-shrink: 0;
}

#status-bar span {
    white-space: nowrap;
}

.banner {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 90%;
    text-align: center;
}

/* Custom markers */
.airport-icon, .port-icon, .city-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 11px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
    border-radius: 6px;
}

.leaflet-popup-content {
    margin: 10px 14px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.popup-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.popup-type {
    color: #7f8c8d;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
