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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
}

#map {
    width: 100vw;
    height: 100vh;
}

/* Hamburger Menu */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background: #f5f5f5;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Layer Panel */
.layer-panel {
    position: fixed;
    top: 20px;
    right: -320px;
    width: 250px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 20px;
    transition: right 0.3s ease;
}

.layer-panel.active {
    right: 80px;
}

.layer-panel h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.layer-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.layer-controls label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.layer-controls label:hover {
    background: #f5f5f5;
}

.layer-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.layer-controls span {
    font-size: 14px;
    color: #333;
}

.info-panel {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.info-panel p {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.info-panel span {
    font-weight: 600;
    color: #333;
}

#connectionStatus {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-connected {
    background: #d4edda;
    color: #155724;
}

.status-disconnected {
    background: #f8d7da;
    color: #721c24;
}

/* Leaflet Customization */
.leaflet-popup-content {
    margin: 12px;
}

.leaflet-marker-icon.default-colour-marker {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

.default-colour-marker path {
    stroke-width: 1;
}

.popup-content h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.popup-content p {
    margin: 4px 0;
    font-size: 13px;
    color: #666;
}

.popup-content strong {
    color: #333;
}

.incident-planned {
    color: #0066cc;
}

.incident-unplanned {
    color: #cc0000;
}

/* Hexbin Styles */
.hexbin-cell {
    fill-opacity: 0.6;
    stroke: white;
    stroke-width: 1;
}

/* Custom Marker Colours */
.marker-planned {
    background-color: #0066cc;
}

.marker-unplanned {
    background-color: #cc0000;
}

/* Hack for getting hexagons to not be clipped outside the D3 bounding box */
svg {
    overflow: visible;
}
