/* Wave 10: Street Map Canvas — Page Layout Styles */

.street-map-page {
    display: grid;
    grid-template-columns: 300px 1fr 320px;
    grid-template-rows: 1fr;
    height: calc(100vh - 56px); /* Subtract navbar height */
    gap: 0;
    overflow: hidden;
}

/* ── Sidebars ── */
.map-sidebar {
    background: #f8f9fa;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid #dee2e6;
}

.map-sidebar-right {
    border-right: none;
    border-left: 1px solid #dee2e6;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Main Map Area ── */
.map-main {
    position: relative;
    overflow: hidden;
}

/* ── Search Results ── */
.search-results {
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.search-result-item:hover { background: #e9ecef; }

.result-title { font-size: 13px; font-weight: 600; }
.result-subtitle { font-size: 11px; color: #6c757d; }

/* ── Entity Detail Card ── */
.entity-detail-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.entity-detail-header {
    padding: 8px 12px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.entity-detail-body {
    padding: 8px 12px;
    max-height: 200px;
    overflow-y: auto;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label { color: #6c757d; }
.detail-value { font-weight: 600; }

.entity-detail-actions {
    padding: 8px 12px;
    display: flex;
    gap: 6px;
    border-top: 1px solid #eee;
}

/* ── Timeline Strip ── */
.timeline-strip {
    max-height: 250px;
    overflow-y: auto;
}

.timeline-item {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.timeline-content { flex: 1; }

.timeline-title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.timeline-time {
    font-size: 10px;
    color: #adb5bd;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .street-map-page {
        grid-template-columns: 260px 1fr 280px;
    }
}

@media (max-width: 992px) {
    .street-map-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    .map-sidebar { border-right: none; border-bottom: 1px solid #dee2e6; }
    .map-sidebar-right { border-left: none; border-top: 1px solid #dee2e6; }
    .map-main { min-height: 400px; }
}
