/* C93 – TABLET dio 2 (ostale stranice): 768–1023 px. Učitava se samo u tom opsegu (media na <link>); telefon (≤ 767) i računar (≥ 1280) ga ne preuzimaju.
   Direktor 30. 11. 2026: „tablet popunjen i lijep kao telefon“. Brend: bronza #996a37 / #ad7c46, topla #faf6f1, šampanj #f8efe3 → #e9d4b8, linije #ece4d8,
   tekst #161e2d, sporedni #5a6170; maslinasta samo male oznake, cigla samo greške; bez tamnoplave i tirkizne. Sav tekst u lang (sr, en) tablet_c93.php (sr + en). */

/* ================= 1. POČETNA 768–991 ================= */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* trake kartica → tri kolone, bez klizanja kad stanu */
    /* Izdvojeno: tri pune kartice (+ nagovještaj četvrte) kad ih je više; do tri kartice – mreža 3 × 1 */
    html body .mdh-sw-props:not(.swiper-initialized) .swiper-slide { flex: 0 0 calc((100% - 28px) / 3.25); width: calc((100% - 28px) / 3.25) !important; }
    html body .mdh-sw-props:not(.swiper-initialized) > .swiper-wrapper:has(> :nth-child(1):nth-last-child(-n+3)) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
    html body .mdh-sw-props:not(.swiper-initialized) > .swiper-wrapper:has(> :nth-child(1):nth-last-child(-n+3)) .swiper-slide { width: auto !important; }
    /* Zašto izabrati MDH: 3 kartice u jednom redu */
    html body .mdh-hs--why .mdh-num { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none; }
    html body .mdh-hs--why .mdh-num__card { flex: none; }
    html body .mdh-hs--why .hpm-dots { display: none; }
    /* Za vlasnike: 4 koraka u mreži 2 × 2 */
    html body .hp-own-sec .mdh-sc__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none; align-items: stretch; }
    html body .hp-own-sec .mdh-sc__st { flex: none; }
    html body .hp-own-sec .mdh-sc__dots { display: none; }
    /* „Nekretninu upoznajte prije obilaska“: lijeva kolona jednake visine kao slika – koraci vertikalno u sredini, dugme dolje */
    html body .hpd-story__g { align-items: stretch; }
    html body .hpd-story__l { align-self: stretch; height: auto; justify-content: center; gap: 18px; }
    html body .hpd-story__l .hpd-stp { flex: 0 0 auto; gap: 10px; }
    html body .hpd-story__l .hpd-st { padding-block: 16px; }
}
/* računar ≥ 1280: manji razmak između „Uvijek znate kako ide“ i „Izaberite grad“ (direktor: ≈ 250 px praznine) – jedini izuzetak na računaru */
@media (min-width: 1280px) {
    html body #mdh-main > .hp-own-sec { padding-bottom: 12px !important; }
    html body #mdh-main > .hp-own-sec + .mdh-hs-sep, html body #mdh-main > .mdh-hs--cities { padding-top: 12px !important; }
}

/* ================= 2. LUKSUZNE 768–991 ================= */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* hero: tekst lijevo, luk (ili pečat) desno */
    html body .mdh-lx .lx-hero__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: center; }
    html body .mdh-lx .lx-hero__in .lx-arch { margin: 0 auto; max-width: 260px; }
    html body .mdh-lx .lx-hero__in .lx-arch.is-plate { max-width: 140px; }
    /* Privatna lista: tekst lijevo, forma desno */
    html body .mdh-lx .lx-priv__in { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; padding: 32px; align-items: start; }
    html body .mdh-lx .lx-priv__txt > p:not(.lx-k) { max-width: none; }
}

/* ================= 3. O NAMA 768–1023: „Ljudi“ i „Partneri“ jedan pored drugog ================= */
@media (min-width: 768px) and (max-width: 1023.98px) {
    html body .fr-on-tp:not(.is-solo) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; align-items: start; padding: 0 24px; }
    html body .fr-on-tp:not(.is-solo) > section { margin: 0 !important; padding: 36px 0 44px !important; background: transparent !important; }
    html body .fr-on-tp:not(.is-solo) > section > .container { max-width: none !important; margin: 0 !important; padding: 0 !important; }
    html body .fr-on-tp:not(.is-solo) .on-partners { grid-template-columns: minmax(0, 1fr); }
}

