/*
 * Novogradnja – RAČUNAR ≥ 1280 px (talas W3, direktor 15. 11. 2026; STANDARD DIREKTORA – uzor početna na računaru).
 * Učitava se sa media="(min-width: 1280px)" i sva pravila su i ovdje unutar istog @media – telefon i tablet (< 1280) se NE mijenjaju.
 * B3 (direktor 15. 11. 2026, 21:37 „tablet odradi naravno“): projekat, izbor stana i stranica stana učitavaju fajl sa media="(min-width: 992px)"
 * (spoljni @media je zato 992); liste i Za investitore i dalje sa media 1280 (njihov link). 992–1279 za projekat/izbor/stan – odjeljak 6 na kraju.
 * 1. Stranica projekta (ekskluzivni i standardni – projekat.blade.php): uokviren svjetliji vrh (kao početna: zaobljena slika u kontejneru 1320,
 *    tekst na bijeloj kartici – bez tamne površine, sjenka samo gore ≤ 28 %), dvije kolone (sadržaj 820 + ljepljiva kartica „Vaš stan“ 380),
 *    redoslijed sekcija po pravilu novogradnje (vizuelni – flex/grid order; HTML/telefon isti): naziv/vrh → lokacija → zgrada (lobi, enterijer,
 *    park, pogledi, parking) → galerija → standard gradnje → projekat → investitor (logo) → plaćanje → cijene i dostupnost → kako kupiti → pitanja → upit.
 *    Oznaka „Ekskluzivno“ bronza (ne espreso); aktivni prekidači bronza umjesto tamnog.
 * 2. Izbor stana, 3. lista po gradu, 4. jedinica, 5. za investitore – vidi odjeljke niže.
 * Brend: tekst #161e2d, sporedni #5a6170, linije #ece4d8, bronza #996a37 (dugmad; sitan tekst #85592c), #ad7c46 linije/ikonice,
 * šampanj #f8efe3 → #e9d4b8 premium sekcije, topla #faf6f1. Animacije samo transform/opacity; prefers-reduced-motion → bez pokreta.
 */
