/* ==========================================================================
   Page — Properties catalog (Areas/Public/Views/Properties/Index.cshtml)
   Uses: modules/page-hero.css, modules/property-card.css, modules/cta.css
   ========================================================================== */

/* ---------- Hero ---------- */
.catalog-hero .page-hero__title { max-width: 20ch; }
.catalog-hero__stat {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.35rem 1.5rem; border-radius: var(--r-xl);
}
.catalog-hero__stat-value {
  font-size: var(--fs-3xl); font-weight: 800; line-height: 1;
  letter-spacing: var(--tracking-tight); color: var(--ink-900);
}
.catalog-hero__stat-label { font-size: .86rem; color: var(--ink-500); margin-top: .35rem; line-height: 1.4; }

/* ---------- Filter panel ---------- */
.catalog-filter__card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: 1.5rem;
  width: 100%;
}
.catalog-filter__head { display: flex; gap: .85rem; align-items: flex-start; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px dashed var(--ink-200); }
.catalog-filter__title { font-size: 1.05rem; margin: 0 0 .15rem; }
.catalog-filter__sub { font-size: .82rem; color: var(--ink-500); margin: 0; line-height: 1.45; }
.catalog-filter__group + .catalog-filter__group { margin-top: 1.15rem; }
.catalog-filter__quick { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.catalog-filter__quick .chip { cursor: pointer; transition: all var(--dur-fast) ease; }
.catalog-filter__quick .chip:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }
.catalog-filter__quick .chip.is-active { border-color: var(--brand-500); color: var(--brand-700); background: var(--brand-50); box-shadow: var(--ring); }
.catalog-filter__actions { display: grid; gap: .6rem; margin-top: 1.5rem; }

.catalog-help { margin-top: 1.25rem; padding: 1.5rem; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; }
.catalog-help::before {
  content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; z-index: -1;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,91,34,.45), transparent 65%);
}
.catalog-help__title { font-size: 1.05rem; margin: 0 0 .4rem; }
.catalog-help__text { font-size: .86rem; color: var(--ink-400); margin-bottom: 1.1rem; }

@media (min-width: 992px) {
  .catalog-filter { position: sticky; top: calc(var(--header-h) + 1.25rem); }
  .catalog-filter .offcanvas-body { display: block; }
  .catalog-filter .offcanvas-header { display: none; }
}
@media (max-width: 991.98px) {
  /* let the offcanvas escape the section's stacking context so it sits above the sticky header */
  .catalog { isolation: auto; }
  .catalog-filter.offcanvas-lg { --bs-offcanvas-width: min(380px, 92vw); background: var(--sand-50); }
  .catalog-filter .offcanvas-header { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--ink-100); background: #fff; }
  .catalog-filter .offcanvas-body { padding: 1.25rem; }
  .catalog-filter__card { box-shadow: none; padding: 1.25rem; }
}

/* ---------- Toolbar ---------- */
.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1rem .85rem 1.25rem; margin-bottom: 1.25rem;
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg); box-shadow: var(--sh-xs);
}
.catalog-toolbar__count { font-size: .95rem; color: var(--ink-600); }
.catalog-toolbar__count strong { font-size: 1.15rem; font-weight: 800; color: var(--ink-900); margin-right: .2rem; }
.catalog-toolbar__page { color: var(--ink-400); margin-left: .25rem; font-size: .88rem; }
.catalog-toolbar__badge {
  min-width: 20px; height: 20px; padding: 0 .35rem; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: #fff; background: var(--brand-500);
}

/* Active filter chips */
.catalog-active { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: -.25rem 0 1.5rem; }
.catalog-active .chip { font-size: .8rem; padding: .38rem .55rem .38rem .8rem; }
.catalog-active .chip .bi-x { font-size: 1rem; opacity: .65; transition: opacity var(--dur-fast) ease; }
.catalog-active .chip:hover .bi-x { opacity: 1; }
.catalog-active__clear { font-size: .82rem; font-weight: 650; color: var(--ink-500) !important; margin-left: .25rem; text-decoration: underline; text-underline-offset: 3px; }
.catalog-active__clear:hover { color: var(--brand-600) !important; }

/* ---------- Empty state ---------- */
.catalog-empty {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center; padding: clamp(2.5rem, 2rem + 4vw, 5rem) 1.5rem;
  background: var(--sand-50); border: 1px dashed var(--ink-200); border-radius: var(--r-xl);
}
.catalog-empty__title { font-size: var(--fs-2xl); max-width: 26ch; margin: 0 auto .75rem; }
.catalog-empty__text { color: var(--ink-500); max-width: 46ch; margin: 0 auto 1.75rem; }

/* ---------- Pagination ---------- */
.catalog-pager { display: flex; justify-content: center; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.catalog-pager .pagination { flex-wrap: wrap; justify-content: center; margin: 0; }
.catalog-pager .page-link--wide { gap: .4rem; padding-inline: 1rem; }
.catalog-pager .page-link--gap { border-color: transparent; background: transparent; min-width: 28px; }
.catalog-pager .page-item.active .page-link { box-shadow: 0 8px 18px -8px rgba(12,18,34,.55); }
