/* ── HousingShield Map — Frontend Styles ── */

/* ── Wrap ── */
.hs-map-wrap {
    width: 100%;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Toggle Buttons ── */
.hs-map-toggles {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.hs-toggle {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 1.5px solid rgba(13, 31, 60, 0.2);
    background: transparent;
    color: #5a6370;
    transition: all 0.2s ease;
    font-family: inherit;
}

.hs-toggle:hover,
.hs-toggle.active {
    background: #0d1f3c;
    border-color: #0d1f3c;
    color: #e0c47a;
}

/* ── Map Canvas ── */
.hs-map-canvas {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(13, 31, 60, 0.10);
}

/* ── Leaflet Overrides ── */
.leaflet-container {
    font-family: 'DM Sans', -apple-system, sans-serif !important;
}

.leaflet-control-zoom a {
    color: #0d1f3c !important;
    font-weight: 700 !important;
}

.leaflet-control-zoom a:hover {
    background: #f0f7f4 !important;
    color: #1e5c3f !important;
}

/* ── Popup Wrapper ── */
.hs-popup .leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(13, 31, 60, 0.28) !important;
    border: 1px solid rgba(201, 168, 76, 0.3) !important;
}

.hs-popup .leaflet-popup-content {
    margin: 0 !important;
    width: 230px !important;
}

.hs-popup .leaflet-popup-tip-container {
    display: none !important;
}

.hs-popup .leaflet-popup-close-button {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 18px !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 10;
}

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

/* ── Popup Inner ── */
.hs-popup-inner {
    background: #0d1f3c;
}

.hs-popup-head {
    background: linear-gradient(135deg, #0d1f3c, #133a28);
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.hs-popup-city {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
    line-height: 1.2;
}

.hs-popup-type {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e0c47a;
}

.hs-popup-body {
    padding: 10px 16px 14px;
    background: rgba(255, 255, 255, 0.04);
}

.hs-popup-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.hs-pk {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.hs-pv {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #e0c47a;
}

.hs-popup-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.5;
}

/* ── Legend ── */
.hs-legend {
    background: rgba(13, 31, 60, 0.92);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hs-legend-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e0c47a;
    margin-bottom: 10px;
}

.hs-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 7px;
}

.hs-legend-row:last-child {
    margin-bottom: 0;
}

.hs-legend-dot {
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    opacity: 0.9;
}
