/* ==========================================
   CITYSCAPE CHART
   ========================================== */

.cityscape-chart {
    padding: 8px 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cityscape-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.cityscape-title {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
}

.cityscape-level-label {
    font-size: 13px;
    color: #555;
}

.cityscape-level-label select {
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    margin-left: 4px;
}

.cityscape-source {
    font-size: 11px;
    color: #95a5a6;
    margin-bottom: 12px;
}

.cityscape-loading {
    padding: 40px 20px;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

.cityscape-row {
    margin-bottom: 16px;
}

.cityscape-row-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
}

.cityscape-row-empty,
.cityscape-row-note {
    font-size: 12px;
    color: #bdc3c7;
    font-style: italic;
}

.cityscape-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.cityscape-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    min-height: 80px;
    padding: 4px 0;
    min-width: max-content;
}

.cityscape-bar {
    flex: 0 0 8px;
    width: 8px;
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
    border-radius: 2px 2px 0 0;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cityscape-bar:hover {
    background: linear-gradient(180deg, #2980b9 0%, #21618c 100%);
}

.cityscape-bar--zero {
    background: #e9ecef;
    cursor: default;
}

.cityscape-bar--zero:hover {
    background: #e9ecef;
}

.cityscape-tooltip {
    position: fixed;
    background: #2c3e50;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 20000;
    max-width: 200px;
    word-break: break-word;
}

.cityscape-tooltip.show {
    opacity: 1;
}

/* Small screens */
@media (max-width: 480px) {
    .cityscape-bar {
        flex: 0 0 6px;
        width: 6px;
    }
}