body {
    margin: 0;
    padding: 0;
    font-family: 'Titillium Web', sans-serif;
}

/* Map */

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}


/* Sidebar Panel */

#info {
    z-index: 1000;
    position: absolute;
    width: 400px;
    height: 100vh;          /* fill full screen height */
    top: 0;
    left: 0;
    padding: 20px;
    background: #072644;
    color: white;

    overflow-y: auto;       /* scroll inside sidebar */
    box-sizing: border-box; /* prevents padding overflow */

    border-right: 2px solid rgba(255,255,255,0.1);
}

#info {
    box-shadow: 3px 0px 10px rgba(0,0,0,0.3);
}


/* Title */

#title {
    font-size: 26px;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 12px;
}

#title span {
    font-size: 14px;
    float: right;
    margin-top: 15px;
}


/* Description */

.description {
    text-align: left;
    color: #ced4da;
    font-size: 14px;
    line-height: 1.4;
}


/* Section spacing */

#time-control,
#finaled-control,
#filter-control,
#chart-section {
    margin-top: 18px;
}


/* Labels */

label {
    font-size: 14px;
    font-weight: bold;
}


/* Sliders */

#year-slider,
#finaled-slider {
    width: 100%;
    margin-top: 6px;
    cursor: pointer;
}


/* Dropdown Menus */

#permit-filter,
#dwelling-filter,
#neigh-filter,
#village-filter {
    width: 100%;
    padding: 6px;
    margin-top: 6px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: none;
    font-size: 13px;
}


/* Chart Section */

#chart-section {
    background: #495057;
    padding: 12px;
    border-radius: 6px;
}

#chart-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}

#unitsChart {
    width: 100%;
    height: 250px;
}


/* Legend */

.legend-key {
    display: inline-block;
    border-radius: 20%;
    width: 10px;
    height: 10px;
    margin-right: 5px;
}

#legend {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 160px;
    background: white;
    margin-right: 20px;
    margin-bottom: 40px;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.break {
    position: relative;
    margin-bottom: 6px;
}

.dot {
    display: inline-block;
    margin-right: 6px;
    border-radius: 50%;
    opacity: 0.7;
}

.dot-label {
    display: inline-block;
    font-style: italic;
}

/* Cloropleth/Population Legend */

.legend-key{
    display:inline-block;
    width:14px;
    height:14px;
    margin-right:6px;
    border-radius:2px;
}

#pop-legend{
    position: absolute;
    bottom: 40px;
    left: 420px; /* just to the right of the sidebar */
    width: 180px;

    background: white;
    padding: 12px;

    border-radius: 6px;
    font-size: 14px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.2);

    display: none; /* hidden by default */
}


/* Heatmap Legend */

.legend-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.legend-subtitle {
    font-size: 14px;
    margin-top: 6px;
    margin-bottom: 4px;
}

.legend-gradient {
    height: 10px;
    width: 120px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.gradient-blue {
    background: linear-gradient(to right, transparent, #4DA3FF, #1f78ff, #0033cc);
}

.gradient-red {
    background: linear-gradient(to right, transparent, #FF6B6B, #ff3b3b, #b30000);
}

.legend-scale {
    font-size: 13px;
    margin-top: 6px;
    color: #444;
}

/* Heatmap Toggle Button */

#heat-toggle {

    width: 100%;
    margin-top: 12px;
    margin-bottom: 6px;

    background: #e2980e;
    color: white;

    border: none;
    border-radius: 5px;

    padding: 8px;

    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}

#heat-toggle:hover {
    background: #c7860d;
}

#time-control{
    margin-top: 14px;
}


/* Population Toggle Button */

#pop-toggle {

    width: 100%;
    margin-top: 12px;
    margin-bottom: 6px;

    background: #64dd13;
    color: white;

    border: none;
    border-radius: 5px;

    padding: 8px;

    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}

#pop-toggle:hover {
    background: #56be10;
}

#time-control{
    margin-top: 14px;
}


/* Reset Values Button */
#reset {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 6px;

    background: #4dabf7;
    color: white;

    border: none;
    border-radius: 5px;

    padding: 8px;

    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}


#reset:hover {
    background: #339af0; /* similar hover effect like the title link */
}


/* Footer */

#footer {
    margin-top: 18px;
    font-size: 12px;
    color: #a1ffff;
    text-align: center;
}

#footer a {
    color: #a1ffff;
}