/**
 * File: demov2/assets/css/pages/home.css
 * Purpose: Ana səhifə — foto hero + axtarış kartı, kateqoriya zolağı və
 *          elan lenti, yaşayış kompleksləri, rayonlar, alətlər, satıcılar üçün,
 *          bələdçi, tətbiq bloku. Rəngli minimal: brend düymələr, kateqoriya
 *          rəngləri, rəngli alət kartları, tünd satıcı bloku.
 */

/* ── Hero ── */
.hero { padding-top: 4px; }
@media (min-width: 1024px) { .hero { padding-top: 8px; } }
.hero__media { position: relative; height: 216px; border-radius: 18px; overflow: hidden; background: #2A2A2A; isolation: isolate; }
@media (min-width: 768px) { .hero__media { height: 300px; border-radius: 24px; } }
@media (min-width: 1024px) { .hero__media { height: 340px; } }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; animation: heroZoom 2.2s var(--ease-out) both; }
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: none; } }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .55) 100%); }
.hero__copy { position: absolute; left: 20px; right: 20px; bottom: 44px; z-index: 1; color: #fff; }
@media (min-width: 768px) { .hero__copy { left: 40px; bottom: 74px; } }
@media (min-width: 1024px) { .hero__copy { left: 56px; bottom: 76px; } }
.hero__copy h1 { font-size: clamp(26px, 3.6vw, 46px); letter-spacing: -.034em; line-height: 1.08; max-width: 22ch; animation: fadeUp .9s var(--ease-out) .15s both; }
.hero__copy p { margin-top: 8px; font-size: 14px; opacity: .92; animation: fadeUp .9s var(--ease-out) .25s both; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .hero__copy p { font-size: 16px; } }


/* axtarış paneli — ağ kart + yumşaq kölgə, içində çərçivəsiz dolğulu sahə plitələri; "Axtar" düyməsi yoxdur: seçim bağlananda lent özü yenilənir */
.sbox { position: relative; z-index: 2; margin: -30px 8px 0; padding: 8px; border-radius: 22px; background: var(--surface); box-shadow: 0 16px 40px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06); animation: fadeUp .8s var(--ease-out) .3s both; }
html[data-theme='dark'] .sbox { box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
@media (min-width: 768px) { .sbox { margin: -44px auto 0; width: min(100% - 48px, 1260px); padding: 8px; border-radius: 22px; } }
/* telefon: [Növ][Kateqoriya] / [Yer][Filtrlər + AI] — iki bərabər sütun */
.flds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 767px) { .flds .fld__chev { display: none; } .flds .fld { padding-right: 8px; } }
.fld--hrooms, .fld--hprice { display: none; }
.sbox__acts { display: flex; gap: 8px; }
/* AI ilə axtarış — Filtrlər-in yanında yığcam primary düymə (telefonda yalnız ikon) */
.sbox__ai { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 56px; min-width: 52px; padding: 0 14px; border-radius: 14px; background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 14.5px; transition: background .15s; }
.sbox__ai:hover { background: var(--brand-hover); }
.sbox__ai .i { width: 19px; height: 19px; }
.sbox__ai > span + span { display: none; }
@media (min-width: 768px) { .sbox__ai > span + span { display: inline; } }
.sbox__acts .fld-more { flex: 1; min-width: 0; }
@media (max-width: 767px) { .sbox__acts .sbox__ai { flex: 1; } }
.fld-more > span + span { display: none; } /* "Filtrlər" mətni (telefonda yalnız ikon) */
@media (min-width: 768px) {
  .flds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fld--hrooms, .fld--hprice { display: flex; }
  .fld-more > span + span { display: inline; }
}
@media (min-width: 1200px) {
  .flds { grid-template-columns: minmax(0, .92fr) minmax(0, 1.14fr) minmax(0, 1.14fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
  .sbox__acts .fld-more { padding: 0 18px; }
}

/* AI rejimi — sahə plitələri ilə eyni hündürlük (56px) və eyni dolğu; rəng primary */
.sbar { display: none; align-items: center; border-radius: 14px; }
.sbar--ai { height: 56px; padding: 5px 5px 5px 16px; background: var(--surface-2); transition: box-shadow .15s, background .15s; }
.sbar--ai:focus-within { background: var(--surface); box-shadow: 0 0 0 2px var(--brand); }
.sbar--ai:not([hidden]) { display: flex; }
.sbar__aiico { display: grid; color: var(--brand-text); }
.sbar__aiin { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 0; outline: 0; background: none; font-size: 16px; }
.sbar__go { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; min-width: 46px; padding: 0 20px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 15px; transition: background .15s; }
.sbar__go:hover { background: var(--brand-hover); }
/* filtrlərə qayıt */
.sbar__back { flex: none; display: grid; place-items: center; width: 46px; height: 46px; margin-left: 5px; border-radius: 10px; background: var(--surface); color: var(--text-2); box-shadow: var(--sh-1); transition: color .15s; }
.sbar__back:hover { color: var(--text); }
.sbar__back .i { width: 18px; height: 18px; }
.sbar--ai:focus-within .sbar__back { background: var(--surface-2); box-shadow: none; }
.sbar__go .i { width: 19px; height: 19px; }
@media (max-width: 767px) { .sbar--ai { padding-left: 12px; } .sbar--ai .sbar__go { width: 46px; padding: 0; } .sbar--ai .sbar__go span { display: none; } }

/* filtr popover / sheet içləri */
.hpop { padding: 4px; }
.hpop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hpop__opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-weight: 500; font-size: 14.5px; text-align: left; transition: background .15s; }
.hpop__opt:hover { background: var(--surface-3); }
.hpop__opt.is-on { background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand-text); }
.hpop__opt .i { width: 20px; height: 20px; }
.hpop__in { margin-bottom: 8px; }
.hpop__list { max-height: 300px; overflow-y: auto; margin-inline: -4px; }
.hpop__row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border-radius: 10px; font-size: 15px; text-align: left; }
.hpop__row:hover { background: var(--surface-2); }
.hpop__row small { margin-left: auto; color: var(--text-3); font-size: 13.5px; }
.hpop__row .mline { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hpop__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding-top: 4px; }
.hpop__foot .btn--ghost { text-decoration: underline; text-underline-offset: 3px; padding: 0 8px; }
.hpop h4 { font-size: 15px; font-weight: 600; margin: 4px 0 12px; }
.msheet .modal__body { display: grid; gap: 26px; }
.msheet section > h4 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }

/* ── Kateqoriya zolağı + lent ── */
.feed { padding-top: 14px; }
@media (min-width: 1024px) { .feed { padding-top: 18px; } }
.feed__clear { margin-left: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0; vertical-align: 3px; color: var(--brand-text); text-decoration-color: transparent; }
.feed__clear:hover { text-decoration-color: currentColor; }
.feed .cards.is-loading { pointer-events: none; }
.catbar { position: sticky; top: var(--hdr-h); z-index: 20; display: flex; gap: 10px; margin: 0 calc(var(--gutter) * -1) 16px; padding: 10px var(--gutter) 12px; overflow-x: auto; scrollbar-width: none; background: var(--bg); }
.catbar::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .catbar { margin-inline: -4px; padding-inline: 4px; } }
/* sürətli axtarış düymələri: ağ pill + rəngli kiçik ikon */
.cat { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border-radius: var(--r-full); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 500; white-space: nowrap; box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06); transition: box-shadow .2s, background .15s; }
/* çərçivə yox — yalnız kölgə; qaranlıqda kölgə görünmür, fon (surface) ayırır */
html[data-theme='dark'] .cat { box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.cat:hover { box-shadow: 0 4px 14px rgba(16, 24, 40, .12); }
html[data-theme='dark'] .cat:not(.is-on):hover { background: var(--surface-2); }
.cat__ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--h-s); color: var(--h); }
.cat .i { width: 16px; height: 16px; }
/* seçilmiş — tam primary fon; ikon qutusu ağın 10%-i, ikon ağ (gold-da --on-brand tünddür); qalın yazı yox */
.cat.is-on { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.cat.is-on:hover { background: var(--brand-hover); }
.cat.is-on .cat__ico { background: color-mix(in srgb, var(--on-brand) 10%, transparent); color: var(--on-brand); }
@media (max-width: 767px) { .cat { height: 42px; font-size: 14.5px; padding-right: 15px; gap: 8px; } .cat__ico { width: 28px; height: 28px; } }
.feed__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.feed__head h2 { font-size: clamp(20px, 2vw, 24px); }
.feed__head .link { white-space: nowrap; }
.feed .cards.is-swap { opacity: .35; transition: opacity .2s; }

/* ── Rayonlar ── */
.areas { display: grid; grid-template-columns: 1fr; gap: 4px 24px; }
@media (min-width: 560px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .areas { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .areas { grid-template-columns: repeat(4, 1fr); } }
.area { display: flex; align-items: center; gap: 14px; padding: 10px; margin-inline: -10px; border-radius: 14px; transition: background .15s; min-width: 0; }
.area:hover { background: var(--surface); box-shadow: var(--sh-2); }
.areas-band .sec-head p { color: var(--text-2); }
.area img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.area b { display: block; font-size: 15.5px; font-weight: 600; }
.area small { display: block; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.area .delta { margin-left: auto; flex: none; }

/* ── Alətlər ── */
.tools { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tools { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.tool { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 28px; border-radius: 20px; background: var(--h-s); min-height: 340px; overflow: hidden; transition: background .2s; }
.tool:hover { background: color-mix(in srgb, var(--h) 15%, var(--surface)); }
.tool__ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--h); color: var(--on-ink); margin-bottom: 18px; }
.tool__ic .i { width: 22px; height: 22px; }
.tool h3 { font-size: 21px; letter-spacing: -.02em; padding-right: 44px; }
.tool p { color: var(--text-2); margin-top: 8px; font-size: 15px; max-width: 36ch; }
.tool__vis { margin-top: auto; padding: 18px; border-radius: 14px; background: var(--surface); box-shadow: var(--sh-1); transition: transform .3s var(--ease); }
.tool:hover .tool__vis { transform: translateY(-3px); }
.tool__go { position: absolute; top: 24px; right: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--h-t); display: grid; place-items: center; transition: transform .25s var(--ease); }
.tool__go .i { width: 17px; height: 17px; }
.tool:hover .tool__go { transform: translate(2px, -2px); }
.tv__l { font-size: 13px; color: var(--text-2); }
.tv__v { font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tv__bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 14px; background: var(--surface-3); }
.tv__leg { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.tv__leg i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.tv__range { position: relative; height: 6px; border-radius: 3px; margin-top: 16px; background: var(--h-s); }
.tv__range::before { content: ''; position: absolute; left: 18%; right: 18%; top: 0; bottom: 0; border-radius: 3px; background: color-mix(in srgb, var(--h) 45%, var(--surface)); }
.tv__range span { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--h); box-shadow: 0 0 0 3px var(--surface); }
.tv__row { display: flex; justify-content: space-between; align-items: baseline; }
.tool__vis .spark { width: 100%; height: 60px; margin-top: 10px; }

/* ── Satıcılar üçün ── */
.sell { display: grid; gap: 28px; align-items: center; padding: 12px 12px 28px; border-radius: 24px; background: var(--deep); color: var(--on-deep); }
@media (min-width: 900px) { .sell { grid-template-columns: 1.05fr 1fr; gap: 56px; padding: 16px 56px 16px 16px; border-radius: 28px; } }
.sell__txt { padding-inline: 12px; }
@media (min-width: 900px) { .sell__txt { padding-inline: 0; } }
.sell__img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--deep-2); }
@media (min-width: 900px) { .sell__img { border-radius: 18px; } }
.sell .muted { color: var(--on-deep-2); }
.sell .eyebrow { color: color-mix(in srgb, var(--brand) 55%, #fff); }
.sell .btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.sell .btn--line:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.sell__img img { width: 100%; height: 100%; object-fit: cover; }
.sell h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; max-width: 18ch; }
.sell__txt > p { margin-top: 12px; font-size: 16.5px; max-width: 46ch; }
.sell__steps { display: grid; gap: 18px; margin: 28px 0 30px; }
.sell__steps li { display: flex; gap: 16px; align-items: flex-start; }
.sell__steps li > span { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.sell__steps b { display: block; font-weight: 600; font-size: 15.5px; }
.sell__steps small { color: var(--on-deep-2); font-size: 14.5px; }

/* ── Məqalələr ── */
.arts { display: grid; gap: 32px 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .arts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .arts { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; } }
.art-card { display: flex; flex-direction: column; gap: 6px; }
.art-card__img { aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--surface-2); margin-bottom: 8px; }
.art-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.art-card:hover .art-card__img img { transform: scale(1.03); }
.art-card__meta { font-size: 13.5px; color: var(--text-2); }
.art-card__meta b { font-weight: 600; color: var(--h-t); }
.art-card h3 { font-size: 17.5px; line-height: 1.35; letter-spacing: -.015em; }
.art-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.art-card p { color: var(--text-2); font-size: 15px; }

/* ── Tətbiq ── */
/* tətbiq banneri (alçaq): mətn + yükləmə | telefonun yuxarı hissəsi (alt kənara söykənir) | QR */
.app { position: relative; overflow: hidden; display: grid; padding: 28px 24px 0; border-radius: 24px; background: var(--brand-soft); }
.app__txt { position: relative; z-index: 1; }
.app .eyebrow { margin-bottom: 6px; }
.app h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.03em; }
.app p { color: var(--text-2); margin-top: 6px; max-width: 440px; font-size: 15px; }
.app__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.app__qr { display: none; }
.app__art { margin: 16px -24px 0; }
.app__art svg { display: block; width: 100%; max-width: 380px; height: auto; margin-inline: auto; }
@media (min-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); align-items: end; column-gap: 32px; padding: 0 40px 0 48px; }
  .app__txt { align-self: center; padding: 36px 0; }
  .app__art { margin: 12px 0 0; }
  .app__art svg { max-width: none; }
}
@media (min-width: 1200px) {
  .app { grid-template-columns: minmax(0, 1fr) 420px auto; padding: 0 40px 0 56px; }
  .app__qr { display: block; align-self: center; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
  .app__qr svg { display: block; }
}
/* illüstrasiya rəngləri — hamısı tokenlərdən, dark mode avtomatik */
.pa text { font-family: inherit; }
.pa .i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pa-rings circle { fill: none; stroke: var(--brand); stroke-opacity: .14; }
.pa-frame { fill: var(--deep); }
html[data-theme='dark'] .pa-frame { fill: #05070A; stroke: var(--line-strong); }
.pa-scr, .pa-chip { fill: var(--surface); }
.pa-notch { fill: var(--deep); }
html[data-theme='dark'] .pa-notch { fill: #05070A; }
.pa .pa-logo { width: 20px; height: 20px; }
.pa-word { font-family: var(--font-logo); font-size: 13.5px; font-weight: 700; fill: var(--text); letter-spacing: -.02em; }
.pa-dim { fill: var(--text-3); }
.pa-field { fill: var(--surface-2); }
.pa-field + .i { color: var(--text-2); }
.pa-s { font-size: 10.5px; fill: var(--text-2); }
.pa-t { font-size: 12px; font-weight: 600; fill: var(--text); }
.pa-map { fill: var(--surface-2); }
.pa-park { fill: color-mix(in srgb, var(--c-green) 16%, var(--surface-2)); }
.pa-sea { fill: color-mix(in srgb, var(--c-sky) 20%, var(--surface-2)); }
.pa-road { fill: none; stroke: var(--surface); stroke-width: 5; stroke-linecap: round; }
.pa-road--s { stroke-width: 2.5; }
.pa-pin rect, .pa-pin path { fill: var(--surface); }
.pa-pin rect { stroke: var(--line-strong); }
.pa-pin text { font-size: 10.5px; font-weight: 700; fill: var(--text); }
.pa-pin.is-on rect, .pa-pin.is-on path { fill: var(--brand); stroke: none; }
.pa-pin.is-on text { fill: var(--on-brand); }
.pa-me-h { fill: var(--c-blue); fill-opacity: .18; }
.pa-me { fill: var(--c-blue); stroke: var(--surface); stroke-width: 2; }
.pa-ib { fill: var(--h-s); }
.pa-ib + .i { color: var(--h); }
.pa-drop { font-size: 12px; font-weight: 600; fill: var(--h); }
.hue-green > .i { color: var(--h); }
