/**
 * Market intelligence: price-trends.php & locality-intelligence.php
 * Aligns with Newabodes teal + neutral slate system (na-skin-v2).
 */

.na-mi-page {
  font-family: var(--na-font);
  color: #0f172a;
}

.na-mi-page *,
.na-mi-page *::before,
.na-mi-page *::after {
  box-sizing: border-box;
}

.na-mi-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.25rem);
}

.na-mi-hero {
  background: linear-gradient(145deg, #f8fafc 0%, #eef6f4 42%, #e8f2f0 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 2rem 0 2.25rem;
  position: relative;
  overflow: hidden;
}

.na-prt-hero--city {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(20, 184, 166, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(14, 116, 144, 0.08) 0%, transparent 50%),
    linear-gradient(145deg, #f8fafc 0%, #eef6f4 38%, #e6f3f0 100%);
  padding-bottom: 2.35rem;
}

.na-prt-hero--city::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f766e' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.na-prt-hero--city .na-mi-wrap {
  position: relative;
  z-index: 1;
}

.na-mi-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.na-mi-breadcrumb a {
  color: var(--na-teal-dark);
  font-weight: 600;
  text-decoration: none;
}

.na-mi-breadcrumb a:hover {
  text-decoration: underline;
}

.na-mi-breadcrumb [aria-current="page"] {
  color: #475569;
  font-weight: 500;
}

.na-mi-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--na-teal);
}

.na-mi-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.05rem);
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.na-mi-lead {
  margin: 0 0 1.15rem;
  max-width: 54ch;
  font-size: 1rem;
  line-height: 1.55;
  color: #475569;
}

.na-mi-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.na-mi-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.na-mi-trust i {
  color: var(--na-teal-dark);
  font-size: 0.9rem;
}

.na-mi-cross {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.na-mi-cross a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--na-teal-dark);
  text-decoration: none;
}

.na-mi-cross a:hover {
  color: #0f766e;
  text-decoration: underline;
}

.na-mi-body {
  padding: 1.5rem 0 3.5rem;
  background: #f4f7f6;
}

.na-mi-panel {
  margin-bottom: 1.15rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px rgba(15, 23, 42, 0.05);
}

.na-mi-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.na-mi-panel__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.na-mi-panel__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.na-mi-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.na-mi-seg {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.na-mi-seg:hover {
  border-color: var(--na-teal-dark);
  color: var(--na-teal-dark);
}

.na-mi-seg.is-active {
  background: rgba(4, 109, 99, 0.12);
  border-color: var(--na-teal-dark);
  color: #065f56;
}

.na-mi-filters {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .na-mi-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
  }

  .na-mi-filters-note {
    grid-column: 1 / -1;
    margin: -0.15rem 0 0;
  }
}

.na-mi-filters-note {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.45;
}

.na-mi-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.na-mi-field input {
  width: 100%;
  padding: 0.62rem 0.8rem;
  font-size: 0.9375rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
}

.na-mi-field input:focus {
  outline: 2px solid rgba(4, 109, 99, 0.35);
  outline-offset: 1px;
  border-color: var(--na-teal-dark);
}

.na-mi-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.na-mi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.na-mi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #0d9488 0%, var(--na-teal-dark) 100%);
  box-shadow: 0 2px 10px rgba(4, 109, 99, 0.28);
}

.na-mi-btn:hover {
  filter: brightness(1.06);
  color: #fff;
}

.na-mi-btn--ghost {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}

.na-mi-btn--ghost:hover {
  background: #f8fafc;
  color: #0f172a;
}

.na-mi-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.75rem;
}

