/* demo.css - Premium Full-Screen Map Preview Style */

:root {
    --bg-primary: #0a0f1d;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --color-accent: #6366f1;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.2s ease;
}
/* 
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: var(--font-sans);
    overflow: hidden;
} */

#map {
    max-width: 1440px;
    width: 100%;
    height: 80vh;
    background: #fff; 
    /* Match blueprint background color */
}

/* Custom Centered Permanent Label Badges */
.leaflet-tooltip-own {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    color: #fff !important;
    font-family: var(--font-sans) !important;
    font-weight: 600 !important;
    font-size: 0.72rem !important;
    padding: 2px 6px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-tooltip-left:before, .leaflet-tooltip-right:before {
    border: none !important;
}

/* Glassmorphism Dark-Mode Popup Styling */
.leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
    font-family: var(--font-sans) !important;
    padding: 0 !important;
}

.leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.leaflet-popup-content {
    margin: 12px 16px !important;
    width: 220px !important;
    font-size: 0.85rem;
    line-height: 1.5;
}

.leaflet-popup-close-button {
    color: var(--text-secondary) !important;
    padding: 8px 8px 0 0 !important;
    font-size: 16px !important;
}

.leaflet-popup-close-button:hover {
    color: #fff !important;
}

/* Custom Popup Content Layout */
.popup-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #a5b4fc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.popup-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.popup-row:last-child {
    border-bottom: none;
}

.popup-label {
    color: var(--text-secondary);
}

.popup-value {
    font-weight: 500;
    color: var(--text-primary);
}

.popup-value.mono {
    font-family: monospace;
    font-size: 0.75rem;
}

.popup-desc {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.15);
    padding: 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    word-break: break-word;
}


/* #chm-map-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 1400px;
}

#chm-map-image {
    display: block;
    width: 100%;
    height: auto;
}

#chm-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.house {
    fill: rgba(0, 102, 255, 0.20);
    stroke: #0066ff;
    stroke-width: 2;
    cursor: pointer;
}

.house:hover {
    fill: rgba(255, 0, 0, 0.25);
} */