/* MONLY v2.0 — početna: full-bleed hero, staklasto zaglavlje, široka traka pretrage
   i mirna navigacija u dva reda. Ista paleta i tipografija kao ostatak sajta. */

.page-home {
  background: #ffffff;
}

/* ---------- zaglavlje preko fotografije ---------- */
.page-home .topbar-home {
  display: block;
  position: absolute;
  inset: 0 0 auto;
  z-index: 60;
  height: auto;
  background: linear-gradient(180deg, rgba(4, 10, 20, .84) 0%, rgba(4, 10, 20, .5) 58%, rgba(4, 10, 20, 0) 100%);
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.page-home .topbar-home .topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 0 10px;
}

.page-home .topbar-home .brand {
  flex: none;
  color: #fff;
  font-size: 25px;
  letter-spacing: -.03em;
}

.page-home .topbar-home .brand-symbol {
  background: #fff;
  color: #001f44;
}

/* Pregledaj — padajući meni */
.browse-menu {
  position: relative;
  flex: none;
}

.browse-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  list-style: none;
  cursor: pointer;
  color: rgba(255, 255, 255, .92);
  font: 600 13px/1 var(--domis-ui);
  letter-spacing: .01em;
  white-space: nowrap;
}

.browse-menu summary::-webkit-details-marker {
  display: none;
}

.browse-menu summary:hover,
.browse-menu[open] summary {
  color: #fff;
}

.browse-menu summary span {
  font-size: 11px;
  opacity: .8;
  transition: transform .16s ease;
}

.browse-menu[open] summary span {
  transform: rotate(180deg);
}

.browse-panel {
  position: absolute;
  z-index: 70;
  top: calc(100% + 10px);
  left: 0;
  min-width: 236px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(2, 10, 24, .28);
}

.browse-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: #1c2a3d;
  font: 600 12.5px/1.25 var(--domis-ui);
  text-decoration: none;
}

.browse-panel a:hover,
.browse-panel a:focus-visible {
  background: #eef3ff;
  color: #0058ff;
}

/* ---------- traka pretrage u zaglavlju ---------- */
.hero-search-bar {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 10, 30, .26);
}

.hs-q {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.hs-q input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: transparent;
  color: #0f172a;
  font: 500 14px/1 var(--domis-ui);
  outline: none;
}

.hs-q input::placeholder {
  color: #8b96a8;
  font-weight: 400;
}

.hs-type,
.hs-price {
  display: flex;
  align-items: center;
  flex: none;
  height: 30px;
  border-left: 1px solid #e8ecf2;
}

.hs-type select,
.hs-price select {
  max-width: 150px;
  height: 100%;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: #334155;
  font: 600 12.5px/1 var(--domis-ui);
  cursor: pointer;
  outline: none;
}

.hero-search-bar .search-submit {
  flex: none;
  width: 54px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 0 11px 11px 0;
  background: #0058ff;
  color: #fff;
  display: grid;
  place-items: center;
}

.hero-search-bar .search-submit:hover {
  background: #0046cc;
}

.hero-search-bar .search-submit svg {
  width: 19px;
  height: 19px;
}

.hero-search-bar .suggest-box {
  top: calc(100% + 8px);
  left: 0;
  width: min(430px, calc(100vw - 48px));
}

/* ---------- navigacija u drugom redu ---------- */
.page-home .topbar-home .hero-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 2px 0 20px;
}

.page-home .topbar-home .hero-nav a {
  padding: 5px 0;
  color: rgba(255, 255, 255, .8);
  font: 600 12.5px/1 var(--domis-ui);
  letter-spacing: .015em;
  text-transform: none;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page-home .topbar-home .hero-nav a:hover,
.page-home .topbar-home .hero-nav a:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .7);
}

.page-home .topbar-home .login-link {
  color: rgba(255, 255, 255, .92);
  font: 600 13px/1 var(--domis-ui);
  letter-spacing: .01em;
  text-transform: none;
}

.page-home .topbar-home .login-link:hover {
  color: #fff;
}

.page-home .topbar-home .post-button {
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font: 600 11.5px/1 var(--domis-ui);
  letter-spacing: .02em;
  text-transform: none;
}

.page-home .topbar-home .post-button:hover {
  background: #fff;
  color: #001f44;
}