.na-mi-stat {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.na-mi-stat__val {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.na-mi-stat__lbl {
  margin-top: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.na-mi-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.na-mi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.na-mi-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.78rem 1rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.na-mi-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.na-mi-table tbody tr:last-child td {
  border-bottom: none;
}

.na-mi-table tbody tr:hover {
  background: #fafbfc;
}

.na-mi-loc {
  font-weight: 600;
  color: #1e293b;
}

.na-mi-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.na-mi-luxe-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

a.na-mi-luxe-n--link:hover {
  color: #fff;
  filter: brightness(1.08);
}

.na-mi-muted {
  color: #94a3b8;
}

.na-mi-barcell {
  min-width: 132px;
}

.na-mi-bar {
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.na-mi-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, var(--na-teal-dark));
}

.na-mi-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--na-teal-dark);
  text-decoration: none;
  white-space: nowrap;
}

.na-mi-cta:hover {
  text-decoration: underline;
}

.na-mi-cards {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.na-mi-card {
  padding: 1.05rem 1.15rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.na-mi-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.na-mi-card__meta {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.65rem;
}

.na-mi-card__meta strong {
  color: #0f172a;
  font-weight: 700;
}

@media (max-width: 768px) {
  .na-mi-table-wrap {
    display: none;
  }

  .na-mi-cards {
    display: flex;
  }
}

.na-mi-empty {
  padding: 2.75rem 1.5rem;
  text-align: center;
  color: #64748b;
}

.na-mi-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 1.35rem;
}

.na-mi-empty__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #334155;
}

.na-mi-empty__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.na-mi-footnote {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #94a3b8;
}

/* ---------- Locality intelligence — 99acres-style “property rates” cards ---------- */
.na-prt-page .na-prt-hero {
  padding-bottom: 2rem;
}

.na-prt-title {
  max-width: 22ch;
}

.na-prt-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.15rem 0 0.35rem;
  max-width: 520px;
}

.na-prt-hero-stats--split {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
}

.na-prt-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.08);
}

.na-prt-hero-stat__val {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.na-prt-hero-stat__lbl {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

@media (max-width: 520px) {
  .na-prt-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    max-width: none;
  }

  .na-prt-hero-stats--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .na-prt-hero-stat {
    padding: 0.7rem 0.55rem;
  }

  .na-prt-hero-stat__val {
    font-size: 1rem;
  }

  .na-prt-hero-stat__lbl {
    font-size: 0.5625rem;
  }

  .na-prt-hero-stat__icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

.na-prt-sub {
  max-width: 58ch;
}

.na-prt-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
}

.na-prt-updated {
  font-size: 0.8125rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.na-prt-count-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(4, 109, 99, 0.1);
  color: #065f56;
}

.na-prt-change-city {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0d9488;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.na-prt-change-city:hover {
  color: #0f766e;
}

.na-prt-trust {
  margin-top: 0.5rem;
}

.na-prt-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.05),
    0 12px 32px rgba(15, 118, 110, 0.06);
}

.na-prt-panel--metro {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fffe 100%);
}

.na-prt-panel__intro {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.na-prt-panel__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}

.na-prt-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.na-prt-panel__lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.na-prt-quick-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.na-prt-city-chip {
  display: inline-flex;
  padding: 0.5rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.na-prt-city-chip:hover {
  border-color: var(--na-teal-dark);
  color: var(--na-teal-dark);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.1);
}

.na-prt-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0;
}

.na-prt-zone-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.na-prt-zone-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.5rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.na-prt-zone-tab:hover {
  border-color: var(--na-teal-dark);
  color: var(--na-teal-dark);
}

.na-prt-zone-tab.is-active {
  background: rgba(4, 109, 99, 0.12);
  border-color: var(--na-teal-dark);
  color: #065f56;
}

