/* ===== Mobilon csak ez érvényesül, a desktop nem sérül ===== */
@media (max-width: 768px) {

    /* Desktop elemek rejthetők */
    .header,
    #filters,
    .made,
    .made-az {
        display: none !important;
    }

    /* ===== HERO ===== */
    .m-hero {
        position: relative;
        min-height: 52vh;
        background: url('images/gaalhazbejarat.jpg') center/cover no-repeat;
        background-color: #e6e0d6;
        display: flex;
        align-items: flex-end;
        color: #fff;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        overflow: hidden;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
        padding-top: env(safe-area-inset-top, 0px);
        margin-bottom: 4px;
    }

    .m-hero__overlay {
        width: 100%;
        padding: 24px;
        background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15));
        backdrop-filter: saturate(120%) blur(2px);
    }

    .m-hero__overlay h1 {
        font-size: 1.9rem;
        margin: 0 0 8px 0;
        line-height: 1.2;
        letter-spacing: .2px;
    }

    .m-hero__overlay small {
        display: block;
        font-size: 1rem;
        font-weight: 400;
        opacity: .95;
    }

    /* Finom arányú eltolás a hero után */
    .m-hero+.m-section {
        margin-top: -8px;
    }

    /* ===== CHIP-SZŰRŐK ===== */
    .m-section {
        padding: 12px 14px;
    }

    .m-section #mainFilter,
    .m-section #subFilter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 4px;
    }

    .m-section button.m-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 14px;
        border-radius: 999px;
        background: #fff;
        color: #1f2937;
        border: 1px solid #e5e7eb;
        font-weight: 700;
        font-size: .95rem;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
        transition: all .15s ease;
    }

    .m-section button.m-btn.active {
        background: #283845;
        color: #fff;
        border-color: #283845;
    }

    .m-section button.m-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    }

    /* ===== GALÉRIA ===== */
    .gallery {
        column-count: 1 !important;
        column-gap: 0;
        padding: 16px;
        margin: 0 auto calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .gallery-item {
        break-inside: avoid;
        margin-bottom: 16px;
        overflow: hidden;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 16px;
    }

    .gallery-item:hover {
        transform: scale(1.01);
        box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
    }

    /* ===== TABBAR KIEMELÉS JAVÍTÁS ===== */
    .m-tabbar__item[aria-current="page"] {
        color: #b9925e;
    }

}


/* Desktop szűrők elrejtése mobilon */
#filters {
    display: none !important;
}

/* Mobil al-szűrő (Összes / Háromágyas / stb.) csak Emeletin jelenjen meg */
body.show-sub #m-subFilter {
    display: flex !important;
}

/* Kisebb hézag a chip-szekció után */
.m-section {
    padding-bottom: 10px;
}

/* Hozzuk közelebb a galériát a szűrőkhöz */
.gallery {
    /* desktop: padding: 24px 16px 56px; -> mobilon kicsit kevesebb top */
    padding-top: 4px !important;
    padding-bottom: 70px;
    /* hogy a tabbar ne lógjon rá */
}


/* Desktop szűrőblokk teljes elrejtése mobilon, hogy ne hagyjon üres helyet */
#filters {
    display: none !important;
}

/* Hero és chip-sor közti hézag, valamint chip-sor -> galéria közti rés csökkentése */
.m-hero {
    margin-bottom: 6px;
}

.m-section[aria-label="Szűrők"] {
    padding-top: 8px;
    padding-bottom: 4px;
}

/* Al-szűrők (Háromágyas/Kétágyas/…) csak Emeleti választásnál */
#m-subFilter {
    display: none;
}

body.show-sub #m-subFilter {
    display: flex;
}

/* A galéria induljon közelebb a chipekhez */
.gallery {
    margin-top: 4px !important;
    padding-top: 0 !important;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-brand {
  font-weight: 500;
  margin-bottom: 0.2rem;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}