/* "Find a home" page (loaded only on /en/inventory/ and /ar/inventory/). Uses the site tokens from site.css: slate, white, stone, greys. No other colour. */
.inv-hero { background: var(--slate); color: var(--white); padding: 168px 0 52px; }
.inv-hero .bn-t { font-size: clamp(2rem, 5.2vw, 3.6rem); max-width: 18em; }
.inv-hero .bn-d { max-width: 38em; }
.inv { padding-block: 44px 72px; }
.qs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* figures */
.inv-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 36px; }
.inv-stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.inv-stat { background: var(--white); padding: 20px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.inv-stat b { font-size: 2.1rem; font-weight: 300; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html[lang="ar"] .inv-stat b { letter-spacing: 0; }
.inv-stat span { font-size: .78rem; color: var(--muted); }

/* search and filters */
.inv-sf { position: relative; display: flex; align-items: center; }
.inv-si { position: absolute; inset-inline-start: 18px; color: var(--muted); pointer-events: none; }
.inv-sf input { width: 100%; height: 58px; padding: 0 56px; font: inherit; font-size: 1rem; color: var(--slate); background: var(--white); border: 1px solid var(--slate); border-radius: 3px; -webkit-appearance: none; appearance: none; }
.inv-sf input::placeholder { color: var(--muted); opacity: 1; }
.inv-sf input::-webkit-search-cancel-button, .inv-sf input::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.inv-sf input:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
.inv-x { position: absolute; inset-inline-end: 6px; width: 44px; height: 44px; background: none; border: 0; color: var(--slate); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.inv-fb { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 50px; margin-top: 12px; padding: 0 18px; background: var(--white); color: var(--slate); border: 1px solid var(--line); border-radius: 3px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; cursor: pointer; }
html[lang="ar"] .inv-fb { letter-spacing: 0; font-size: .95rem; font-weight: 600; }
.inv-fb .ic-ch { width: 18px; height: 18px; transition: transform .3s var(--ease); margin-inline-start: auto; }
.inv-fb[aria-expanded="true"] .ic-ch { transform: rotate(180deg); }
.inv-fb.on { border-color: var(--slate); }
.inv-fn { display: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--slate); color: var(--white); font-style: normal; font-size: .72rem; font-weight: 700; align-items: center; justify-content: center; }
.inv-fb.on .inv-fn { display: inline-flex; }
.inv-fs { display: none; margin-top: 14px; padding: 6px 0 2px; gap: 22px 40px; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.inv-fs.is-open { display: grid; }
.inv-f { border: 0; padding: 18px 0 0; margin: 0; min-width: 0; }
.inv-f legend { padding: 0; margin-bottom: 12px; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
html[lang="ar"] .inv-f legend { letter-spacing: 0; font-size: .9rem; }
.inv-f.on legend { color: var(--slate); }
.chips-f { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 8px 16px; background: var(--white); color: var(--slate); border: 1px solid var(--line); border-radius: 3px; font: inherit; font-size: .88rem; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.chip:hover { border-color: var(--slate); }
.chip i { font-style: normal; opacity: .6; font-size: .72rem; margin-inline-start: 6px; }
.chip[aria-pressed="true"] { background: var(--slate); color: var(--white); border-color: var(--slate); }
.inv-range { display: flex; gap: 12px; margin-top: 14px; max-width: 360px; }
.inv-range label { display: grid; gap: 6px; flex: 1; min-width: 0; }
.inv-range span, .inv-sort span { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
html[lang="ar"] .inv-range span, html[lang="ar"] .inv-sort span { letter-spacing: 0; font-size: .85rem; }
.inv-range input, .inv-sort select { width: 100%; min-height: 46px; padding: 0 12px; font: inherit; font-size: .95rem; color: var(--slate); background: var(--white); border: 1px solid var(--line); border-radius: 3px; }
.inv-range input:focus-visible, .inv-sort select:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.inv-row { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.inv-count { font-size: .95rem; color: var(--muted); }
.inv-count b { color: var(--slate); font-weight: 600; font-variant-numeric: tabular-nums; }
.inv-cp { padding-inline: 4px; }
.inv-ctl { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.inv-sort { display: grid; gap: 6px; min-width: 210px; flex: 1; }
.inv-reset { min-height: 46px; padding: 0 2px; background: none; border: 0; border-bottom: 1px solid var(--slate); color: var(--slate); font: inherit; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; cursor: pointer; }
html[lang="ar"] .inv-reset { letter-spacing: 0; font-size: .95rem; font-weight: 600; }
.inv-hid { margin-top: 18px; }

/* community cards */
.inv-grid { display: grid; gap: 22px; margin-top: 28px; }
.ic { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); transition: box-shadow .35s var(--ease), border-color .35s var(--ease); }
.ic:hover { border-color: var(--slate); box-shadow: 0 18px 40px rgba(26, 28, 32, .12); }
.ic[hidden] { display: none; }
.ic-img { overflow: hidden; background: var(--stone); }
.ic-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.4s var(--ease); }
.ic:hover .ic-img img { transform: scale(1.04); }
.ic-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.ic-body .kicker { margin-bottom: 10px; letter-spacing: .3em; }
html[lang="ar"] .ic-body .kicker { letter-spacing: 0; }
.ic-t { font-size: 1.45rem; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
html[lang="ar"] .ic-t { letter-spacing: 0; line-height: 1.5; font-weight: 600; }
.ic-t a { text-decoration: none; }
.ic-t a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ic-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ic-types li { border: 1px solid var(--line); border-radius: 3px; padding: 4px 10px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
html[lang="ar"] .ic-types li { letter-spacing: 0; font-size: .86rem; }
.ic-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ic-f dt { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
html[lang="ar"] .ic-f dt { letter-spacing: 0; font-size: .82rem; }
.ic-f dd { margin-top: 4px; font-size: .95rem; line-height: 1.4; }
.ic-f dd b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ic-f dd small { color: var(--muted); }
.ic-na { color: var(--muted); font-size: .86rem; }
.ic-price { margin-top: 16px; color: var(--muted); font-size: .92rem; }
.ic-act { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: auto; padding-top: 18px; }
.ic-act .btn { padding-inline: 16px; }
.ic-act .ic-wa, .ic-act .btn .ic-wa { width: 24px; height: 24px; }
.ic-view { min-height: 44px; }
.inv-empty { text-align: center; padding: clamp(44px, 8vw, 90px) 20px; border: 1px dashed var(--grey); margin-top: 28px; }
.inv-empty p { color: var(--muted); margin-top: 12px; }
.inv-empty-b { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.inv-note { margin-top: 34px; max-width: 78ch; }

/* result pages */
.inv-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 40px 0 8px; }
.inv-pgs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.inv-pg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--slate); font-size: .9rem; text-decoration: none; transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }
a.inv-pg:hover { border-color: var(--slate); }
.inv-pg[aria-current="page"] { background: var(--slate); border-color: var(--slate); color: var(--white); font-weight: 600; }
.inv-pg.gap, .inv-pg.off { border-color: transparent; background: none; }
.inv-pg.off { opacity: .35; }
.inv-pg.gap { min-width: 24px; padding: 0; }
.inv-pgl { flex: 1 1 100%; text-align: center; color: var(--muted); font-size: .85rem; }
[dir="rtl"] .inv-pg svg { transform: none; }

@media (min-width: 600px) {
  .inv-stats { grid-template-columns: repeat(3, 1fr); }
  .inv-stats > div:last-child:nth-child(odd) { grid-column: auto; }
  .inv-grid { grid-template-columns: 1fr 1fr; }
  .inv-row { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .inv-sort { flex: none; width: 230px; }
}
@media (min-width: 900px) {
  .inv-hero { padding: 200px 0 64px; }
  .inv { padding-block: 64px 100px; }
  .inv-stats { grid-template-columns: repeat(5, 1fr); }
  .inv-stat { padding: 26px 24px; }
  .inv-stat b { font-size: 2.6rem; }
  .inv-fb { display: none; }
  .inv-fs, .inv-fs.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-f { padding-top: 22px; }
}
@media (min-width: 1100px) {
  .inv-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}
@media (max-width: 599px) {
  .ic-f { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .ic-act { flex-direction: column; align-items: stretch; }
  .ic-act .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ic, .ic-img img, .chip { transition: none; } .ic:hover .ic-img img { transform: none; } }

/* unit-level cards */
.ic-sub { margin-top: 6px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.ic-note { margin-top: 12px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.ic-price.has-price { color: var(--slate); }
.ic-price.has-price span { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
html[lang="ar"] .ic-price.has-price span { letter-spacing: 0; font-size: .86rem; }
.ic-price.has-price b { font-size: 1.25rem; font-weight: 600; }
