.listings-page-wrapper {
  --ls-border: #e8e0d3;
  --ls-surface: #ffffff;
  --ls-soft: #f9f6f1;
  --ls-text: #1f1b16;
  --ls-muted: #6f665a;
  --ls-shadow: 0 16px 38px rgba(26, 20, 11, 0.08);
  background:
    radial-gradient(70vw 42vw at 100% -10%, rgba(166, 138, 100, 0.09), transparent 55%),
    radial-gradient(48vw 30vw at -8% 20%, rgba(166, 138, 100, 0.07), transparent 60%),
    #f7f4ef;
  min-height: 100vh;
  color: var(--ls-text);
}

.listings-header-section {
  padding: clamp(3rem, 7vw, 5rem) 1rem 2.3rem;
}

.listings-hero-shell {
  display: none !important;
}

.listing-hero-v2 {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(32rem 22rem at -10% -10%, rgba(214, 182, 135, 0.24), transparent 55%),
    radial-gradient(24rem 18rem at 100% 100%, rgba(183, 146, 95, 0.12), transparent 60%),
    linear-gradient(135deg, #fffdf9 0%, #f5eee3 55%, #fbf7f1 100%);
  color: #2a231b;
  border: 1px solid rgba(207, 182, 146, 0.72);
  box-shadow: 0 18px 40px rgba(31, 23, 16, 0.08);
  padding: 1rem;
}

.listing-hero-v2__glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(8px);
}

.listing-hero-v2__glow--a {
  width: 220px;
  height: 220px;
  top: -82px;
  left: -54px;
  background: rgba(228, 190, 133, 0.18);
}

.listing-hero-v2__glow--b {
  width: 260px;
  height: 260px;
  right: -86px;
  bottom: -124px;
  background: rgba(191, 153, 104, 0.12);
}

.listing-hero-v2__top,
.listing-hero-v2__grid,
.listing-hero-v2__mobile {
  position: relative;
  z-index: 1;
}

.listing-hero-v2__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.listing-hero-v2__brand {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(190, 157, 111, 0.42);
  background: rgba(255, 252, 247, 0.8);
  color: #8c6840;
  font-size: 0.7rem;
  font-weight: 600;
}

.listing-hero-v2__switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.24rem;
  padding: 0.28rem;
  min-width: 172px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.78);
  border: 1px solid rgba(190, 157, 111, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.listing-hero-v2__switch-item {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
  color: #69523a;
  font-size: 0.88rem;
  font-weight: 700;
}

.listing-hero-v2__switch-item.active {
  background: linear-gradient(135deg, #d7b078 0%, #c79656 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(183, 136, 71, 0.24);
}

.listing-hero-v2__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: stretch;
}

.listing-hero-v2__copy {
  padding: 0.45rem 0.1rem 0.2rem;
}

.listing-hero-v2__eyebrow {
  margin: 0 0 0.55rem;
  color: #a8865b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.listing-hero-v2__copy h1 {
  margin: 0;
  font-family: "Playfair Display", var(--font-heading), serif;
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #3b3127;
  max-width: 10ch;
}

.listing-hero-v2__summary {
  margin: 0.95rem 0 0;
  max-width: 40ch;
  font-size: 0.98rem;
  line-height: 1.62;
  color: #6f6254;
}

.listing-hero-v2__stats {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.listing-hero-v2__stat {
  display: grid;
  gap: 0.18rem;
  min-width: 128px;
  padding: 0.8rem 0.92rem;
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.74);
  border: 1px solid rgba(196, 166, 127, 0.22);
  box-shadow: 0 10px 22px rgba(31, 23, 16, 0.04);
}

.listing-hero-v2__stat strong {
  font-size: 1.08rem;
  color: #3b3127;
}

.listing-hero-v2__stat span {
  font-size: 0.78rem;
  color: #756555;
}

.listing-hero-v2__stat.is-active {
  background: rgba(214, 182, 135, 0.18);
  border-color: rgba(190, 157, 111, 0.34);
}

.listing-hero-v2__dock {
  display: flex;
}

.listing-hero-v2__dock-panel {
  width: 100%;
  display: grid;
  gap: 0.72rem;
  padding: 1rem;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(248,243,235,0.92) 100%);
  border: 1px solid rgba(207, 182, 146, 0.6);
  color: #241b13;
  box-shadow: 0 14px 32px rgba(31, 23, 16, 0.06);
}

.listing-hero-v2__dock-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #97744d;
}

.listing-hero-v2__dock-card {
  display: grid;
  gap: 0.26rem;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(190, 157, 111, 0.18);
  box-shadow: 0 8px 18px rgba(31, 23, 16, 0.04);
}

