
* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #071019;
    color: #e9f3f8;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

header {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: #07131d;
    border-bottom: 1px solid #1d3949;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
}

.subtitle {
    margin-top: 2px;
    color: #56d7ff;
    font-size: 12px;
    letter-spacing: 1px;
}

.header-stats {
    display: flex;
    gap: 20px;
    color: #a8c0ce;
    font-size: 13px;
}

#layout {
    height: calc(100% - 68px);
    display: flex;
}

#sidebar {
    width: 330px;
    flex: 0 0 330px;
    overflow-y: auto;
    background: #091722;
    border-right: 1px solid #1c3949;
}

.section {
    padding: 17px 18px;
    border-bottom: 1px solid #17303e;
}

.section h2 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #65dcff;
}

.section h3 {
    margin: 0 0 12px;
    font-size: 13px;
    color: #8ce6ff;
    letter-spacing: 1px;
}

.intro {
    margin: 0;
    color: #aabdc8;
    font-size: 13px;
    line-height: 1.55;
}

label {
    display: block;
    padding: 5px 0;
    color: #c8d7df;
    font-size: 13px;
}

input[type="checkbox"] {
    margin-right: 8px;
}

#searchBox {
    width: 100%;
    padding: 10px;
    color: white;
    background: #102532;
    border: 1px solid #295064;
    border-radius: 5px;
    outline: none;
}

.searchItem {
    padding: 8px;
    margin-top: 5px;
    background: #10222e;
    cursor: pointer;
    font-size: 12px;
}

.searchItem:hover {
    background: #173748;
}

button {
    border: 1px solid #35b9e8;
    background: #0e6686;
    color: white;
    padding: 10px 14px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #0f7fa6;
}

.analysisBox {
    margin-top: 12px;
    color: #adc3ce;
    font-size: 12px;
    line-height: 1.5;
}

.data-note {
    color: #7893a2;
    line-height: 1.5;
    font-size: 11px;
}

#mapWrap {
    flex: 1;
    position: relative;
    min-width: 0;
}

#map {
    width: 100%;
    height: 100%;
    background: #0b1117;
}

#loading {
    position: absolute;
    z-index: 900;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 15px;
    border-radius: 5px;
    background: rgba(5,17,25,.9);
    border: 1px solid #31566a;
    display: none;
}

#legend {
    position: absolute;
    z-index: 900;
    right: 12px;
    bottom: 25px;
    background: rgba(6,18,27,.92);
    border: 1px solid #294654;
    border-radius: 6px;
    padding: 10px 13px;
    font-size: 11px;
}

.line {
    display: inline-block;
    width: 25px;
    height: 3px;
    margin-right: 7px;
    vertical-align: middle;
}

.operational {
    background: #21a6ff;
}

.construction {
    background: #ffd84a;
}

.planned {
    background: #ff9f32;
}

.proposed {
    background: #cf63ff;
}

.microwave {
    background: #9ba7ae;
}

#drawer {
    width: 0;
    flex: 0 0 0;
    overflow: hidden;
    position: relative;
    background: #0b1923;
    border-left: 1px solid #234352;
    transition: width .2s ease, flex-basis .2s ease;
}

#drawer.open {
    width: 360px;
    flex-basis: 360px;
}

#drawerContent {
    width: 360px;
    padding: 24px 20px;
    overflow-y: auto;
    height: 100%;
}

#drawerClose {
    position: absolute;
    right: 9px;
    top: 7px;
    padding: 2px 9px;
    font-size: 22px;
    background: transparent;
    border: 0;
}

.detailRow {
    padding: 9px 0;
    border-bottom: 1px solid #1b3542;
}

.detailLabel {
    display: block;
    font-size: 10px;
    color: #66899b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detailValue {
    display: block;
    margin-top: 3px;
    color: #e8f3f8;
    font-size: 14px;
}

.score {
    font-size: 35px;
    font-weight: bold;
    color: #52e0a0;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: #0e202b;
    color: white;
}

@media(max-width: 900px) {

    #sidebar {
        width: 245px;
        flex-basis: 245px;
    }

    .header-stats {
        display: none;
    }

    #drawer.open {
        width: 300px;
        flex-basis: 300px;
    }

    #drawerContent {
        width: 300px;
    }
}

