@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  font-family: "DM Sans", sans-serif;
  color: #202b28;
  background: #f5f6f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #202b28;
  --muted: #68716d;
  --line: #e7eae5;
  --green: #355f4c;
  --green-soft: #e7f0e9;
  --orange: #d99155;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  background: #f5f6f2;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.app-shell { min-height: 100vh; }

.topbar {
  height: 74px;
  padding: 0 max(36px, calc((100vw - 1360px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #eceeea;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 800 17px Manrope, sans-serif;
  letter-spacing: -0.8px;
  text-decoration: none;
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #e6eee8;
}

.brand-mark svg { width: 21px; stroke: #315945; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-amp { color: #bf8250; padding: 0 1px; }
.topbar-right { display: flex; align-items: center; gap: 13px; }

.location-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #e8ebe6;
  border-radius: 10px;
  color: #54615b;
  font-size: 12px;
  font-weight: 600;
}

.location-dot, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #65a17b; }
.location-divider { height: 15px; border-left: 1px solid #e3e7e2; }

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #e8ebe6;
  border-radius: 10px;
  background: #fff;
}

.icon-button:disabled { opacity: .55; cursor: not-allowed; }

.icon-button svg { width: 17px; fill: none; stroke: #65726b; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #dce8df; color: #3c634f; font-size: 13px; font-weight: 700; }

.page { max-width: 1360px; margin: 0 auto; padding: 35px 36px 26px; }

.app-tabs { display: flex; gap: 20px; margin: 0 0 21px; border-bottom: 1px solid #e4e9e3; }
.app-tab { position: relative; padding: 0 2px 11px; border: 0; background: transparent; color: #67726b; font-size: 11px; font-weight: 600; }
.app-tab.active { color: #355f4c; }
.app-tab.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #527d61; content: ""; }
.app-tab:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 0 0 23px;
}

.eyebrow, .panel-kicker {
  margin: 0 0 8px;
  color: #66726b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.35px;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font: 800 clamp(26px, 3vw, 36px)/1.15 Manrope, sans-serif; letter-spacing: -1.4px; }
.mobile-break { display: none; }
.heading-copy { margin: 0; color: #68716d; font-size: 13px; }
.updated { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; color: #67726c; font-size: 11px; }
.updated .live-dot { width: 6px; height: 6px; }

.market-banner {
  position: relative;
  min-height: 129px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 23px 30px;
  border-radius: 14px;
  color: #f9fbf8;
  background: #294b3d;
}

.banner-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-right: 17px;
  border: 1px solid #ffffff25;
  border-radius: 12px;
  background: #ffffff0b;
}

.banner-icon svg { width: 21px; fill: none; stroke: #c3d6c6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.banner-label { display: block; margin-bottom: 7px; color: #bad0bf; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.banner-value-row { display: flex; align-items: baseline; gap: 10px; }
.banner-value-row strong { font: 700 31px Manrope, sans-serif; letter-spacing: -1px; }
.unit { color: #d1ded4; font-size: 11px; }

.trend-chip {
  margin-left: 2px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #d5efdc;
  background: #75a48135;
  font-size: 10px;
  font-weight: 700;
}

.trend-chip.negative { color: #ffe4cf; background: #d9915535; }
.banner-separator { align-self: stretch; margin: 13px 27px 13px 38px; border-left: 1px solid #ffffff2a; }
.banner-note { z-index: 1; display: flex; align-items: center; gap: 10px; color: #c6d6c9; font-size: 10px; line-height: 1.5; }
.banner-note-number { color: #fff; font: 700 22px Manrope, sans-serif; }
.banner-decoration { position: absolute; top: 16px; right: 0; width: min(32%, 265px); height: calc(100% - 16px); opacity: .46; }
.banner-decoration svg { width: 100%; height: 100%; overflow: visible; }
.banner-decoration path:first-child { fill: none; stroke: #a4c5a9; stroke-width: 2; }
.banner-decoration .area { fill: url("#area-gradient"); fill: #ffffff0a; }

.property-profile { margin: 15px 0; padding: 17px 20px 12px; }
.property-profile-header, .property-profile-title { display: flex; align-items: center; }
.property-profile-header { justify-content: space-between; gap: 12px; }
.property-profile-title { gap: 10px; }
.property-home-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #edf3ee; }
.property-home-icon svg { width: 17px; fill: none; stroke: #537561; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.property-profile h2 { margin: 0; font: 700 14px Manrope, sans-serif; }
.property-profile .panel-kicker { margin-bottom: 3px; }
.edit-property-button { padding: 7px 10px; border: 1px solid #e4e9e3; border-radius: 7px; background: #fff; color: #52705c; font-size: 9px; font-weight: 700; }
.property-profile-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; }
.property-specs { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.property-spec { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-left: 11px; border-left: 1px solid #e9ede8; }
.property-spec:first-child { padding-left: 0; border-left: 0; }
.property-spec strong { color: #334139; font: 700 16px Manrope, sans-serif; }
.property-spec span { color: #68716b; font-size: 9px; }
.energy-spec strong { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 5px; background: #f0dfb8; color: #745a29; font-size: 12px; }
.property-estimate { min-width: 205px; display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 1px solid #e9ede8; }
.property-estimate > span { color: #67716a; font-size: 9px; }
.property-estimate > strong { color: #355f4c; font: 700 21px Manrope, sans-serif; letter-spacing: -.5px; }
.property-estimate small { color: #67716a; font-size: 8px; }
.purchase-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e9ede8; }
.purchase-comparison > div { display: flex; flex-direction: column; gap: 3px; }
.purchase-label { color: #67716a; font-size: 9px; }
.purchase-comparison strong { color: #334139; font: 700 15px Manrope, sans-serif; }
.purchase-comparison small { color: #67716a; font-size: 8px; }
.purchase-difference strong.positive { color: #426d50; }
.purchase-difference strong.negative { color: #a45b48; }
.property-estimate-note { margin: 11px 0 0; color: #67726b; font-size: 8px; line-height: 1.5; }

.comparables-panel { margin-bottom: 15px; }
.compare-button { flex: none; }
.comparable-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 17px 0 13px; }
.comparable-filters > label { display: flex; flex-direction: column; gap: 7px; color: #67716b; font-size: 9px; }
.filter-range { display: flex; align-items: center; gap: 6px; color: #68716c; }
.filter-range input { width: 68px; min-width: 0; height: 32px; padding: 0 7px; border: 1px solid #e3e8e3; border-radius: 6px; color: #344139; font-size: 10px; }
.filter-range input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.comparable-filters select { height: 32px; padding: 0 8px; border: 1px solid #e3e8e3; border-radius: 6px; background: #fff; color: #344139; font-size: 10px; }
.comparable-filters select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.dpe-context { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #f0e5cd; border-radius: 8px; background: #fbf8f1; }
.dpe-context-grade { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 5px; background: #f0dfb8; color: #745a29; font: 700 12px Manrope, sans-serif; }
.dpe-context p { margin: 0; color: #786e5b; font-size: 9px; line-height: 1.5; }
.dpe-context strong { color: #6d624a; }
.dpe-context a { color: #6b7152; }
.comparables-status { margin: 13px 0 10px; color: #67716b; font-size: 10px; }
.dvf-coverage, .snapshot-history { margin: 10px 0; padding: 12px; border: 1px solid #e8eee8; border-radius: 9px; background: #f9fbf8; }
.dvf-coverage h3, .snapshot-history h3 { margin: 0 0 5px; color: #45554a; font: 700 11px Manrope, sans-serif; }
.dvf-coverage p, .snapshot-history-heading p, .snapshot-history-note { margin: 0; color: #67726a; font-size: 9px; line-height: 1.5; }
.snapshot-history-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.snapshot-history-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.snapshot-history-charts > div { min-width: 0; color: #66726b; font-size: 9px; }
.snapshot-sparkline { height: 92px; margin-top: 6px; }
.snapshot-sparkline svg { display: block; width: 100%; height: 100%; overflow: visible; }
.snapshot-sparkline .sparkline { fill: none; stroke: #4f8063; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.snapshot-sparkline .sparkline-point { fill: #fff; stroke: #4f8063; stroke-width: 2; }
.snapshot-sparkline .sparkline-label { fill: #87938a; font: 8px "DM Sans", sans-serif; }
.snapshot-history-note { margin-top: 6px; }
.snapshot-history[hidden], .dvf-coverage[hidden] { display: none; }
.expand-sample-button { min-height: 31px; margin: 0 0 10px; padding: 0 11px; border: 1px solid #dfe8df; border-radius: 7px; background: #f7faf6; color: #476d55; font-size: 9px; font-weight: 700; }
.expand-sample-button:hover:not(:disabled) { background: #edf4ed; }
.expand-sample-button:disabled { opacity: .6; cursor: wait; }
.expand-sample-button[hidden] { display: none; }
.comparables-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.comparable-result-card { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 11px 12px; border: 1px solid #edf0ec; border-radius: 8px; background: #fbfcfa; }
.comparable-result-card > span { color: #67716a; font-size: 8px; }
.comparable-result-card > strong { color: #405348; font: 700 14px Manrope, sans-serif; }
.comparable-result-card > small { color: #67706b; font-size: 8px; }
.primary-result { border-color: #e1ebe3; background: #f3f7f3; }
.primary-result > strong { color: #355f4c; font-size: 17px; }
.comparables-disclaimer { margin: 12px 0 0; color: #67706b; font-size: 8px; line-height: 1.5; }
.comparable-estimate { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 11px; padding: 13px 15px; border: 1px solid #dfe9e1; border-radius: 9px; background: #f5f8f4; }
.comparable-estimate[hidden] { display: none; }
.comparable-estimate > div { min-width: 190px; display: flex; flex-direction: column; gap: 4px; }
.estimate-kicker { color: #657368; font-size: 8px; font-weight: 700; letter-spacing: .55px; }
.comparable-estimate > div > strong { color: #355f4c; font: 700 20px Manrope, sans-serif; }
.comparable-estimate small { color: #67726b; font-size: 9px; }
.comparable-estimate p { max-width: 610px; margin: 0; color: #67716a; font-size: 9px; line-height: 1.5; }
.comparable-estimate p strong { color: #405b48; }
.annual-comparables { margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef0ed; }
.annual-comparables[hidden] { display: none; }
.annual-comparables-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.annual-comparables h3 { margin: 0 0 3px; color: #45554a; font: 700 11px Manrope, sans-serif; }
.annual-comparables-heading p { margin: 0; color: #68716c; font-size: 8px; }
.annual-comparables-table-wrap { overflow-x: auto; }
.annual-comparables-table { width: 100%; border-collapse: collapse; font-size: 9px; text-align: left; }
.annual-comparables-table th { padding: 7px 9px; color: #67726a; font-size: 8px; font-weight: 700; }
.annual-comparables-table td { padding: 7px 9px; border-top: 1px solid #f0f2ef; color: #5e6a62; }

.transactions-view { margin-bottom: 16px; }
.transactions-status { margin: 16px 0 10px; color: #647269; font-size: 10px; }
.transactions-toolbar { display: flex; align-items: end; gap: 10px; margin: 12px 0; }
.transactions-toolbar label { display: flex; flex-direction: column; gap: 4px; color: #67726b; font-size: 8px; font-weight: 600; }
.transactions-toolbar select { min-height: 32px; padding: 0 9px; border: 1px solid #e3e8e2; border-radius: 6px; background: #fff; color: #536158; font-size: 9px; }
.transactions-toolbar .secondary-button { min-height: 32px; padding: 0 11px; border: 1px solid #dfe8df; border-radius: 7px; background: #f7faf6; color: #476d55; font-size: 9px; font-weight: 700; }
.transactions-toolbar .secondary-button:first-of-type { margin-left: auto; }
.transactions-toolbar .secondary-button:disabled { opacity: .55; cursor: not-allowed; }
.transactions-table-wrap { overflow-x: auto; border: 1px solid #e9ede8; border-radius: 9px; }
.transactions-table { width: 100%; border-collapse: collapse; font-size: 10px; text-align: left; white-space: nowrap; }
.transactions-table th { padding: 11px 12px; background: #f7f9f6; color: #67726b; font-size: 8px; font-weight: 700; }
.transactions-table td { padding: 11px 12px; border-top: 1px solid #edf0ec; color: #59665e; }
.transactions-table tbody tr:hover { background: #fafbf9; }
.transactions-table td.transaction-price { color: #355f4c; font-weight: 700; }
.transactions-table tbody td[colspan] { padding: 22px 12px; color: #68716c; text-align: center; }
.transaction-dpe { display: inline-grid; width: 22px; height: 22px; place-items: center; border-radius: 5px; background: #f0dfb8; color: #745a29; font-weight: 700; }
.parcel-link { display: inline-flex; flex-direction: column; gap: 2px; color: #3d7054; font-weight: 700; text-decoration: underline; text-decoration-color: #b8cdbb; text-underline-offset: 2px; }
.parcel-link small { color: #68716a; font-size: 8px; font-weight: 500; }
.transaction-map-panel { margin: 15px 0; padding: 12px; border: 1px solid #e9ede8; border-radius: 9px; background: #fbfcfa; }
.transaction-map-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.transaction-map-heading h3 { margin: 0; color: #45554a; font: 700 11px Manrope, sans-serif; }
.transaction-map-heading span, .transaction-map-note { color: #68716a; font-size: 8px; }
.transaction-map-toolbar { display: flex; align-items: end; gap: 12px; margin: 0 0 8px; }
.transaction-map-toolbar label { display: flex; flex-direction: column; gap: 4px; color: #67726b; font-size: 8px; font-weight: 600; }
.transaction-map-toolbar select { min-height: 30px; padding: 0 8px; border: 1px solid #e3e8e2; border-radius: 6px; background: #fff; color: #536158; font-size: 9px; }
.transaction-map-toolbar > span { padding-bottom: 7px; color: #68716b; font-size: 8px; }
#transaction-map { width: 100%; height: 340px; border-radius: 7px; background: #e7eae4; }
.transaction-map-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; color: #66726b; font-size: 8px; }
.transaction-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.transaction-map-legend i { width: 9px; height: 9px; display: inline-block; border: 1px solid #fff; border-radius: 50%; background: #39765a; box-shadow: 0 0 0 1px #74917c; }
.transaction-map-legend .legend-sale { background: #d99155; box-shadow: 0 0 0 1px #c1824d; }
.transaction-map-note { margin: 8px 0 0; line-height: 1.5; }
.transaction-popup { min-width: 190px; max-width: 300px; }
.transaction-popup > strong { color: #355f4c; }
.transaction-popup p { margin: 7px 0 0; padding-top: 6px; border-top: 1px solid #edf0ec; color: #59665e; font-size: 11px; }
.transaction-popup a { color: #3d7054; font-weight: 700; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.metric-card, .panel { border: 1px solid #e7eae5; border-radius: 13px; background: #fff; }
.metric-card { min-height: 148px; padding: 16px 17px 14px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #edf3ee; }
.metric-icon svg { width: 17px; fill: none; stroke: #537561; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.apartment-icon { background: #f5efe7; }
.apartment-icon svg { stroke: #af8053; }
.transaction-icon { background: #edf0f7; }
.transaction-icon svg { stroke: #687493; }
.listing-icon { background: #f3edf4; }
.listing-icon svg { stroke: #896f8d; }
.metric-period { color: #69716d; font-size: 8px; font-weight: 700; letter-spacing: .75px; }
.metric-label { margin: 11px 0 2px; color: #69756e; font-size: 11px; }
.metric-bottom { display: flex; align-items: baseline; gap: 5px; }
.metric-bottom strong { font: 700 23px Manrope, sans-serif; letter-spacing: -.7px; }
.metric-bottom span { color: #69716c; font-size: 10px; }
.metric-foot { margin: 6px 0 0; color: #68706c; font-size: 9px; }
.metric-foot span { color: #5b7765; font-weight: 700; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 15px; margin-bottom: 15px; }
.panel { min-width: 0; padding: 19px 20px; }
.panel-header { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.panel-header h2, .modal-card h2 { margin: 0 0 4px; font: 700 17px Manrope, sans-serif; letter-spacing: -.45px; }
.panel-kicker { margin-bottom: 6px; font-size: 8px; }
.panel-description { margin: 0; color: #68716c; font-size: 10px; }

.select-wrap { position: relative; }
.select-wrap select, .modal-card select {
  appearance: none;
  border: 1px solid #e6e9e5;
  border-radius: 7px;
  background: #fff;
  color: #66726a;
  font-size: 10px;
}
.select-wrap select { min-width: 126px; padding: 8px 26px 8px 10px; }
.select-wrap svg { position: absolute; top: 50%; right: 8px; width: 13px; transform: translateY(-50%); fill: none; stroke: #7d8981; stroke-width: 1.5; pointer-events: none; }
.chart-summary { display: flex; align-items: center; gap: 7px; margin: 18px 0 4px; color: #65726b; font-size: 9px; }
.chart-dot { width: 7px; height: 7px; border-radius: 50%; background: #5b8c6b; }
.chart-wrap { height: 205px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid-line { stroke: #eff1ee; stroke-width: 1; }
.chart-y-label { fill: #9ba39e; font: 9px "DM Sans", sans-serif; }
.chart-area { fill: #e8f0ea; }
.chart-line { fill: none; stroke: #528068; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: #fff; stroke: #528068; stroke-width: 3; }
.chart-axis { display: flex; justify-content: space-between; margin: -5px 0 0 8px; padding-right: 4px; color: #67706b; font-size: 9px; }

.radius-badge { padding: 6px 9px; border-radius: 7px; background: #eaf1eb; color: #52705c; font-size: 10px; font-weight: 700; }
.map-panel { padding-bottom: 13px; }
.map-frame { position: relative; height: 250px; margin-top: 14px; overflow: hidden; border-radius: 9px; background: #e7eae4; }
#map { width: 100%; height: 100%; }
.leaflet-container { font-family: "DM Sans", sans-serif; }
.leaflet-control-attribution { font-size: 8px !important; }
.map-legend { position: absolute; z-index: 500; right: 9px; bottom: 9px; display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid #e8ebe6; border-radius: 6px; background: #ffffffed; color: #627068; font-size: 8px; box-shadow: 0 2px 9px #273a2c15; }
.legend-home, .legend-sales { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #315c45; }
.legend-sales { margin-left: 3px; background: #d99155; }
.map-message { position: absolute; z-index: 600; inset: 0; display: grid; place-items: center; padding: 25px; background: #f6f7f3e8; color: #59665e; text-align: center; font-size: 12px; }
.map-message[hidden] { display: none; }
.map-footer { display: flex; justify-content: space-between; gap: 8px; padding: 10px 1px 0; color: #67726b; font-size: 9px; }
.map-footer strong { color: #385f49; }
.map-method { color: #68716c; }

.lower-grid { align-items: stretch; }
.subtle-label { padding-top: 4px; color: #67706b; font-size: 9px; }
.town-list { margin-top: 13px; }
.town-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid #f0f2ef; }
.town-rank { width: 22px; color: #667269; font: 600 10px Manrope, sans-serif; }
.town-name { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.town-name strong { overflow: hidden; color: #36423b; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.town-name span { color: #68706b; font-size: 9px; }
.town-price { color: #476d55; font-size: 10px; white-space: nowrap; }
.loading-row, .empty-row { padding: 10px 0; color: #68706b; font-size: 10px; }

.add-button { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #e1e9e2; border-radius: 9px; background: #eff4ef; color: #42634d; font-size: 20px; line-height: 1; }
.source-notice { display: flex; gap: 8px; margin: 12px 0; padding: 10px 11px; border-radius: 8px; background: #f8f5ef; }
.notice-icon { width: 15px; height: 15px; flex: none; display: grid; place-items: center; border: 1px solid #c8a479; border-radius: 50%; color: #a07a4d; font: 600 9px Georgia, serif; }
.source-notice p { margin: 0; color: #786e5b; font-size: 9px; line-height: 1.5; }
.empty-listings { display: flex; flex-direction: column; align-items: center; padding: 10px 0 6px; color: #67716a; text-align: center; }
.empty-listing-icon { width: 29px; height: 29px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 9px; background: #f1f3ef; color: #738378; font-size: 15px; }
.empty-listings p { margin: 0 0 3px; color: #59655e; font-size: 10px; font-weight: 600; }
.empty-listings span:last-child { font-size: 9px; }
.listing-row { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; border-top: 1px solid #eff1ee; }
.listing-indicator { width: 6px; height: 28px; border-radius: 5px; background: #72977a; }
.listing-indicator.seller { background: #d79a5f; }
.listing-indicator.closed { background: #a4aaa5; }
.listing-details { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.listing-details a { overflow: hidden; color: #40594a; font-size: 10px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.listing-details span { color: #68706b; font-size: 8px; }
.listing-price { min-width: 110px; display: flex; align-items: flex-end; flex-direction: column; gap: 4px; }
.listing-price strong { color: #46534b; font-size: 10px; white-space: nowrap; }
.listing-price select { max-width: 128px; min-height: 25px; padding: 0 5px; border: 1px solid #e5e9e4; border-radius: 5px; background: #fff; color: #647168; font-size: 8px; }
.edit-listing { padding: 2px 0; border: 0; background: transparent; color: #4a7458; font-size: 8px; font-weight: 700; }
.remove-listing { border: 0; background: transparent; color: #67716b; font-size: 16px; line-height: 1; }
.listing-details .listing-price-history { color: #657368; font-size: 8px; }
.listing-alerts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.listing-alert { padding: 3px 6px; border-radius: 5px; background: #eaf3eb; color: #41694c !important; font-size: 8px !important; font-weight: 700; }
.listing-alert.price-drop { background: #fff0e7; color: #9c5e3a !important; }
.listing-match-summary { margin: 0 0 10px; padding: 9px 10px; border-radius: 7px; background: #f1f6f1; color: #4c6854; font-size: 9px; line-height: 1.5; }
.data-backup-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #eff1ee; }
.backup-status { min-height: 12px; margin: 5px 0 0; color: #657268; font-size: 8px; line-height: 1.4; }
.text-button { padding: 3px 0; border: 0; background: transparent; color: #4a7458; font-size: 9px; font-weight: 700; }
.modal-secondary { margin-top: 12px; }

.footer { display: flex; justify-content: space-between; gap: 10px; padding: 5px 1px 0; color: #67706b; font-size: 9px; }
.footer a { color: #5c7562; text-decoration: underline; }

.modal { width: min(470px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 15px; background: transparent; box-shadow: 0 20px 70px #14271a38; }
.modal::backdrop { background: #1d2b2580; backdrop-filter: blur(2px); }
.modal-card { position: relative; padding: 25px; border: 1px solid #e7eae5; border-radius: 15px; background: #fff; }
.modal-close { position: absolute; top: 15px; right: 17px; border: 0; background: transparent; color: #67716a; font-size: 23px; }
.modal-copy { margin: 8px 0 17px; color: #67716b; font-size: 11px; line-height: 1.6; }
.field-label { display: block; margin: 12px 0 6px; color: #56635b; font-size: 10px; font-weight: 600; }
.modal-card input, .modal-card select { width: 100%; min-height: 39px; padding: 0 10px; border: 1px solid #e2e7e2; border-radius: 7px; background: #fff; color: #344139; font-size: 11px; }
.modal-card input::placeholder { color: #68716a; }
.address-row { display: flex; gap: 8px; }
.address-row input { min-width: 0; flex: 1; }
.primary-button { min-height: 39px; padding: 0 15px; border: 0; border-radius: 7px; background: #345b46; color: #fff; font-size: 10px; font-weight: 700; }
.primary-button:disabled { opacity: .6; cursor: wait; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-message { min-height: 15px; margin: 8px 0 0; color: #9c5844; font-size: 10px; }
.submit-button { width: 100%; margin-top: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .page { padding-right: 24px; padding-left: 24px; }
  .topbar { padding-right: 24px; padding-left: 24px; }
  .content-grid { grid-template-columns: 1fr; }
  .map-frame { height: 300px; }
  .property-profile-content { align-items: stretch; flex-direction: column; gap: 14px; }
  .property-estimate { min-width: 0; padding: 11px 0 0; border-top: 1px solid #e9ede8; border-left: 0; }
  .comparables-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .topbar { height: 63px; padding: 0 15px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 31px; height: 31px; }
  .topbar-right { gap: 7px; }
  .location-pill { gap: 6px; min-height: 32px; padding: 0 8px; font-size: 9px; }
  .location-divider { height: 12px; }
  .icon-button { width: 32px; height: 32px; }
  .avatar { width: 30px; height: 30px; }
  .page { padding: 24px 14px 20px; }
  .app-tabs { gap: 17px; margin-bottom: 17px; }
  .app-tab { font-size: 10px; }
  .page-heading { align-items: start; margin-bottom: 18px; }
  .eyebrow { font-size: 8px; }
  h1 { font-size: 27px; letter-spacing: -1.1px; }
  .heading-copy { max-width: 300px; font-size: 11px; line-height: 1.5; }
  .updated { max-width: 118px; justify-content: end; padding-top: 3px; text-align: right; font-size: 9px; line-height: 1.4; }
  .market-banner { min-height: 115px; padding: 18px 15px; border-radius: 11px; }
  .banner-icon { width: 34px; height: 34px; flex: none; margin-right: 10px; }
  .banner-value-row { flex-wrap: wrap; gap: 5px 7px; }
  .banner-value-row strong { font-size: 25px; }
  .unit { font-size: 9px; }
  .banner-label { margin-bottom: 5px; font-size: 7px; }
  .trend-chip { font-size: 8px; }
  .banner-separator { margin: 10px 10px 10px 15px; }
  .banner-note { flex-direction: column; align-items: start; gap: 2px; font-size: 8px; }
  .banner-note-number { font-size: 17px; }
  .banner-decoration { width: 28%; opacity: .25; }
  .property-profile { padding: 14px; }
  .property-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .property-spec { padding-left: 8px; }
  .property-spec:nth-child(4) { padding-left: 0; border-left: 0; }
  .property-estimate > strong { font-size: 19px; }
  .purchase-comparison { gap: 10px; }
  .comparables-panel { padding: 14px; }
  .comparables-panel > .panel-header { flex-direction: column; }
  .compare-button { width: 100%; }
  .comparable-filters { grid-template-columns: 1fr; gap: 10px; }
  .filter-range input { width: 75px; }
  .comparables-results { grid-template-columns: 1fr 1fr; }
  .comparable-estimate { align-items: flex-start; flex-direction: column; gap: 8px; }
  .transactions-view > .panel-header { flex-direction: column; }
  .transactions-view .compare-button { width: 100%; }
  .transactions-toolbar { align-items: stretch; flex-wrap: wrap; }
  .transactions-toolbar label { min-width: calc(50% - 5px); flex: 1; }
  .transactions-toolbar select { width: 100%; }
  .transactions-toolbar .secondary-button { margin-left: 0; }
  .transactions-toolbar .secondary-button:first-of-type { margin-left: 0; }
  .transactions-table { min-width: 690px; }
  .transaction-map-panel { padding: 9px; }
  .transaction-map-heading { align-items: start; flex-direction: column; gap: 4px; }
  .transaction-map-toolbar { align-items: stretch; flex-direction: column; gap: 6px; }
  .transaction-map-toolbar select { width: 100%; }
  .transaction-map-toolbar > span { padding: 0; }
  .snapshot-history-charts { grid-template-columns: 1fr; gap: 8px; }
  #transaction-map { height: 280px; }
  .comparable-result-card { padding: 9px; }
  .comparable-result-card > strong { font-size: 12px; }
  .primary-result > strong { font-size: 15px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 10px 0; }
  .metric-card { min-height: 131px; padding: 12px; border-radius: 10px; }
  .metric-icon { width: 27px; height: 27px; }
  .metric-period { font-size: 7px; letter-spacing: .5px; }
  .metric-label { margin-top: 9px; font-size: 10px; }
  .metric-bottom strong { font-size: 21px; }
  .panel { padding: 16px 14px; border-radius: 11px; }
  .panel-header h2 { font-size: 15px; }
  .panel-description { font-size: 9px; }
  .chart-wrap { height: 185px; }
  .map-frame { height: 255px; }
  .map-footer { flex-direction: column; font-size: 8px; }
  .footer { flex-wrap: wrap; font-size: 8px; }
  .listing-price { min-width: 92px; }
  .listing-price select { max-width: 112px; }
}

@media (max-width: 410px) {
  .location-pill { max-width: 158px; }
  .location-pill span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .updated { display: none; }
  .banner-note { display: none; }
  .banner-separator { display: none; }
  .banner-decoration { width: 38%; }
}
