/*
 * Oglas bez fotografija / bez tlocrta – varijanta A (direktor 8. 11. 2026, 10:30–10:32, mockup scratchpad/bezslike/m.html + m2.html tačka 3).
 * Agencija svaku nekretninu profesionalno fotografiše – ovo je privremeno stanje. Bez tuđih/generičkih fotografija i 3D prikaza.
 * Partiali: resources/views/user/partials/bez_foto/{card,thumb,hero,tlocrt,modal}.blade.php
 * Kontrast (AA): #85592c na sredini prelaza 4,8 · #6b5640 (13,5 px) ≥ 4,8 · #5b6170 na kartici tlocrta ≥ 4,9 · #fff na #996a37 4,7.
 */
.mdh-bf {
    position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 16px; text-align: center; overflow: hidden;
    background: linear-gradient(160deg, #f8efe3 0%, #e9d4b8 100%); color: #85592c;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.mdh-bf::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #ad7c46; pointer-events: none; }
.mdh-bf__ring { flex: 0 0 auto; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.mdh-bf__ring svg { display: block; width: 26px; height: 26px; }
.mdh-bf__t { display: block; margin: 0; font-size: 15px; line-height: 1.3; font-weight: 700; color: #85592c; letter-spacing: -.005em; }

/* kartica oglasa (.mdh-nc) – šifra, Prodaja/Izdavanje, agent i srce ostaju na svojim mjestima (z-index 2–3) */
.mdh-nc__media.is-noimg { background: #f8efe3; }
.mdh-nc__media.is-noimg::after { display: none; }
.mdh-bf--card { padding: 52px 16px; }

/* mala sličica (Omiljene, Sačuvane pretrage u nalogu) */
.mdh-bf--thumb { position: relative; inset: auto; gap: 6px; padding: 10px; }
.mdh-bf--thumb .mdh-bf__ring { width: 40px; height: 40px; }
.mdh-bf--thumb .mdh-bf__ring svg { width: 20px; height: 20px; }
.mdh-bf--thumb .mdh-bf__t { font-size: 12.5px; }

/* vrh oglasa bez fotografija: okvir ~300 px na telefonu, radius kao galerija; računar proporcionalno */
.mdh-bf--hero {
    position: relative; inset: auto; height: 300px; gap: 8px; padding: 24px 16px; border-radius: 20px; border: 1px solid #efe7dc;
}
.mdh-bf--hero .mdh-bf__t { margin-top: 4px; font-size: 17px; font-weight: 800; }
.mdh-bf__s { display: block; margin: 0; font-size: 13.5px; line-height: 1.45; font-weight: 500; color: #6b5640; }
.mdh-bf__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.mdh-bf__btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 12px;
    font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
    border: 1.5px solid #996a37; transition: background-color .2s, color .2s, border-color .2s;
}
.mdh-bf__btn--solid { background: #996a37; color: #fff; }
.mdh-bf__btn--solid:hover, .mdh-bf__btn--solid:focus-visible { background: #85592c; border-color: #85592c; color: #fff; }
.mdh-bf__btn--line { background: #fff; color: #85592c; }
.mdh-bf__btn--line:hover, .mdh-bf__btn--line:focus-visible { background: #faf6f1; color: #85592c; }
.mdh-bf__btn:focus-visible { outline: 3px solid #161e2d; outline-offset: 2px; }
@media (min-width: 768px) {
    .mdh-bf--hero { height: clamp(320px, 36vw, 440px); gap: 10px; }
    .mdh-bf--hero .mdh-bf__ring { width: 64px; height: 64px; }
    .mdh-bf--hero .mdh-bf__ring svg { width: 30px; height: 30px; }
    .mdh-bf--hero .mdh-bf__t { font-size: 19px; }
    .mdh-bf--hero .mdh-bf__s { font-size: 14.5px; }
}
/* stan u novogradnji: okvir u koloni sadržaja */
.ms-unit-page .mdh-bf--hero { height: 300px; }
@media (min-width: 768px) { .ms-unit-page .mdh-bf--hero { height: 360px; } }

/* kartica „Tlocrt u pripremi“ (m2.html, tačka 3) */
.mdh-fp {
    display: flex; align-items: center; gap: 14px; padding: 16px; margin: 0;
    border: 1px solid #efe7dc; border-top: 3px solid #ad7c46; border-radius: 18px;
    background: linear-gradient(160deg, #f8efe3 0%, #f3e4cf 100%); font-family: 'Plus Jakarta Sans', sans-serif; text-align: left;
}
.mdh-fp__ring { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.mdh-fp__ring svg { display: block; width: 24px; height: 24px; }
.mdh-fp__body { min-width: 0; }
.mdh-fp__t { display: block; margin: 0; font-size: 15px; line-height: 1.3; font-weight: 700; color: #161e2d; }
.mdh-fp__s { display: block; margin: 2px 0 8px; font-size: 13px; line-height: 1.45; color: #5b6170; }
.mdh-fp__link {
    display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0; border: 0; background: none;
    font-family: inherit; font-size: 14px; font-weight: 700; color: #85592c; text-decoration: none; cursor: pointer;
}
.mdh-fp__link:hover, .mdh-fp__link:focus-visible { color: #85592c; text-decoration: underline; text-underline-offset: 3px; }
.mdh-fp__link:focus-visible { outline: 2px solid #ad7c46; outline-offset: 3px; border-radius: 4px; }
/* u desnoj koloni oglasa (pored galerije) – poravnato sa vrhom galerije na računaru */
.mdh-fp-col .mdh-fp { margin-top: 16px; }
@media (min-width: 768px) { .mdh-fp-col .mdh-fp { margin-top: 0; } }

/* mali prozor („Javite mi“ / „Zatražite tlocrt“); na telefonu donji list */
#mdhLeadModal .modal-content { border-radius: 20px; font-family: 'Plus Jakarta Sans', sans-serif; }
#mdhLeadModal .modal-title { font-size: 18px; font-weight: 800; color: #161e2d; }
#mdhLeadModal .ml-intro { font-size: 14px; color: #5b6170; margin: 0 0 12px; line-height: 1.5; }
#mdhLeadModal .ml-label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: #161e2d; }
#mdhLeadModal .ml-label small { font-weight: 500; color: #5b6170; }
#mdhLeadModal .form-control { min-height: 46px; font-size: 16px; border-radius: 12px; border-color: #e5ddd2; }
#mdhLeadModal .form-control:focus { border-color: #ad7c46; box-shadow: 0 0 0 3px rgba(173, 124, 70, .18); }
#mdhLeadModal .ml-consent { display: flex; gap: 8px; margin-top: 12px; font-size: 13px; line-height: 1.45; color: #5b6170; }
#mdhLeadModal .ml-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: #996a37; }
#mdhLeadModal .ml-consent a { color: #85592c; font-weight: 600; }
#mdhLeadModal .ml-submit { width: 100%; min-height: 48px; margin-top: 14px; border: 0; border-radius: 12px; background: #996a37; color: #fff; font-size: 15px; font-weight: 700; }
#mdhLeadModal .ml-submit:hover, #mdhLeadModal .ml-submit:focus-visible { background: #85592c; }
#mdhLeadModal .ml-submit[aria-busy="true"] { opacity: .7; cursor: progress; }
#mdhLeadModal .ml-err { min-height: 0; margin-top: 8px; font-size: 13px; color: #b42318; }
#mdhLeadModal .ml-done { display: none; padding: 8px 0 4px; text-align: center; }
#mdhLeadModal .ml-done p { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: #161e2d; }
#mdhLeadModal [hidden] { display: none !important; }
/* dok je prozor otvoren, zaglavlje sajta (z-index 999999999) ide ispod zatamnjenja */
body.mdh-lead-open #header { z-index: 1040 !important; }
#mdhLeadModal .ml-done .ml-close { margin-top: 14px; min-height: 44px; padding: 10px 22px; border-radius: 12px; border: 1.5px solid #996a37; background: #fff; color: #85592c; font-weight: 700; font-size: 14px; }
@media (max-width: 767.98px) {
    #gallery .mdh-bf--hero, #gallery .mdh-fp { margin-left: 16px; margin-right: 16px; }
}
@media (max-width: 575.98px) {
    #mdhLeadModal .modal-dialog { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; min-height: 0; display: block; margin: 0; transform: translateY(100%); transition: transform .25s ease-out; }
    #mdhLeadModal.show .modal-dialog { transform: none; }
    #mdhLeadModal .modal-content { border-radius: 22px 22px 0 0; max-height: 88vh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
    #mdhLeadModal .modal-content::before { content: ""; display: block; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: #e5ddd2; }
}

/* ---------- Paneli (kupac, vlasnik, agent) – oglas bez fotografije umjesto starog logotipa (direktor 15. 11. 2026, 19:48) ---------- */
.mdh-bf--panel { position: relative; inset: auto; flex: none; box-sizing: border-box; }
.mdh-bf--p-card { width: 100%; height: 180px; padding: 16px; }
.mdh-bf--p-thumb { gap: 6px; padding: 8px; }
.mdh-bf--p-thumb .mdh-bf__ring { width: 40px; height: 40px; }
.mdh-bf--p-thumb .mdh-bf__ring svg { width: 20px; height: 20px; }
.mdh-bf--p-thumb .mdh-bf__t { font-size: 12.5px; }
.mdh-bf--p-mini { width: 88px; height: 62px; border-radius: 10px; padding: 0; gap: 0; }
.mdh-bf--p-mini::before { height: 2px; }
.mdh-bf--p-mini .mdh-bf__ring { width: 34px; height: 34px; }
.mdh-bf--p-mini .mdh-bf__ring svg { width: 18px; height: 18px; }
@media (max-width: 767.98px) { .mdh-bf--p-card { height: 190px; } }
/* sličica 120 × 90 je preuska za natpis u dva reda – samo znak; na telefonu (puna širina, 170 px) i natpis */
@media (min-width: 768px) { .mdh-bf--p-thumb .mdh-bf__t { display: none; } }
@media (max-width: 767.98px) {
    .mdh-bf--p-thumb { gap: 10px; }
    .mdh-bf--p-thumb .mdh-bf__ring { width: 56px; height: 56px; }
    .mdh-bf--p-thumb .mdh-bf__ring svg { width: 26px; height: 26px; }
    .mdh-bf--p-thumb .mdh-bf__t { font-size: 15px; }
}
