/*
 * Prozori filtera na listama – telefon/tablet do 991px (direktor 8. 11. 2026, 10:43–10:45; brief PROZORI-FILTERA; 769–991 = prozor na sredini, dno fajla).
 * v2 „kao Airbnb“ (11:06–11:14, FILTERI-V2): redovi Grad/Naselje + podlista u istom prozoru, kompaktne pločice Tip,
 * „Broj soba“ (Garsonjera · 1 · 1,5 …), dugmad 38px 14/600, naslovi sekcija 15/800, sekcija 14px 16px.
 * Markup: resources/views/user/partials/filter-prozori.blade.php + filter-sekcija.blade.php.
 * Od 992px se prozori filtera ne otvaraju (računar nepromijenjen) – jedini izuzetak je prozor „Obavijesti me“ (#mdhf-notify,
 * direktor 8. 11. 2026, 12:39 – brief PADEZI-OBAVIJESTI), koji se na računaru prikazuje kao prozor na sredini ekrana (dno fajla).
 * Zato pravila prozora važe na svim širinama (prozori su [hidden] dok ih skripta ne otvori; filteri se otvaraju samo do 991px).
 */
.mdhf { display: none; }

@media all {
    html.mdhf-lock, html.mdhf-lock body { overflow: hidden !important; }

    .mdhf {
        --f-ink: #161e2d; --f-mut: #5a6170; --f-line: #ece4d8; --f-sec: #f8efe3; --f-field: #ece4d8;
        --f-bt: #996a37; --f-bt2: #ad7c46; --f-sel: #f8efe3; --f-selt: #85592c; --f-soft: #f8efe3;
        display: block; position: fixed; inset: 0; z-index: 1000000000;   /* iznad zaglavlja (999999999) */
        font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--f-ink);
    }
    .mdhf[hidden] { display: none; }
    .mdhf__bg { position: absolute; inset: 0; background: rgba(43, 33, 26, .45); opacity: 0; transition: opacity .22s ease; }
    .mdhf.is-open .mdhf__bg { opacity: 1; }

    /* jedan kontejner, jedna zaobljena ivica (bez ugniježđenih okvira) */
    .mdhf__p {
        position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100dvh - 24px); max-height: calc(100vh - 24px);
        display: flex; flex-direction: column; background: #fff; border-radius: 24px 24px 0 0;
        box-shadow: 0 -8px 30px rgba(43, 33, 26, .16); transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1);
        outline: none; overflow: hidden;
    }
    @supports (height: 100dvh) { .mdhf__p { max-height: calc(100dvh - 24px); } }
    .mdhf--all .mdhf__p { height: calc(100dvh - 24px); }
    .mdhf__p--mini { max-height: min(86dvh, 680px); }
    .mdhf.is-open .mdhf__p { transform: none; }
    @media (prefers-reduced-motion: reduce) { .mdhf__p, .mdhf__bg { transition: none; } }

    .mdhf__grab { flex: 0 0 auto; width: 44px; height: 5px; border-radius: 3px; background: #e9d4b8; margin: 10px auto 0; }
    .mdhf__hd {
        flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px 12px; border-bottom: 1px solid var(--f-line);
    }
    .mdhf__t { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: var(--f-ink); text-align: left; }
    .mdhf__x {
        flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
        background: var(--f-soft); color: var(--f-ink); cursor: pointer;
    }
    .mdhf__x:hover { background: #e9d4b8; }

    .mdhf__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

    /* sekcije */
    .mdhf-sec { padding: 14px 16px; border-bottom: 1px solid var(--f-sec); }
    .mdhf-sec[hidden] { display: none; }
    .mdhf__p--mini .mdhf-sec { border-bottom: 0; }
    .mdhf-h { margin: 0 0 10px; font-size: 15px; line-height: 1.3; font-weight: 800; color: var(--f-ink); }
    .mdhf__p--mini .mdhf-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    div.mdhf-h { font-weight: 700; letter-spacing: -.01em; }   /* naslov grupe nije heading (SEO, 10. 11. 2026) – isti izgled kao ranije h3 */
    .mdhf .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

    /* fokus */
    .mdhf button:focus-visible, .mdhf input:focus-visible { outline: 2px solid var(--f-bt); outline-offset: 2px; }
    .mdhf .mdhf-fld__in:focus-visible, .mdhf .mdhf-search__in:focus-visible { outline: none; }   /* prsten daje okvir polja */

    /* segmentno dugme Tip oglasa */
    .mdhf-seg { display: flex; gap: 4px; padding: 4px; background: var(--f-soft); border-radius: 14px; }
    .mdhf-seg__b {
        flex: 1 1 0; min-height: 38px; padding: 6px; border: 0; border-radius: 11px; background: transparent;
        font-weight: 700; font-size: 14px; line-height: 1.2; font-family: inherit; color: var(--f-mut); cursor: pointer;
    }
    .mdhf-seg__b[aria-pressed="true"] { background: #fff; color: var(--f-ink); box-shadow: 0 2px 6px rgba(43, 33, 26, .1); }

    /* dugmad (chips) */
    .mdhf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .mdhf-chip {
        display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px;
        border: 1px solid var(--f-field); border-radius: 999px; background: #fff;
        font-weight: 600; font-size: 14px; line-height: 1.2; font-family: inherit; color: var(--f-ink); cursor: pointer; text-align: left;
    }
    .mdhf-chip--n { min-width: 48px; padding: 0 12px; font-variant-numeric: tabular-nums; }
    /* „Broj soba“: Garsonjera · 1 · 2 · 3 · 4 · 5+ u jednom redu (kolona „auto“ za Garsonjeru, jednake za brojeve; bez „Sve“ –
       ništa izabrano = sve sobe). Staje u jedan red i na 320px (brojevi 32px). */
    .mdhf-chips--rooms { display: grid; grid-template-columns: max-content repeat(5, minmax(0, 64px)); gap: 6px; }
    .mdhf-chips--rooms .mdhf-chip { min-width: 0; padding: 0 6px; justify-content: center; text-align: center; }
    .mdhf-chips--rooms .mdhf-chip--studio { padding: 0 12px; white-space: nowrap; }   /* puna riječ, nikad skraćena ni prelomljena */
    .mdhf-note { margin: 8px 0 0; font-size: 12px; line-height: 1.4; font-weight: 500; color: #5a6170; }
    .mdhf-chips[hidden] { display: none; }
    .mdhf-chips--sub { margin-top: 12px; }
    .mdhf-quick { margin-top: 12px; }   /* brzi izbor cijene „do …“ ispod polja Od/Do (9. 11. 2026) */
    .mdhf-quick .mdhf-chip { min-height: 44px; }
    .mdhf-chip[aria-pressed="true"] { background: var(--f-sel); border-color: var(--f-bt2); color: var(--f-selt); }
    .mdhf-hint { margin: 0; font-size: 14px; color: var(--f-mut); }
    .mdhf-hint[hidden] { display: none; }

    /* Od / Do */
    .mdhf-rng { display: flex; gap: 10px; }
    .mdhf-fld { flex: 1 1 0; min-width: 0; display: block; margin: 0; padding: 7px 12px 8px; border: 1px solid var(--f-field); border-radius: 12px; background: #fff; cursor: text; }
    .mdhf-fld:focus-within { border-color: var(--f-bt2); box-shadow: 0 0 0 3px rgba(173, 124, 70, .16); }
    .mdhf-fld__l { display: block; font-size: 12px; line-height: 1.2; font-weight: 600; color: #5a6170; margin: 0 0 2px; }
    .mdhf-fld__r { display: flex; align-items: baseline; gap: 4px; }
    .mdhf .mdhf-fld__in {
        flex: 1 1 auto; min-width: 0; width: 100%; height: auto; padding: 0; margin: 0; border: 0 !important; background: none !important;
        box-shadow: none !important; outline: none; font-weight: 700; font-size: 16px; line-height: 1.35; font-family: inherit; color: var(--f-ink);
    }
    .mdhf .mdhf-fld__in::placeholder { color: #5a6170; font-weight: 600; opacity: 1; }
    .mdhf-fld__u { flex: 0 0 auto; font-size: 15px; font-weight: 700; color: var(--f-ink); }
    .mdhf-fld__in:placeholder-shown + .mdhf-fld__u { display: none; }

    /* prekidač „Samo luksuzne“ */
    .mdhf-tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .mdhf-tg__l { font-size: 15px; font-weight: 800; color: var(--f-ink); display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
    .mdhf-lux { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #2b211a; color: #e9d4b8; font-size: 11px; line-height: 1.3; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
    .mdhf-sw {
        position: relative; flex: 0 0 50px; width: 50px; height: 30px; padding: 0; border: 0; border-radius: 15px; background: #e9d4b8; cursor: pointer;
        transition: background .18s ease;
    }
    .mdhf-sw__k { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s ease; }
    .mdhf-sw[aria-checked="true"] { background: var(--f-bt); }
    .mdhf-sw[aria-checked="true"] .mdhf-sw__k { transform: translateX(20px); }

    /* Prikaži još filtera */
    .mdhf__more {
        display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 14px 16px;
        border: 0; border-bottom: 1px solid var(--f-sec); background: #fff; text-align: left; cursor: pointer;
        font-weight: 700; font-size: 14px; line-height: 1.35; font-family: inherit; color: var(--f-selt);
    }
    .mdhf__more-n { font-weight: 600; }
    .mdhf__more svg { flex: 0 0 14px; transition: transform .18s ease; }
    .mdhf__more[aria-expanded="true"] svg { transform: rotate(180deg); }
    .mdhf__morebox[hidden] { display: none; }

    /* Grad – lista redova */
    .mdhf-search { position: relative; margin: 0 0 6px; }
    .mdhf-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #5a6170; pointer-events: none; }
    .mdhf .mdhf-search__in {
        width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--f-field) !important; border-radius: 12px; background: #fff;
        font-weight: 500; font-size: 16px; line-height: 1; font-family: inherit; color: var(--f-ink); box-shadow: none;
    }
    .mdhf .mdhf-search__in::placeholder { color: #5a6170; opacity: 1; }
    .mdhf .mdhf-search__in:focus { border-color: var(--f-bt2) !important; outline: none; box-shadow: 0 0 0 3px rgba(173, 124, 70, .16); }
    .mdhf-rows { display: flex; flex-direction: column; }
    .mdhf-row {
        display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--f-sec);
        background: none; text-align: left; cursor: pointer; font-weight: 600; font-size: 16px; line-height: 1.3; font-family: inherit; color: var(--f-ink);
    }
    .mdhf-row[hidden] { display: none; }
    .mdhf-row:last-of-type { border-bottom: 0; }
    .mdhf-sec--pick + .mdhf-sec--pick { border-top: 0; }
    .mdhf-row__l { flex: 1 1 auto; }
    .mdhf-row__n { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: #5a6170; }
    .mdhf-row__c { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #e9d4b8; display: grid; place-items: center; color: transparent; }
    .mdhf-row[aria-pressed="true"] { color: var(--f-selt); font-weight: 700; }
    .mdhf-row[aria-pressed="true"] .mdhf-row__c { background: var(--f-bt); border-color: var(--f-bt); color: #fff; }
    .mdhf-empty { margin: 12px 2px; font-size: 14px; color: var(--f-mut); }
    .mdhf-empty[hidden] { display: none; }

    /* Tip – pločice u 2 kolone */
    .mdhf-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .mdhf-tile {
        position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px;
        min-height: 92px; padding: 14px; border: 1px solid var(--f-field); border-radius: 14px; background: #fff; text-align: left; cursor: pointer;
        font-weight: 700; font-size: 15px; line-height: 1.25; font-family: inherit; color: var(--f-ink);
    }
    .mdhf-tile__i { color: var(--f-bt2); }
    .mdhf-tile__c { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; background: var(--f-bt); color: #fff; }
    .mdhf-tile[aria-pressed="true"] { border-color: var(--f-bt2); background: var(--f-sel); color: var(--f-selt); box-shadow: inset 0 0 0 1px var(--f-bt2); }
    .mdhf-tile[aria-pressed="true"] .mdhf-tile__c { display: grid; }
    /* direktor 16. 11. 2026, 14:02: pločice iste visine u redu, naziv se lijepo prelama u 2 reda unutar pločice (bez sječenja) */
    .mdhf-tiles { align-items: stretch; }   /* pločice u istom redu iste visine */
    .mdhf-tiles:not(.mdhf-tiles--inline) { grid-auto-rows: 1fr; }   /* direktor 16. 11. 2026, 15:14: SVE pločice „Tip“ iste visine (i redovi bez dugog naziva) */
    .mdhf-tile__l { display: block; width: 100%; min-width: 0; font-size: 14px; line-height: 1.3; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
    .mdhf-tiles--inline .mdhf-tile { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; padding: 10px 12px; font-size: 14px; }
    .mdhf-tiles--inline .mdhf-tile__i { width: 22px; height: 22px; flex: 0 0 22px; }
    .mdhf-tiles--inline .mdhf-tile__c { top: 50%; right: 8px; transform: translateY(-50%); width: 18px; height: 18px; }
    .mdhf-tiles--inline .mdhf-tile[aria-pressed="true"] { padding-right: 32px; }

    /* Tip u prozoru „Filteri“ – kompaktne pločice, 3 u redu (2 na uskim ekranima) */
    .mdhf-tiles--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .mdhf-tiles--compact .mdhf-tile { min-height: 76px; gap: 6px; padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 700; justify-content: flex-start; }
    .mdhf-tiles--compact .mdhf-tile__i { width: 22px; height: 22px; }
    .mdhf-tiles--compact .mdhf-tile__l { font-size: 12.5px; line-height: 1.3; overflow-wrap: break-word; hyphens: manual; }
    .mdhf-tiles--compact .mdhf-tile__c { top: 7px; right: 7px; width: 18px; height: 18px; }
    @media (max-width: 479.98px) { .mdhf-tiles--compact { grid-template-columns: 1fr 1fr; } }   /* telefon: 2 u redu – nazivi u najviše 2 reda (direktor 16. 11. 2026, 14:02) */

    /* Grad / Naselje – red u stilu podešavanja telefona: „Grad        Budva  ›“ */
    .mdhf-sec--pick { padding: 0 16px; }
    .mdhf-pick {
        display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 12px 0; border: 0; background: none;
        text-align: left; cursor: pointer; font-family: inherit; color: var(--f-ink);
    }
    .mdhf-pick__l { flex: 0 0 auto; font-size: 15px; line-height: 1.3; font-weight: 800; }
    .mdhf-pick__v { flex: 1 1 auto; min-width: 0; text-align: right; font-size: 15px; line-height: 1.3; font-weight: 600; color: #5a6170; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mdhf-pick__v.is-set { color: var(--f-selt); font-weight: 700; }
    .mdhf-pick__a { flex: 0 0 16px; color: #5a6170; }
    .mdhf-pick[aria-disabled="true"] { cursor: default; }
    .mdhf-pick[aria-disabled="true"] .mdhf-pick__l { color: #5a6170; }
    .mdhf-pick[aria-disabled="true"] .mdhf-pick__v { color: #5a6170; font-weight: 500; }
    .mdhf-pick[aria-disabled="true"] .mdhf-pick__a { opacity: .45; }

    /* podlista u istom prozoru (slide): ‹ Nazad · naslov · Gotovo */
    .mdhf__stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
    .mdhf__view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
    .mdhf__view.is-away { transform: translateX(-28%); }
    .mdhf-sub {
        position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; transform: translateX(100%);
        transition: transform .24s cubic-bezier(.2, .8, .2, 1); box-shadow: -8px 0 24px rgba(43, 33, 26, .08);
    }
    .mdhf-sub[hidden] { display: none; }
    .mdhf-sub.is-on { transform: none; }
    @media (prefers-reduced-motion: reduce) { .mdhf__view, .mdhf-sub { transition: none; } }
    .mdhf-sub__hd {
        flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
        padding: 8px 10px 10px; border-bottom: 1px solid var(--f-line);
    }
    .mdhf-sub__t { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 800; color: var(--f-ink); text-align: center; }
    div.mdhf-sub__t { font-weight: 700; letter-spacing: -.01em; }   /* naslov podprozora nije heading (SEO, B2 – 16. 11. 2026) – isti izgled kao ranije h3 */
    .mdhf-sub__back, .mdhf-sub__done {
        min-height: 40px; padding: 0 6px; border: 0; background: none; cursor: pointer; font-family: inherit;
        font-size: 15px; line-height: 1; font-weight: 700; color: var(--f-bt);
    }
    .mdhf-sub__back { justify-self: start; display: inline-flex; align-items: center; gap: 2px; }
    .mdhf-sub__done { justify-self: end; font-weight: 800; }
    .mdhf-sub__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .mdhf-sub__body .mdhf-sec { border-bottom: 0; padding-top: 12px; }
    .mdhf-tg__l--n { font-weight: 700; }

    /* fiksni footer prozora */
    .mdhf__ft {
        flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #fff; border-top: 1px solid var(--f-line); box-shadow: 0 -6px 18px rgba(43, 33, 26, .06);
    }
    .mdhf__reset {
        flex: 0 0 auto; min-height: 48px; padding: 0 6px; border: 0; background: none; cursor: pointer;
        font-weight: 700; font-size: 15px; line-height: 1; font-family: inherit; color: var(--f-ink); text-decoration: underline; text-underline-offset: 3px;
    }
    .mdhf__reset[aria-disabled="true"] { color: #5a6170; text-decoration: none; cursor: default; }
    .mdhf__go {
        flex: 1 1 auto; min-height: 50px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--f-bt); color: #fff; cursor: pointer;
        font-weight: 800; font-size: 15px; line-height: 1.2; font-family: inherit; transition: background .15s ease, opacity .15s ease;
    }
    .mdhf__go:hover { background: #85592c; }
    .mdhf__go.is-busy span { opacity: .75; }
    .mdhf__go.is-zero, .mdhf__go:disabled { background: #f8efe3; color: #5a6170; cursor: not-allowed; }

    /* prozor „Obavijesti me o novim nekretninama“ (bez grada/tipa) – isti stil, kratko objašnjenje + dugme preko cijele širine */
    .mdhf--notify .mdhf__p { height: min(88dvh, 720px); }
    .mdhf-lead { margin: 0; padding: 14px 16px 4px; font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--f-mut); }
    .mdhf--notify .mdhf__go { width: 100%; }
}

/* računar: „Obavijesti me“ kao prozor na sredini ekrana */
@media (min-width: 768px) {
    .mdhf--notify .mdhf__p {
        left: 50%; right: auto; top: 50%; bottom: auto; width: min(520px, calc(100vw - 48px)); height: min(720px, calc(100vh - 48px));
        border-radius: 20px; box-shadow: 0 24px 60px rgba(43, 33, 26, .22); opacity: 0; transform: translate(-50%, -46%);
        transition: transform .2s ease, opacity .2s ease;
    }
    .mdhf--notify.is-open .mdhf__p { opacity: 1; transform: translate(-50%, -50%); }
    .mdhf--notify .mdhf__grab { display: none; }
    .mdhf--notify .mdhf__hd { padding-top: 16px; }
}

@media (max-width: 991.98px) {
    /* „Sortiranje“ zatvoren: van ekrana (bottom: -100%) ALI i nevidljiv – ne viri na visokim ekranima/snimku cijele stranice
       i nije dostupan tabom (direktor 8. 11. 11:58, /novogradnja/{grad}); otvaranje (.active) ga vraća odmah. */
    .bottom-sheet.mdh-sort-sheet { visibility: hidden; transition: bottom .5s ease, visibility 0s linear .5s; }
    .bottom-sheet.mdh-sort-sheet.active { visibility: visible; transition: bottom .5s ease, visibility 0s; }

    /* prozor „Sortiraj“ (traka-naslov) – isto zaglavlje: naslov lijevo, okrugli ✕, bez duple ivice */
    .mdh-n .bottom-sheet.mdh-sort-sheet { padding-top: 22px; border-radius: 24px 24px 0 0; }
    .mdh-n .bottom-sheet.mdh-sort-sheet::before { top: 10px; width: 44px; background: #e9d4b8; }
    .mdh-n .bottom-sheet.mdh-sort-sheet .sheet-content { padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
    .mdh-n .bottom-sheet.mdh-sort-sheet .sheet-header {
        justify-content: space-between; margin: 0 -16px 14px; padding: 4px 16px 12px; border-bottom: 1px solid #ece4d8;
    }
    .mdh-n .bottom-sheet.mdh-sort-sheet .sheet-header span { font-size: 20px; font-weight: 800; color: #161e2d; }
    .mdh-n .bottom-sheet.mdh-sort-sheet .sheet-header .close-sheet {
        position: static; transform: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #f8efe3; color: #161e2d; font-size: 15px; line-height: 36px;
    }
}

/* Položeni tablet / uski laptop 769–991px (direktor 8. 11. 2026, 16:26 – brief TABLET-POLOZENO): isti prozori kao na telefonu,
   ali kao prozor na sredini ekrana (max 560px, zaobljen, sjenka) – donji list preko 820–990px širine izgleda kao razvučen telefon.
   Telefon ≤768px: donji list (nepromijenjeno). Računar ≥992px: prozori filtera se ne otvaraju. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .mdhf .mdhf__p {
        left: 50%; right: auto; top: 50%; bottom: auto; width: min(560px, calc(100vw - 48px));
        max-height: min(760px, calc(100vh - 48px)); border-radius: 20px; box-shadow: 0 24px 60px rgba(43, 33, 26, .22);
        opacity: 0; transform: translate(-50%, -46%); transition: transform .2s ease, opacity .2s ease;
    }
    @supports (height: 100dvh) { .mdhf .mdhf__p { max-height: min(760px, calc(100dvh - 48px)); } }
    .mdhf--all .mdhf__p { height: min(820px, calc(100vh - 48px)); max-height: none; }
    @supports (height: 100dvh) { .mdhf--all .mdhf__p { height: min(820px, calc(100dvh - 48px)); } }
    .mdhf .mdhf__p--mini { max-height: min(640px, calc(100vh - 48px)); }
    .mdhf.is-open .mdhf__p { opacity: 1; transform: translate(-50%, -50%); }
    .mdhf .mdhf__grab { display: none; }
    .mdhf .mdhf__hd { padding-top: 16px; }
    .mdhf .mdhf__ft { padding-bottom: 12px; }

    /* „Sortiranje“ – isti prozor na sredini */
    .mdh-n .bottom-sheet.mdh-sort-sheet {
        left: 50%; right: auto; top: 50%; bottom: auto !important; width: min(560px, calc(100vw - 48px)); padding-top: 12px;
        border-radius: 20px; box-shadow: 0 0 0 100vmax rgba(43, 33, 26, .45), 0 24px 60px rgba(43, 33, 26, .22);   /* zatamnjena pozadina kao kod filtera */
        z-index: 1000000000;   /* iznad zaglavlja, kao prozori filtera */
        opacity: 0; transform: translate(-50%, -46%); transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s;
    }
    .mdh-n .bottom-sheet.mdh-sort-sheet.active { opacity: 1; transform: translate(-50%, -50%); transition: transform .2s ease, opacity .2s ease, visibility 0s; }
    .mdh-n .bottom-sheet.mdh-sort-sheet::before { display: none; }
    .mdh-n .bottom-sheet.mdh-sort-sheet .sheet-content { padding-bottom: 16px; }
}
@media (min-width: 768px) and (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .mdhf .mdhf__p, .mdh-n .bottom-sheet.mdh-sort-sheet { transition: none; }
}

/* „Prikaži i oglase sa cijenom na upit“ (?na_upit=1, L4 – direktor 16. 11. 2026) u sekciji Cijena: mali prozor „Cijena“ i „Filteri“ / „Više filtera“.
   Prikazuje se samo kad je upisana cijena od/do ([hidden] drži skripta). Svi uređaji (telefon i tablet odobreni 16. 11. 18:34). */
.mdhf-nu { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ece4d8; min-height: 44px; }
.mdhf-nu[hidden] { display: none !important; }
.mdhf-nu .mdhf-tg__l { font-size: 14px; font-weight: 700; line-height: 1.35; }
.mdhf-nu .mdhf-sw::before { content: ""; position: absolute; inset: -7px -4px; }   /* dodir ≥ 44 px bez pomjeranja rasporeda */

/* F3 – nove sekcije „Više filtera“ (stanje, do mora, nova oprema, zgrada i objekat, po vrsti, sa zakupcem – prijedlog polja, direktor 16. 11. 2026):
   RAČUNAR ≥ 1280 direktno; telefon i tablet SAMO uz ?prijedlog=1 (html.mdh-prijedlog) – bez prekidača prozor je isti kao ranije */
@media (max-width: 1279.98px) {
    html:not(.mdh-prijedlog) .mdhf-sec[data-f3] { display: none !important; }
}