.page-home .topbar-home .nav-actions {
  flex: none;
  gap: 16px;
}

/* ---------- hero ---------- */
.page-home .hero-block {
  padding: 0;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(660px, 84vh);
  overflow: hidden;
  background: #071120;
}

.hero-stage .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-stage .hero-media picture,
.hero-stage .hero-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-stage .hero-media img {
  object-fit: cover;
  object-position: center 44%;
}

/* v2.01 — filmski sloj u bojama brenda: topla svjetlost zalaska + navy dubina */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(118% 88% at 76% 18%, rgba(255, 180, 104, .18) 0%, rgba(255, 180, 104, 0) 54%),
    linear-gradient(102deg, rgba(0, 17, 38, .95) 0%, rgba(0, 31, 68, .82) 32%, rgba(0, 31, 68, .34) 64%, rgba(6, 22, 44, .16) 100%),
    linear-gradient(180deg, rgba(0, 14, 32, .5) 0%, rgba(0, 14, 32, .04) 30%, rgba(0, 14, 32, .3) 100%);
}

.hero-stage .hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  width: calc(100% - 48px);
  max-width: 1180px;
  min-height: 0;
  margin: 0 auto;
  padding: 150px 0 84px;
}

.hero-stage .hero-copy {
  max-width: 660px;
  padding: 0;
}

.page-home .hero-copy .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  margin: 0 0 20px;
  color: #d9e4f6;
  font: 700 10px/1 var(--domis-ui);
  letter-spacing: .34em;
  text-transform: uppercase;
}

.page-home .hero-copy .hero-kicker:before {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, #8fb2ff 0%, rgba(143, 178, 255, 0) 100%);
}

.page-home .hero-stage .hero-copy h1 {
  margin: 0 0 20px;
  max-width: 20ch;
  color: #fff;
  font-family: var(--domis-display);
  font-size: clamp(40px, 4.7vw, 68px);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: balance;
}

/* Naslov sa suptilnim prelazom bijelog u ledeno plavo: čitljivo i na tamnom i na svijetlom dijelu fotografije. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-home .hero-stage .hero-copy h1 {
    background: linear-gradient(180deg, #ffffff 0%, #eaf0fb 58%, #d3def1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.page-home .hero-copy .hero-lead {
  margin: 0 0 30px;
  max-width: 46ch;
  color: rgba(234, 241, 252, .84);
  font-size: 16px;
  line-height: 1.68;
}

/* Tri kratke tvrdnje ispod dugmadi — naslijeđuju poruke uklonjene trake povjerenja. */
.page-home .hero-copy .hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hero-copy .hero-proof li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(224, 233, 248, .82);
  font: 500 12px/1.35 var(--domis-ui);
  letter-spacing: .01em;
}

