/* MONLY — početna v1.88: Montserrat/Open Sans, navy-plava paleta i kristalna traka pretrage */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- tokeni i tipografija (samo početna) ---------- */
body.page-home {
  --navy: #001f44;
  --brand: #0058ff;
  --brand-dark: #0046cc;
  --brand-2: #5891ff;
  --brand-soft: #eaf1ff;
  --line: #e5e7eb;
  --field: #f9fafb;
  --panel: linear-gradient(90deg, #f1f5f9 0%, #eaf1ff 100%);
  --domis-display: 'Montserrat', 'InterVariable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --domis-ui: 'Open Sans', 'InterVariable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --blue: #0058ff;
  --blue-dark: #0046cc;
  --blue-soft: #eaf1ff;
  --ink: #001f44;
  color: #111827;
}

body.page-home :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--domis-display);
  font-weight: 700;
  letter-spacing: -.028em;
  color: var(--navy);
}

body.page-home .property-title {
  font-weight: 600;
  color: #16233a;
}

body.page-home ::selection {
  background: #dbe7ff;
  color: var(--navy);
}

/* ---------- hero ---------- */
.hero-block {
  padding: 16px 0 0;
}

.hero-band {
  position: relative;
  isolation: isolate;
  overflow: visible;
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
  border-radius: 24px;
  background: #0c1a2e;
  box-shadow: 0 26px 60px rgba(0, 20, 60, .18);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
}

.hero-media picture {
  display: block;
  height: 100%;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 10, 28, .88) 0%, rgba(0, 14, 34, .76) 44%, rgba(0, 18, 44, .62) 74%, rgba(0, 22, 52, .56) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 508px);
  align-items: center;
  gap: clamp(24px, 3.4vw, 52px);
  padding: 32px 34px 30px;
  min-height: 392px;
}

body.page-home .hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a9c6ff;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.hero-copy .eyebrow > span {
  width: 16px;
  height: 1px;
  border-radius: 0;
  background: #7ea9ff;
  box-shadow: none;
}

body.page-home .hero-copy h1 {
  font-family: var(--domis-display);
  font-weight: 700;
  font-size: clamp(27px, 2.85vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: #fff;
  margin: 13px 0 11px;
  max-width: 15ch;
  text-wrap: balance;
}

body.page-home .hero-copy h1 em {
  font-style: normal;
  color: #8db6ff;
}

.hero-copy > p {
  max-width: 42ch;
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, .84);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-family: var(--domis-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.hero-cta:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
}

.hero-cta.is-ghost {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .52);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
}

.hero-cta.is-ghost:hover {
  background: rgba(255, 255, 255, .20);
  border-color: rgba(255, 255, 255, .75);
}

.hero-cta:focus-visible,
.search-submit:focus-visible,
.search-track .field input:focus-visible,
.search-track .field select:focus-visible {
  outline: 2px solid #9dc0ff;
  outline-offset: 3px;
}

/* ---------- traka pretrage: kristal ---------- */
.hero-search {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.hero-search .intent-tabs {
  display: inline-flex;
  align-self: flex-start;
  gap: 2px;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.hero-search .intent {
  border: 0;
  border-radius: 999px;
  padding: 7px 19px;
  background: transparent;
  color: rgba(255, 255, 255, .86);
  font-family: var(--domis-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .18s ease, color .18s ease;
}

.hero-search .intent:hover {
  background: rgba(255, 255, 255, .14);
}

.hero-search .intent.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0, 10, 30, .22);
}

.hero-search .search-box {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 18px 44px rgba(0, 12, 32, .30), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.search-track {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .8fr) minmax(0, 1.36fr) 46px;
  align-items: stretch;
  min-height: 46px;
}

.location-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, .18);
}

.search-track .field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .18);
}

.search-track .price-field {
  border-right: 0;
}

.search-track .field:focus-within {
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
}

.search-track .field small {
  display: block;
  margin-bottom: 2px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.search-track .field input,
.search-track .field select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--domis-ui);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  appearance: none;
}

.search-track .field input::placeholder {
  color: rgba(255, 255, 255, .66);
  font-weight: 400;
}

.search-track .field select {
  padding-right: 15px;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .8) 50%), linear-gradient(135deg, rgba(255, 255, 255, .8) 50%, transparent 50%);
  background-position: calc(100% - 6px) 52%, calc(100% - 1px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
  text-overflow: ellipsis;
}

.search-track .field select option {
  background: #fff;
  color: #111827;
}

.search-submit {
  grid-column: auto;
  grid-row: auto;
  align-self: stretch;
  display: grid;
  place-items: center;
  width: 46px;
  height: auto;
  min-height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 86, 255, .34);
  transition: background .18s ease;
}

