/* Primary Elements */ 

:root {
    --light-bg: #F8F9FA;
    --p48-pink: #FF2DAA;
    --p48-blue: #1F2A8A;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --neon: 0 0 15px rgba(255, 45, 170, 0.3); 
}

*, *::before, *::after {
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html, body {
    height: 100%;
}

body {
    color: var(--text-primary);
    background: var(--light-bg); 
    margin: 0;
    display: grid; 
    grid-template-rows: auto 1fr;
    height: 100vh; 
    font-family: 'Montserrat', Arial; 
}

/* Header styling */ 

header { 
    height: 70px;
    padding: 0 40px; 
    display: flex; 
    background-color: #FFFFFF; 
    flex-direction: row; 
    align-items: center;
    justify-content: space-between; 
    border-bottom: 2px solid var(--p48-blue); 
    z-index: 1000; 
    box-shadow: 0 2px 110px rgba(0, 0, 0, 0.2)
}

header img {
    max-height: 50px; 
}

header nav ul {
    display: flex; 
    flex-direction: row; 
    gap: 30px; 
    list-style-type: none; 
}

/* Button Handling */ 
header nav ul li {
    font-size: 1.1em;
    font-weight: 600; 
    text-transform: uppercase; 
    cursor: pointer; 
    padding: 5px; 
    border-radius: 8px; 
}

header nav ul li:hover {
    transition: all 0.3s ease-out; 
    transform: scale(1.1);
    background-color: var(--p48-pink);
    color: #FFFFFF;
    border: 2px solid var(--p48-blue);
    box-shadow: var(--neon);
}

header nav ul li:active {
    transform: scale(0.9); 
}

/* Map Styling */ 
#map {
    height: calc(100vh - 70px); 
    width: 100%; 
    background: var(--light-bg); 
}

/* Aside Styling */ 
aside {
    width: 320px; 
    height: calc(100vh - 70px); 
    z-index: 1000;
    background: #FFFFFF; 
    position: fixed;   
    left: -320px; 
    padding: 40px 15px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: left 0.5s ease-out; 
    border-bottom-right-radius: 10px; 
    border-top-right-radius: 10px; 
}

/* Collapsible Aside */ 

aside.open {
    left: 0; 
}

.toggle-button {
    position: absolute; 
    right: -40px;  
    top: 20px;
    width: 40px;  
    height: 50px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border: none; 
    color: white; 
    background: var(--p48-blue);
    cursor: pointer; 
    border-radius: 0 12px 12px 0;
    font-size: 1.8em;
    box-shadow: 5px 0 10px rgba( 31, 42, 138, 0.2);
}

.open .arrow {
    display: inline-block; 
    transform: rotate(180deg); 
    transition: transform 0.5s; 
}

/* Collapsible Filters Styling */
.section-reveal {
    display: flex; 
    flex-direction: column; 
}

.reveal {
    padding: 15px 20px; 
    border-radius: 10px; 
    width: 100%; 
    color: var(--p48-blue); 
    background-color: var(--light-bg); 
    border: 1px solid rgba(31, 42, 138, 0.1); 
    cursor: pointer; 
    text-align: center; 
    font-weight: bold; 
    font-size: 1.1em; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin: 8px 0 0 8px; 
    transition: 0.3s ease; 
}

.active, .reveal:hover {
    background-color: #FFFFFF; 
    border-color: var(--p48-pink);
    box-shadow: var(--neon); 
    color: var(--p48-pink); 
    transform: scale(1.05) translateX(-5px); 
}

.content {
    padding: 0 18px; 
    margin: 5px 0 10px; 
    max-height: 0; 
    overflow: hidden; 
    text-align: center; 
    transition: max-height 0.3s ease-out; 
}

/* Filter Sections */ 
.search {
    width: 100%; 
    padding: 8px; 
    margin: 5px; 
    border: 1px solid #E0E0E0;
    background: var(--light-bg); 
    outline: none;  
    border-radius: 8px; 
}

.search:focus {
    border-color: var(--p48-blue); 
}

/* Filter Dropdowns Styling*/ 

.dropdown-list {
    list-style: none;
    margin: 10px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 2000; 
    position: absolute; 
    width: 80%; 
}

.dropdown-list li {
    padding: 8px; 
    cursor: pointer; 
    border: 2px solid var(--p48-blue);
    border-radius: 30px; 
    background-color: white;
    margin: 10px;   
    transition: 0.3s ease-out; 
}

.dropdown-list li:hover { 
    transform: scale(1.1);
    background-color: #FFF0F9; 
    color: var(--p48-pink); 
    font-weight: 600; 
}

.hidden {
    display: none; 
}

/* Radio buttons */
fieldset {
    border: 2px solid var(--p48-blue); 
    margin-top: 10px;
}

fieldset legend {
    background: var(--light-bg);
    border: 2px solid var(--p48-blue); 
    color: var(--p48-pink); 
    padding: 3px 6px; 
    border-radius: 5px; 
    text-align: center; 
    margin: auto; 
}

fieldset input {
    margin: .5rem; 
}