@media (min-width: 992px) {

/* ================= 0. zajedničko: tekst za miš umjesto dodira ================= */
html body .nbr-t { display: none !important; }
html body .nbr-m[hidden] { display: inline !important; }

/* ================= 1. STRANICA PROJEKTA ================= */
html body .nbp.nbe[data-nbr-p] {
    display: grid; grid-template-columns: minmax(40px, 1fr) minmax(0, 820px) 40px 380px minmax(40px, 1fr);
    grid-auto-flow: row; align-items: start; padding-bottom: 72px;
}
html body .nbp.nbe[data-nbr-p] > * { grid-column: 2; min-width: 0; }
html body .nbp.nbe[data-nbr-p] > .nbp-preview { grid-column: 1 / -1; grid-row: 1; }
/* redovi 1–4 lijeve kolone su rezervisani za vrh/brojke/svježinu – sekcije se slažu tek ispod (auto-placement) */
html body .nbp.nbe[data-nbr-p]::before { content: ""; grid-column: 2; grid-row: 1 / 5; }

/* --- vrh: uokvirena slika (kao početna), tekst na bijeloj kartici --- */
html body .nbp.nbe[data-nbr-p] > .nbe-hero {
    grid-column: 2 / 5; grid-row: 2; margin-top: 16px; min-height: 580px; border-radius: 24px; background: #faf6f1; color: #161e2d;
    align-items: flex-end; isolation: isolate;
}
html body .nbe-hero__shade { background: linear-gradient(180deg, rgba(22, 30, 45, .28) 0%, rgba(22, 30, 45, 0) 24%); }
html body .nbe-hero__top { left: 28px; right: 28px; top: 24px; }
html body .nbe-hero__vis { left: 28px; top: 70px; }
html body .nbe-pill--ex { background: #996a37; color: #fff; }
html body .nbe-hero .nbe-wrap.nbe-hero__body {
    margin: 0 0 28px 28px; width: 600px; max-width: calc(100% - 56px); padding: 30px 34px 26px; border-radius: 20px; background: #fff;
    box-shadow: 0 18px 50px rgba(22, 30, 45, .14); text-shadow: none; gap: 12px;
}
html body .nbe-hero__body > * { max-width: none; }
html body .nbe-hero__h1 { font-size: 46px; line-height: 1.04; font-weight: 800; letter-spacing: -.025em; color: #161e2d; }
html body .nbe-hero__sub { color: #5a6170; opacity: 1; font-size: 16px; line-height: 1.55; }
html body .nbe-hero__from { color: #5a6170; font-size: 14px; }
html body .nbe-hero__from strong { color: #161e2d; font-size: 26px; font-weight: 800; }
html body .nbe-hero__ex { color: #5a6170; opacity: 1; }
html body .nbe-hero__ex svg { color: #ad7c46; }
html body .nbe-glass { background: #f8efe3 !important; color: #85592c !important; border: 1px solid #e9d4b8 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body .nbe-hero__links { justify-content: flex-start; gap: 18px; }
html body .nbe-hero__lk { color: #85592c !important; }
html body .nbe-hero__sep { background: #ece4d8 !important; }
html body .nbe-hero__play { background: #f8efe3 !important; color: #996a37 !important; }
html body .nbe-hero__cta { align-self: flex-start; }

/* --- tri broja + svježina: ista širina kao vrh --- */
html body .nbp.nbe[data-nbr-p] > .nbe-nums {
    grid-column: 2 / 5; grid-row: 3; width: 100%; max-width: none; margin: 16px 0 0; border: 1px solid #ece4d8; border-radius: 18px; background: #fff; overflow: hidden;
}
html body .nbe-nums > div { padding: 20px 12px 18px; gap: 4px; border-right-color: #ece4d8; }
html body .nbe-nums strong { font-size: 30px; line-height: 1.05; font-weight: 300; letter-spacing: -.03em; color: #161e2d; }
html body .nbe-nums span { font-size: 13px; color: #5a6170; }
html body .nbp.nbe[data-nbr-p] > .nbe-fresh { grid-row: 4; justify-content: flex-start; margin-top: 16px; padding: 8px 14px; border-radius: 999px; justify-self: start; }

/* --- desna ljepljiva kartica „Vaš stan“ --- */
html body .nbp.nbe[data-nbr-p] > .nbr-yc { grid-column: 4; grid-row: 4 / span 40; align-self: stretch; margin-top: 16px; }
html body .nbr-yc__in {
    position: sticky; top: 132px; display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 22px; border: 1px solid #ece4d8; border-radius: 20px;
    background: #fff; box-shadow: 0 14px 40px rgba(22, 30, 45, .08); color: #161e2d;
}
html body .nbr-yc__in::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: #ad7c46; }
html body .nbr-yc__ey { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #85592c; }
html body .nbr-yc__ey::before { content: ""; width: 22px; height: 1.5px; background: #ad7c46; }
html body .nbr-yc__h { margin: -4px 0 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: #161e2d; }
html body .nbr-yc__set { margin: 0; padding: 0; border: 0; min-width: 0; }
html body .nbr-yc__lg { display: block; margin: 0 0 8px; padding: 0; font-size: 13px; font-weight: 700; color: #5a6170; }
html body .nbr-yc__seg { display: flex; flex-wrap: wrap; gap: 8px; }
html body .nbr-yc__seg label { position: relative; margin: 0; cursor: pointer; }
html body .nbr-yc__seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
html body .nbr-yc__seg span {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #ece4d8; border-radius: 999px; background: #fff;
    font-size: 14px; font-weight: 600; color: #161e2d; transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
html body .nbr-yc__seg label:hover span { border-color: #ad7c46; }
html body .nbr-yc__seg input:checked + span { border-color: #996a37; background: #f8efe3; color: #85592c; font-weight: 700; box-shadow: inset 0 0 0 1px #996a37; }
html body .nbr-yc__seg input:focus-visible + span { outline: 2px solid #ad7c46; outline-offset: 3px; }
/* panel izabrane strukture – bez JS-a (radio + :has); bez podrške za :has vidi se prvi */
html body .nbr-yc__k { display: none; flex-direction: column; gap: 12px; }
html body .nbr-yc__k[data-nbr-k="0"] { display: flex; }
html body .nbr-yc__in:has(input[name="nbr-k"]:checked) .nbr-yc__k { display: none; }
html body .nbr-yc__in:has(input[name="nbr-k"][value="0"]:checked) .nbr-yc__k[data-nbr-k="0"],
html body .nbr-yc__in:has(input[name="nbr-k"][value="1"]:checked) .nbr-yc__k[data-nbr-k="1"],
html body .nbr-yc__in:has(input[name="nbr-k"][value="2"]:checked) .nbr-yc__k[data-nbr-k="2"],
html body .nbr-yc__in:has(input[name="nbr-k"][value="3"]:checked) .nbr-yc__k[data-nbr-k="3"],
html body .nbr-yc__in:has(input[name="nbr-k"][value="4"]:checked) .nbr-yc__k[data-nbr-k="4"],
html body .nbr-yc__in:has(input[name="nbr-k"][value="5"]:checked) .nbr-yc__k[data-nbr-k="5"],
html body .nbr-yc__in:has(input[name="nbr-k"][value="6"]:checked) .nbr-yc__k[data-nbr-k="6"],
html body .nbr-yc__in:has(input[name="nbr-k"][value="7"]:checked) .nbr-yc__k[data-nbr-k="7"],
html body .nbr-yc__in:has(input[name="nbr-k"][value="8"]:checked) .nbr-yc__k[data-nbr-k="8"],
html body .nbr-yc__in:has(input[name="nbr-k"][value="9"]:checked) .nbr-yc__k[data-nbr-k="9"],
html body .nbr-yc__in:has(input[name="nbr-k"][value="10"]:checked) .nbr-yc__k[data-nbr-k="10"],
html body .nbr-yc__in:has(input[name="nbr-k"][value="11"]:checked) .nbr-yc__k[data-nbr-k="11"] { display: flex; }
html body .nbr-yc__price { margin: 0; display: flex; align-items: baseline; gap: 6px; color: #5a6170; font-size: 14px; }
html body .nbr-yc__price strong { font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: #161e2d; }
html body .nbr-yc__price strong.is-req { font-size: 22px; }
html body .nbr-yc__meta { margin: -6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: #5a6170; }
html body .nbr-yc__free { color: #5b6b4e; font-weight: 700; }
html body .nbr-yc__plan { padding: 14px 16px; border-radius: 14px; background: #faf6f1; border: 1px solid #ece4d8; }
html body .nbr-yc__sm { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: #85592c; }
html body .nbr-yc__plan dl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
html body .nbr-yc__plan dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
html body .nbr-yc__plan dt { font-weight: 500; color: #5a6170; }
html body .nbr-yc__plan dd { margin: 0; font-weight: 800; color: #161e2d; white-space: nowrap; }
html body .nbr-yc__pay { padding-top: 14px; border-top: 1px solid #ece4d8; }
html body .nbr-yc__pay ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
html body .nbr-yc__pay li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
html body .nbr-yc__pay li b { font-weight: 700; color: #161e2d; }
html body .nbr-yc__pay li span { color: #5a6170; text-align: right; }
html body .nbr-yc__st { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
html body .nbr-yc__st--moguc { background: #e7ebdf; color: #5b6b4e !important; }
html body .nbr-yc__st--uskoro { background: #f8efe3; color: #85592c !important; }
html body .nbr-yc__st--nije_moguc { background: #faf6f1; color: #5a6170 !important; }
html body .nbr-yc__note { margin: 0; font-size: 12.5px; line-height: 1.5; color: #5a6170; }
html body .nbr-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 22px; border-radius: 999px;
    border: 1px solid #996a37; background: #996a37; color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
html body .nbr-btn:hover { background: #85592c; border-color: #85592c; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(153, 106, 55, .28); }
html body .nbr-btn--ol { background: #fff; color: #85592c !important; }
html body .nbr-btn--ol:hover { background: #f8efe3; color: #85592c !important; border-color: #996a37; }
html body .nbr-btn:focus-visible { outline: 2px solid #ad7c46; outline-offset: 3px; }

/* --- sekcije u lijevoj koloni: ritam početne (oznaka sa crticom + naslov), premium/tople sekcije kao zaobljene kartice --- */
html body .nbp.nbe[data-nbr-p] > .nbe-sec { padding: 56px 0 0; background: none; border: 0; }
html body .nbp.nbe[data-nbr-p] > .nbe-sec > .nbe-wrap { max-width: none; padding: 0; }
html body .nbp.nbe[data-nbr-p] > .nbe-sec--prem, html body .nbp.nbe[data-nbr-p] > .nbe-sec--warm { margin-top: 56px; padding: 44px 44px 48px; border-radius: 24px; }
html body .nbp.nbe[data-nbr-p] > .nbe-sec--prem { background: linear-gradient(180deg, #f8efe3 0%, #e9d4b8 100%); border-top: 3px solid #ad7c46; }
html body .nbp.nbe[data-nbr-p] > .nbe-sec--warm { background: #faf6f1; border: 1px solid #ece4d8; }
html body .nbp.nbe[data-nbr-p] > .nbe-sec--flush { padding-top: 56px; }
html body [data-nbr-p] .nbe-ey { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 11.5px; letter-spacing: .2em; color: #85592c; }
html body [data-nbr-p] .nbe-ey::before { content: ""; flex: 0 0 26px; width: 26px; height: 1.5px; background: #ad7c46; }
html body [data-nbr-p] .nbe-now__h.nbe-ey::before { display: none; }
html body [data-nbr-p] .nbe-h2 { font-size: 36px; line-height: 1.1; font-weight: 300; letter-spacing: -.03em; margin-bottom: 24px; }
html body [data-nbr-p] .nbe-2c { gap: 32px; }
/* aktivni prekidači i traka sekcija: bronza umjesto tamne */
html body [data-nbr-p] .nbe-ptabs [aria-selected="true"] { background: #996a37 !important; color: #fff !important; border-color: #996a37 !important; }
html body .nbe-snav a[aria-current="true"] { background: #996a37; color: #fff; }
html body .nbe-snav ul { max-width: 1240px; padding-left: 0; padding-right: 0; }
html body .nbe-dock { display: none !important; }

/* redoslijed po pravilu novogradnje (vizuelni) */
html body .nbp.nbe[data-nbr-p] > .nbe-fresh { order: 1; }
html body .nbp.nbe[data-nbr-p] > #lokacija { order: 10; }
html body .nbp.nbe[data-nbr-p] > #zgrada { order: 20; }
html body .nbp.nbe[data-nbr-p] > #galerija { order: 25; }
html body .nbp.nbe[data-nbr-p] > #oprema { order: 30; }
html body .nbp.nbe[data-nbr-p] > .nbe-aboutsec { order: 40; }
html body .nbp.nbe[data-nbr-p] > #ko-gradi { order: 50; }
html body .nbp.nbe[data-nbr-p] > #placanje { order: 60; }
html body .nbp.nbe[data-nbr-p] > #cijene, html body .nbp.nbe[data-nbr-p] > #slobodno { order: 70; }
html body .nbp.nbe[data-nbr-p] > .nbs-sold { order: 75; }
html body .nbp.nbe[data-nbr-p] > section[aria-labelledby="nbe-steps"] { order: 80; }
html body .nbp.nbe[data-nbr-p] > section[aria-labelledby="nbe-faq"] { order: 90; }
html body .nbp.nbe[data-nbr-p] > #upit { order: 100; }
html body .nbp.nbe[data-nbr-p] > .nbe-wrap { order: 110; max-width: none; padding: 0; margin-top: 40px; }
html body .nbe-snav li:has(> a[data-nbe-snav-a="lokacija"]) { order: 1; }
html body .nbe-snav li:has(> a[data-nbe-snav-a="galerija"]) { order: 2; }
html body .nbe-snav li:has(> a[data-nbe-snav-a="ko-gradi"]) { order: 3; }
html body .nbe-snav li:has(> a[data-nbe-snav-a="placanje"]) { order: 4; }
html body .nbe-snav li:has(> a[data-nbe-snav-a="cijene"]), html body .nbe-snav li:has(> a[data-nbe-snav-a="slobodno"]) { order: 5; }
html body .nbe-snav li:has(> a[data-nbe-snav-a="upit"]) { order: 6; }

/* sadržaj sekcija u koloni 820 */
html body .nbp.nbe[data-nbr-p] #placanje .nbe-2c:not(:has(> .nbe-now)) { grid-template-columns: minmax(0, 1fr); }
html body .nbp.nbe[data-nbr-p] #placanje .nbe-2c > .nbe-paycard:only-child { max-width: none; }
html body .nbp.nbe[data-nbr-p] #placanje .nbe-2c:not(:has(> .nbe-now)) .nbe-paym { flex-direction: row; align-items: stretch; gap: 16px; }
html body .nbp.nbe[data-nbr-p] #placanje .nbe-2c:not(:has(> .nbe-now)) .nbe-paym > .nbe-paym__c { flex: 1 1 0; min-width: 0; }
html body .nbp.nbe[data-nbr-p] .nbe-narrow { max-width: none; }
html body .nbp.nbe[data-nbr-p] #upit .nbe-agcard { max-width: none; }

/* ================= 2. IZBOR STANA – rezervisan prostor za zgradu i panel (JS ih crta poslije učitavanja) → CLS 0 ================= */
html body .nbi.nbr-js [data-z-grid] { min-height: 640px; }

/* ================= 3. /novogradnja/{grad} – novi prikaz (kao /novogradnja) ================= */
html body .mdh-n.ms-nbf:has(.nbr-city) > section.flat-map,
html body .mdh-n.ms-nbf:has(.nbr-city) .mdh-traka,
html body .mdh-n.ms-nbf:has(.nbr-city) .ms-nbf__excl,
html body .mdh-n.ms-nbf:has(.nbr-city) .ms-nbf__grid,
html body .mdh-n.ms-nbf:has(.nbr-city) .wd-navigation,
html body .mdh-n.ms-nbf:has(.nbr-city) .mdh-empty,
html body .mdh-n.ms-nbf:has(.nbr-city) .mdh-more,
html body .mdh-n.ms-nbf:has(.nbr-city) .mdh-nl-count,
html body .mdh-n.ms-nbf:has(.nbr-city) .mdh-nl-acts,
html body .mdh-n.ms-nbf:has(.nbr-city) .flat-recommended .row > .col-md-6:has(#map) { display: none !important; }
html body .mdh-n.ms-nbf:has(.nbr-city) .flat-recommended { margin: 0 !important; padding: 32px 0 80px !important; }
html body .mdh-n.ms-nbf:has(.nbr-city) .flat-recommended > .container-fluid { max-width: 1320px; margin: 0 auto; padding-left: 40px !important; padding-right: 40px !important; }
html body .mdh-n.ms-nbf:has(.nbr-city) .flat-recommended .row { margin: 0; }
html body .mdh-n.ms-nbf:has(.nbr-city) .flat-recommended .row > .col-md-6 { flex: 0 0 100%; max-width: 100%; width: 100%; padding: 0; }
html body .mdh-n.ms-nbf:has(.nbr-city) .mdh-nl-head { margin: 0 0 8px; padding: 0; border: 0; }
html body .mdh-n.ms-nbf:has(.nbr-city) .mdh-nl-head .mdh-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #85592c; }
html body .mdh-n.ms-nbf:has(.nbr-city) .mdh-nl-head .mdh-eyebrow::before { content: ""; width: 26px; height: 1.5px; background: #ad7c46; }
html body .mdh-n.ms-nbf:has(.nbr-city) .mdh-nl-h1 { margin: 0; font-size: clamp(36px, 3.4vw, 50px); line-height: 1.06; font-weight: 300; letter-spacing: -.03em; color: #161e2d; }
html body .nbr-city__count { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; font-size: 16px; color: #5a6170; }
html body .nbr-city__count b { color: #161e2d; font-weight: 800; }
html body .nbr-city__empty { font-size: 16px; color: #5a6170; }
html body .nbr-city__grp { margin-top: 40px; }
html body .nbr-city__h { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: #161e2d; }
html body .nbr-city__h span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: #f8efe3; color: #85592c; font-size: 14px; }
html body .nbr-city__grp--ex { padding: 32px; border-radius: 24px; background: linear-gradient(180deg, #f8efe3 0%, #e9d4b8 100%); border-top: 3px solid #ad7c46; }
html body .nbr-city__grp--ex .nbr-city__h span { background: #fff; }
html body .nbr-city__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
html body .nbr-city__all { margin: 32px 0 0; }
html body .nbr-city__all a, html body .nbr-city__empty a { color: #85592c; font-weight: 700; text-decoration: none; }
html body .nbr-city__all a:hover, html body .nbr-city__empty a:hover { text-decoration: underline; text-underline-offset: 3px; }
html body .mdh-n.ms-nbf:has(.nbr-city) .mdh-sp { max-width: none; margin-top: 56px; }

/* „Ekskluzivno“ – bronza umjesto espreso (lista /novogradnja i lista po gradu); oznake na fotografiji svijetle umjesto tamnoplave */
html body .nbl-bdg--esp { background: #996a37 !important; color: #fff !important; }
html body .nbl-bdg--esp .nbl-i { stroke: #fff !important; }
html body .nbl-anc a.is-ex { background: #996a37 !important; color: #fff !important; }
html body .nbv-esp { background: #996a37 !important; color: #fff !important; }
html body .nbv-esp .nbl-i { stroke: #fff !important; }
html body .nbl-leg__ex { background: #996a37 !important; }
html body .mdh-pin.mdh-pin--ex { background: #996a37 !important; color: #fff !important; border-color: #fff !important; box-shadow: 0 6px 16px rgba(153, 106, 55, .35) !important; }
html body .nbl-gb { background: rgba(255, 255, 255, .94) !important; color: #161e2d !important; }
html body .nbl-gb .nbl-i { stroke: #996a37 !important; }

/* ================= 4. JEDINICA /unit/{id}/details – raspored po uzoru na oglas ================= */
html body .ms-unit-page .container { max-width: 1320px; padding-left: 40px; padding-right: 40px; }
html body .ms-unit-page .ms-article__head { padding: 28px 0 32px; }
html body .ms-unit-page .ms-article__h1 { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
html body .ms-unit-page > .ms-sec:not(.ms-article__head) { padding-top: 40px; padding-bottom: 72px; }
html body .ms-unit-page > .ms-sec:not(.ms-article__head) > .container { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 40px; align-items: start; }
html body .ms-unit-page .ms-article__grid { display: contents; }
html body .ms-unit-page .ms-article__grid > div:first-child { grid-column: 1; grid-row: 1; }
html body .ms-unit-page .ms-article__side { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 96px; align-self: start; }
html body .ms-unit-page .ms-article__side .ms-card { border-radius: 20px; box-shadow: 0 14px 40px rgba(22, 30, 45, .08); }
html body .ms-unit-page .ms-card:has(> .nbr-up) .ms-unit-page__price,
html body .ms-unit-page .ms-card:has(> .nbr-up) .ms-unit-page__price + .ms-row__label { display: none; }
html body .ms-unit-page .ms-article__side .ms-card:has(> .nbr-up) .ms-specs { display: none; }   /* isti podaci su u pločicama „Osnovni podaci“ */
html body .nbr-up { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid #ece4d8; }
html body .nbr-up__l { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #5a6170; }
html body .nbr-up__p { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: #161e2d; }
html body .nbr-up__m { margin: 6px 0 0; font-size: 14px; color: #5a6170; }
html body .ms-unit-page .nbr-uf { grid-column: 1; grid-row: 2; margin-top: 40px; }
html body .nbr-uf__h, html body .ms-unit-page__calc h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 28px; line-height: 1.15; font-weight: 300; letter-spacing: -.02em; color: #161e2d; }
html body .nbr-uf__g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
html body .nbr-uf__g > div { padding: 16px 18px; border: 1px solid #ece4d8; border-radius: 16px; background: #fff; }
html body .nbr-uf__g dt { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: #5a6170; }
html body .nbr-uf__g dd { margin: 0; font-size: 18px; font-weight: 800; color: #161e2d; }
html body .nbr-uf__pr { display: flex; align-items: center; gap: 20px; margin-top: 16px; padding: 14px; border: 1px solid #e9d4b8; border-radius: 18px;
    background: linear-gradient(180deg, #f8efe3 0%, #e9d4b8 100%); color: #161e2d !important; text-decoration: none !important; transition: box-shadow .25s ease, transform .25s ease; }
html body .nbr-uf__pr:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(153, 106, 55, .18); }
html body .nbr-uf__pr:focus-visible { outline: 2px solid #ad7c46; outline-offset: 3px; }
html body .nbr-uf__pr img { flex: 0 0 180px; width: 180px; height: 120px; object-fit: cover; border-radius: 12px; }
html body .nbr-uf__pr span { display: flex; flex-direction: column; gap: 3px; }
html body .nbr-uf__pr small { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #85592c; }
html body .nbr-uf__pr b { font-size: 22px; font-weight: 800; }
html body .nbr-uf__pr em { font-style: normal; font-size: 14px; color: #5a6170; }
html body .nbr-uf__pr i { font-style: normal; margin-top: 6px; font-size: 14px; font-weight: 700; color: #85592c; }
html body .ms-unit-page .ms-unit-page__calc { grid-column: 1; grid-row: 3; max-width: none; margin-top: 48px; }

/* ================= 5. ZA INVESTITORE – traka brojki iste širine kao sekcije (kontejner), kartica umjesto linija od ivice do ivice ================= */
html body .iv .iv-nums-sec { border-top: 0; border-bottom: 0; padding: 8px 0 0; }
html body .iv .iv-nums-sec .container { padding-left: 24px; padding-right: 24px; }
html body .iv .iv-nums { border: 1px solid #ece4d8; border-radius: 18px; background: #fff; overflow: hidden; }
html body .iv .iv-nums li { border-right-color: #ece4d8; }

/* ================= 6. B3 – tablet položeno i mali računar 992–1279 px (direktor 15. 11. 2026, 21:37 „tablet odradi naravno“) =================
   Samo stranice koje fajl učitavaju sa media 992 (projekat, izbor stana, stranica stana); liste i Za investitore ga učitavaju tek od 1280.
   Isti računarski raspored – uže: kolona „Vaš stan“ 320 px, razmaci 24–28 px, manji naslovi, sekcije u lijevoj koloni bez dvije uske kolone.
   Položeno (visina < 900 px, npr. 1024 × 768, 1180 × 820): ljepljivo je ≤ 25 % visine ekrana – izbor stana: traka u dva reda
   (naziv + strukture u jednom redu, koraci u drugom), slika zgrade ide sa stranicom; kartica „Vaš stan“ je ljepljiva samo kad staje u ekran. */
@media (max-width: 1279.98px) {
    /* --- projekat --- */
    html body .nbp.nbe[data-nbr-p] { grid-template-columns: minmax(24px, 1fr) minmax(0, 820px) 24px 320px minmax(24px, 1fr); padding-bottom: 56px; }
    html body .nbp.nbe[data-nbr-p] > .nbe-hero { min-height: 500px; }
    html body .nbe-hero .nbe-wrap.nbe-hero__body { margin: 0 0 24px 24px; width: 540px; max-width: calc(100% - 48px); padding: 26px 28px 22px; }
    html body .nbe-hero__h1 { font-size: 40px; }
    html body .nbe-nums strong { font-size: 26px; }
    html body .nbr-yc__in { top: calc(var(--mdh-hh, 79px) + 16px); padding: 22px 20px 18px; gap: 12px; }
    html body .nbr-yc__in::before { left: 20px; right: 20px; }
    html body .nbr-yc__seg span { padding: 0 13px; font-size: 13.5px; }
    html body .nbr-yc__price strong { font-size: 28px; }
    html body .nbp.nbe[data-nbr-p] > .nbe-sec { padding-top: 48px; }
    html body .nbp.nbe[data-nbr-p] > .nbe-sec--prem, html body .nbp.nbe[data-nbr-p] > .nbe-sec--warm { margin-top: 48px; padding: 32px 28px 36px; }
    html body [data-nbr-p] .nbe-h2 { font-size: 30px; margin-bottom: 20px; }
    html body [data-nbr-p] .nbe-2c { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    html body .nbp.nbe[data-nbr-p] #placanje .nbe-2c:not(:has(> .nbe-now)) .nbe-paym { flex-direction: column; }
    html body .nbe-snav ul { padding-left: 24px; padding-right: 24px; }
    html body .nbp.nbe[data-nbr-p] #lokacija .nbe-lmap { aspect-ratio: 16 / 9; }

    /* --- stranica stana --- */
    html body .ms-unit-page .container { padding-left: 24px; padding-right: 24px; }
    html body .ms-unit-page .ms-article__h1 { font-size: 34px; }
    html body .ms-unit-page > .ms-sec:not(.ms-article__head) > .container { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 28px; }
    html body .ms-unit-page .ms-article__side { top: calc(var(--mdh-hh, 79px) + 16px); }
    html body .nbr-up__p { font-size: 30px; }
    html body .nbr-uf__g { gap: 10px; }
    html body .nbr-uf__g > div { padding: 14px 14px; }
    html body .nbr-uf__pr img { flex-basis: 150px; width: 150px; height: 100px; }
}
@media (max-width: 1279.98px) and (max-height: 899.98px) {
    /* izbor stana: traka – naziv i strukture u jednom redu (strukture se prevlače), koraci ispod; slika zgrade nije ljepljiva */
    html body .nbi .nbz-bar { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); align-items: center; column-gap: 12px; }
    html body .nbi .nbz-bar > * { grid-column: 1 / -1; }
    html body .nbi .nbz-bar > .nbi-head { grid-column: 1; max-width: 340px; margin: 0; padding-right: 0; }
    html body .nbi .nbz-bar > .nbi-chips { grid-column: 2; max-width: none; margin: 0; padding: 8px 24px 8px 0; flex-wrap: nowrap; }
    html body .nbi .nbz-bar > .nbi-chips .nbi-chip { flex: 0 0 auto; }
    html body .nbi .nbz-bar > .nbi-chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
    html body .nbi .nbz-vis { position: static; }
    /* kartica „Vaš stan“ i strana stana: na niskom ekranu idu sa stranicom (ne mogu cijele da stanu ispod zaglavlja) */
    html body .nbr-yc__in { position: relative; top: auto; }
    html body .ms-unit-page .ms-article__side { position: static; }
}

@media (prefers-reduced-motion: reduce) {
    html body .nbr-btn, html body .nbr-yc__seg span { transition: none; }
    html body .nbr-btn:hover { transform: none; }
}

} /* @media 992 (B3; ranije 1280 – stranice koje fajl učitavaju sa media 1280 ga i dalje primjenjuju tek od 1280) */

/* Ispravke noćne provjere (direktor 16. 11. 2026, 09:15): polja forme 16 px na cijelom tabletu – do 1024 već važi mdh-stil-zavrsna.css,
   1025–1279 (iPad Air 1180, iPad Pro) bila su 15 px (globalno pravilo iz mdh-tipografija.css) i iPad zumira stranicu pri unosu.
   Isti selektori kao B1 (mdh-forme-racunar.css); telefon, tablet do 1024 i računar ≥ 1280 bez promjene. */
@media (min-width: 1025px) and (max-width: 1279.98px) {
    html:root body textarea, html:root body input:not([type]), html:root body select, html:root body .form-control, html:root body .form-select,
    html:root body input[type=text], html:root body input[type=email], html:root body input[type=tel], html:root body input[type=password],
    html:root body input[type=number], html:root body input[type=search], html:root body input[type=url], html:root body input[type=date], html:root body input[type=time] {
        font-size: 16px !important;
    }
}