.listing-hero-v2__dock-label {
  font-size: 0.72rem;
  color: #8a7259;
}

.listing-hero-v2__dock-card strong {
  font-size: 1.04rem;
  color: #2f261d;
}

.listing-hero-v2__dock-actions {
  display: grid;
  gap: 0.52rem;
}

.listing-hero-v2__dock-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  font-size: 0.88rem;
}

.listing-hero-v2__dock-button--primary {
  background: linear-gradient(135deg, #b98b53 0%, #a67740 100%);
  color: #fffaf3;
  box-shadow: 0 10px 18px rgba(166, 119, 64, 0.18);
}

.listing-hero-v2__dock-button--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: #7b6349;
  border-color: rgba(190, 157, 111, 0.24);
}

.listing-hero-v2__mobile {
  display: none;
}

.listing-hero-v2__mobile-card {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  padding: 0.82rem 0.88rem;
  border-radius: 20px;
  border: 1px solid rgba(190, 157, 111, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: #2f261d;
  box-shadow: 0 10px 24px rgba(31, 23, 16, 0.05);
}

.listing-hero-v2__mobile-card-copy {
  display: grid;
  gap: 0.16rem;
  text-align: left;
}

.listing-hero-v2__mobile-card-kicker {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a07d54;
}

.listing-hero-v2__mobile-card-copy strong {
  font-size: 0.88rem;
}

.listing-hero-v2__mobile-card-copy span:last-child {
  font-size: 0.72rem;
  color: #7d6a55;
}

.listing-hero-v2__mobile-card-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 0.6rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #d8b47d 0%, #c69452 100%);
  color: #ffffff;
  font-weight: 800;
}

.listing-hero-v2__mobile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.62rem;
}

.listing-hero-v2__mobile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 32px;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(190, 157, 111, 0.2);
  color: #725d47;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
}

.listing-hero-v2__mobile-pill strong {
  color: #2f261d;
}

.listing-hero-v2__mobile-pill.is-active {
  background: rgba(214, 182, 135, 0.16);
  border-color: rgba(190, 157, 111, 0.28);
  color: #87603b;
}

.listing-hero-v2__mobile-pill--ghost {
  margin-left: auto;
}

.listings-header-section h1 {
  font-family: "Playfair Display", var(--font-heading), serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 0.8rem;
  color: #5A5A5A !important;
  letter-spacing: -0.02em;
}

:lang(th) .listings-header-section h1 {
  font-family: "Mitr", "Noto Sans Thai", sans-serif;
  letter-spacing: 0;
  font-weight: 500;
  color: #5A5A5A !important;
}

.listings-header-section p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ls-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.listings-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  align-items: stretch;
  border: 1px solid #e3d5bf;
  border-radius: 36px;
  background: #fbf7f1;
  box-shadow: 0 26px 62px rgba(26, 20, 11, 0.08);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  background:
    radial-gradient(44rem 30rem at -8% -15%, rgba(214, 182, 135, 0.26), transparent 58%),
    linear-gradient(180deg, #fffdf9 0%, #f7f1e8 100%);
}

.hero-copy {
  display: grid;
  align-content: space-between;
  gap: 1.35rem;
  max-width: none;
  min-height: 100%;
  padding: 2rem 2.1rem 2.15rem;
  position: relative;
  z-index: 1;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-copy p {
  margin: 0;
  max-width: 34ch;
  font-size: 1.04rem;
  line-height: 1.72;
  color: #675949;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  border: 1px solid #dec9a9;
  background: rgba(255, 255, 255, 0.88);
  color: #7e6541;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(28, 20, 10, 0.06);
}

:lang(th) .hero-kicker {
  text-transform: none;
  letter-spacing: 0;
  font-family: "Mitr", "Noto Sans Thai", sans-serif;
  font-weight: 400;
}

.mode-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.34rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #deceb5;
  width: fit-content;
  box-shadow: 0 12px 28px rgba(28, 20, 10, 0.08);
}

.mode-chip {
  text-decoration: none;
  border: 1px solid transparent;
  color: #6a5842;
  background: transparent;
  border-radius: 999px;
  padding: 0.68rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  transition: 0.24s ease;
}

.mode-chip.active {
  background: linear-gradient(135deg, #ae8751 0%, #d0aa71 100%);
  border-color: #b89463;
  color: #fff;
  box-shadow: 0 12px 24px rgba(176, 139, 87, 0.28);
}

.mode-chip:not(.active):hover {
  background: #fff;
  color: #5b4c39;
}

.hero-desktop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-desktop-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 42px;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e3d6c4;
  color: #5d4e3f;
  font-size: 0.84rem;
  font-weight: 600;
}