/* ================= 4. PROCJENA ================= */
@media (min-width: 768px) and (max-width: 1023.98px) {
    /* tablet: forma lijevo, desno „Šta dobijate“ + koraci + agent */
    html body .kt-vl .fr-vl { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); column-gap: 28px; align-items: start; max-width: 1000px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
    html body .kt-vl .fr-vl > .kt-top { grid-column: 1 / -1; grid-row: 1; order: 0; }
    html body .kt-vl .fr-vl > .kt-vl-sec { grid-column: 1; grid-row: 2; order: 0; min-width: 0; }
    html body .kt-vl .fr-vl > .fr-vl-side.frd { grid-column: 2; grid-row: 2; order: 0; display: block !important; position: sticky; top: 88px; min-width: 0; }
    html body .kt-vl .fr-vl .container, html body .kt-vl .fr-vl .kt-narrow { max-width: none; padding-left: 0; padding-right: 0; }
    html body .kt-vl .fr-vl-how { max-width: none; padding: 0; margin: 22px 0 0; }
    html body .kt-vl .fr-vl-side > .c93-vl-get:not(#c93z), html body .kt-vl .fr-vl-side > .fr-agent:not(#c93z) { display: block !important; }
    html body .kt-vl .fr-vl-side > .fr-agent:not(#c93z) { display: flex !important; margin-top: 18px; }
    html body .kt-vl .fr-vl-side > .fr-live:not(#c93z)[hidden] { display: none !important; }
    html body .kt-vl .fr-vl-side > .c93-vl-met:not(#c93z) { display: none !important; }
    html body .c93-vl-get { padding: 20px 22px 18px; border: 1px solid #ece4d8; border-radius: 20px; background: linear-gradient(160deg, #f8efe3, #fff 70%); }
    html body .c93-vl-get__t { margin: 0 0 12px; font-size: 20px; line-height: 1.25; font-weight: 800; color: #161e2d; }
    html body .c93-vl-get__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
    html body .c93-vl-get__l li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; color: #161e2d; }
    html body .c93-vl-get__l li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #ad7c46; background: radial-gradient(circle, #ad7c46 0 3px, transparent 3.5px); }
    html body .kt-vl .fr-vl-faq { max-width: 1000px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
}
@media (min-width: 1280px) {
    /* računar: „Kako procjenjujemo“ u lijevoj koloni ispod koraka */
    html body .c93-vl-met { margin-top: 32px; }
    html body .c93-vl-met .fr-h2 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 300; letter-spacing: -.025em; color: #161e2d; }
    html body .c93-vl-met__l { list-style: none; counter-reset: c93m; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
    html body .c93-vl-met__l li { counter-increment: c93m; position: relative; padding: 0 0 0 44px; font-size: 15.5px; line-height: 1.6; color: #161e2d; }
    html body .c93-vl-met__l li::before { content: counter(c93m); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1.5px solid #ad7c46; border-radius: 50%; background: #fff; font-size: 13px; font-weight: 800; color: #996a37; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
    html body .kt-vl .fr-vl-side .fr-steps { grid-template-columns: minmax(0, 1fr); }
    html body .kt-vl .fr-vl-side > .fr-agent:not(#c93z) { display: grid !important; gap: 10px; padding: 16px 18px; border: 1px solid #ece4d8; border-radius: 20px; background: #fff; }
    html body .fr-agent__f { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
    html body .fr-agent__f li { width: 44px; height: 44px; margin-left: -8px; border: 2px solid #fff; border-radius: 50%; overflow: hidden; background: #f8efe3; display: grid; place-items: center; font-weight: 800; color: #996a37; }
    html body .fr-agent__f li:first-child { margin-left: 0; }
    html body .fr-agent__f img { width: 100%; height: 100%; object-fit: cover; }
    html body .fr-agent__t { margin: 0; font-size: 15.5px; line-height: 1.35; font-weight: 800; color: #161e2d; }
    html body .fr-agent__n { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: #5a6170; }
    html body .fr-agent__n a { color: #996a37; font-weight: 700; }
    html body .fr-agent__b { display: flex; flex-wrap: wrap; gap: 8px; }
    html body .fr-agent__b a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #996a37; border-radius: 999px; font-size: 14.5px; font-weight: 800; color: #996a37; text-decoration: none; background: #fff; }
}

/* ================= 5. PROFIL AGENTA 768–1023 ================= */
@media (min-width: 768px) and (max-width: 1023.98px) {
    html body .mdh-ag .ag-book[hidden] { display: inline-flex !important; flex: 1 1 100%; align-items: center; justify-content: center; min-height: 48px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    html body .mdh-ag--split .ag-hero__txt { max-width: calc(100% - 360px); }
    html body .mdh-ag .ag-body--split { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 28px; }
    html body .mdh-ag .ag-tabs { min-width: 0; }
    html body .mdh-ag .ag-track { gap: 14px; }
    html body .mdh-ag .ag-revs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    html body .mdh-ag .ag-revs li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    html body .mdh-ag .ag-hero { text-align: left; }
}
