body {
    margin: 0;
    text-align: center;
    background-color:#fdf0d5;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    background-color: #9a031e;
    color: #fdf0d5;
    padding: 2rem 3rem;
    box-shadow: 5px 5px 15px grey;
}

.title-section {
    text-align: left; 
}

.title-section h2,
.title-section h4 {
    margin: 0;
}

.title-section h4 {
    margin-top: 0.5rem;
    font-weight: 400;
}

nav {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1;
    justify-content: flex-end;
    font-size: 1.2rem;
}

nav a {
    text-decoration: none;
    color: #fdf0d5;
}

nav a:hover{
    color: #003049;
    border-bottom: 2px solid #003049;
}

.card{
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 2rem;
    border-radius: 1.2rem;
    min-height: 25rem;
    background-color: white;
    border: 1px solid #780000;
    padding-bottom: 0rem;

}
.overview-content{
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto;
    padding-top: 3rem;
}


.overview-text{
    text-align: left;
}

.overview-content img {
    width: 100%;
    max-width: 36rem;
    height: auto;

}

.categories-metrics{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 2rem auto;
    max-width: 70rem;
    gap: 2rem;

}

.categories-metrics p{
    font-size: 1.2rem;
    font-weight: 600;
}

.overlap-card .card{
    position: relative;
    margin: -50px auto 0;
    z-index: 2;
}

.results-table {
    width: 100%;
    max-width: 75rem;
    border-collapse: collapse;
    margin: 0 auto;
    border: 1px solid #780000;
    background-color: white;;
}

.results-table td, .results-table th {
    padding: 1rem;
    border: 1px solid #780000;
}

li{
    text-align: left;
}

.interactive-city-map {
    margin: 2rem auto 0;
    padding: 0 1rem;
}

.map-container {
    position: relative;
    width: 90%;
    margin: 0 auto;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 30rem;
    border: 0;
    border-radius: 1rem;
}

.map-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: rgba(253, 240, 213, 0.9);
    color: #780000;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    max-width: 90%;
    text-align: left;
}

.map-overlay h2,
.map-overlay p {
    margin: 0;
}

.map-overlay h2 {
    margin-bottom: 0.35rem;
    font-size: 1.4rem;
}

.map-overlay p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.limitation-note{
    margin-top: 2rem;
}

footer{
    background-color: #9a031e;
    box-shadow: 5px 5px 15px grey;
}

footer p{
    color: #fdf0d5;
    margin: 0;
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.chart-header{
   cursor: default;
}
.analysis-content{
    max-height:0;
    overflow:hidden;
    opacity:0;

    transition:
        max-height .6s ease,
        opacity .4s ease,
        padding .4s ease;

}

.analysis-content p{
    text-align: left;
}

.details.active .analysis-content{
    opacity: 1;
    max-height: 70rem;
}

.details{
    padding: 0.5rem 1rem;
    width: 80%;
    margin: 2rem auto;
    background-color: white;
}

.results-content .details:hover{
    background-color: #003049;
    color: white;

    tr{
        color: black;
    }
}

.recommendations{
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ev-rec, .ghg-rec, .cap-rec{
    display: flex;
    gap: 1rem;
    align-items: center;
    max-width: 70rem;
    margin: 0 auto;
    padding: 2rem;
}

.cap-rec{
    margin-bottom: 1rem;
}