/* /Property/Search — premium listing experience */

.portal-search--premium {
  --pr-navy: var(--tf-navy-900, #0a0f1a);
  --pr-gold: var(--tf-gold-500, #e8a82e);
  --pr-gold-soft: var(--tf-gold-300, #fde68a);
  --pr-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-collapse-ms: 520ms;
  --hero-collapse-ease: cubic-bezier(0.33, 1, 0.68, 1);
}

.portal-search--premium .portal-search-hero--pro {
  position: sticky;
  top: calc(3.45rem + env(safe-area-inset-top, 0px));
  z-index: 1010;
  margin-bottom: 0.5rem;
  transition:
    margin-bottom var(--hero-collapse-ms) var(--hero-collapse-ease),
    box-shadow var(--hero-collapse-ms) var(--hero-collapse-ease);
}

.portal-search--premium .portal-search-hero--pro.portal-search-hero--collapsed {
  margin-bottom: 0.4rem;
  box-shadow:
    0 10px 28px rgba(11, 18, 32, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.portal-search-hero__squeeze {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows var(--hero-collapse-ms) var(--hero-collapse-ease),
    opacity calc(var(--hero-collapse-ms) * 0.65) ease,
    visibility 0s linear 0s;
}

.portal-search-hero--collapsed .portal-search-hero__squeeze--meta,
.portal-search-hero--collapsed .portal-search-hero__squeeze--panel {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    grid-template-rows var(--hero-collapse-ms) var(--hero-collapse-ease),
    opacity calc(var(--hero-collapse-ms) * 0.65) ease,
    visibility 0s linear var(--hero-collapse-ms);
}

.portal-search-collapse-sentinel {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  visibility: hidden;
  scroll-margin-top: calc(3.45rem + env(safe-area-inset-top, 0px) + 4.5rem);
}

.portal-search-hero__squeeze-inner {
  min-height: 0;
  overflow: hidden;
}

.portal-search-hero__bar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 0.75rem;
  min-width: 0;
  width: 100%;
  text-align: left;
}

.portal-search--premium .portal-search-hero__lead {
  text-align: left;
}

.portal-search--premium .portal-search-breadcrumb-wrap {
  max-width: none;
}

.portal-search--premium .portal-search-breadcrumb-wrap .portal-breadcrumb {
  justify-content: flex-start;
}

@media (max-width: 991.98px) {
  .portal-search--premium {
    --hero-collapse-ms: 260ms;
    --hero-collapse-ease: cubic-bezier(0.4, 0, 0.2, 1);
  }

  .portal-search--premium .portal-search-hero--pro {
    overflow-x: clip;
    max-width: 100%;
  }

  .portal-search--premium .portal-search-hero--pro.portal-search-hero--collapsed {
    overflow: visible;
  }

  .portal-search--premium .portal-search-hero--rich {
    animation: none;
  }

  .portal-search-hero__squeeze {
    will-change: grid-template-rows, opacity;
  }

  .portal-search--premium .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__bar {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-search--premium .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__squeeze--meta {
    max-width: 100%;
    width: 100%;
  }

  .portal-search--premium .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__bar-search {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__bar {
    flex-direction: row;
    align-items: center;
  }

  .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__squeeze--meta {
    flex: 0 1 auto;
    max-width: none;
  }

  .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__bar-search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

.portal-search-hero__bar {
  transition:
    padding var(--hero-collapse-ms) var(--hero-collapse-ease),
    gap var(--hero-collapse-ms) var(--hero-collapse-ease);
}

.portal-search-hero--collapsed .portal-search-hero__bar {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem 0.5rem;
}

.portal-search-hero__glow {
  transition: opacity var(--hero-collapse-ms) ease;
}

.portal-search-hero--collapsed .portal-search-hero__glow {
  opacity: 0;
}

.portal-search-hero--rich .portal-search-hero__accent {
  transition: height var(--hero-collapse-ms) var(--hero-collapse-ease);
}

.portal-search-hero--collapsed.portal-search-hero--rich .portal-search-hero__accent {
  height: 3px;
}

.portal-search-hero__bar-search {
  transition: flex var(--hero-collapse-ms) var(--hero-collapse-ease);
}

.portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__unfold,
.portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__compact-label {
  display: none !important;
}

.portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__bar-search {
  gap: 0;
}

.portal-search--premium .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__bar {
  padding-bottom: 0.18rem;
  gap: 0.45rem;
}

.portal-search--premium .portal-search-hero:not(.portal-search-hero--collapsed) .portal-type-tabs--rich {
  padding-top: 0;
  padding-bottom: 0;
}

.portal-search--premium .portal-type-tabs--rich {
  background: transparent;
  padding-bottom: 0;
  border-bottom: none;
}

.portal-search--premium .portal-search-hero__squeeze--panel {
  margin-top: 0;
}

.portal-search-hero--collapsed .portal-search-hero__bar-search {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  min-width: 0;
  position: relative;
}

.portal-search-hero--collapsed .portal-search-hero__bar-search .portal-search-suggestions--flow {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 1025;
  margin-top: 0;
}

/* Expanded header: float the autocomplete results over the page so the listing
   tabs / count / column controls below never get pushed down. */
.portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__bar-search {
  position: relative;
}

.portal-search-hero:not(.portal-search-hero--collapsed)
  .portal-search-hero__bar-search
  .portal-search-suggestions--flow {
  position: absolute !important;
  top: calc(100% + 0.4rem) !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  margin: 0 !important;
  z-index: 1025 !important;
}

.portal-search-hero--collapsed .portal-search-hero__bar-search .portal-search-input-shell--pro {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.5rem;
  transition: min-height var(--hero-collapse-ms) var(--hero-collapse-ease);
}

.portal-search--premium .portal-search-input-shell--pro {
  transition: min-height var(--hero-collapse-ms) var(--hero-collapse-ease);
}

.portal-search-hero__compact-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0;
  border: 1px solid transparent;
  transition:
    max-width var(--hero-collapse-ms) var(--hero-collapse-ease),
    opacity calc(var(--hero-collapse-ms) * 0.7) ease,
    margin var(--hero-collapse-ms) var(--hero-collapse-ease),
    padding var(--hero-collapse-ms) var(--hero-collapse-ease);
}

.portal-search-hero__compact-label--filter.portal-meta-chip--all {
  color: #4338ca;
  background: #eef2ff;
  border-color: rgba(79, 70, 229, 0.2);
}

.portal-search-hero__compact-label--filter.portal-meta-chip--rent {
  color: #0f766e;
  background: #ccfbf1;
  border-color: rgba(13, 148, 136, 0.2);
}

.portal-search-hero__compact-label--filter.portal-meta-chip--sale {
  color: #c2410c;
  background: #fff7ed;
  border-color: rgba(234, 88, 12, 0.2);
}

.portal-search-hero__compact-label--filter.portal-meta-chip--pg {
  color: #6d28d9;
  background: #f5f3ff;
  border-color: rgba(124, 58, 237, 0.2);
}

.portal-search-hero__compact-label.is-visible {
  max-width: 9.5rem;
  opacity: 1;
  margin-left: 0.15rem;
  padding: 0.22rem 0.55rem;
}

@media (max-width: 575.98px) {
  .portal-search-hero__compact-label.is-visible {
    max-width: 7.5rem;
    opacity: 1;
    margin-left: 0.1rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.64rem;
  }
}

.portal-search-hero__compact-label .bi {
  font-size: 0.72rem;
  opacity: 0.9;
}

.portal-search-hero__unfold {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: #fff;
  color: #475569;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
  transition:
    opacity calc(var(--hero-collapse-ms) * 0.65) ease,
    transform var(--hero-collapse-ms) var(--hero-collapse-ease),
    color 0.2s ease,
    border-color 0.2s ease;
}

.portal-search-hero--collapsed .portal-search-hero__unfold {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.portal-search-hero__unfold:hover,
.portal-search-hero__unfold:focus-visible {
  color: #0d9488;
  border-color: rgba(13, 148, 136, 0.4);
}

html.portal-search-scrolled .portal-search--premium .portal-results-section--rich {
  padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .portal-search--premium {
    --hero-collapse-ms: 1ms;
  }

  .portal-search-hero__squeeze,
  .portal-search-hero__bar,
  .portal-search-hero__compact-label,
  .portal-search-hero__unfold,
  .portal-search--premium .portal-search-hero--pro {
    transition: none !important;
  }
}

.portal-search--premium .portal-search-canvas {
  animation: none;
}

.portal-search--premium .portal-search-hero--rich {
  animation: pr-hero-fade 0.45s var(--pr-ease) both;
}

@keyframes pr-hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.portal-search--premium .portal-results-section--rich {
  animation: none;
  margin-top: 0;
  padding-top: 0;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.portal-search--premium .portal-search-hero--rich {
  border: 1px solid rgba(212, 168, 75, 0.22);
  box-shadow:
    0 12px 32px rgba(11, 18, 32, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.portal-search--premium .portal-search-hero--rich .portal-search-hero__accent {
  height: 3px;
}

.portal-search-hero__lead {
  display: block;
  margin-bottom: 0.15rem;
}

@media (min-width: 768px) {
  .portal-search--premium .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__bar {
    align-items: center;
    flex-wrap: nowrap;
    padding: 0.3rem 0.65rem 0.22rem;
    gap: 0.55rem;
  }

  .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__squeeze--meta {
    flex: 0 1 auto;
    max-width: none;
    min-width: 0;
  }

  .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__bar-meta {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
  }

  .portal-search-hero__lead {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 0;
    margin-bottom: 0;
    padding-right: 0.4rem;
    border-right: 1px solid rgba(148, 163, 184, 0.28);
  }

  .portal-search-hero__title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pr-navy);
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
  }

  .portal-search-breadcrumb-wrap {
    flex: 0 0 auto;
    max-width: none;
    margin-left: 0;
  }

  .portal-breadcrumb--pro {
    font-size: 0.68rem;
  }

  .portal-breadcrumb__current {
    font-size: 0.66rem;
    padding: 0.16rem 0.42rem;
  }

  .portal-search--premium .portal-search-input-shell--pro {
    min-height: 2.35rem;
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.06);
  }

  .portal-search--premium .portal-search-submit {
    min-width: 5.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.78rem;
  }
}

@media (min-width: 992px) {
  .portal-search-hero__sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
  }
}

.portal-search--premium .portal-search-input-shell--pro {
  min-height: 2.5rem;
  border: 1px solid rgba(13, 148, 136, 0.28);
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.08);
}

.portal-search--premium .portal-search-submit {
  min-width: 6.5rem;
  background: var(--tf-accent-gradient) !important;
  color: var(--tf-on-gold, #1a1208) !important;
  box-shadow: var(--tf-shadow-gold);
}

.portal-search--premium .portal-type-tabs--rich .portal-type-tab.is-active,
.portal-search--premium .portal-type-tabs--rich .portal-type-tab:hover:not(.is-active) {
  transform: none;
}

.portal-search--premium .portal-search-context {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.06) 0%, rgba(79, 70, 229, 0.05) 100%);
}

/* ── Filters ─────────────────────────────────────────────────────────────── */

.portal-filter-card--premium {
  border: 1px solid rgba(11, 18, 32, 0.08) !important;
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.07) !important;
}

.portal-filter-card--premium .portal-filter-card-head--pro {
  background: linear-gradient(135deg, var(--pr-navy) 0%, #1a2744 100%);
  border-bottom: none;
  padding: 0.7rem 0.85rem;
}

.portal-filter-card--premium .portal-filter-card-head--pro .portal-filter-head-icon {
  background: linear-gradient(145deg, var(--pr-gold), #b45309);
  color: var(--pr-navy);
}

.portal-filter-card--premium .portal-filter-card-head--pro .portal-filter-head-title {
  color: #fff;
}

.portal-filter-card--premium .portal-filter-card-head--pro .portal-filter-reset {
  color: var(--pr-gold-soft);
}

.portal-filter-card--premium .portal-filter-card-head--pro .portal-filter-reset:hover {
  color: #fff;
}

.portal-filter-card--premium .portal-filter-block {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  padding: 0.5rem 0.55rem 0.55rem;
  margin-top: 0.45rem !important;
  padding-top: 0.5rem !important;
  border-top: 1px solid #e8edf4 !important;
}

.portal-search--premium .portal-filter-card--premium .portal-bhk-label--pro {
  padding: 0.375rem 0.75rem !important;
  white-space: nowrap;
}

.portal-filter-card--premium .portal-bhk-grid--pro {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-filter-card--premium .portal-bhk-label--pro:checked,
.portal-filter-card--premium .btn-check:checked + .portal-bhk-label--pro {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* ── Results toolbar ─────────────────────────────────────────────────────── */

.portal-results-toolbar--premium {
  background: linear-gradient(105deg, #fff 0%, #f8fafc 45%, #eef2ff 100%) !important;
  border: 1px solid rgba(79, 70, 229, 0.14) !important;
}

.portal-results-toolbar--premium .portal-results-title {
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--pr-navy), #334155);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Full-width results meta bar ─────────────────────────────────────────── */

.portal-results-meta-bar--premium {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(79, 70, 229, 0.16);
  background: linear-gradient(105deg, #fff 0%, #f8fafc 42%, #eef2ff 100%);
  box-shadow:
    0 12px 32px rgba(11, 18, 32, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.portal-results-meta-bar--in-hero {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  margin: 0;
}

.portal-results-meta-bar--in-hero .portal-results-meta-bar__inner {
  padding: 0.28rem 0.65rem 0.32rem;
  gap: 0.35rem 0.5rem;
}

.portal-results-meta-bar--in-hero .portal-meta-stat {
  padding: 0.18rem 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: none;
}

.portal-results-meta-bar--in-hero .portal-meta-stat--primary {
  background: transparent;
  border: none;
}

.portal-results-meta-bar--in-hero .portal-meta-stat__icon {
  display: none;
}

.portal-results-meta-bar--in-hero .portal-meta-stat__body {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
}

.portal-results-meta-bar--in-hero .portal-meta-stat__value {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--pr-navy);
}

.portal-results-meta-bar--in-hero .portal-meta-stat__hint {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
}

.portal-results-meta-bar--in-hero .portal-meta-chip--listing-type,
.portal-results-meta-bar--in-hero .portal-meta-chip--location {
  display: none;
}

@media (min-width: 768px) {
  .portal-search--premium .portal-search-hero--pro {
    margin-bottom: 0.35rem;
  }

  .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__squeeze--panel .portal-search-hero__squeeze-inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
  }

  .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__squeeze--panel .portal-type-tabs--rich {
    grid-column: 1;
    grid-row: 1;
    border: none;
    background: transparent;
    padding: 0.2rem 0.35rem 0.2rem 0.55rem;
    min-width: 0;
    gap: 0.28rem;
  }

  .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__squeeze--panel .portal-type-tabs--rich .portal-type-tab {
    padding: 0.22rem 0.5rem;
    font-size: 0.7rem;
  }

  .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__squeeze--panel .portal-results-meta-bar--in-hero {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .portal-results-meta-bar--in-hero .portal-results-meta-bar__chips {
    display: none;
  }

  .portal-results-meta-bar--in-hero .portal-results-meta-bar__inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0.2rem 0.55rem 0.2rem 0.25rem;
    gap: 0.35rem;
    min-height: 0;
  }

  .portal-results-meta-bar--in-hero .portal-results-meta-bar__stats {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
  }

  .portal-results-meta-bar--in-hero .portal-results-meta-bar__tools {
    margin-left: 0;
    flex-shrink: 0;
    justify-content: flex-end;
  }

  .portal-results-meta-bar--in-hero .portal-meta-stat__hint {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 767.98px) {
  .portal-results-meta-bar--in-hero .portal-results-meta-bar__stats {
    display: none;
  }
}

.portal-results-meta-bar--in-hero .portal-page-size-form {
  padding: 0.12rem 0.32rem;
  gap: 0.25rem !important;
}

.portal-results-meta-bar--in-hero .portal-page-size-label {
  font-size: 0.68rem;
}

.portal-results-meta-bar--in-hero .portal-page-size-select {
  min-height: 1.65rem;
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
  font-size: 0.72rem;
}

.portal-results-meta-bar--in-hero .portal-map-btn {
  padding: 0.18rem 0.45rem;
  font-size: 0.72rem;
  line-height: 1.2;
}

@media (min-width: 992px) {
  .portal-search-hero:not(.portal-search-hero--collapsed) .portal-search-hero__squeeze--panel .portal-type-tabs--rich {
    padding-left: 0.65rem;
  }

  .portal-results-meta-bar--in-hero .portal-meta-stat__hint {
    max-width: 18rem;
  }
}

.portal-results-meta-bar__accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #4f46e5, #0d9488);
  border-radius: 16px 0 0 16px;
}

.portal-results-meta-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem 0.85rem;
  padding: 0.65rem 0.85rem 0.65rem 1rem;
  min-width: 0;
  max-width: 100%;
}

.portal-results-meta-bar__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.portal-meta-stat {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  min-width: 0;
  max-width: 11rem;
}

.portal-meta-stat--primary {
  max-width: 13rem;
  border-color: rgba(79, 70, 229, 0.22);
  background: linear-gradient(135deg, #fff 0%, #f5f3ff 100%);
}

.portal-meta-stat__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(145deg, #4f46e5, #6366f1);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.22);
}

.portal-meta-stat--page .portal-meta-stat__icon {
  background: linear-gradient(145deg, var(--pr-navy), #334155);
}

.portal-meta-stat--filters .portal-meta-stat__icon {
  background: linear-gradient(145deg, #0d9488, #0f766e);
}

.portal-meta-stat__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.portal-meta-stat__value {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--pr-navy);
  letter-spacing: -0.02em;
}

.portal-meta-stat__hint {
  font-size: 0.64rem;
  font-weight: 600;
  color: #64748b;
}

.portal-results-meta-bar__chips {
  display: flex;
  flex: 1 1 12rem;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 70, 229, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.5rem), transparent 100%);
}

.portal-results-meta-bar__chips::-webkit-scrollbar {
  height: 4px;
}

.portal-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  padding: 0.32rem 0.62rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(11, 18, 32, 0.04);
}

.portal-meta-chip i {
  font-size: 0.72rem;
  opacity: 0.85;
}

.portal-meta-chip__text {
  max-width: 14rem;
}

.portal-meta-chip--all {
  color: #4338ca;
  border-color: rgba(79, 70, 229, 0.28);
  background: linear-gradient(135deg, #eef2ff, #fff);
}

.portal-meta-chip--rent {
  color: #047857;
  border-color: rgba(5, 150, 105, 0.28);
  background: linear-gradient(135deg, #ecfdf5, #fff);
}

.portal-meta-chip--sale {
  color: #c2410c;
  border-color: rgba(234, 88, 12, 0.28);
  background: linear-gradient(135deg, #fff7ed, #fff);
}

.portal-meta-chip--pg {
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.28);
  background: linear-gradient(135deg, #f5f3ff, #fff);
}

.portal-meta-chip--location {
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.28);
  background: linear-gradient(135deg, #f0fdfa, #fff);
}

.portal-meta-chip--radius {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, #eff6ff, #fff);
}

.portal-meta-chip--bhk i { color: #4f46e5; }
.portal-meta-chip--rent i { color: #059669; }
.portal-meta-chip--sale i { color: #ea580c; }

.portal-meta-chip--clear {
  text-decoration: none;
  color: #b45309;
  border-color: rgba(212, 168, 75, 0.45);
  background: linear-gradient(135deg, var(--pr-gold-soft), #fff);
  transition: transform 0.2s var(--pr-ease), box-shadow 0.2s ease;
}

.portal-meta-chip--clear:hover {
  color: #92400e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 168, 75, 0.25);
}

.portal-results-meta-bar__tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  margin-left: auto;
}

@media (min-width: 992px) {
  .portal-results-meta-bar__inner {
    flex-wrap: nowrap;
    align-items: center;
  }

  .portal-results-meta-bar__chips {
    flex: 1 1 0;
  }
}

/* ── Card grid ───────────────────────────────────────────────────────────── */

.portal-search--premium .portal-card-grid--animated {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.35rem;
}

.portal-listing-card-shell--premium {
  height: 100%;
}

.portal-listing-card--premium {
  position: relative;
  border-radius: 18px !important;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(11, 18, 32, 0.07) !important;
  transition:
    transform 0.38s var(--pr-ease),
    box-shadow 0.38s ease,
    border-color 0.25s ease !important;
}

.portal-listing-card--premium::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  z-index: 2;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, #0d9488, #4f46e5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portal-listing-card--premium.portal-listing-card--rent::before {
  background: linear-gradient(180deg, #059669, #0d9488);
}

.portal-listing-card--premium.portal-listing-card--sale::before {
  background: linear-gradient(180deg, #ea580c, #f59e0b);
}

.portal-listing-card--premium.portal-listing-card--pg::before {
  background: linear-gradient(180deg, #7c3aed, #a78bfa);
}

.property-card-link:hover .portal-listing-card--premium {
  transform: translateY(-8px) !important;
  border-color: rgba(13, 148, 136, 0.35) !important;
  box-shadow:
    0 22px 48px rgba(11, 18, 32, 0.12),
    0 8px 20px rgba(13, 148, 136, 0.08) !important;
}

.property-card-link:hover .portal-listing-card--premium::before {
  opacity: 1;
}

/* ── Card media ──────────────────────────────────────────────────────────── */

.portal-card-media--premium {
  overflow: hidden;
}

.portal-search--premium .portal-listing-card--premium .property-card-img,
.portal-search--premium .portal-listing-card--premium .property-card-kenburns-viewport {
  height: 220px;
}

.portal-search--premium .portal-listing-card--premium .property-card-img {
  transition: transform 0.65s var(--pr-ease);
}

.property-card-link:hover .portal-listing-card--premium:not(:has(.property-card-kenburns-viewport)) .property-card-img--primary {
  transform: scale(1.07);
}

.portal-card-media-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(11, 18, 32, 0.08) 0%,
    transparent 35%,
    transparent 55%,
    rgba(11, 18, 32, 0.55) 100%
  );
}

.portal-card-rating-float {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.22rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--pr-navy);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(11, 18, 32, 0.15);
  backdrop-filter: blur(6px);
}

.portal-card-rating-float--ai {
  color: #fff;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(13, 148, 136, 0.92));
}

.portal-card-rating-float--ai i {
  color: #fde68a;
}

.portal-card-top-actions {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  max-width: calc(100% - 1.2rem);
  pointer-events: none;
}

.portal-card-top-actions .portal-card-rating-float {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
  order: 1;
}

.portal-card-top-actions .listing-favorite-btn--card {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
  order: 2;
  pointer-events: auto;
}

.portal-card-rating-float i {
  color: #f59e0b;
}

.portal-search--premium .portal-card-price {
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.portal-search--premium .portal-card-price--locked {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 1.5rem);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(11, 18, 32, 0.18);
}

.portal-search--premium .portal-card-price--locked .portal-card-price__caption {
  color: var(--pr-navy);
  font-weight: 800;
  font-size: 0.7rem;
}

.portal-search--premium .portal-card-price--locked .portal-card-price__caption i {
  color: var(--pr-gold);
}

.portal-search--premium .portal-card-type {
  border-radius: 8px;
  padding: 0.28rem 0.55rem;
  font-size: 0.64rem;
  letter-spacing: 0.07em;
}

/* ── Card body ───────────────────────────────────────────────────────────── */

.portal-card-body--premium {
  padding: 1rem 1.05rem 1rem !important;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
}

.portal-card-head--premium {
  margin-bottom: 0.45rem;
}

.portal-card-title--premium {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
  line-height: 1.3 !important;
  min-height: auto !important;
  margin-bottom: 0.35rem !important;
  color: var(--pr-navy) !important;
}

.portal-card-loc--premium {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #0f766e;
  line-height: 1.35;
}

.portal-card-loc--premium i {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.portal-card-loc--premium span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-card-desc--premium {
  font-size: 0.74rem !important;
  line-height: 1.45 !important;
  color: #64748b !important;
  margin-bottom: 0.65rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-card-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.portal-card-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.5rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8edf4;
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  min-width: 0;
}

.portal-card-stat i {
  flex-shrink: 0;
  font-size: 0.82rem;
}

.portal-card-stat--bhk i { color: #4f46e5; }
.portal-card-stat--sqft i { color: #0d9488; }
.portal-card-stat--rent i { color: #059669; }
.portal-card-stat--sale i { color: #ea580c; }
.portal-card-stat--deposit i { color: #6366f1; }
.portal-card-stat--masked { color: #94a3b8; }

.portal-card-lock-banner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  padding: 0.42rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #92400e;
  background: linear-gradient(90deg, var(--pr-gold-soft), #fff7ed);
  border: 1px solid rgba(212, 168, 75, 0.35);
  border-radius: 10px;
}

.portal-card-lock-banner i {
  color: #b45309;
}

.portal-card-cta-bar {
  margin-top: auto;
  padding-top: 0.15rem;
}

.portal-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--pr-navy) 0%, #1e3a5f 60%, #0d9488 100%);
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(11, 18, 32, 0.2);
  transition: transform 0.22s var(--pr-ease), box-shadow 0.22s ease, filter 0.2s ease;
}

.property-card-link:hover .portal-card-btn {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(11, 18, 32, 0.28);
  filter: brightness(1.05);
}

.portal-card-btn i {
  transition: transform 0.22s var(--pr-ease);
}

.property-card-link:hover .portal-card-btn i {
  transform: translateX(4px);
}

/* Hide legacy clutter on premium cards */
.portal-listing-card--premium .portal-card-chips,
.portal-listing-card--premium .portal-listing-facts,
.portal-listing-card--premium .portal-lock-note,
.portal-listing-card--premium .portal-listing-footer--pro,
.portal-listing-card--premium .listing-address-highlight--compact,
.portal-listing-card--premium .portal-card-highlights {
  display: none !important;
}

/* ── Pagination & help ───────────────────────────────────────────────────── */

.portal-search--premium .portal-pagination-bar {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.05);
}

.portal-search-help--premium {
  background: linear-gradient(105deg, var(--pr-navy) 0%, #1a2744 100%) !important;
  border: none !important;
  color: #e2e8f0;
}

.portal-search-help--premium .portal-search-help__text {
  color: #cbd5e1 !important;
}

.portal-search-help--premium .portal-search-help__btn {
  background: linear-gradient(135deg, var(--pr-gold), #f59e0b) !important;
  color: var(--pr-navy) !important;
  font-weight: 800;
  border: none;
}

/* ── Entrance ────────────────────────────────────────────────────────────── */

.portal-card-col--premium {
  animation: pr-card-rise 0.5s var(--pr-ease) both;
  animation-delay: var(--card-delay, 0ms);
}

@keyframes pr-card-rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Mobile search + cards ───────────────────────────────────────────────── */

.portal-search-hero__bar-tools {
  display: contents;
}

.portal-search-submit .bi {
  font-size: 1rem;
  line-height: 1;
}

.portal-search-submit__text {
  display: inline;
}

.portal-listing-card--premium:has(.portal-card-price--locked) .portal-card-lock-banner {
  display: none;
}

@media (max-width: 991.98px) {
  .portal-search--premium .portal-search-hero--pro.portal-search-hero--collapsed {
    margin-bottom: 0.65rem;
  }

  .portal-search-hero--collapsed .portal-search-hero__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0.65rem 0.55rem;
  }

  .portal-search-hero--collapsed .portal-search-hero__bar-search {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.4rem 0.45rem;
    width: 100%;
    min-width: 0;
  }

  .portal-search-hero--collapsed .portal-search-hero__bar-search .portal-search-input-shell--pro {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: stretch;
  }

  .portal-search-hero--collapsed .portal-search-hero__bar-search .portal-search-input-icon {
    width: 2.15rem;
    flex-shrink: 0;
  }

  .portal-search-hero--collapsed .portal-search-hero__bar-search .portal-search-input {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.86rem;
    padding: 0.42rem 0.5rem;
  }

  .portal-search-hero--collapsed .portal-search-hero__bar-search .portal-search-submit {
    flex-shrink: 0;
    min-width: 0;
    padding: 0 0.7rem;
    font-size: 0.76rem;
  }

  .portal-search-hero--collapsed .portal-search-hero__bar-tools {
    display: contents;
  }

  .portal-search-hero--collapsed .portal-search-hero__compact-label {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin-left: 0;
  }

  .portal-search-hero--collapsed .portal-search-hero__compact-label.is-visible {
    max-width: 10rem;
  }

  .portal-search-hero--collapsed .portal-search-hero__unfold {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .portal-search-hero--collapsed .portal-search-hero__bar-search .portal-search-suggestions--flow {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .portal-search--premium .portal-results-section {
    padding-top: 0.15rem;
  }
}

@media (max-width: 575.98px) {
  .portal-search-hero--collapsed .portal-search-hero__bar-search .portal-search-submit__text {
    display: none;
  }

  .portal-search-hero--collapsed .portal-search-hero__bar-search .portal-search-submit {
    min-width: 2.45rem;
    max-width: 2.45rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .portal-search-hero--collapsed .portal-search-hero__compact-label.is-visible {
    display: none !important;
  }

  .portal-search-hero--collapsed .portal-search-hero__unfold {
    grid-column: 2;
    grid-row: 2;
  }

  .portal-search--premium .portal-card-grid--animated {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 1.35rem;
  }

  .portal-search--premium .portal-listing-card--premium .property-card-img,
  .portal-search--premium .portal-listing-card--premium .property-card-kenburns-viewport {
    height: 168px;
  }

  .portal-card-body--premium {
    padding: 0.9rem 0.9rem 0.95rem !important;
  }

  .portal-card-stat-grid {
    gap: 0.35rem;
    margin-bottom: 0.55rem;
  }

  .portal-card-stat {
    padding: 0.34rem 0.42rem;
    font-size: 0.64rem;
  }

  .portal-card-cta-bar {
    padding-top: 0.35rem;
  }

  .portal-card-btn {
    padding: 0.62rem 0.75rem;
    font-size: 0.76rem;
  }

  .portal-card-title--premium {
    font-size: 0.9rem !important;
  }

  .portal-card-desc--premium {
    margin-bottom: 0.5rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-card-col--premium,
  .portal-listing-card--premium,
  .portal-card-btn,
  .property-card-link:hover .portal-listing-card--premium {
    animation: none;
    transform: none;
    transition: none;
  }
}