.na-prt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem 1rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.na-prt-toolbar--inline {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.na-prt-filters {
  margin-bottom: 1.15rem;
}

.na-prt-filters__toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.na-prt-filters__toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.na-prt-filters__toggle-label i {
  color: var(--na-teal-dark);
}

.na-prt-filters__badge {
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #065f56;
}

.na-prt-filters__chevron {
  color: #64748b;
  transition: transform 0.2s ease;
}

.na-prt-filters.is-open .na-prt-filters__chevron {
  transform: rotate(180deg);
}

.na-prt-filters__panel .na-prt-toolbar {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}

@media (max-width: 899px) {
  .na-prt-filters__toggle {
    display: flex;
  }

  .na-prt-filters__panel[hidden] {
    display: none;
  }

  .na-prt-filters.is-open .na-prt-filters__panel {
    display: block;
  }

  .na-prt-filters.is-open .na-prt-filters__toggle {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: #e2e8f0;
  }
}

@media (min-width: 900px) {
  .na-prt-filters__toggle {
    display: none !important;
  }

  .na-prt-filters__panel {
    display: block !important;
  }

  .na-prt-filters__panel[hidden] {
    display: block !important;
  }
}

.na-prt-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 140px;
}

.na-prt-field--grow {
  flex: 1 1 200px;
  min-width: 180px;
}

.na-prt-field__lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.na-prt-input,
.na-prt-select {
  padding: 0.55rem 0.7rem;
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
}

.na-prt-input:focus,
.na-prt-select:focus {
  outline: 2px solid rgba(4, 109, 99, 0.3);
  outline-offset: 1px;
  border-color: var(--na-teal-dark);
}

.na-prt-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.na-prt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.na-prt-btn--primary {
  background: linear-gradient(180deg, #0d9488 0%, var(--na-teal-dark) 100%);
  color: #fff;
  border-color: var(--na-teal-dark);
  box-shadow: 0 2px 8px rgba(4, 109, 99, 0.22);
}

.na-prt-btn--ghost {
  background: #fff;
  color: #334155;
  border-color: #cbd5e1;
}

.na-prt-btn--ghost:hover {
  background: #f8fafc;
}

.na-prt-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.na-prt-stat {
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.na-prt-stat__val {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.na-prt-stat__lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-top: 0.2rem;
  display: block;
}

.na-prt-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .na-prt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .na-prt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.na-prt-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.na-prt-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.na-prt-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.na-prt-card__loc {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.na-prt-card__loc a {
  color: #0f172a;
  text-decoration: none;
}

.na-prt-card__loc a:hover {
  color: var(--na-teal-dark);
}

.na-prt-card__zone {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}

.na-prt-badge {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
}

.na-prt-badge--premium {
  background: #ede9fe;
  color: #5b21b6;
}

.na-prt-badge--mid {
  background: #e0f2fe;
  color: #0369a1;
}

.na-prt-badge--affordable {
  background: #ecfdf5;
  color: #047857;
}

.na-prt-badge--neutral {
  background: #f1f5f9;
  color: #475569;
}

.na-prt-card__rate {
  padding: 0.75rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.na-prt-card__rate-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.na-prt-card__rate-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.na-prt-card__rate-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 0.15rem;
}

.na-prt-card__rate-na {
  font-size: 0.875rem;
  color: #64748b;
}

.na-prt-card__search {
  margin-top: 0.75rem;
}

.na-prt-card__search--muted .na-prt-card__search-lbl {
  color: #94a3b8;
}

.na-prt-card__search-lbl {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #475569;
  display: block;
  margin-bottom: 0.35rem;
}

.na-prt-card__bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.na-prt-card__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, var(--na-teal-dark));
}

.na-prt-card__bar--listings span {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.na-prt-card__search-meta {
  display: block;
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 0.3rem;
}

.na-prt-card__cta {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--na-teal-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.na-prt-card__cta:hover {
  text-decoration: underline;
}

.na-prt-footnote {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 70ch;
}

.na-prt-empty {
  margin-top: 0.5rem;
}

/* Top localities spotlight row */
.na-prt-spotlight {
  margin-bottom: 1.35rem;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08) 0%, rgba(255, 255, 255, 0.95) 42%, #ffffff 100%);
  border: 1px solid rgba(15, 118, 110, 0.14);
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.08);
}

.na-prt-spotlight__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.na-prt-spotlight__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--na-teal-dark);
}

.na-prt-spotlight__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.na-prt-spotlight__note {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  max-width: 28ch;
  text-align: right;
}

