/* Final integration of the approved demo with existing PHP views. */
:root{--portal-header-height:64px;--portal-sticky-height:164px;scroll-padding-top:calc(var(--portal-sticky-height) + 18px)}
body.social-portal{--brand:#147f98;--accent:#cb2034;--portal-seeker:#147f98;--portal-bg:#f4f8fa;color:#30383f;background:#f4f8fa}
.zkd-site-header{position:sticky;top:0;z-index:150;background:#fff}
.zkd-site-header .zkd-header-inner{height:64px;min-height:64px}
.zkd-site-header .zkd-brand img{width:112px;height:auto;max-height:45px}
.zkd-site-header .zkd-header-home{width:34px;height:34px;min-width:34px;border-radius:10px}
.zkd-site-header .zkd-header-home .zkd-icon{width:19px;height:19px}
.zkd-site-header .zkd-account-menu-panel{z-index:300}
.zk26-demo .stories-bar{position:sticky;top:var(--portal-header-height);z-index:100;background:linear-gradient(110deg,#fff5f6,#effaff);border-bottom:1px solid #d8e6ed}
.zk26-demo .stories-inner{min-height:96px;padding-block:10px}
.zk26-demo .stories-rail{scrollbar-width:none}
.zk26-demo .stories-rail::-webkit-scrollbar{display:none}
.zk26-demo .story-bubble{flex:0 0 76px;min-width:76px;padding:0;background:none;border:0}
.zk26-demo .story-ring,.zk26-demo .story-ring img{border-radius:50%!important;aspect-ratio:1}
.zk26-demo .story-ring{width:70px;height:70px;background:linear-gradient(145deg,#cf2337,#d73148 25%,#16889e 78%);padding:3px;box-shadow:0 2px 10px #b5233420}
.zk26-demo .story-ring img{display:block;width:100%;height:100%;border:3px solid #fff;object-fit:cover}
.zk26-demo .stories-bar:not(:has(.story-bubble)) .stories-inner{min-height:0;padding:0}
.sm-shell,.z25g-public{--brand:#147f98;--sm-brand:#147f98;--ink:#30383f;--muted:#64737e;--line:#dce5eb;--paper:#fff;--soft:#f3f8fb;color:#30383f;background:transparent}
.sm-shell h1,.sm-shell h2,.sm-shell h3,.z25g-public h1,.z25g-public h2,.z25g-public h3{color:#30383f}
.sm-shell .sm-panel,.sm-shell .sm-unit-card{background:#fff;border:1px solid #dce5eb;border-radius:18px;box-shadow:none}
.sm-shell .sm-kicker,.z25g-public .z25g-eyebrow{color:#147f98}
.sm-shell .sm-note,.sm-shell .sm-note p,.sm-shell .sm-card-body p,.sm-shell label{color:#596a75}
.sm-shell input,.sm-shell select,.sm-shell textarea{color:#30383f;background:#fff;border-color:#cddbe3;font-weight:500}
.sm-shell input::placeholder,.sm-shell textarea::placeholder{color:#697780;opacity:1}
.sm-shell .btn-primary{background:#147f98;color:#fff;border-color:#147f98}
.sm-shell .btn-ghost{background:#fff;color:#147187;border-color:#d5e1e7}
.sm-shell .sm-price{color:#30383f}
.sm-shell .sm-tags span{background:#edf7fa;color:#335f6c}
.sm-shell .sm-sidebar{top:calc(var(--portal-sticky-height) + 14px)}
.sm-gallery.zkd-detail-gallery{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px;height:390px;margin-block:20px;overflow:hidden}
.sm-gallery.zkd-detail-gallery .zkd-gallery-main{width:100%;height:100%;padding:0;border:0;overflow:hidden;border-radius:17px}
.sm-gallery.zkd-detail-gallery .zkd-gallery-main img{width:100%;height:100%;object-fit:cover}
.sm-gallery.zkd-detail-gallery .zkd-gallery-side{display:grid;grid-auto-flow:column;grid-auto-columns:100%;height:100%;overflow:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;border-radius:17px}
.sm-gallery.zkd-detail-gallery .zkd-gallery-side button{width:100%;height:100%;padding:0;border:0;scroll-snap-align:start}
.sm-gallery.zkd-detail-gallery .zkd-gallery-side img{width:100%;height:100%;object-fit:cover}
.sm-gallery.zkd-detail-gallery:has(>.zkd-gallery-main:last-child){grid-template-columns:1fr}
.sm-shell .zk26-detail-nav{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
.sm-shell .zk26-detail-nav a{padding:9px 14px;border:1px solid #d8e5ec;border-radius:10px;background:#fff;color:#16768b;font-weight:650}
.sm-shell .zk26-property-content{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:20px;align-items:start}
.sm-shell .zk26-property-content .sm-host-profile{margin:0;position:sticky;top:calc(var(--portal-sticky-height) + 14px)}
.sm-shell .zk26-property-content .sm-host-profile .sm-actions{display:grid;gap:10px}
.zkd-unit-mini{top:calc(var(--portal-sticky-height) + 6px)!important;z-index:95}
.zk25j-listing{--zk25j-header:var(--portal-sticky-height)!important}
.zkd-unit-actions,.zk26-contact-dock{box-sizing:border-box;display:flex;position:fixed;z-index:850;bottom:18px;left:50%;right:auto;transform:translateX(-50%);width:min(680px,calc(100% - 24px));gap:6px;padding:7px;border:1px solid #d5e2e9;border-radius:15px;background:#fffffff5;box-shadow:0 6px 30px #23445424;backdrop-filter:blur(12px)}
.zkd-unit-actions>a,.zk26-contact-dock>a,.zk26-contact-dock>button{display:flex;flex:1;align-items:center;justify-content:center;gap:6px;min-height:44px;border:0;border-radius:10px;background:transparent;color:#3f5a6a;font-size:13px;font-weight:650;text-align:center}
.zkd-unit-actions>a.zkd-unit-reserve,.zk26-contact-dock>.zk26-contact-primary{background:#147f98;color:#fff}
.zk26-contact-dock .zkd-icon,.zkd-unit-actions .zkd-icon{width:19px;height:19px}
body:has(.zk26-contact-dock),body:has(.zkd-unit-actions){padding-bottom:95px}
.zk26-demo .portal-choice-modal-dialog{width:min(800px,calc(100vw - 24px));max-width:800px;max-height:calc(100dvh - 30px);padding:25px;background:#fff;border:1px solid #dce5eb;border-radius:22px;color:#30383f;overflow:auto}
.zk26-demo .portal-choice-modal-dialog h3,.zk26-demo .portal-choice-modal-dialog b{color:#30383f}
.zk26-demo .portal-choice-modal-action.primary{background:#147f98;color:#fff}
.zk26-demo .portal-choice-preview-grid.popup-featured,.zk26-demo .portal-choice-preview-grid.popup-latest{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.zk26-demo .popup-featured .offer-card{display:flex;flex-direction:column}
.zk26-demo .popup-featured .offer-photo{height:160px}
.zk26-demo .popup-featured .offer-photo img{position:static;height:100%;width:100%;object-fit:cover}
.zk26-demo .popup-latest{margin-bottom:22px}
.zk26-demo .popup-latest .offer-card{display:grid;grid-template-columns:86px minmax(0,1fr)}
.zk26-demo .popup-latest .offer-photo{height:100%;min-height:140px}
.zk26-demo .popup-latest .offer-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.zk26-demo .popup-latest .offer-body{min-width:0;padding:12px}
.zk26-demo .popup-latest .favorite{display:none}
.zk26-demo .popup-latest .offer-price{font-size:18px}
.zk26-demo .zk26-popup-auth{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;border-top:1px solid #e0e8ed;padding-top:18px;margin-top:18px;color:#64737e}
.zk26-demo .zk26-popup-auth span{flex-basis:100%;text-align:center}
.zk26-demo .zk26-popup-auth a{color:#147f98;font-weight:700}
.zk26-demo .portal-choice-preview-empty{color:#5b6b76;background:#f6f9fb}
.zkd-offer-card .zkd-favorite[aria-pressed=true]{color:#c52337;background:#fff2f4}
.sm-shell .sm-grid>.zkd-offer-card{min-width:0}
.sm-shell .zkd-offer-card .zkd-offer-photo img{height:205px;object-fit:cover}
.sm-shell .zkd-offer-card h3{font-size:19px}
.sm-shell .zkd-offer-card .zkd-offer-body{gap:8px;padding:16px}
.sm-shell .sm-total{font-size:13px;margin:6px 0;color:#536b79}
.zk26-demo .search-history{display:grid;gap:12px}
.zk26-demo .search-history article{display:flex;justify-content:space-between;gap:14px;background:#fff;padding:18px;border:1px solid #dce5eb;border-radius:15px}
.zk26-demo .search-history article small{display:block;color:#64737e;margin-top:7px}
@media(min-width:901px){.sm-shell .sm-sidebar{position:sticky;max-height:calc(100dvh - var(--portal-sticky-height) - 30px);overflow:auto}.zkd-unit-mini-open .sm-shell .sm-sidebar{top:calc(var(--portal-sticky-height) + 106px);max-height:calc(100dvh - var(--portal-sticky-height) - 126px)}}
@media(max-width:900px){.sm-shell .zk26-property-content{grid-template-columns:1fr}.sm-shell .zk26-property-content .sm-host-profile{position:static}}
@media(max-width:760px){:root{--portal-header-height:56px;--portal-sticky-height:146px}.zkd-site-header .zkd-header-inner{height:56px;min-height:56px}.zkd-site-header .zkd-brand img{width:96px;max-height:36px}.zkd-site-header .zkd-header-home{height:30px;width:30px;min-width:30px}.zkd-site-header .zkd-brand-group{gap:6px}.zkd-site-header .zkd-header-actions .zkd-icon-btn,.zkd-site-header .zkd-account-menu>summary{height:34px;width:34px;min-width:34px;padding:6px}.zkd-site-header .zkd-header-actions>.zkd-primary{height:34px;min-height:34px;padding:7px 11px;font-size:12px}.zk26-demo .stories-inner{min-height:90px;padding-block:8px}.zk26-demo .story-bubble{flex-basis:72px;min-width:72px}.zk26-demo .story-ring{height:66px;width:66px}.zkd-unit-actions,.zk26-contact-dock{bottom:calc(65px + env(safe-area-inset-bottom,0px));width:calc(100% - 16px);padding:5px;gap:4px}.zkd-unit-actions>a,.zk26-contact-dock>a,.zk26-contact-dock>button{flex-direction:column;min-height:44px;gap:3px;font-size:11px}body:has(.zk26-contact-dock),body:has(.zkd-unit-actions){padding-bottom:155px}.sm-gallery.zkd-detail-gallery{height:auto;grid-template-columns:1fr;gap:10px}.sm-gallery.zkd-detail-gallery .zkd-gallery-main{height:245px}.sm-gallery.zkd-detail-gallery .zkd-gallery-side{height:145px;grid-auto-columns:65%}.zk26-demo .portal-choice-modal-dialog{padding:18px;max-height:calc(100dvh - 22px)}.zk26-demo .portal-choice-preview-grid.popup-featured{gap:10px!important}.zk26-demo .portal-choice-preview-grid.popup-latest{grid-template-columns:1fr!important}.zk26-demo .popup-featured .offer-photo{height:125px}.zk26-demo .popup-featured .offer-body{padding:10px}.zk26-demo .popup-featured h3{font-size:14px}.zk26-demo .popup-latest .offer-photo{min-height:125px}.zk26-demo .popup-latest .offer-card{grid-template-columns:86px minmax(0,1fr)}.sm-shell .zkd-offer-card .zkd-offer-photo img{height:185px}}
@media(max-width:380px){.zkd-site-header .zkd-brand img{width:82px}.zkd-site-header .zkd-header-actions{gap:4px}.zkd-site-header .zkd-favorite-header{display:none}}

.zkd-icon,.zk26-demo .icon{fill:none!important;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.zkd-icon path,.zk26-demo .icon path{fill:none!important}

.zk26-demo a.social-composer-prompt,.zk26-demo a.compact-compose{cursor:pointer;text-decoration:none;color:inherit}.zk26-demo .community-native-compose{max-width:780px;padding-block:24px}.zk26-demo .community-native-form{display:grid;gap:20px;background:#fff;border:1px solid #dce5eb;border-radius:18px;padding:22px;margin-top:20px}.zk26-demo .community-native-form textarea{min-height:150px}.zk26-demo .community-native-actions{display:flex;gap:10px;flex-wrap:wrap}.zk26-demo .community-form-notice{padding:16px 20px;margin:16px 0;background:#eef8fb;border:1px solid #c7e0e9;border-radius:14px;color:#285e70}.zk26-demo .community-form-notice a{color:#115e74;font-weight:700}.zk26-demo .community-form-error{padding:15px;background:#fff1f2;border:1px solid #ecc8ce;border-radius:12px;color:#92293d}.zk26-demo .community-native-form .composer-choice-grid{gap:10px}.zk26-demo .community-native-form input[type=file]{max-width:100%}

/* v18: jedan razmak između početnih prečica i prve sekcije, bez sabiranja. */
body.social-home .zkd-home-root>.home-hero .home-shortcuts{margin-bottom:0}
body.social-home .zkd-home-root>.home-content{padding-top:24px}
body.social-home .zkd-home-root>.home-content>.section:first-child{margin-top:0;padding-top:0!important}
@media(max-width:760px){body.social-home .zkd-home-root>.home-content{padding-top:16px}}

/* v19: kompaktni prelazi svih početnih sekcija, uključujući omotač Zajednice. */
body.social-home .zkd-home-root>.home-content>.section,
body.social-home .zkd-home-root>.home-content>.zk26-demo>.section{margin-top:0!important;margin-bottom:16px!important;padding-top:0!important;padding-bottom:0!important}
body.social-home .zkd-home-root>.home-content>:is(.roommate-section,.locations-section){padding:14px!important}
body.social-home .zkd-home-root .social-section[data-social-compact] .community-link{margin-top:12px;margin-bottom:0}
@media(min-width:761px){body.social-home .zkd-home-root>.home-content>.section,body.social-home .zkd-home-root>.home-content>.zk26-demo>.section{margin-bottom:24px!important}body.social-home .zkd-home-root>.home-content>:is(.roommate-section,.locations-section){padding:18px!important}}

@media(max-width:760px){
  .zk26-demo .stories-inner{min-height:0;padding-block:0}
  .zk26-demo .stories-rail{min-height:0;padding-block:5px;gap:9px}
  .zk26-demo .story-bubble{flex-basis:50px;min-width:50px;width:50px}
  .zk26-demo .story-ring{height:48px;width:48px;padding:2px}
  .zk26-demo .story-ring img{border-width:2px}
  .zk26-demo .story-promo-empty{min-height:44px}
  .listing-page #osnovni-podaci{padding:12px!important}
  .listing-page #osnovni-podaci .epsilon-section-head{margin-bottom:9px}
  .listing-page #osnovni-podaci .epsilon-section-head h2{font-size:19px;line-height:1.2}
  .listing-page #osnovni-podaci .epsilon-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}
  .listing-page #osnovni-podaci .epsilon-facts>div{
    display:grid;grid-template-columns:22px minmax(0,1fr);grid-template-areas:"icon label" "icon value";
    align-content:center;align-items:center;column-gap:7px;row-gap:2px;min-height:50px;
    padding:6px 8px;border-radius:10px
  }
  .listing-page #osnovni-podaci .epsilon-facts i{grid-area:icon;position:static;width:22px;height:22px;margin:0}
  .listing-page #osnovni-podaci .epsilon-facts span{grid-area:label;margin:0;font-size:11px;line-height:1.2;overflow-wrap:anywhere}
  .listing-page #osnovni-podaci .epsilon-facts b{grid-area:value;margin:0;font-size:14px;line-height:1.25}
}
