@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 10px 0;
    }

    h1 {
        font-size: 1.5rem;
    }

    .container {
        flex-direction: column;
        gap: 15px;
    }

    #map {
        height: 450px !important;
        order: 1;
    }

    .sidebar {
        order: 2;
    }

    .fires-list {
        max-height: 450px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
        margin: 2% auto;
    }

    .chart-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .header-info {
        flex-direction: column;
        gap: 10px;
    }

    #refresh-btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }
    
    #map {
        height: 450px !important;
        order: 1;
    }

    .chart-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}