.na-prt-spotlight__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (max-width: 719px) {
  .na-prt-page .na-prt-spotlight__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-right: calc(-1 * clamp(1rem, 3vw, 1.25rem));
    padding-right: clamp(1rem, 3vw, 1.25rem);
  }

  .na-prt-page .na-prt-spotlight__grid > .na-prt-spotlight-card {
    flex: 0 0 min(82vw, 280px);
    scroll-snap-align: start;
  }
}

@media (min-width: 720px) {
  .na-prt-spotlight__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.na-prt-spotlight-card {
  position: relative;
  display: grid;
  grid-template-areas:
    "badge rank"
    "title title"
    "meta meta"
    "rate rate"
    "cta cta";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.5rem;
  align-content: start;
  min-width: 0;
  width: 100%;
  min-height: 100%;
  padding: 1rem 1.05rem 0.95rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.na-prt-spotlight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.12);
}

.na-prt-spotlight-card__rank {
  grid-area: rank;
  justify-self: end;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #94a3b8;
  white-space: nowrap;
}

.na-prt-spotlight-card .na-prt-badge {
  grid-area: badge;
  justify-self: start;
  margin: 0;
}

.na-prt-spotlight-card__loc {
  grid-area: title;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.na-prt-spotlight-card__loc a {
  color: #0f172a;
  text-decoration: none;
}

.na-prt-spotlight-card__loc a:hover {
  color: #0f766e;
}

.na-prt-spotlight-card__meta {
  grid-area: meta;
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

.na-prt-spotlight-card__rate {
  grid-area: rate;
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.na-prt-spotlight-card__rate span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.na-prt-spotlight-card__cta {
  grid-area: cta;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.08);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.na-prt-spotlight-card__cta:hover {
  background: rgba(15, 118, 110, 0.14);
  text-decoration: none;
}

@media (max-width: 719px) {
  .na-prt-spotlight__note {
    text-align: left;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .na-prt-spotlight-card {
    transition: none;
  }

  .na-prt-spotlight-card:hover {
    transform: none;
  }
}

/* --- price-trends.php charts (99acres-style visuals, live-listing data) --- */
.na-pt-charts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .na-pt-charts__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.na-pt-chart__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.na-pt-chart__sub {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
  max-width: 52ch;
}

.na-pt-chart__sub code {
  font-size: 0.78em;
  background: #f1f5f9;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.na-pt-chart--muted .na-pt-chart__sub {
  color: #94a3b8;
}

.na-pt-chart__frame {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.25rem 0.25rem;
}

.na-pt-chart__svg {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
}

.na-pt-chart__tick {
  fill: #64748b;
  font-size: 11px;
  font-family: var(--na-font);
}

.na-pt-barset {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1rem 1.1rem;
  background: #fff;
}

.na-pt-barrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) auto auto;
  gap: 0.5rem 0.65rem;
  align-items: center;
  font-size: 0.8125rem;
}

@media (max-width: 520px) {
  .na-pt-barrow {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .na-pt-bartrack {
    grid-column: 1 / -1;
  }
}

.na-pt-barlabel {
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.na-pt-bartrack {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.na-pt-bartrack span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, var(--na-teal-dark));
}

.na-pt-barval {
  font-weight: 800;
  color: var(--na-teal-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.na-pt-barn {
  font-size: 0.6875rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* ---------- Locality intelligence v2 — flagship layout + responsive ---------- */
.na-prt-page .na-prt-hero {
  padding: clamp(1.35rem, 4vw, 2rem) 0 clamp(1.5rem, 4vw, 2.35rem);
}

.na-prt-hero__grid {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}

@media (min-width: 960px) {
  .na-prt-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.75rem;
  }
}

.na-prt-hero__main {
  min-width: 0;
}

.na-prt-hero__aside {
  display: grid;
  gap: 0.65rem;
}

.na-prt-hero-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 118, 110, 0.16);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.na-prt-hero-action:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.14);
}

.na-prt-hero-action--ghost {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.na-prt-hero-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  font-size: 0.95rem;
}

.na-prt-hero-action--ghost .na-prt-hero-action__icon {
  background: #f1f5f9;
  color: var(--na-teal-dark);
}

.na-prt-hero-action__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.na-prt-hero-action__copy strong {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
}

.na-prt-hero-action__copy span {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}

.na-prt-hero-action__arrow {
  color: #94a3b8;
  font-size: 0.75rem;
}

.na-prt-hero-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.35rem;
  border-radius: 9px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--na-teal-dark);
  font-size: 0.85rem;
}