.hero-desktop-chip strong {
  color: #1f1a14;
  font-size: 0.96rem;
}

.hero-desktop-chip.is-active {
  background: rgba(245, 231, 209, 0.96);
  border-color: #d4b487;
  color: #7a5a2c;
}

.hero-metrics {
  display: grid;
  background:
    linear-gradient(180deg, #1f1913 0%, #2d241b 100%);
}

.hero-panel-frame {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.4rem;
  margin: 1.15rem;
  border-radius: 28px;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(219, 178, 115, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-panel-kicker {
  margin: 0 0 0.1rem;
  color: rgba(255, 242, 220, 0.64);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.95rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.78rem;
}

.metric-card > .metric-value,
.metric-card > .metric-label {
  grid-column: 2;
}

.metric-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(244, 226, 194, 0.12);
  color: #e0bc83;
  font-size: 0.9rem;
  border: 1px solid rgba(224, 188, 131, 0.16);
}

.metric-value {
  display: block;
  font-size: 1.14rem;
  line-height: 1.1;
  font-weight: 700;
  color: #fff7ea;
}

.metric-label {
  display: block;
  margin-top: 0.28rem;
  color: rgba(255, 243, 224, 0.72);
  font-size: 0.76rem;
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 500;
  text-transform: none;
}

.hero-panel-copy {
  display: contents;
}

.btn-clear-hero {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(224, 188, 131, 0.2);
  color: #fff7ea;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  font-weight: 700;
  min-height: 50px;
  box-shadow: none;
}

.hero-panel-note {
  margin: 0.1rem 0 0;
  color: rgba(255, 242, 220, 0.58);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (min-width: 992px) {
  .listings-header-section {
    padding: 2.8rem 1rem 2rem;
  }

  .listings-hero-shell {
    grid-template-columns: minmax(0, 1.22fr) 380px;
    border: 0;
    border-radius: 40px;
    background: #151311;
    box-shadow: 0 32px 80px rgba(10, 10, 10, 0.22);
  }

  .hero-stage {
    background:
      radial-gradient(32rem 22rem at 10% 0%, rgba(234, 185, 104, 0.24), transparent 55%),
      linear-gradient(135deg, #171513 0%, #241f1a 50%, #1a1714 100%);
  }

  .hero-copy {
    padding: 2.6rem 2.7rem 2.8rem;
  }

  .hero-kicker {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #f2dcc0;
    box-shadow: none;
  }

  .hero-topline {
    align-items: flex-start;
  }

  .mode-switch {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    box-shadow: none;
  }

  .mode-chip {
    color: rgba(255, 242, 220, 0.82);
    padding: 0.72rem 1.28rem;
  }

  .mode-chip:not(.active):hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
  }

  .hero-copy h1 {
    color: #fff5e6 !important;
    font-size: clamp(3rem, 5vw, 4.5rem) !important;
    line-height: 0.98;
    max-width: 8.5ch;
    margin: 0;
  }

  .hero-copy p {
    color: rgba(255, 241, 219, 0.74);
    font-size: 1.06rem;
    line-height: 1.8;
    max-width: 34ch;
  }

  .hero-desktop-chip {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
    color: rgba(255, 241, 219, 0.82);
  }

  .hero-desktop-chip strong {
    color: #fff6e7;
  }

  .hero-desktop-chip.is-active {
    background: rgba(234, 185, 104, 0.16);
    border-color: rgba(234, 185, 104, 0.34);
    color: #f0c98f;
  }

  .hero-metrics {
    background:
      linear-gradient(180deg, #f7f2ea 0%, #efe6d9 100%);
  }

  .hero-panel-frame {
    margin: 1rem;
    padding: 1.25rem;
    border-radius: 30px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.7) 100%);
    border: 1px solid rgba(120, 93, 52, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  }

  .hero-panel-kicker {
    color: #8a6c45;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
  }

  .hero-panel-orb {
    width: 100%;
    height: 96px;
    border-radius: 22px;
    background:
      radial-gradient(circle at 20% 50%, rgba(213, 168, 94, 0.95) 0 10%, transparent 11%),
      radial-gradient(circle at 34% 50%, rgba(213, 168, 94, 0.24) 0 22%, transparent 23%),
      linear-gradient(135deg, #1c1814 0%, #342b23 100%);
    border: 1px solid rgba(0,0,0,0.06);
  }

  .metric-card {
    background: #ffffff;
    border-color: rgba(146, 117, 73, 0.12);
    box-shadow: 0 12px 24px rgba(40, 28, 15, 0.06);
  }

  .metric-icon {
    background: linear-gradient(180deg, #f6ead8 0%, #f0dec2 100%);
    border-color: #ead5b3;
    color: #a97837;
  }

  .metric-value {
    color: #241b13;
  }

  .metric-label {
    color: #746554;
  }

  .btn-clear-hero {
    background: #201a14;
    border-color: #201a14;
    color: #fff6e8;
    box-shadow: 0 14px 26px rgba(25, 19, 13, 0.16);
  }

  .btn-clear-hero:hover {
    background: #111;
    border-color: #111;
    color: #fff;
  }

  .hero-panel-note {
    color: #7f6d59;
  }
}

.btn-clear-hero:hover {
  border-style: solid;
  border-color: rgba(224, 188, 131, 0.4);
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.btn-clear-hero.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.hero-mobile-actions {
  display: none;
}

.btn-hero-filter {
  width: 100%;
  border: 1px solid #e4d8c7;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf7f0 100%);
  color: #241c14;
  padding: 0.88rem 0.92rem;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.82rem;
  box-shadow: 0 16px 28px rgba(36, 28, 20, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn-hero-filter::before {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(174, 135, 81, 0.2) 0 22%, transparent 23%),
    linear-gradient(180deg, #f8efe2 0%, #f2e4ce 100%);
  border: 1px solid #e4d2b8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.btn-hero-filter:hover {
  transform: translateY(-1px);
  border-color: #cdb38b;
  box-shadow: 0 18px 34px rgba(36, 28, 20, 0.11);
}

.btn-hero-filter-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.btn-hero-filter-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
}

.btn-hero-filter-subtitle {
  display: block;
  font-size: 0.72rem;
  color: #867360;
  text-align: left;
}

.btn-hero-filter-meta {
  font-size: 0.76rem;
  font-weight: 600;
  color: #7a6853;
  white-space: nowrap;
}

.hero-mobile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-mobile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-height: 34px;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e3d7c6;
  color: #5f5141;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-mobile-chip strong {
  color: #2c2219;
  font-size: 0.78rem;
}

.hero-mobile-chip.is-active {
  border-color: #ccb086;
  background: rgba(248, 238, 222, 0.98);
  color: #7b5c2e;
}

.hero-mobile-chip--clear {
  margin-left: auto;
}

.hero-mobile-chip.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.filter-sheet-handle {
  display: none;
}

body.filter-modal-open {
  overflow: hidden;
}

.filter-modal-backdrop {
  display: none;
}

.main-layout-container {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 4rem;
}

.main-layout-container.layout-reversed {
  grid-template-columns: minmax(0, 1fr) 290px;
}

.main-layout-container.layout-reversed .sidebar-filters {
  order: 2;
}

.main-layout-container.layout-reversed .listings-grid-area {
  order: 1;
}

.sidebar-filters {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  max-height: calc(100vh - var(--header-height) - 2rem);
  overflow-y: auto;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #fcf9f3 100%);
  border: 1px solid var(--ls-border);
  border-radius: 18px;
  box-shadow: var(--ls-shadow);
}

.sidebar-filters::-webkit-scrollbar {
  width: 8px;
}

.sidebar-filters::-webkit-scrollbar-thumb {
  background: #d9ceb9;
  border-radius: 99px;
}

.font-heading {
  font-size: 0.88rem;
  color: #3a3329;
  margin-bottom: 0.5rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

:lang(th) .font-heading {
  text-transform: none;
  letter-spacing: 0;
  font-family: "Mitr", "Noto Sans Thai", sans-serif;
  font-weight: 400;
}

.form-group {
  margin-bottom: 1rem;
}

.select-wrapper {
  border: 1px solid #e4dbce;
  background: #fff;
  border-radius: 10px;
  transition: 0.2s ease;
}

.select-wrapper:hover,
.select-wrapper:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(166, 138, 100, 0.12);
}

.select-wrapper select {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.7rem 0.85rem;
  color: #2f2a22;
  font-size: 0.94rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-radio {
  cursor: pointer;
  margin: 0;
}

.pill-radio input {
  display: none;
}

.pill-radio span {
  min-width: 42px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #e4dbcd;
  background: #fff;
  color: #50463b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0 0.5rem;
}

.pill-radio input:checked + span {
  background: #7a5728;
  border-color: #7a5728;
  color: #fff;
}

.custom-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.custom-check input {
  display: none;
}

.check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid #d4cab8;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-check input:checked + .check-box {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.custom-check input:checked + .check-box::after {
  content: "\2713";
  color: #fff;
  font-size: 12px;
}

.check-label {
  color: #51493e;
  font-size: 0.92rem;
}

.btn-full {
  width: 100%;
  border-radius: 10px;
  padding: 0.75rem;
}

.filter-form .btn.btn-primary.btn-full {
  background: #6e4d22;
  border-color: #6e4d22;
  color: #fff;
  font-weight: 600;
}

.filter-form .btn.btn-primary.btn-full:hover,
.filter-form .btn.btn-primary.btn-full:focus {
  background: #5a3f1b;
  border-color: #5a3f1b;
  color: #fff;
}

.listings-grid-area {
  min-width: 0;
}

.results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ls-border);
  border-radius: 14px;
  background: var(--ls-surface);
  margin-bottom: 1rem !important;
}

.results-info .text-muted {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #463c30 !important;
  font-family: "Mitr", "Noto Sans Thai", sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.results-info .custom-dropdown {
  margin-left: auto;
  flex: 0 0 auto;
}

.property-grid-responsive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
  grid-auto-flow: row;
}

.property-card,
.property-card-horizontal {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid #e9dfd1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.08);
  will-change: transform;
}

.property-card:hover,
.property-card-horizontal:hover {
  transform: translateY(-3px);
  border-color: #d9c8ae;
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.13);
}

.card-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #f0eae0;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  display: block;
}

.card-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  background: #f0eae0;
}

.property-card:hover .card-image img,
.property-card-horizontal:hover .card-image img {
  transform: scale(1.03);
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 0.4rem;
}

.badge-type,
.badge-status {
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: "Outfit", "Segoe UI", "Tahoma", "Noto Sans Thai", sans-serif;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: none;
  -webkit-text-stroke: 0;
  text-rendering: geometricPrecision;
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}

.badge-type {
  background: rgba(255, 255, 255, 0.94);
  color: #29231d;
}

.badge-type.badge-type--rent {
  background: #f3cf56;
  border-color: rgba(124, 93, 32, 0.45);
  color: #3b2a0b;
}

.badge-type.badge-type--sale {
  background: #d63a3a;
  border-color: rgba(255, 255, 255, 0.62);
  color: #ffffff;
}

.badge-status.sold {
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
}

.badge-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Outfit", "Segoe UI", "Tahoma", "Noto Sans Thai", sans-serif;
  line-height: 1;
  text-shadow: none;
  -webkit-text-stroke: 0;
  text-rendering: geometricPrecision;
  color: #fff;
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(4px);
}

