/* ============================================================
   AKSAL CROWN — zoznam nehnuteľností + hlavičky podstránok
   ============================================================ */

/* ---------- hlavička podstránky: vždy na stred ---------- */
.page-head {
  background: var(--petrol); color: rgba(255,255,255,.8);
  padding: 34px 0 40px; text-align: center; position: relative; overflow: hidden;
}
.page-head::before { content:''; position: absolute; inset: 0;
  background: radial-gradient(760px 340px at 50% -10%, rgba(201,164,92,.16), transparent 66%); }
.page-head > * { position: relative; }
.page-head .crumbs { display: flex; gap: 10px; align-items: center; justify-content: center;
  font-size: 12.5px; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.page-head .crumbs a { color: rgba(255,255,255,.72); transition: color .2s; }
.page-head .crumbs a:hover { color: var(--gold); }
.page-head .label { color: var(--gold); }
.page-head h1 { color: #fff; margin: 10px auto 0; max-width: 20ch; font-size: clamp(28px, 3.4vw, 44px); }
.page-head h1::after { content:''; display: block; width: 46px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: var(--r-pill); }
.page-head p { font-size: 15.5px; color: rgba(255,255,255,.74); max-width: 68ch; margin: 14px auto 0; line-height: 1.6; }
@media (max-width: 640px) { .page-head { padding: 26px 0 30px; } .page-head p { font-size: 14.5px; } }

/* ---------- filtre ---------- */
.filters { background: var(--paper); border: 1px solid var(--line); }
.filters-chips { padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: center; }
.filters-main  { padding: 18px; }
.filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.filter-more { display: none; padding: 22px; border-top: 1px solid var(--line-2); background: var(--cream); }
.filter-more.on { display: block; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center;
  padding: 14px 18px; border-top: 1px solid var(--line-2); background: var(--cream); }
.link-btn { background: none; border: 0; padding: 0; font-family: var(--f-d); font-size: 12.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: color .2s; }
.link-btn:hover { color: var(--gold-deep); }

.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; white-space: nowrap;
  padding: 9px 15px 9px 9px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: .2s var(--e);
}
.chip .ci { width: 22px; height: 22px; display: grid; place-items: center; flex: none; color: #fff; }
.chip .ci svg { width: 13px; height: 13px; }
.chip b { font-family: var(--f-d); font-weight: 700; color: var(--muted-2); font-size: 11.5px; }
.chip:hover { border-color: var(--petrol); }
.chip.on { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.chip.on b { color: rgba(255,255,255,.6); }

/* ---------- lišta výsledkov ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  padding: 18px 0; margin-bottom: 4px; }
.result-count { font-family: var(--f-d); font-size: 14px; font-weight: 600; color: var(--muted); }
.result-count b { color: var(--petrol); font-size: 23px; font-weight: 700; letter-spacing: -.03em; margin-right: 5px; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.view-toggle button { border: 0; background: transparent; padding: 11px 18px; font-family: var(--f-d);
  font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .2s; border-right: 1px solid var(--line); }
.view-toggle button:last-child { border-right: 0; }
.view-toggle button.on { background: var(--petrol); color: #fff; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.af { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-soft); color: var(--gold-deep);
  border-radius: var(--r); padding: 6px 8px 6px 13px; font-size: 12.5px; font-weight: 600; }
.af button { border: 0; background: rgba(0,0,0,.07); width: 18px; height: 18px; cursor: pointer;
  display: grid; place-items: center; color: inherit; font-size: 13px; line-height: 1; padding: 0; }
.af button:hover { background: var(--gold-deep); color: #fff; }

/* ---------- zoznam + mapa ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
/* Stĺpcový flex, nie mriežka: mriežka s pevnou max-height rozdelí túto výšku
   medzi svoje riadky, takže karty sa stlačia na pár pixelov namiesto toho,
   aby zoznam rolovala. Karty sa navyše nesmú zmrašťovať — flex: none nižšie. */
.split-list { display: flex; flex-direction: column; gap: 20px; max-height: 82vh; overflow-y: auto; padding-right: 6px; }
.split-map { position: sticky; top: calc(var(--nav-h) + 20px); }
.split-map .map-canvas { height: 82vh; }
.split .prop-card { flex-direction: row; flex: none; }
.split .prop-media { width: 40%; min-width: 150px; aspect-ratio: auto; align-self: stretch; }
.split .prop-media img { height: 100%; min-height: 180px; }
.split .prop-badges { top: 10px; left: 10px; right: 10px; gap: 4px; }
.split .prop-badges .tag { font-size: 10px; padding: 4px 8px; }
.split .prop-body { padding: 20px; text-align: left; }
.split .prop-title { font-size: 17px; min-height: 0; justify-content: flex-start; margin: 8px 0 12px; }
.split .prop-specs { justify-content: flex-start; }
.split .prop-specs span:first-child { padding-left: 0; }
.split .prop-foot { justify-items: start; grid-template-columns: 1fr auto; align-items: center; }
.split .prop-price { font-size: 20px; }
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .split-map { position: static; } .split-map .map-canvas { height: 440px; }
  .split-list { max-height: none; overflow: visible; }
}
@media (max-width: 560px) { .split .prop-card { flex-direction: column; } .split .prop-media { width: 100%; aspect-ratio: 3/2; } .split .prop-body { text-align: center; } .split .prop-title { justify-content: center; } .split .prop-specs { justify-content: center; } .split .prop-foot { justify-items: center; grid-template-columns: 1fr; } }

/* ---------- stránkovanie ---------- */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager button { min-width: 46px; height: 46px; border: 1px solid var(--line); background: var(--paper);
  font-family: var(--f-d); font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  border-radius: var(--r); transition: .2s; padding: 0 14px; }
.pager button:hover:not([disabled]) { border-color: var(--petrol); }
.pager button.on { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.pager button[disabled] { opacity: .32; cursor: default; }

/* ---------- archív predaných ---------- */
.archive-head { text-align: center; padding: 52px 0 0; margin-top: 36px; border-top: 1px solid var(--line); }
.archive-head .label { color: var(--muted); }
.archive-head h2 { font-size: clamp(24px,2.8vw,34px); margin-top: 14px; }
.archive-head p { color: var(--muted); font-size: 15.5px; max-width: 56ch; margin: 16px auto 30px; }

@media (max-width: 640px) {
  .filter-row { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .active-filters { justify-content: center; }
  .view-toggle { width: 100%; } .view-toggle button { flex: 1; padding: 11px 4px; font-size: 11.5px; }
}

/* Sekcia žije na spodku stránky Nehnuteľnosti — štýly musia byť tu,
   home.css sa na tejto stránke nenačítava. */
/* ============ DOPYT — povedzte nám, čo hľadáte ============ */
.want { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.want-col h2 { font-size: clamp(26px,3.2vw,40px); margin-top: 14px; }
.want-col .lead { margin-top: 18px; max-width: 46ch; }
.want-points { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.want-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.want-points svg { color: var(--gold-deep); flex: none; margin-top: 2px; }

.want-form {
  background: linear-gradient(155deg, var(--gold-tint), var(--cream) 62%);
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px;
  box-shadow: var(--sh-2);
}
.want-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.want-form .field { margin-bottom: 14px; }
.want-form .btn { margin-top: 6px; }
.want-form .form-note { text-align: center; }

@media (max-width: 940px) {
  .want { grid-template-columns: 1fr; gap: 30px; }
  .want-col { text-align: center; }
  .want-col .lead { margin-inline: auto; }
  .want-points { max-width: 42ch; margin-inline: auto; text-align: left; }
  .want-form { padding: 24px; }
}
@media (max-width: 560px) { .want-grid { grid-template-columns: 1fr; } }

/* kto sa ozve — tvár namiesto anonymného formulára */
.want-who {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.want-who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--paper); box-shadow: var(--sh-1); }
.want-who b { display: block; font-family: var(--f-d); font-size: 15px; font-weight: 700; color: var(--ink); }
.want-who span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.want-who:empty { display: none; }