.page-home .hero-copy .hero-proof li:before {
  content: '';
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(124, 166, 255, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c3d6ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/9px 9px no-repeat;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.page-home .hero-cta {
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #0b1a2b;
  padding: 15px 28px;
  font: 600 13px/1 var(--domis-ui);
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .7);
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.page-home .hero-cta:hover {
  background: #f4f7ff;
  border-color: #f4f7ff;
  transform: translateY(-1px);
}

.page-home .hero-cta.is-ghost {
  background: rgba(255, 255, 255, .07);
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.page-home .hero-cta.is-ghost:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .8);
}

.hero-link {
  color: rgba(255, 255, 255, .9);
  font: 600 12.5px/1.3 var(--domis-ui);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-link:hover {
  color: #fff;
}

/* ---------- telefon i tablet ---------- */
@media (max-width: 979px) {
  .page-home .topbar-home {
    position: sticky;
    height: auto;
    padding-bottom: 4px;
    background: #001528;
    box-shadow: 0 12px 30px rgba(0, 10, 25, .24);
  }

  .page-home .topbar-home .topbar-inner {
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    width: calc(100% - 32px);
    padding: 11px 0 8px;
  }

  .page-home .topbar-home .brand {
    font-size: 23px;
  }

  .browse-menu {
    display: none;
  }

  .page-home .hero-search-bar {
    order: 3;
    flex-basis: 100%;
    height: 46px;
    margin-top: 2px;
    border-radius: 10px;
  }

  .hs-q input {
    height: 44px;
    padding: 0 13px;
    font-size: 12.5px;
  }

  .hs-type {
    display: none;
  }

  .hs-price select {
    max-width: 96px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .hero-search-bar .search-submit {
    width: 46px;
    height: 44px;
    border-radius: 0 9px 9px 0;
  }

  .hero-search-bar .search-submit svg {
    width: 17px;
    height: 17px;
  }

  .page-home .topbar-home .hero-nav {
    display: none !important;
  }

  .hero-stage {
    min-height: 540px;
  }

  .hero-stage .hero-media img {
    object-position: center 46%;
  }

  .hero-shade {
    background:
      radial-gradient(130% 70% at 62% 12%, rgba(255, 180, 104, .16) 0%, rgba(255, 180, 104, 0) 58%),
      linear-gradient(180deg, rgba(0, 14, 32, .74) 0%, rgba(0, 22, 46, .42) 38%, rgba(0, 14, 32, .8) 100%);
  }

  .hero-stage .hero-inner {
    width: calc(100% - 32px);
    padding: 28px 0 36px;
  }

  .page-home .hero-stage .hero-copy h1 {
    font-size: clamp(30px, 8vw, 40px);
    max-width: 15ch;
    margin-bottom: 14px;
  }

  .page-home .hero-copy .hero-kicker {
    margin-bottom: 14px;
    gap: 9px;
    font-size: 9px;
    letter-spacing: .15em;
  }

  .page-home .hero-copy .hero-kicker:before {
    width: 22px;
  }

  .page-home .hero-copy .hero-lead {
    margin-bottom: 22px;
    max-width: 42ch;
    font-size: 13.5px;
    line-height: 1.62;
  }

  .page-home .hero-copy .hero-proof {
    gap: 8px 18px;
    margin-top: 20px;
  }

  .page-home .hero-copy .hero-proof li {
    font-size: 11.5px;
  }

  .hero-actions {
    gap: 10px;
  }

  .page-home .hero-cta {
    padding: 12px 18px;
    font-size: 12px;
  }

  .hero-link {
    font-size: 11.5px;
  }

}

@media (max-width: 560px) {
  .hero-stage {
    min-height: 500px;
  }

  .page-home .hero-stage .hero-copy h1 {
    font-size: clamp(29px, 8.6vw, 36px);
  }

  .hero-stage .hero-inner {
    padding: 22px 0 30px;
  }
}

/* ==========================================================================
   v2.1 — varijanta „Marketplace First“
   Kraći hero, jedna mirna filter traka i mreža od tačno tri oglasa u redu.
   ========================================================================== */

.page-home .hero-stage {
  min-height: 370px;
}

.page-home .hero-stage .hero-inner {
  padding: 104px 0 44px;
}

.page-home .hero-stage .hero-copy h1 {
  max-width: 22ch;
  margin-bottom: 12px;
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.02;
}

.page-home .hero-copy .hero-kicker {
  margin-bottom: 12px;
}

.page-home .hero-copy .hero-lead {
  max-width: 54ch;
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.55;
}

.page-home .hero-copy .hero-proof {
  display: none;
}

.page-home .hero-actions {
  gap: 10px;
}

.page-home .hero-link {
  display: none;
}

.page-home .hero-cta {
  padding: 12px 21px;
  font-size: 12.5px;
}

/* Traka u zaglavlju: lakša, bez teškog sjaja. */
.page-home .hero-search-bar {
  height: 50px;
  border-color: rgba(255, 255, 255, .52);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 10, 30, .22);
}

.page-home .hs-q input {
  height: 48px;
  font-size: 13px;
}

.page-home .hero-search-bar .search-submit {
  height: 48px;
  border-radius: 0 9px 9px 0;
}

/* Filter traka: jedan red, bez druge linije popularnih gradova. */
body.page-home .search-console {
  margin: -22px auto 0;
  padding: 8px 10px;
  border-radius: 14px;
  box-shadow: 0 22px 46px -28px rgba(2, 12, 32, .46), 0 2px 8px rgba(2, 12, 32, .04);
}

body.page-home .search-console .result-bar {
  gap: 8px;
}

body.page-home .search-console .rb-tab {
  padding: 8px 14px;
  font-size: 11px;
}

body.page-home .search-console .rb-pill {
  padding: 8px 12px;
  font-size: 11px;
}

body.page-home .search-console .rb-more {
  padding: 8px 13px;
  font-size: 11px;
}

body.page-home .search-console .rb-save {
  font-size: 11px;
}

body.page-home .search-console .rb-popular {
  display: none;
}

body.page-home .search-console .rb-chips:not(:empty) {
  margin-top: 8px;
}

/* Oglasi: tačno tri u redu, iste visine, sa vazduhom između. */
body.page-home .listing-section {
  padding: 26px 0 52px;
}

body.page-home .agency-filter-note[hidden] {
  display: none;
}

body.page-home .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

body.page-home .section-heading h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -.035em;
  margin: 6px 0 4px;
}

body.page-home .section-heading p {
  font-size: 11.5px;
}

body.page-home .property-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

body.page-home .property-card {
  height: 100%;
  border: 1px solid #e3e9f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 35, 65, .045);
}

body.page-home .property-card:hover {
  border-color: #c9d9ef;
  box-shadow: 0 18px 36px rgba(15, 35, 65, .11);
}

body.page-home .card-photo {
  aspect-ratio: 3 / 2;
}

body.page-home .property-info {
  padding: 14px 15px 15px;
}

body.page-home .property-title {
  min-height: 2.9em;
  font-size: 14.5px;
  line-height: 1.34;
  letter-spacing: -.015em;
}

body.page-home .property-location {
  font-size: 11px;
  line-height: 1.5;
}

body.page-home .card-facts {
  gap: 9px;
  margin-top: 9px;
  padding-top: 0;
}

body.page-home .card-fact small {
  font-size: 8.5px;
}

body.page-home .card-fact b {
  font-size: 12px;
}

/* Tri kartice u redu: svi podaci i cijena ostaju u jednom redu bez skraćivanja. */
@media (max-width: 1180px) {
  body.page-home .card-facts {
    gap: 8px;
  }

  body.page-home .card-fact small {
    font-size: 8px;
    letter-spacing: .04em;
  }

  body.page-home .card-fact b {
    font-size: 11px;
  }

  body.page-home .card-price {
    font-size: 16px;
  }
}

body.page-home .card-seller-row {
  gap: 9px;
  padding-top: 0;
}

body.page-home .card-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

body.page-home .card-seller-text b {
  font-size: 11.5px;
}

body.page-home .card-agency-inline {
  font-size: 10px;
}

body.page-home .card-price {
  font-size: 18px;
}

body.page-home .card-actions {
  margin-top: auto;
  padding-top: 12px;
}

body.page-home .card-save,
body.page-home .card-open {
  padding: 9px 12px;
  font-size: 10.5px;
}

body.page-home .listing-badge {
  padding: 7px 10px;
  font-size: 9px;
}

@media (max-width: 1050px) {
  body.page-home .property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  body.page-home .property-title {
    font-size: 13.5px;
  }

  body.page-home .card-price {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .page-home .hero-stage {
    min-height: 370px;
  }

  .page-home .hero-stage .hero-inner {
    padding: 88px 0 46px;
  }

  .page-home .hero-stage .hero-copy h1 {
    font-size: clamp(32px, 5.4vw, 42px);
  }

  body.page-home .section-heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.page-home .section-heading .sort-control {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body.page-home .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .page-home .hero-stage {
    min-height: 360px;
  }

  .page-home .hero-stage .hero-inner {
    padding: 28px 0 40px;
  }

  .page-home .hero-copy .hero-lead {
    max-width: 42ch;
    font-size: 12.5px;
  }

  .page-home .hero-cta {
    padding: 11px 16px;
    font-size: 11.5px;
  }

  body.page-home .search-console {
    margin: 0 auto;
  }

  body.page-home .property-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.page-home .property-title {
    min-height: 0;
    font-size: 15px;
  }

  body.page-home .property-info {
    padding: 13px 14px 14px;
  }

  body.page-home .card-photo {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .page-home .hero-stage {
    min-height: 340px;
  }

  .page-home .hero-stage .hero-copy h1 {
    font-size: clamp(30px, 8.4vw, 36px);
  }

  .page-home .hero-copy .hero-kicker {
    margin-bottom: 10px;
  }

  .page-home .hero-copy .hero-lead {
    margin-bottom: 12px;
  }
}

