body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    height: 100vh;
    overflow: hidden;
}

h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.container {
    position: relative;
    height: 100vh;
    width: 100%;
}

/* Floating panels */
.floating-panel {
    position: fixed;
    top: 20px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.title-panel {
    left: 20px;
}

.time-panel {
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-panel {
    bottom: 20px;
    left: 20px;
    top: auto;
    max-width: 300px;
}

.info-text {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

.time-panel label {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.time-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-selectors {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-button {
    padding: 8px 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    min-width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    background-color: #eee;
}

.nav-button:active {
    background-color: #ddd;
}

.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

#traffic-map {
    width: 100%;
    height: auto;
    transform-origin: center center;
    transition: transform 0.2s ease-in-out;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 5px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
}

button:hover {
    background-color: #eee;
}

.zoom-controls button {
    padding: 8px 12px;
    font-size: 18px;
    font-weight: bold;
    min-width: 40px;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Loading overlay and spinner */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#traffic-map {
    transition: opacity 0.3s ease-in-out;
}