.stats-icon-small {
    width: 60px;
    height: auto;
}
.highcharts-figure, .highcharts-data-table table {
    min-width: 360px; 
    max-width: 100%;
    margin: 0 auto;
}
#container {
    height: 450px;
}
.section-title {
    padding-bottom: 20px;
    margin-bottom: 0 !important;
    text-align: center;
}
#quality-legend.contact.section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}
.map-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
#map {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.color-legend-wrapper {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}
.color-segment-row {
    display: flex; 
    width: 100%;
    border-radius: 12px 12px 0 0; 
    overflow: hidden;
}
.color-segment-item {
    flex: 1;
    max-width: none;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}
.color-segment-item:last-child {
    border-right: none;
}

.color-segment-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    height: 100%; 
}
.color-segment-header::after {
    content: "\f229"; 
    font-family: "bootstrap-icons";
    font-size: 1.2rem;
    position: absolute;
    bottom: 5px;
    right: 5px;
    transition: transform 0.3s ease;
    opacity: 0.8;
}
.color-segment-header[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.legend-icon {
    font-size: 2.5em;
    margin-bottom: 5px;
    margin-right: 0; 
    display: block;
}
.legend-range {
    font-size: 1.2em; 
    font-weight: 900;
    margin-bottom: 3px;
    display: block;
    text-align: center;
}
.legend-text {
    font-size: 0.9em; 
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
}

.color-green {
    background: linear-gradient(135deg, #4CAF50, #28a745);
    color: #fff;
}
.color-orange {
    background: linear-gradient(135deg, #FFC107, #FFA500);
    color: #343a40; 
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.color-red {
    background: linear-gradient(135deg, #DC3545, #C0392B);
    color: #fff;
}
.color-orange .legend-icon, .color-orange .legend-range, .color-orange .legend-text {
    color: #343a40 !important;
}

.color-content-area {
    padding: 15px 20px;
    background-color: #f8f9fa; 
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #333;
}
.color-content-area p {
    margin-bottom: 5px;
}

.collapse-container {
    border-top: 1px solid rgba(0,0,0,0.1);
    display: none;
    width: 100%;
}
.collapse-container.show {
    display: block;
    border-top: 1px solid rgba(0,0,0,0.1);
}

#collapseGreen.collapse, #collapseOrange.collapse, #collapseRed.collapse {
    width: 100%;
    padding: 0;
    margin: 0;
}

#collapseRed.collapse.show .color-content-area {
    border-radius: 0 0 12px 12px;
}

@media (max-width: 768px) {
    .color-segment-row {
        flex-direction: column;
        border-radius: 12px;
    }
    .color-segment-item {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    .color-segment-item:last-child {
        border-bottom: none;
    }
    .color-segment-header {
        flex-direction: row;
        justify-content: flex-start;
    }
    .legend-icon {
        margin-right: 15px;
    }
    .legend-text, .legend-range {
        text-align: left;
    }
}


.copyright p {
    font-size: 1.1em;
    color: #fff !important;
}

.footer {
    background-color: #40e0d0 !important; 
}
.footer p, .footer span, .footer a, .footer strong {
    color: #ffffff !important;
}
.topbar {
    background: #212529;
    color: #fff;
}
.topbar i {
    color: #fff;
}

.info-item {
    padding: 30px;
    background: #fff;
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border-radius: 8px;
}
.info-item i {
    font-size: 24px;
    color: #49C7BF;
    background: #f1f7f6;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
}
.info-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #333;
}
.info-item p {
    padding: 0;
    margin-bottom: 0;
    font-size: 14px;
    color: #555;
    text-align: center;
}

.noise-marker-icon {
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; 
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1; 
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    border: 2px solid #FFFFFF; 
    white-space: nowrap; 
}

.noise-marker-icon.dark-text {
    color: #333333 !important;
}

.map-full-width {
    padding-left: 15px;
    padding-right: 15px; 
}

#footer {
    background-color: #49C7BF; 
}
#footer p, #footer span, #footer a, #footer strong {
    color: #fff;
}
.footer.light-background {
    background-color: #40e0d0 !important; 
}