:lang(th) .badge-type,
:lang(th) .badge-status,
:lang(th) .badge-count {
  font-family: "Tahoma", "Noto Sans Thai", "Mitr", sans-serif;
  letter-spacing: 0;
}

:lang(th) .badge-type,
:lang(th) .badge-status {
  text-transform: none;
}

.property-card .card-content,
.property-card-horizontal .card-content {
  padding: 0.98rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.56rem;
  min-width: 0;
  flex: 1;
  font-family: "Outfit", "Mitr", "Noto Sans Thai", sans-serif;
  color: #2a2118;
}

.card-loc {
  margin: 0;
  color: #5e5346;
  font-family: "Outfit", "Mitr", "Noto Sans Thai", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:lang(th) .card-loc {
  font-family: "Mitr", "Noto Sans Thai", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

.icon-pin {
  opacity: 1;
  color: #1f1f1f;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1;
}

.card-title {
  margin: 0.1rem 0 0;
  color: #23180f;
  font-family: "Outfit", "Mitr", "Noto Sans Thai", sans-serif;
  font-size: clamp(1.12rem, 1.03rem + 0.28vw, 1.22rem);
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: 0.002em;
  min-height: 2.7em;
}

:lang(th) .card-title {
  font-family: "Mitr", "Noto Sans Thai", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-specs {
  margin-top: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid #efe9df;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-start;
}

.spec-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  border: 1px solid #e7dbca;
  background: #f8f3ea;
  line-height: 1;
}

.spec-value {
  color: #4d4337;
  font-family: "Outfit", "Mitr", "Noto Sans Thai", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
}

.spec-label {
  color: #5b5043;
  font-family: "Outfit", "Mitr", "Noto Sans Thai", sans-serif;
  font-size: 12.75px;
  font-weight: 500;
  line-height: 1;
}

:lang(th) .spec-value,
:lang(th) .spec-label {
  font-family: "Mitr", "Noto Sans Thai", sans-serif;
}

.spec-divider {
  display: none;
}

.card-price {
  margin-top: auto;
  margin-left: auto;
  padding-top: 0.7rem;
  color: #8a602d;
  font-family: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.38rem, 1.32rem + 0.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.006em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:lang(th) .card-price {
  font-family: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

.period {
  color: #5f5448;
  font-family: "Outfit", "Mitr", "Noto Sans Thai", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  margin-left: 0.24rem;
  letter-spacing: 0;
}

:lang(th) .period {
  font-family: "Mitr", "Noto Sans Thai", sans-serif;
  font-weight: 500;
}

.empty-state {
  border: 1px solid var(--ls-border);
  border-radius: 18px;
  background: #fff;
}

.empty-icon {
  font-size: 2rem;
}

.empty-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.mobile-filter-bar {
  display: none;
}

.sidebar-header {
  display: none;
}

.custom-dropdown {
  position: relative;
}

.split-btn {
  border: 1px solid #cdb893;
  background: linear-gradient(135deg, #b08b57 0%, #c9a36f 100%);
  color: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
}

.btn-label {
  padding: 0.55rem 0.8rem;
  font-family: "Mitr", "Noto Sans Thai", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
}

.btn-separator {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.28);
}

.btn-icon {
  padding: 0.55rem 0.64rem;
  display: inline-flex;
}

.dropdown-menu-custom {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 185px;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee2d0;
  box-shadow: 0 14px 34px rgba(23, 18, 11, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.2s ease;
  z-index: 90;
}

.custom-dropdown.active .dropdown-menu-custom {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-custom li {
  padding: 0.5rem 0.66rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.93rem;
  font-family: "Mitr", "Noto Sans Thai", sans-serif;
  font-weight: 500;
  color: #463d31;
}

.dropdown-menu-custom li:hover {
  background: #f5f1ea;
}

.dropdown-menu-custom li.active {
  background: #eee6d8;
  font-weight: 600;
}

.pagination-wrap {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
}

.pagination-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.pagination-item {
  display: flex;
}

.pagination-link {
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid #dfd2bf;
  background: #ffffff;
  color: #3f3528;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.88rem;
  font-family: "Inter", "Outfit", "Mitr", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.3s ease;
}

.pagination-link:hover {
  transform: translateY(-2px);
  border-color: #987445;
  color: #987445;
  box-shadow: 0 8px 18px rgba(27, 21, 14, 0.14);
}

.pagination-link.active {
  border-color: #987445;
  background: #987445;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(152, 116, 69, 0.28);
  pointer-events: none;
}

.pagination-link.disabled {
  border-color: #e5e5e5;
  background: #f7f7f7;
  color: #aaaaaa;
  pointer-events: none;
}

.pagination-nav {
  min-width: 86px;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  color: #8d8378;
  font-weight: 600;
}

@media (max-width: 991px) {
  .listing-hero-v2 {
    border-radius: 28px;
    padding: 0.82rem;
  }

  .listing-hero-v2__top {
    margin-bottom: 0.82rem;
    flex-direction: column;
    align-items: stretch;
  }

  .listing-hero-v2__switch {
    width: 100%;
  }

  .listing-hero-v2__grid {
    display: block;
  }

  .listing-hero-v2__copy {
    padding: 0;
  }

  .listing-hero-v2__copy h1 {
    font-size: 1.72rem;
    line-height: 1.04;
    max-width: 10ch;
  }

  .listing-hero-v2__summary {
    margin-top: 0.72rem;
    font-size: 0.84rem;
    line-height: 1.56;
    max-width: 100%;
  }

  .listing-hero-v2__stats,
  .listing-hero-v2__dock {
    display: none !important;
  }

  .listing-hero-v2__mobile {
    display: block;
    margin-top: 0.82rem;
  }

  .listings-hero-shell {
    display: none !important;
  }

  .hero-stage {
    background:
      radial-gradient(120% 90% at 100% 0%, rgba(212, 170, 97, 0.18) 0%, transparent 50%),
      linear-gradient(180deg, #171411 0%, #241f1a 100%);
  }

  .hero-copy {
    gap: 0.72rem;
    padding: 0.95rem 0.95rem 1rem;
  }

  .hero-copy p {
    font-size: 0.9rem;
    line-height: 1.56;
    max-width: 32ch;
  }

  .hero-metrics {
    display: none;
  }

  .listings-header-section {
    padding: 1.6rem 0.85rem 1rem;
  }

  .listings-header-section h1 {
    font-size: 1.76rem;
    margin-bottom: 0.32rem;
    max-width: 11ch;
    color: #fff5e6 !important;
  }

  .hero-kicker {
    padding: 0.26rem 0.62rem;
    font-size: 0.68rem;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: #efd7b6;
  }

  .mode-switch {
    width: 100%;
    gap: 0.28rem;
    padding: 0.28rem;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    box-shadow: none;
  }

  .hero-topline {
    gap: 0.72rem;
  }

  .hero-desktop-meta {
    display: none !important;
  }

  .mode-chip {
    flex: 1 1 0;
    text-align: center;
    padding: 0.72rem 0.72rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255,245,230,0.82);
  }

  .metric-card {
    min-width: auto;
    padding: 0.48rem 0.72rem;
    min-height: 0;
    gap: 0.42rem;
  }

  .metric-icon {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
  }

  .metric-value {
    font-size: 0.88rem;
  }

  .metric-label {
    font-size: 0.62rem;
    letter-spacing: 0;
  }

  .btn-clear-hero {
    min-height: 40px;
    padding: 0.54rem 0.88rem;
    font-size: 0.78rem;
    color: rgba(255,245,230,0.8);
    background: rgba(255,255,255,0.08);
    box-shadow: none;
    border-color: rgba(255,255,255,0.12);
  }

  .hero-mobile-actions {
    display: grid;
    gap: 0.58rem;
    margin-top: 0.2rem;
    padding: 0.18rem 0 0;
  }

  .btn-hero-filter {
    grid-template-columns: 42px 1fr auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,244,236,0.98) 100%);
  }

  .btn-hero-filter::before {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .mobile-filter-bar {
    display: none !important;
  }

  .btn-mobile-filter {
    border: 1px solid #ccb086;
    background: linear-gradient(135deg, #ae8854 0%, #c89d67 100%);
    color: #fff;
    border-radius: 999px;
    padding: 0.52rem 0.95rem;
    font-weight: 600;
    font-size: 0.82rem;
    box-shadow: 0 8px 18px rgba(176, 139, 87, 0.2);
    flex: 1 1 auto;
  }

  .result-count {
    font-size: 0.81rem;
    color: #635a4d;
    font-weight: 600;
    white-space: nowrap;
  }

  .main-layout-container,
  .main-layout-container.layout-reversed {
    display: block;
    padding-top: 0.85rem;
  }

  .sidebar-filters {
    position: fixed;
    top: auto;
    left: 50%;
    right: auto;
    bottom: 0;
    width: min(620px, 100vw);
    max-height: min(82vh, 780px);
    border-radius: 30px 30px 0 0;
    border: 1px solid rgba(221, 205, 180, 0.92);
    border-bottom: 0;
    padding: 0.65rem 1rem 1.15rem;
    transform: translate(-50%, 100%);
    transition: opacity 0.28s ease, transform 0.28s ease;
    z-index: 2000;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 -10px 34px rgba(24, 18, 11, 0.12), 0 28px 64px rgba(24, 18, 11, 0.28);
    background:
      radial-gradient(110% 80% at 100% 0%, rgba(205, 179, 139, 0.12) 0%, transparent 44%),
      linear-gradient(180deg, #fffdf9 0%, #f9f4ec 100%);
    backdrop-filter: blur(18px);
  }

  .sidebar-filters.active {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
  }

  .filter-modal-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(32, 25, 18, 0.16) 0%, rgba(32, 25, 18, 0.42) 100%);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 1990;
  }

  .filter-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .filter-sheet-handle {
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(122, 104, 83, 0.28);
    margin: 0 auto 0.7rem;
  }

  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ece3d3;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #fffdf9 0%, rgba(255, 253, 249, 0.98) 100%);
    z-index: 2;
  }

  .sidebar-header h2 {
    margin: 0;
    font-size: 1rem;
  }

  .close-sidebar {
    border: 0;
    background: transparent;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 1.45rem;
    line-height: 1;
    color: #4c4438;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .close-sidebar:hover {
    background: rgba(219, 205, 182, 0.3);
  }

  .property-grid-responsive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .property-card .card-image,
  .property-card-horizontal .card-image {
    min-height: 0;
  }

  .property-card,
  .property-card-horizontal {
    border-radius: 14px;
  }

  .property-card .card-content,
  .property-card-horizontal .card-content {
    padding: 0.9rem 0.9rem 0.95rem;
  }

  .card-title {
    font-size: 1.06rem;
    min-height: 2.65em;
  }

  .card-price {
    font-size: 1.42rem;
  }

  .pagination-link {
    min-width: 2.3rem;
    height: 2.3rem;
  }

  .pagination-nav {
    min-width: 78px;
  }

  .results-info {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .listing-hero-v2 {
    border-radius: 24px;
    padding: 0.72rem;
  }

  .listing-hero-v2__top {
    margin-bottom: 0.7rem;
    gap: 0.6rem;
  }

  .listing-hero-v2__brand {
    min-height: 32px;
    padding: 0.34rem 0.62rem;
    font-size: 0.62rem;
  }

  .listing-hero-v2__switch-item {
    min-height: 40px;
    font-size: 0.78rem;
  }

  .listing-hero-v2__copy h1 {
    font-size: 1.42rem;
    max-width: 10ch;
  }

  .listing-hero-v2__summary {
    margin-top: 0.65rem;
    font-size: 0.74rem;
    line-height: 1.46;
  }

  .listing-hero-v2__mobile {
    margin-top: 0.72rem;
  }

  .listing-hero-v2__mobile-card {
    padding: 0.72rem 0.76rem;
    border-radius: 18px;
  }

  .listing-hero-v2__mobile-card-copy strong {
    font-size: 0.8rem;
  }

  .listing-hero-v2__mobile-card-copy span:last-child {
    font-size: 0.64rem;
  }

  .listing-hero-v2__mobile-card-count {
    min-width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .listing-hero-v2__mobile-pill {
    font-size: 0.6rem;
  }

  .listings-header-section {
    padding: 0.82rem 0.7rem 0.38rem;
  }

  .listings-hero-shell {
    gap: 0;
    border-radius: 24px;
    padding: 0;
  }

  .hero-copy {
    gap: 0.62rem;
    padding: 0.82rem 0.78rem 0.92rem;
  }

  .hero-topline {
    gap: 0.6rem;
  }

  .listings-header-section h1 {
    font-size: 1.34rem;
    line-height: 1.16;
  }

  .hero-kicker {
    font-size: 0.62rem;
    padding: 0.2rem 0.52rem;
  }

  .mode-switch {
    width: 100%;
  }

  .mode-chip {
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 0.64rem 0.44rem;
    font-size: 0.8rem;
  }

  .listings-header-section p {
    font-size: 0.78rem;
    line-height: 1.44;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
  }

  .metric-card {
    padding: 0.42rem 0.62rem;
  }

  .metric-icon {
    width: 22px;
    height: 22px;
    font-size: 0.62rem;
  }

  .metric-value {
    font-size: 0.84rem;
  }

  .metric-label {
    font-size: 0.58rem;
    letter-spacing: 0;
  }

  .btn-clear-hero {
    min-height: 36px;
    padding: 0.42rem 0.68rem;
    font-size: 0.72rem;
  }

  .btn-hero-filter {
    border-radius: 18px;
    padding: 0.82rem 0.78rem;
    grid-template-columns: 40px 1fr auto;
  }

  .btn-hero-filter-label {
    font-size: 0.84rem;
  }

  .btn-hero-filter-meta {
    font-size: 0.68rem;
  }

  .btn-hero-filter-subtitle {
    font-size: 0.66rem;
  }

  .hero-mobile-chips {
    gap: 0.38rem;
  }

  .hero-mobile-chip {
    min-height: 32px;
    padding: 0.34rem 0.56rem;
    font-size: 0.64rem;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,245,230,0.82);
  }

  .hero-mobile-chip strong {
    font-size: 0.7rem;
    color: #fff5e6;
  }

  .btn-hero-filter::before {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .sidebar-filters {
    width: min(100vw, 520px);
    max-height: min(84vh, 760px);
    border-radius: 24px 24px 0 0;
    padding: 0.6rem 0.9rem 1rem;
  }

  .sidebar-header {
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
  }

  .property-grid-responsive {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .property-card .card-image,
  .property-card-horizontal .card-image {
    min-height: 0;
  }

  .card-title {
    font-size: 1.04rem;
    min-height: auto;
  }

  .card-loc {
    font-size: 13px;
  }

  .pagination-list {
    gap: 0.35rem;
  }

  .pagination-link {
    min-width: 2.12rem;
    height: 2.12rem;
    padding: 0 0.66rem;
    font-size: 0.86rem;
  }

  .pagination-nav {
    min-width: 66px;
  }

  .spec-item {
    padding: 0.3rem 0.5rem;
  }
}

@media (max-width: 380px) {
  .listings-header-section h1 {
    font-size: 1.36rem;
  }

  .btn-hero-filter {
    padding: 0.78rem 0.76rem;
  }

  .hero-mobile-chip--clear {
    margin-left: 0;
  }

  .sidebar-filters {
    width: 100vw;
    border-radius: 22px 22px 0 0;
    max-height: 86vh;
  }
}

/* Hard lock desktop card layout to avoid legacy style collisions */
@media (min-width: 992px) {
  .property-grid-responsive {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
  }

  .property-card,
  .property-card-horizontal {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100%;
  }

  .property-card .card-image,
  .property-card-horizontal .card-image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .property-card .card-content,
  .property-card-horizontal .card-content {
    flex: 1;
  }
}