.search-submit:hover {
  background: var(--brand-dark);
}

/* ---------- predlozi dok se kuca ---------- */
.suggest-box {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  left: 0;
  width: min(340px, calc(100vw - 48px));
  min-width: 100%;
  max-height: 340px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 54px rgba(0, 12, 32, .26);
  text-align: left;
}

.suggest-group {
  padding: 8px 9px 3px;
  font-family: var(--domis-ui);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a94a6;
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  text-align: left;
  color: #0f172a;
  cursor: pointer;
}

.suggest-item:hover,
.suggest-item[aria-selected="true"] {
  background: #eef3ff;
}

.suggest-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #eef3ff;
  color: #33517f;
  font-size: 11px;
}

.suggest-text {
  min-width: 0;
}

.suggest-text b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #74809a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-empty {
  padding: 12px 10px;
  font-size: 12px;
  color: #74809a;
}

/* ---------- sekcije i kartice ---------- */
body.page-home .listing-section {
  padding: 26px 0 54px;
}

body.page-home .section-heading h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.12;
  margin: 9px 0 6px;
}

body.page-home .section-heading p {
  font-size: 12px;
  color: #64748b;
}

body.page-home .section-heading .eyebrow,
body.page-home .eyebrow {
  color: var(--brand);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
}

body.page-home .property-card {
  border: 1px solid #d7e3fa;
  border-radius: 16px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.page-home .property-card:hover {
  transform: translateY(-2px);
  border-color: #8fb6ff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .10);
}

body.page-home .property-photo {
  border-radius: 11px 11px 0 0;
}

body.page-home .listing-badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(10, 18, 30, .36);
  color: #fff;
  font-size: 8.5px;
  letter-spacing: .1em;
  box-shadow: 0 6px 16px rgba(6, 14, 26, .2);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}

body.page-home .property-price {
  color: var(--navy);
  font-weight: 700;
}

body.page-home .property-meta {
  border-top-color: #eef1f6;
  color: #5b697f;
}

body.page-home .section-block {
  padding: 34px 0;
}






body.page-home .post-button {
  background: var(--brand);
}

body.page-home .post-button:hover {
  background: var(--brand-dark);
}

body.page-home .brand,
body.page-home .brand-symbol {
  color: var(--navy);
}

body.page-home .brand-symbol {
  background: var(--navy);
  color: #fff;
}

body.page-home .main-nav a,
body.page-home .login-link {
  color: #445069;
}

body.page-home .main-nav a:hover,
body.page-home .login-link:hover {
  color: var(--brand);
}

body.page-home footer {
  background: var(--navy);
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-band {
    width: calc(100% - 28px);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 26px 24px 24px;
    min-height: 0;
  }

  .hero-copy h1 {
    max-width: 20ch;
  }

  .hero-search {
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  .hero-block {
    padding: 10px 0 0;
  }

  .hero-band {
    width: calc(100% - 20px);
    border-radius: 18px;
  }

  .hero-inner {
    padding: 20px 16px 18px;
    gap: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 7vw, 34px);
    max-width: none;
  }

  .hero-copy > p {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .hero-cta {
    height: 42px;
    padding: 0 18px;
    font-size: 12px;
  }

  .search-track {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "loc loc"
      "type price"
      "go go";
    gap: 6px;
    min-height: 0;
  }

  .search-track .location-wrap {
    grid-area: loc;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    padding-bottom: 5px;
  }

  .search-track .type-field {
    grid-area: type;
  }

  .search-track .price-field {
    grid-area: price;
  }

  .search-track .field {
    padding: 7px 9px;
  }

  .search-track .field select {
    font-size: 12px;
  }

  .search-submit {
    grid-area: go;
    width: 100%;
    height: 44px;
    border-radius: 11px;
    font-size: 17px;
  }

}

@media (max-width: 400px) {
  .hero-inner {
    padding: 17px 13px 15px;
    gap: 14px;
  }

  body.page-home .hero-copy h1 {
    font-size: clamp(23px, 6.9vw, 27px);
    line-height: 1.1;
  }

  .hero-copy > p {
    font-size: 12.5px;
    margin-bottom: 13px;
  }

  .hero-cta {
    height: 40px;
    padding: 0 14px;
    font-size: 11.5px;
  }

  .hero-search .intent {
    padding: 7px 16px;
    font-size: 11px;
  }

  .search-track .field {
    padding: 6px 8px;
  }

  .search-track .field input,
  .search-track .field select {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-search .intent,
  .hero-cta,
  .search-submit,
  body.page-home .property-card {
    transition: none;
  }

  .hero-cta:hover,
  body.page-home .property-card:hover {
    transform: none;
  }
}