.na-prt-metro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 640px) {
  .na-prt-metro-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .na-prt-metro-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.na-prt-metro-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.na-prt-metro-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.1);
}

.na-prt-metro-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--na-teal-dark);
  font-size: 0.85rem;
}

.na-prt-metro-card__name {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
}

.na-prt-metro-card__cta {
  margin-top: auto;
  padding-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--na-teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.na-prt-controls {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 899px) {
  .na-prt-controls {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-left: calc(-1 * clamp(1rem, 3vw, 1.25rem));
    margin-right: calc(-1 * clamp(1rem, 3vw, 1.25rem));
    padding: 0.65rem clamp(1rem, 3vw, 1.25rem) 0.75rem;
    background: rgba(244, 247, 246, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  }
}

.na-prt-segments--scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.45rem;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.na-prt-segments--scroll::-webkit-scrollbar {
  display: none;
}

.na-prt-segments--scroll .na-mi-seg {
  flex: 0 0 auto;
  white-space: nowrap;
}

.na-prt-zone-scroll {
  mask-image: linear-gradient(90deg, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  padding-right: 1rem;
}

.na-prt-toolbar--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: end;
}

@media (min-width: 640px) {
  .na-prt-toolbar--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .na-prt-field--grow {
    grid-column: span 2;
  }

  .na-prt-toolbar__actions {
    grid-column: span 2;
    justify-content: flex-start;
  }
}

@media (min-width: 900px) {
  .na-prt-toolbar--grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .na-prt-field--grow {
    grid-column: span 2;
  }

  .na-prt-toolbar__actions {
    grid-column: span 2;
  }
}

@media (max-width: 899px) {
  .na-prt-field,
  .na-prt-field--grow {
    min-width: 0;
    width: 100%;
  }

  .na-prt-input,
  .na-prt-select {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  .na-prt-toolbar__actions {
    width: 100%;
  }

  .na-prt-toolbar__actions .na-prt-btn {
    flex: 1 1 auto;
    min-height: 44px;
  }
}

.na-prt-summary--cards .na-prt-stat {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.05rem;
}

.na-prt-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--na-teal-dark);
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.na-prt-stat__val--text {
  font-size: 0.95rem;
  line-height: 1.25;
}

.na-prt-grid-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.na-prt-grid-head__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.na-prt-grid-head__sub {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  max-width: 46ch;
}

.na-prt-grid-head__count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.na-prt-page .na-prt-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.na-prt-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #94a3b8, #cbd5e1);
}

.na-prt-card--premium .na-prt-card__accent {
  background: linear-gradient(180deg, #7c3aed, #a78bfa);
}

.na-prt-card--mid .na-prt-card__accent {
  background: linear-gradient(180deg, #0284c7, #38bdf8);
}

.na-prt-card--affordable .na-prt-card__accent {
  background: linear-gradient(180deg, #059669, #34d399);
}

.na-prt-card__body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.05rem 1.15rem 1.05rem 1.25rem;
}

.na-prt-card__title-wrap {
  min-width: 0;
}

.na-prt-card__zone i {
  color: var(--na-teal-dark);
  margin-right: 0.15rem;
  font-size: 0.7rem;
}

.na-prt-card__metrics {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 480px) and (max-width: 639px) {
  .na-prt-card__metrics {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 0.75rem;
  }

  .na-prt-card__rate {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.na-prt-page .na-prt-card__cta {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.06);
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.na-prt-page .na-prt-card__cta:hover {
  background: rgba(15, 118, 110, 0.12);
  text-decoration: none;
}

@media (max-width: 479px) {
  .na-mi-trust.na-prt-trust {
    display: grid;
    gap: 0.45rem;
  }

  .na-prt-title {
    max-width: none;
  }

  .na-mi-lead.na-prt-sub {
    font-size: 0.9375rem;
  }

  .na-prt-panel {
    padding: 1.1rem 1rem;
  }

  .na-prt-panel__intro {
    flex-direction: column;
  }

  .na-prt-spotlight {
    margin-left: calc(-1 * clamp(1rem, 3vw, 1.25rem));
    margin-right: calc(-1 * clamp(1rem, 3vw, 1.25rem));
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-inline: clamp(1rem, 3vw, 1.25rem);
  }

  .na-prt-spotlight__grid--scroll {
    margin-right: calc(-1 * clamp(1rem, 3vw, 1.25rem));
    padding-right: clamp(1rem, 3vw, 1.25rem);
  }

  .na-prt-empty {
    padding: 2rem 1rem;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .na-prt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .na-mi-wrap {
    max-width: 1220px;
  }

  .na-prt-grid {
    gap: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .na-prt-hero-action,
  .na-prt-metro-card,
  .na-prt-page .na-prt-card__cta {
    transition: none;
  }

  .na-prt-hero-action:hover,
  .na-prt-metro-card:hover {
    transform: none;
  }
}

/* ---------- Cascade guard (loads last via $naPageStylesheetsTail) ---------- */
body.na-page--locality-intelligence .na-prt-page .na-prt-hero__grid,
body.na-page--price-trends .na-mi-page .na-prt-hero__grid {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}

@media (min-width: 960px) {
  body.na-page--locality-intelligence .na-prt-page .na-prt-hero__grid,
  body.na-page--price-trends .na-mi-page .na-prt-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.75rem;
  }
}

body.na-page--locality-intelligence .na-prt-page .na-prt-hero__aside {
  display: grid;
  gap: 0.65rem;
}

body.na-page--locality-intelligence .na-prt-page a.na-prt-hero-action,
body.na-page--price-trends .na-mi-page a.na-prt-hero-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 118, 110, 0.16);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.1);
  text-decoration: none;
  color: inherit;
}

body.na-page--locality-intelligence .na-prt-page a.na-prt-hero-action--ghost {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

body.na-page--locality-intelligence .na-prt-page .na-prt-hero-action__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

body.na-page--locality-intelligence .na-prt-page .na-prt-hero-action__copy strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
}

body.na-page--locality-intelligence .na-prt-page .na-prt-hero-action__copy span {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}

body.na-page--locality-intelligence .na-prt-page .na-prt-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

body.na-page--locality-intelligence .na-prt-page .na-prt-spotlight__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  width: 100%;
}

@media (min-width: 720px) {
  body.na-page--locality-intelligence .na-prt-page .na-prt-spotlight__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  body.na-page--locality-intelligence .na-prt-page .na-prt-spotlight__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }

  body.na-page--locality-intelligence .na-prt-page .na-prt-spotlight__grid > .na-prt-spotlight-card {
    flex: 0 0 min(82vw, 280px);
    scroll-snap-align: start;
  }
}

body.na-page--locality-intelligence .na-prt-page .na-prt-spotlight-card {
  display: grid;
  min-width: 0;
  width: 100%;
}

body.na-page--locality-intelligence .na-prt-page .na-prt-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

body.na-page--locality-intelligence .na-prt-page .na-prt-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  body.na-page--locality-intelligence .na-prt-page .na-prt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body.na-page--locality-intelligence .na-prt-page .na-prt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.na-page--locality-intelligence .na-prt-page .na-prt-segments--scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.45rem;
}

body.na-page--locality-intelligence .na-prt-page .na-mi-seg {
  display: inline-flex;
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none;
}
