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

html, body {
    width: 100%;
    height: 100%;
    min-height: 600px;
    background: transparent;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

#sdk-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

/* Popup chrome is handled by shared poi-popup-container styles (injected via JS) */

/* Close button */
.incident-popup-container .maplibregl-popup-close-button {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 20px;
    color: #9ca3af;
    z-index: 1;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.incident-popup-container .maplibregl-popup-close-button:hover {
    color: #374151;
}

/* Incident popup card */
.incident-popup {
    padding: 16px 20px 14px;
    min-width: 220px;
    max-width: 300px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.incident-popup-title {
    font-size: 16px;
    color: #111827;
    font-weight: 700;
    margin-bottom: 12px;
    margin-right: 20px;
    line-height: 1.3;
}

.incident-popup-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
}

.incident-popup-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 1px;
    color: #9ca3af;
}

/* ---------------------------------------------------------------------------
   Live Traffic Timer — floating pill, bottom-left of map
   --------------------------------------------------------------------------- */

#live-traffic-timer {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 1000;
    pointer-events: none;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    color: #333;
    transition: opacity 0.3s ease;
}

/* Pulsing green dot */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    position: relative;
    flex-shrink: 0;
}

.live-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.3);
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 0; }
}

.live-label {
    font-weight: 600;
    color: #22c55e;
}

.live-separator {
    color: #ccc;
}

.live-time {
    color: #888;
    font-weight: 400;
}

