/* mobile.css */

/* 1. KIS MOBILOK (Telefonok) */
@media (max-width: 768px) {
    /* Fejléc elrendezésének felülírása */
    header {
        position: fixed !important;
        top: 0 !important; 
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: column !important; 
        padding: 15px 10px !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }

    .logo-container {
        margin-bottom: 15px !important;
        align-items: center !important;
    }

    /* Itt a lényeg: a flex-wrap engedi, hogy a kilógó elemek új sorba kerüljenek */
    .nav-links {
        flex-wrap: wrap !important; 
        justify-content: center !important;
        gap: 15px 20px !important; 
        width: 100% !important;
    }

    .nav-links a {
        font-size: 0.85rem !important;
    }

    .nav-weather-pill {
        background: rgba(0, 0, 0, 0.04) !important;
        padding: 8px 15px !important;
        border-radius: 50px !important;
        margin: 0 !important;
    }

    .lang-dropdown {
        margin: 0 !important;
    }

    /* Apartman rács az indexen */
    .apartment-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }

    /* Oldalak tetejének eltolása, hogy ne takarja el a megnövelt header */
    main, section:first-of-type, .hero {
        padding-top: 180px !important; 
        margin-top: 0 !important;
    }
}

/* 2. TABLET ÉS KÖZEPES KIJELZŐK */
@media (max-width: 992px) {
    body {
        padding-top: 0 !important;
    }

    .apt-title {
        font-size: 1.8rem;
        text-align: center;
        margin: 10px 0;
    }

    .apt-container {
        display: flex;
        flex-direction: column;
    }

    .booking-card {
        position: static !important;
        padding: 1.5rem;
        order: -1; 
        margin-bottom: 30px;
    }

    .main-image-wrapper {
        margin: 1rem 0;
        aspect-ratio: 4/3;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    #booking-modal > div {
        width: 95% !important;
        padding: 1rem !important;
    }

    .cal-day {
        padding: 15px 0;
        font-size: 1rem;
    }
}

/* 3. FEJLESZTŐI MODAL (POPUP) */
.dev-modal-overlay {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dev-modal-content {
    background: #b0413e;
    color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.dev-modal-btn {
    background: white;
    color: #b0413e;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
}