:root {
  color-scheme: light;
  --brand-navy: #0f1b2e;
  --brand-red: #e53935;
  --brand-slate: #607d8b;
  --brand-light: #f2f4f7;
  --ink: #111827;
  --muted: #6b7280;
  --subtle: #e5e7eb;
  --paper: #f9fafb;
  --panel: #ffffff;
  --wash: #f3f4f6;
  --green: #818cf8;
  --green-dark: #4f46e5;
  --rust: #7c3aed;
  --blue: #2563eb;
  --yellow: #ca8a04;
  --pro-locked: #4f46e5;
  --pro-locked-soft: #eef2ff;
  --pro-locked-border: #c7d2fe;
  --pro-gold: #b7791f;
  --pro-gold-strong: #8a5a12;
  --pro-gold-soft: #fff7d6;
  --pro-gold-border: #f2c94c;
  --danger: #b91c1c;
  --danger-border: #fecaca;
  --danger-wash: #fff1f2;
  --topbar-bg: rgba(249, 250, 251, 0.94);
  --marker-fill: #4f46e5;
  --marker-selected: #7c3aed;
  --marker-text: #ffffff;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
  --radius: 8px;
  --z-header: 3000;
  --z-modal: 5000;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f9fafb;
  --muted: #a1a1aa;
  --subtle: #3f3f46;
  --paper: #0f1115;
  --panel: #18181b;
  --wash: #27272a;
  --green: #a5b4fc;
  --green-dark: #818cf8;
  --rust: #c4b5fd;
  --blue: #93c5fd;
  --yellow: #fde68a;
  --pro-locked: #a5b4fc;
  --pro-locked-soft: #1e1b4b;
  --pro-locked-border: #4338ca;
  --pro-gold: #f6d36b;
  --pro-gold-strong: #ffe7a3;
  --pro-gold-soft: #3a2a12;
  --pro-gold-border: #b7791f;
  --danger: #fca5a5;
  --danger-border: #7f1d1d;
  --danger-wash: #2a171a;
  --topbar-bg: rgba(15, 17, 21, 0.94);
  --marker-fill: #818cf8;
  --marker-selected: #c4b5fd;
  --marker-text: #ffffff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

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

.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: calc(var(--z-modal) + 400);
  max-width: min(24rem, calc(100vw - 2rem));
  transform: translate(-50%, 0.55rem);
  border: 1px solid color-mix(in srgb, var(--green-dark) 42%, var(--subtle));
  border-radius: 999px;
  background: var(--ink);
  color: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 850;
  text-align: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.app-toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-error {
  margin: 1rem 0;
  border: 1px solid var(--danger-border);
  border-radius: var(--radius);
  background: var(--danger-wash);
  color: var(--danger);
  padding: 0.85rem 1rem;
  font-weight: 800;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--subtle);
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  color: var(--brand-navy);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
}

.brand-japan {
  color: var(--brand-red);
}

:root[data-theme="dark"] .brand {
  color: var(--ink);
}

.nav {
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav a {
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus,
.nav a[aria-current="page"] {
  background: var(--wash);
  color: var(--ink);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.4rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.theme-toggle-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.theme-toggle-icon circle,
.theme-toggle-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.account-button {
  min-height: 2.4rem;
  border: 1px solid color-mix(in srgb, var(--green-dark) 40%, var(--subtle));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--green-dark) 10%, var(--panel));
  color: var(--green-dark);
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.account-button:hover,
.account-button:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-dark) 20%, transparent);
}

.theme-toggle:hover,
.theme-toggle:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 24%, transparent);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.finder-shell,
.page-hero,
.pricing-section,
.comparison-band,
.content-grid,
.field-map {
  margin: clamp(1.5rem, 4vw, 4rem) 0;
}

.finder-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: stretch;
}

.finder-copy,
.page-hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-hero {
  min-height: 300px;
}

.pricing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.pricing-hero-actions .button {
  min-width: 9.5rem;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.search-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.75rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

body[data-page="home"] .search-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.search-submit {
  min-height: 2.85rem;
  width: 100%;
}

.more-filters {
  grid-column: 1 / -1;
  border-top: 1px solid var(--subtle);
  padding-top: 0.25rem;
}

.more-filters summary {
  width: fit-content;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
}

.more-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

label,
.filter-field {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

select,
.filter-button,
.price-bound input[type="number"] {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.4rem 0.75rem;
}

.filter-button {
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.filter-button:hover,
.filter-button:focus {
  border-color: rgba(46, 111, 85, 0.55);
  outline: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(23, 33, 28, 0.42);
}

.modal-backdrop[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.price-modal {
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 2rem));
  display: grid;
  gap: 1rem;
  overflow: auto;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(1rem, 3vw, 1.4rem);
  box-shadow: 0 24px 80px rgba(23, 33, 28, 0.22);
}

.filter-modal {
  width: min(860px, calc(100vw - 2rem));
  height: min(720px, calc(100vh - 2rem));
  height: min(720px, calc(100dvh - 2rem));
  max-height: none;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.price-modal header,
.price-modal footer,
.price-bound-heading,
.price-modal-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.price-modal h2 {
  margin-bottom: 0;
}

.filter-mobile-header,
.filter-accordion-trigger {
  display: none;
}

.filter-accordion-content {
  display: grid;
  gap: 1rem;
  min-height: 0;
}

.prefecture-filter-tools {
  display: grid;
  gap: 0.65rem;
}

.prefecture-search input {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
}

.prefecture-filter-actions,
.filter-section-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

.compact-button {
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
}

.filter-modal-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.filter-modal-tabs button {
  flex: 0 0 auto;
  min-height: 2.35rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-weight: 850;
}

.filter-modal-tabs button:hover,
.filter-modal-tabs button:focus,
.filter-modal-tabs button[aria-selected="true"] {
  border-color: rgba(46, 111, 85, 0.55);
  background: var(--green-dark);
  color: white;
  outline: none;
}

.filter-modal-body {
  min-height: 0;
  overflow: hidden;
}

.filter-tab-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
  height: 100%;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.filter-tab-panel[hidden] {
  display: none;
}

.filter-tab-heading {
  display: grid;
  gap: 0.15rem;
}

.filter-tab-heading h3,
.filter-tab-heading p {
  margin: 0;
}

.filter-tab-heading h3 {
  font-size: 1.05rem;
}

.filter-tab-heading p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.price-bound-grid {
  display: grid;
  gap: 0.85rem;
}

.type-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.7rem;
}

.prefecture-option-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.display-option-grid {
  display: grid;
  gap: 0.85rem;
}

.display-option-grid .currency-control {
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.85rem;
}

.check-option {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
}

.check-option input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--green-dark);
  flex: 0 0 auto;
}

.check-option:has(input:checked) {
  border-color: rgba(46, 111, 85, 0.55);
  background: rgba(46, 111, 85, 0.08);
}

.price-bound {
  display: grid;
  gap: 0.65rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  padding: 0.85rem;
  background: var(--paper);
}

.price-bound-heading span {
  color: var(--ink);
  font-weight: 850;
}

.price-bound-heading small {
  color: var(--muted);
  font-weight: 800;
}

.price-bound-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(200px, 1fr);
  gap: 0.75rem;
  align-items: end;
}

.price-bound input[type="range"] {
  width: 100%;
  accent-color: var(--green-dark);
}

.price-modal-summary {
  border-radius: var(--radius);
  background: var(--wash);
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-modal-summary strong {
  color: var(--ink);
}

.currency-control {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.currency-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  min-height: 2.85rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--paper);
}

.currency-toggle button {
  border: 0;
  border-right: 1px solid var(--subtle);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.currency-toggle button:last-child {
  border-right: 0;
}

.currency-toggle button:hover,
.currency-toggle button:focus,
.currency-toggle button.is-active,
.currency-toggle button[aria-pressed="true"] {
  background: var(--green-dark);
  color: white;
  outline: none;
}

.currency-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  align-items: center;
  min-height: 1.2rem;
}

.rate-link {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.currency-meta small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.photo-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--wash);
  box-shadow: var(--shadow);
}

.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-credit {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  max-width: calc(100% - 1.6rem);
  border-radius: var(--radius);
  background: rgba(23, 33, 28, 0.78);
  color: white;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
}

.status-band,
.feature-grid,
.benefit-band,
.pricing-grid,
.service-grid {
  display: grid;
  gap: 1rem;
}

.status-band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.5rem 0 3rem;
}

.status-band article,
.feature-grid article,
.insight-panel,
.price-card,
.service-card,
.source-card,
.source-item,
.listing-card {
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
}

.status-band article {
  padding: 1rem;
}

.marketplace-stats article {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--green-dark) 9%, transparent), transparent 58%),
    var(--panel);
}

.marketplace-stats strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.benefit-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: -1rem 0 3rem;
}

.benefit-band article {
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.1rem;
}

.benefit-band h2 {
  margin: 0.55rem 0 0.45rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.benefit-band p {
  margin: 0;
  color: var(--muted);
}

.status-band strong,
.status-band span {
  display: block;
}

.status-band strong {
  margin-bottom: 0.25rem;
}

.status-band span,
.feature-grid p,
.listing-meta,
.source-card,
.price-card p,
.service-card p,
.policy-list,
td {
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 1rem;
}

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

.listing-card {
  display: grid;
  min-width: 0;
  gap: 0.8rem;
  align-content: start;
  padding: 0;
  overflow: hidden;
}

body[data-page="home"] .listing-card {
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

body[data-page="home"] .listing-card > :not(.listing-thumb) {
  margin-inline: 0.95rem;
}

body[data-page="home"] .listing-card > :last-child {
  margin-bottom: 0.95rem;
}

.listing-card-top {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 0.8rem;
  min-width: 0;
  align-items: start;
}

.listing-card-main,
.map-detail-heading {
  display: grid;
  min-width: 0;
  gap: 0.55rem;
}

.listing-card h3,
.map-detail-card h2,
.map-list-item strong {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
}

.listing-card h3 {
  margin: 0;
  -webkit-line-clamp: 2;
  line-height: 1.2;
}

.map-detail-card h2 {
  -webkit-line-clamp: 3;
}

.map-list-item strong {
  -webkit-line-clamp: 2;
}

.listing-thumb {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.listing-thumb.large {
  aspect-ratio: 16 / 10;
}

body[data-page="home"] .listing-card > .listing-thumb.large {
  margin: 0;
  border-radius: 0;
}

body[data-page="home"] .listing-card > .listing-thumb.placeholder.large {
  min-height: 3.8rem;
  aspect-ratio: auto;
  margin: 0.95rem 0.95rem 0;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(46, 111, 85, 0.08), rgba(97, 73, 219, 0.08)),
    var(--wash);
  color: var(--muted);
}

.listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-thumb.placeholder {
  border: 1px dashed rgba(23, 33, 28, 0.18);
  padding: 0.6rem;
}

.listing-thumb.placeholder span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-gallery {
  display: grid;
  gap: 0.55rem;
}

.premium-gallery .listing-thumb.large {
  position: relative;
  overflow: hidden;
}

.gallery-counter {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  border-radius: 999px;
  background: rgba(15, 27, 46, 0.76);
  color: #fff;
  padding: 0.28rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 850;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(15, 27, 46, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.gallery-nav:hover {
  background: rgba(79, 91, 229, 0.92);
}

.gallery-nav.previous {
  left: 0.8rem;
}

.gallery-nav.next {
  right: 0.8rem;
}

.gallery-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.1rem 0 0.35rem;
}

.gallery-thumb {
  flex: 0 0 5.5rem;
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: 0.65rem;
  background: var(--wash);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.gallery-thumb.selected {
  border-color: var(--blue);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.locked-gallery-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
  border: 1px dashed color-mix(in srgb, var(--blue) 44%, var(--subtle));
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58)),
    color-mix(in srgb, var(--blue) 9%, var(--wash));
  color: var(--ink);
  padding: 0.8rem;
  font-weight: 850;
}

:root[data-theme="dark"] .locked-gallery-preview {
  background:
    linear-gradient(rgba(18, 18, 22, 0.74), rgba(18, 18, 22, 0.74)),
    color-mix(in srgb, var(--blue) 16%, var(--panel));
}

.locked-gallery-preview strong {
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.2);
  color: #c7d2fe;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
}

.price-pill,
.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.8rem;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
}

.price-pill {
  flex: 0 0 auto;
  background: #e6f2ed;
  color: var(--green-dark);
}

.listing-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.property-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-block: 0;
}

.property-facts div {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--wash);
  padding: 0.55rem;
}

.property-facts dt {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 850;
  text-transform: uppercase;
}

.property-facts dd {
  margin: 0.15rem 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-premium-preview,
.premium-preview {
  display: grid;
  gap: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--pro-locked) 35%, var(--subtle));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--pro-locked) 8%, var(--panel));
  padding: 0.75rem;
}

.card-premium-preview {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.lock-mark {
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--pro-locked) 34%, transparent);
  background: color-mix(in srgb, var(--pro-locked) 12%, var(--panel));
  color: var(--pro-locked);
  padding: 0.18rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 900;
}

.premium-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.discovery-panel {
  display: grid;
  gap: 1rem;
}

.discovery-links {
  display: grid;
  gap: 0.6rem;
}

.discovery-links a {
  display: grid;
  gap: 0.18rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--ink);
  padding: 0.75rem;
  font-weight: 850;
  text-decoration: none;
}

.discovery-links a:hover,
.discovery-links a:focus {
  border-color: var(--green-dark);
}

.discovery-links span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.status-pill {
  background: var(--wash);
  color: var(--muted);
}

.status-pill.blocked {
  background: #fae7df;
  color: var(--danger);
}

.classification-row,
.listing-meta,
.listing-tags,
.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-width: 0;
}

.listing-meta span,
.listing-tags span {
  border-radius: 999px;
  background: var(--wash);
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
}

.badge.akiya {
  background: #e6f2ed;
  color: var(--green-dark);
}

.badge.retail {
  background: #eef2ff;
  color: #3730a3;
}

:root[data-theme="dark"] .badge.retail {
  border: 1px solid rgba(199, 210, 254, 0.36);
  background: rgba(129, 140, 248, 0.2);
  color: #e0e7ff;
}

.badge.empty-lot,
.badge.new-construction,
.badge.commercial,
.badge.condo,
.badge.resale-house,
.badge.unknown {
  background: var(--wash);
  color: var(--ink);
}

.badge.review {
  background: #fff6d8;
  color: #755319;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.25rem;
  border-radius: 999px;
  padding: 0.16rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.button .tier-badge,
.save-button .tier-badge {
  margin-left: 0.45rem;
}

.tier-badge.free,
.badge.free {
  background: #e6f2ed;
  color: var(--green-dark);
}

.tier-badge.pro,
.badge.pro {
  border: 1px solid color-mix(in srgb, var(--pro-locked) 34%, transparent);
  background: var(--pro-locked-soft);
  color: var(--pro-locked);
}

.map-premium-panel.is-premium .tier-badge.pro,
.premium-research-panel.unlocked .tier-badge.pro,
.tier-badge.pro[data-saved-tier] {
  border-color: color-mix(in srgb, var(--pro-gold-border) 70%, transparent);
  background: var(--pro-gold-soft);
  color: var(--pro-gold-strong);
}

:root[data-theme="dark"] .tier-badge.free,
:root[data-theme="dark"] .badge.free {
  border: 1px solid color-mix(in srgb, var(--green-dark) 44%, var(--subtle));
  background: color-mix(in srgb, var(--green-dark) 22%, var(--panel));
  color: #dbeafe;
}

:root[data-theme="dark"] .tier-badge.pro,
:root[data-theme="dark"] .badge.pro {
  border-color: color-mix(in srgb, var(--pro-locked) 52%, var(--subtle));
  background: color-mix(in srgb, var(--pro-locked-soft) 78%, var(--panel));
  color: #e0e7ff;
}

:root[data-theme="dark"] .map-premium-panel.is-premium .tier-badge.pro,
:root[data-theme="dark"] .premium-research-panel.unlocked .tier-badge.pro,
:root[data-theme="dark"] .tier-badge.pro[data-saved-tier] {
  border-color: color-mix(in srgb, var(--pro-gold-border) 70%, var(--subtle));
  background: color-mix(in srgb, var(--pro-gold-soft) 72%, var(--panel));
  color: var(--pro-gold-strong);
}

.listing-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
}

.listing-data.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-data div {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--wash);
  padding: 0.45rem 0.55rem;
}

.listing-data dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.listing-data dd {
  margin: 0.1rem 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.listing-summary,
.review-note {
  margin-bottom: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.listing-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.92rem;
}

.original-text {
  min-width: 0;
  border-top: 1px solid var(--subtle);
  padding-top: 0.6rem;
}

.original-text summary {
  width: fit-content;
  cursor: pointer;
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 850;
}

.original-text pre {
  max-height: 11rem;
  overflow: auto;
  margin: 0.6rem 0 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  font: 0.82rem/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.listing-actions {
  align-items: center;
}

.save-button {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-weight: 850;
}

.save-button:hover,
.save-button:focus,
.save-button.saved {
  border-color: rgba(46, 111, 85, 0.55);
  background: #e6f2ed;
  color: var(--green-dark);
  outline: none;
}

.text-link.secondary {
  color: var(--muted);
}

.japanese {
  border-left: 3px solid var(--yellow);
  padding-left: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.insight-panel {
  position: sticky;
  top: 5rem;
  padding: 1rem;
}

.source-card {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 1rem;
}

.saved-panel,
.dev-note {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem;
}

.saved-panel h3,
.saved-panel .compact-heading {
  margin: 0;
}

.saved-panel strong {
  font-size: 1.45rem;
}

.saved-panel span,
.dev-note span {
  color: var(--muted);
  font-size: 0.9rem;
}

.saved-card-list {
  display: grid;
  gap: 0.55rem;
}

.saved-property-card {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  border: 1px solid var(--subtle);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 0.45rem;
  text-align: left;
  cursor: pointer;
}

.saved-property-card:hover,
.saved-property-card:focus {
  border-color: color-mix(in srgb, var(--green-dark) 58%, var(--subtle));
  background: color-mix(in srgb, var(--green-dark) 10%, var(--panel));
  outline: none;
}

.saved-property-card .listing-thumb {
  width: 4.25rem;
  height: 3.6rem;
  min-height: 3.6rem;
  margin: 0;
  border-radius: 6px;
}

.saved-property-card span {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.saved-property-card strong,
.saved-property-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-property-card strong {
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.saved-empty-state {
  display: grid;
  gap: 0.45rem;
  border: 1px dashed color-mix(in srgb, var(--green-dark) 34%, var(--subtle));
  border-radius: var(--radius);
  background: var(--wash);
  padding: 0.75rem;
}

.auth-modal {
  display: grid;
  gap: 1.55rem;
  width: min(440px, calc(100vw - 32px));
  min-height: min(672px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  align-content: start;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--subtle) 78%, transparent);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
  padding: 2rem;
}

.auth-modal header,
.auth-tabs,
.account-tabs,
.auth-form {
  display: grid;
  gap: 1.25rem;
}

.auth-modal header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
}

.auth-modal h2 {
  margin: 2rem 0 0;
  font-size: clamp(2rem, 5vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-subtitle {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.auth-close-button {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wash) 78%, transparent);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1;
}

.auth-close-button:hover,
.auth-close-button:focus {
  border-color: var(--blue);
  color: var(--ink);
  outline: none;
}

.auth-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  border: 1px solid color-mix(in srgb, var(--subtle) 58%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--wash) 68%, transparent);
  padding: 0.25rem;
}

.auth-tabs[hidden] {
  display: none;
}

.account-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  border: 1px solid color-mix(in srgb, var(--subtle) 58%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--wash) 68%, transparent);
  padding: 0.25rem;
}

.account-tabs[hidden] {
  display: none;
}

.auth-tabs button,
.account-tabs button {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  padding: 0 0.75rem;
  cursor: pointer;
}

.auth-tabs button[aria-pressed="true"],
.account-tabs button[aria-pressed="true"] {
  background: var(--blue);
  color: #020617;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.auth-form[hidden],
[data-auth-active-form][hidden] {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 0.55rem;
}

.auth-field-label {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
}

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  height: 56px;
  border-color: color-mix(in srgb, var(--subtle) 80%, transparent);
  border-radius: 18px;
  background: var(--wash);
  color: var(--ink);
  padding: 0 1rem;
  font-weight: 750;
}

.auth-form input::placeholder {
  color: color-mix(in srgb, var(--muted) 62%, transparent);
}

.auth-primary,
.auth-google {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  font-weight: 800;
}

.auth-primary {
  color: #020617;
}

.auth-signed-in {
  display: grid;
  gap: 1rem;
}

.auth-signed-in[hidden] {
  display: none;
}

.auth-signed-in span {
  color: var(--muted);
  font-size: 0.9rem;
}

.account-billing-card {
  display: grid;
  gap: 1rem;
  border: 1px solid color-mix(in srgb, var(--subtle) 76%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--wash) 72%, transparent);
  padding: 1rem;
}

.account-billing-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.account-status-row,
.payment-history div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.account-status-row strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
}

.account-status-row small {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.account-tier-pill {
  border-radius: 999px;
  background: color-mix(in srgb, var(--green-dark) 18%, var(--panel));
  color: var(--green-dark);
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.billing-action-stack {
  display: grid;
  gap: 0.55rem;
}

.billing-action-stack .button {
  width: 100%;
}

.account-section-title {
  color: var(--ink);
  font-weight: 900;
}

.payment-history {
  display: grid;
  gap: 0.6rem;
}

.payment-history div {
  border-top: 1px solid var(--subtle);
  padding-top: 0.6rem;
}

.checkbox-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--subtle) 76%, transparent);
  border-radius: 16px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 0.8rem 0.9rem;
}

.checkbox-row input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin: 0.3rem 0;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: color-mix(in srgb, var(--subtle) 68%, transparent);
}

.auth-note,
.auth-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-message {
  min-height: 1rem;
  color: #ef4444;
}

.auth-field-error {
  min-height: 0.9rem;
  color: #ef4444;
  font-size: 0.76rem;
  font-weight: 750;
}

.auth-inline-link,
.auth-footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.auth-inline-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--green-dark);
  cursor: pointer;
}

.auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 80ms ease;
}

.auth-google:hover,
.auth-google:focus {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--panel) 82%, var(--blue) 18%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
  outline: none;
}

.auth-google:active {
  border-color: var(--green-dark);
  background: color-mix(in srgb, var(--panel) 72%, var(--blue) 28%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
  transform: translateY(1px);
}

.auth-google-mark {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 0.35rem;
  background: var(--ink);
  color: var(--panel);
  font-size: 0.82rem;
  font-weight: 950;
}

.auth-footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin: 0;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font: inherit;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.text-link {
  color: var(--green-dark);
  font-weight: 800;
}

.comparison-band {
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article {
  padding: 1.1rem;
}

.pricing-section {
  padding-top: 1rem;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-card,
.service-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.price-card.highlighted {
  border-color: color-mix(in srgb, var(--green-dark) 50%, var(--subtle));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--green-dark) 12%, transparent), transparent 60%),
    var(--panel);
  box-shadow: var(--shadow);
}

.price {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.price-card-note {
  margin: -0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.price.compact {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.price-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.pricing-comparison {
  display: grid;
}

.admin-shell {
  width: min(1180px, calc(100% - 2rem));
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 1.25rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.admin-login-card,
.admin-panel,
.admin-metric-card,
.admin-user-card,
.admin-route-row {
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 1rem;
  justify-self: center;
  margin-top: clamp(2rem, 8vh, 5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.admin-login-card h1,
.admin-console h1,
.admin-panel h2 {
  margin: 0;
}

.admin-login-form {
  display: grid;
  gap: 1rem;
}

.admin-login-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 800;
}

.admin-login-form input {
  min-height: 3rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
}

.admin-console {
  display: grid;
  gap: 1rem;
}

.admin-console[hidden],
.admin-login-card[hidden] {
  display: none;
}

.admin-console-header,
.admin-user-card,
.admin-route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-metric-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

.admin-metric-card span,
.admin-metric-card small,
.admin-user-card span,
.admin-user-card small {
  color: var(--muted);
  font-weight: 750;
}

.admin-metric-card strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.admin-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.section-heading.compact {
  margin-bottom: 0;
}

.admin-user-list,
.admin-route-list {
  display: grid;
  gap: 0.7rem;
}

.admin-user-search {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto auto;
  align-items: end;
  gap: 0.6rem;
}

.admin-user-search label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.admin-user-search input {
  min-height: 2.75rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--ink);
  padding: 0.65rem 0.8rem;
}

.admin-user-card {
  align-items: flex-start;
  padding: 0.9rem;
}

.admin-user-card strong {
  display: block;
  color: var(--ink);
}

.admin-user-card small {
  display: block;
  font-size: 0.8rem;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.compact-button.danger {
  border-color: var(--danger-border);
  color: var(--danger);
}

.admin-route-row {
  padding: 0.75rem 0.85rem;
}

.comparison-table-wrap {
  background: var(--panel);
}

.comparison-table th:first-child {
  width: 34%;
}

.comparison-table tbody th {
  color: var(--ink);
  font-size: 0.9rem;
  text-transform: none;
}

.comparison-table tbody th span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.comparison-table td:nth-child(3) {
  color: var(--ink);
  font-weight: 750;
}

body[data-page="pricing"] .price-card {
  min-width: 0;
}

body[data-page="pricing"] .price-card > div,
body[data-page="pricing"] .price-card li,
body[data-page="pricing"] .comparison-table th,
body[data-page="pricing"] .comparison-table td,
body[data-page="pricing"] .faq-list summary,
body[data-page="pricing"] .faq-list p {
  overflow-wrap: anywhere;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0.9rem 1rem;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.faq-list p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.feature-tracker {
  display: grid;
  gap: 0.65rem;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0.85rem 1rem;
}

.feature-row p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-row-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.feature-status {
  border-radius: 999px;
  background: var(--wash);
  color: var(--muted);
  padding: 0.16rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: capitalize;
}

.button {
  position: relative;
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--green-dark);
  color: white;
  padding: 0.65rem 1rem;
  font-weight: 800;
  text-decoration: none;
  isolation: isolate;
  cursor: pointer;
}

.button::after {
  content: "";
  position: absolute;
  inset: -55% auto -55% -45%;
  z-index: 0;
  width: 42%;
  transform: translateX(-135%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  opacity: 0.46;
  pointer-events: none;
  animation: button-shimmer 4.8s ease-in-out infinite;
}

.button > * {
  position: relative;
  z-index: 1;
}

.button.ghost {
  border: 1px solid var(--subtle);
  background: var(--panel);
  color: var(--ink);
}

.button.ghost::after {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--green-dark) 15%, transparent), transparent);
  opacity: 0.32;
}

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

.button:disabled::after {
  content: none;
}

.map-premium-panel.is-premium .button:not(.ghost),
.premium-research-panel.unlocked .button:not(.ghost) {
  background: linear-gradient(135deg, var(--pro-gold-border), var(--pro-gold));
  color: #111827;
}

.map-premium-panel.is-premium .button.ghost,
.premium-research-panel.unlocked .button.ghost {
  border-color: color-mix(in srgb, var(--pro-gold-border) 76%, var(--subtle));
  background: color-mix(in srgb, var(--pro-gold) 6%, var(--panel));
  color: var(--pro-gold-strong);
}

.map-premium-panel.is-premium .button::after,
.premium-research-panel.unlocked .button::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  opacity: 0.52;
}

@keyframes button-shimmer {
  0%,
  58% {
    transform: translateX(-135%) skewX(-18deg);
  }

  100% {
    transform: translateX(360%) skewX(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button::after {
    content: none;
    animation: none;
  }
}

.auth-form .auth-primary,
.auth-form .auth-google {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
}

.hero-action {
  margin-top: 1.25rem;
}

.map-main {
  width: min(1480px, calc(100% - 1.25rem));
}

body[data-page="map"] {
  min-height: 100vh;
  overflow: hidden;
}

body[data-page="map"] .topbar {
  min-height: 4rem;
  padding-block: 0.55rem;
}

.map-app {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: calc(100vh - 4rem);
  min-height: 0;
  padding: 0.65rem 0 0.75rem;
}

.map-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: 1rem;
  align-items: end;
  margin: 0 0 0.65rem;
}

.map-hero h1 {
  max-width: none;
  margin-bottom: 0.15rem;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
}

.map-hero .lede {
  max-width: 760px;
  margin: 0;
  font-size: 0.98rem;
}

.map-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.map-summary article {
  min-width: 0;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0.6rem 0.7rem;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.map-summary strong,
.map-summary span {
  display: block;
}

.map-summary strong {
  overflow: hidden;
  font-size: 1.05rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-summary span {
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.map-toolbar {
  position: sticky;
  top: 4rem;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
  margin: 0 0 0.65rem;
  padding: 0.55rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.map-toolbar label,
.map-toolbar .filter-field,
.map-toolbar .currency-control {
  min-width: 0;
}

.map-toolbar span {
  font-size: 0.72rem;
}

.map-toolbar select,
.map-toolbar .filter-button,
.map-toolbar .currency-toggle button {
  min-height: 2.25rem;
  padding-block: 0.35rem;
  padding-inline: 0.45rem;
  font-size: 0.82rem;
}

.map-toolbar .currency-toggle {
  min-height: 2.25rem;
}

.map-toolbar .currency-meta,
.map-toolbar [data-area-control],
.map-toolbar [data-layout-control] {
  display: none;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  gap: 0.75rem;
  min-height: 0;
}

.map-stage,
.map-sidebar,
.map-detail-card,
.map-premium-panel,
.map-results-panel {
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
}

.map-stage {
  position: relative;
  min-height: 0;
  padding: 0.5rem;
  box-shadow: var(--shadow);
}

.map-mobile-controls {
  display: none;
}

.listing-map {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfeaf0;
}

.listing-map .leaflet-container,
.leaflet-container {
  font: inherit;
}

.listing-map .leaflet-control-zoom a {
  border-color: var(--subtle);
  background: var(--panel);
  color: var(--ink);
  font-weight: 850;
}

.listing-map .leaflet-control-zoom a:hover,
.listing-map .leaflet-control-zoom a:focus {
  background: var(--wash);
  color: var(--green-dark);
}

.listing-map .leaflet-bar {
  border-color: color-mix(in srgb, var(--subtle) 88%, var(--ink));
}

.listing-map .leaflet-bar a {
  border-bottom-color: var(--subtle);
}

.listing-map .leaflet-control-layers {
  border-color: color-mix(in srgb, var(--subtle) 88%, var(--ink));
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.listing-map .leaflet-control-layers label {
  color: var(--ink);
}

.listing-map .leaflet-control-layers-selector {
  accent-color: var(--green-dark);
}

.listing-map .leaflet-control-attribution {
  display: none;
  color: var(--muted);
  font-size: 0.68rem;
}

.listing-canvas-layer {
  pointer-events: none;
}

.map-region-control button {
  display: block;
  min-width: 6.5rem;
  min-height: 2.15rem;
  border: 0;
  border-radius: 2px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 850;
}

.map-region-control button:hover,
.map-region-control button:focus {
  background: var(--green-dark);
  color: white;
  outline: none;
}

.map-price-tooltip {
  border: 1px solid rgba(23, 33, 28, 0.14);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.map-loading-indicator {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  max-width: min(14rem, calc(100% - 2rem));
  border: 1px solid color-mix(in srgb, var(--subtle) 78%, var(--ink));
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  padding: 0.42rem 0.75rem 0.42rem 0.52rem;
  font-size: 0.78rem;
  font-weight: 850;
  pointer-events: none;
}

.map-loading-indicator[hidden] {
  display: none;
}

.map-loading-indicator__spinner {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  border: 2px solid color-mix(in srgb, var(--green-dark) 22%, transparent);
  border-top-color: var(--green-dark);
  border-radius: 999px;
  animation: map-loading-spin 0.8s linear infinite;
}

@keyframes map-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-loading-indicator__spinner {
    animation: none;
  }
}

.map-surface {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(61, 105, 144, 0.2), rgba(46, 111, 85, 0.04)),
    #dfeaf0;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 8.33% 12.5%;
}

.map-land {
  position: absolute;
  background: #dfe8d5;
  border: 1px solid rgba(46, 111, 85, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 8px 24px rgba(61, 105, 144, 0.16);
}

.hokkaido {
  left: 66%;
  top: 8%;
  width: 19%;
  height: 17%;
  clip-path: polygon(20% 12%, 58% 0, 92% 23%, 85% 72%, 52% 96%, 15% 80%, 0 42%);
  transform: rotate(-10deg);
}

.honshu {
  left: 25%;
  top: 29%;
  width: 60%;
  height: 37%;
  clip-path: polygon(92% 8%, 98% 26%, 82% 35%, 78% 52%, 62% 55%, 53% 70%, 34% 74%, 25% 91%, 7% 81%, 0 59%, 14% 45%, 30% 39%, 38% 21%, 58% 18%, 72% 0);
  transform: rotate(-18deg);
}

.shikoku {
  left: 37%;
  top: 70%;
  width: 22%;
  height: 8%;
  clip-path: polygon(8% 34%, 42% 10%, 88% 18%, 100% 50%, 72% 80%, 25% 84%, 0 62%);
  transform: rotate(-11deg);
}

.kyushu {
  left: 14%;
  top: 68%;
  width: 20%;
  height: 21%;
  clip-path: polygon(42% 0, 82% 10%, 100% 45%, 74% 88%, 34% 100%, 5% 74%, 22% 46%, 0 22%);
  transform: rotate(12deg);
}

.map-city {
  position: absolute;
  color: rgba(23, 33, 28, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  pointer-events: none;
}

.tokyo {
  left: 63%;
  top: 58%;
}

.osaka {
  left: 43%;
  top: 65%;
}

.fukuoka {
  left: 21%;
  top: 75%;
}

.map-markers {
  position: absolute;
  inset: 0;
}

.map-marker {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 4.8rem;
  min-height: 2.2rem;
  place-items: center;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--green-dark);
  color: white;
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(23, 33, 28, 0.25);
  transform: translate(-50%, -50%);
}

.map-marker::after {
  position: absolute;
  left: 50%;
  bottom: -0.42rem;
  width: 0.7rem;
  height: 0.7rem;
  content: "";
  background: inherit;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: translateX(-50%) rotate(45deg);
}

.map-marker:hover,
.map-marker:focus,
.map-marker.selected {
  background: var(--rust);
  outline: none;
  transform: translate(-50%, -50%) scale(1.06);
}

.map-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.65rem;
  min-height: 0;
  overflow: auto;
  padding: 0.65rem;
}

.map-detail-backdrop {
  align-items: center;
  justify-items: center;
  overflow: hidden;
}

.map-detail-modal {
  position: relative;
  display: grid;
  width: min(48rem, calc(100vw - 2rem));
  height: min(46rem, calc(100vh - 2rem));
  height: min(46rem, calc(100dvh - 2rem));
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.map-detail-modal > [data-map-detail-content] {
  min-height: 0;
  height: 100%;
}

.map-detail-close {
  flex: 0 0 auto;
  display: inline-grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  margin: 0.18rem 0.25rem 0.18rem 0;
  border: 1px solid var(--subtle);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.map-detail-close:hover,
.map-detail-close:focus {
  border-color: var(--green-dark);
  color: var(--green-dark);
  outline: none;
}

.detail-tab-actions {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.32rem;
  margin-left: auto;
}

.map-detail-icon-button {
  display: inline-grid;
  width: 1.82rem;
  height: 1.82rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--green-dark) 48%, var(--subtle));
  border-radius: 999px;
  background: var(--panel);
  color: var(--green-dark);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.12);
}

.map-detail-icon-button svg {
  width: 1rem;
  height: 1rem;
}

.map-detail-icon-button svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.map-detail-icon-button:hover,
.map-detail-icon-button:focus {
  background: #eef2ff;
  outline: none;
}

.map-detail-icon-button.favorite.saved {
  border-color: rgba(79, 70, 229, 0.62);
  background: #eef2ff;
  color: #4f46e5;
}

.map-detail-icon-button.favorite.saved svg path {
  fill: currentColor;
  stroke: currentColor;
}

:root[data-theme="dark"] .map-detail-icon-button:hover,
:root[data-theme="dark"] .map-detail-icon-button:focus,
:root[data-theme="dark"] .map-detail-icon-button.favorite.saved {
  background: rgba(129, 140, 248, 0.22);
  color: #c7d2fe;
}

.map-detail-card {
  display: grid;
  gap: 0.7rem;
  height: 100%;
  min-height: 0;
  padding: 0.6rem 0.2rem 0.2rem;
  min-width: 0;
  overflow: hidden;
}

.map-detail-card h2 {
  margin-bottom: 0;
}

.detail-tab-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.75rem;
  min-height: 0;
  height: 100%;
}

.detail-tab-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  border-bottom: 1px solid var(--subtle);
}

.detail-tabs {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.detail-tabs::-webkit-scrollbar {
  display: none;
}

.detail-tabs button {
  flex: 0 0 auto;
}

.detail-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.55rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 900;
}

.detail-tabs button[aria-selected="true"] {
  border-color: var(--green-dark);
  color: var(--ink);
}

.detail-tab-panel {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 0.15rem;
}

.detail-tab-panel[hidden] {
  display: none;
}

.map-detail-heading {
  grid-template-columns: minmax(0, 1fr);
}

.map-detail-heading .price {
  overflow-wrap: anywhere;
}

.map-cluster-range {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-weight: 750;
}

.source-map-panel {
  display: grid;
  gap: 1rem;
}

.source-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.source-map-empty,
.source-location-data {
  display: grid;
  gap: 0.5rem;
  background: transparent;
}

.source-map-layout {
  position: relative;
  display: block;
  height: 500px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #303033;
}

.detail-map-view {
  position: relative;
  min-width: 0;
  height: 100%;
}

.source-google-map {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--wash);
}

.source-google-map-canvas {
  width: 100%;
  height: 100%;
}

.source-google-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 31.25rem;
  border: 0;
  filter: saturate(0.92) contrast(1.02);
}

.source-map-fallback {
  position: relative;
  height: 100%;
}

.source-google-map .gm-style {
  color: #111827;
}

.source-google-map .gm-style-mtc,
.source-google-map .gm-svpc,
.source-google-map .gm-fullscreen-control {
  opacity: 0.76;
  transform: scale(0.82);
  transform-origin: top left;
  transition: opacity 160ms ease;
}

.source-google-map .gm-style-mtc:hover,
.source-google-map .gm-svpc:hover,
.source-google-map .gm-fullscreen-control:hover {
  opacity: 0.94;
}

.source-google-map .gm-style-mtc button,
.source-google-map .gm-style-mtc div {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
}

.source-map-sidebar,
.nearby-info {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  width: min(270px, calc(100% - 3.75rem));
  height: 100%;
  overflow-y: auto;
  border-left: 0;
  background: #f5f7fb;
  padding: 1.4rem 0.85rem 1.1rem;
  box-shadow: -10px 0 24px rgba(15, 23, 42, 0.16);
  transform: translateX(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nearby-info-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin: 0;
  padding: 0 0 1rem;
  border-bottom: 1px solid #dfe4eb;
  color: #303033;
  font-size: 1rem;
  font-weight: 950;
}

.source-sidebar-toggle {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-content: center;
  gap: 0.24rem;
  border: 1px solid #dfe4eb;
  border-radius: 8px;
  background: #fff;
  color: #303033;
  cursor: pointer;
}

.source-sidebar-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.source-sidebar-title-text {
  min-width: 0;
}

.source-map-sidebar.collapsed {
  overflow: visible;
  pointer-events: none;
  background: transparent;
  box-shadow: none;
  transform: translateX(calc(100% - 3.45rem));
}

.source-map-sidebar.collapsed .source-sidebar-toggle {
  pointer-events: auto;
}

.source-map-sidebar.collapsed .nearby-info-title {
  justify-content: flex-start;
  padding-bottom: 0;
  border-bottom: 0;
}

.source-map-sidebar.collapsed .source-sidebar-title-text,
.source-map-sidebar.collapsed .help-button-icon,
.source-map-sidebar.collapsed .source-map-filter-list {
  display: none;
}

.source-map-note,
.source-map-empty p {
  color: var(--muted);
}

.source-map-filter-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nearby-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  min-height: 3.25rem;
}

.nearby-list-item + .nearby-list-item {
  border-top: 0;
}

.source-map-filter {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  color: #303033;
  cursor: pointer;
  padding: 0.3rem 0;
}

.nearby-list-item__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.source-map-filter-check {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid #dce2ea;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.nearby-list-item__input:checked + .source-map-filter-check {
  border-color: #dce2ea;
  background: #fff;
}

.nearby-list-item__input:checked + .source-map-filter-check::after {
  color: #13b8cc;
  content: "✓";
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
}

.source-map-filter-label {
  min-width: 0;
  color: #303033;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.25;
}

.source-map-filter:hover .source-map-filter-label,
.nearby-list-item__input:focus-visible ~ .source-map-filter .source-map-filter-label {
  color: #0c7483;
}

.nearby-list-item__input:disabled + .source-map-filter-check,
.nearby-list-item__input:disabled ~ .source-map-filter {
  cursor: not-allowed;
  opacity: 0.52;
}

.source-map-filter-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #10bed1;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
  font-size: 0.62rem;
  font-weight: 950;
}

.source-map-filter-icon.asset {
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.source-map-filter-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.source-map-filter-icon img {
  display: block;
  width: 28px;
  height: 28px;
}

.source-map-filter-icon.gold {
  border-radius: 4px;
  background: #ffd500;
  color: #111;
  font-style: italic;
}

.source-map-filter-icon.gold.asset {
  border-radius: 0;
  background: transparent;
}

.source-map-note {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.55;
}

.source-map-loading {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  max-width: calc(100% - 1.5rem);
  border: 1px solid var(--subtle);
  border-radius: 3px;
  background: #fff;
  color: #303033;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.source-map-loading.compact {
  top: auto;
  bottom: 0.75rem;
  max-width: min(28rem, calc(100% - 1.5rem));
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.source-property-marker {
  position: relative;
  display: grid;
  width: 44px;
  height: 37px;
  place-items: end center;
}

.source-property-marker-roof {
  position: absolute;
  top: 0;
  width: 38px;
  height: 20px;
  transform: rotate(-25deg);
  border: 3px solid #4b5563;
  background: #df2430;
  clip-path: polygon(50% 0, 100% 70%, 86% 100%, 50% 38%, 14% 100%, 0 70%);
}

.source-property-marker-house {
  display: grid;
  width: 29px;
  height: 23px;
  place-items: center;
  border: 3px solid #4b5563;
  border-top: 0;
  background: #fff7dc;
  color: #8a6a1f;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 3px 8px color-mix(in srgb, #000 28%, transparent);
}

.source-place-marker {
  position: relative;
  display: grid;
  width: 44px;
  height: 37px;
  place-items: start center;
  color: white;
}

.source-place-marker-head {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #10bed1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.source-place-marker-point {
  position: absolute;
  top: 26px;
  left: 18px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: #10bed1;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
}

.source-place-marker svg {
  width: 1.15rem;
  height: 1.15rem;
}

.source-place-marker.asset {
  width: 42px;
  height: 42px;
  place-items: center;
}

.source-place-marker.asset .source-place-marker-head {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.source-place-marker.asset .source-place-marker-head img {
  display: block;
  width: 42px;
  height: 42px;
}

.source-place-marker.asset .source-place-marker-point {
  display: none;
}

.source-place-marker.gold .source-place-marker-head {
  border-radius: 4px;
  background: #ffd500;
  color: #111;
}

.source-place-marker.gold.asset .source-place-marker-head {
  border-radius: 0;
  background: transparent;
}

.source-place-marker.gold .source-place-marker-point {
  background: #ffd500;
}

.source-place-marker.orange .source-place-marker-head {
  background: #fb923c;
}

.source-place-marker.orange .source-place-marker-point {
  background: #fb923c;
}

.source-place-marker.slate .source-place-marker-head {
  background: #64748b;
}

.source-place-marker.slate .source-place-marker-point {
  background: #64748b;
}

.map-button {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 2rem;
  border: 1px solid rgba(48, 48, 51, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #303033;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  opacity: 0.84;
  transition: opacity 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.map-button:hover,
.map-button:focus-visible {
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.17);
  opacity: 1;
}

.show-route-button {
  top: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.7rem;
}

.map-button-icon {
  display: inline-block;
  width: 1.45rem;
  height: 0.82rem;
  background:
    linear-gradient(135deg, transparent 0 21%, #303033 22% 35%, transparent 36% 100%) left 0.14rem center / 0.72rem 0.72rem no-repeat,
    linear-gradient(#303033, #303033) center / 0.12rem 0.72rem no-repeat,
    radial-gradient(circle at center, #303033 0 44%, transparent 45%) right 0.08rem center / 0.52rem 0.52rem no-repeat;
}

.map-button-text.time {
  color: #d7263d;
}

.redo-button {
  left: 0.65rem;
  bottom: 0.65rem;
  padding: 0.42rem 0.62rem;
}

.help-button-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #ff8a00;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 950;
}

.help-button-icon.small {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 1rem;
}

.source-help-backdrop {
  position: absolute;
  inset: 0;
  z-index: 10020;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(1px);
}

.source-help-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10021;
  width: min(27rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid #dfe4eb;
  border-radius: 10px;
  background: #fff;
  color: #303033;
  padding: 1rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
}

.modal-close-button {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid #dfe4eb;
  border-radius: 999px;
  background: #fff;
  color: #303033;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.modal-content__modal-title {
  margin: 0 2rem 0.75rem 0;
  border-radius: 8px;
  background: #f7f8fb;
  padding: 0.58rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.3;
}

.modal-content__modal-text {
  display: grid;
  gap: 0.75rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.source-help-illustration {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr 4rem;
  align-items: center;
  height: 6.25rem;
  border: 1px solid #dfe4eb;
  background: repeating-linear-gradient(0deg, #f5f7fb, #f5f7fb 24px, #e8edf3 25px), repeating-linear-gradient(90deg, transparent, transparent 54px, #d8dee7 55px);
  padding: 0.8rem;
}

.source-help-home,
.source-help-place {
  position: relative;
  z-index: 1;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
}

.source-help-home {
  color: #df2430;
}

.source-help-place {
  border: 3px solid #fff;
  border-radius: 999px;
  background: #10bed1;
  color: #fff;
}

.source-help-line {
  height: 0.3rem;
  background: #65aaf5;
}

.source-help-card {
  position: absolute;
  right: 1.5rem;
  top: 0.8rem;
  border-radius: 8px;
  background: #fff;
  padding: 0.55rem 0.75rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  font-size: 0.82rem;
}

.source-location-data {
  margin: 0;
  padding: 0;
}

.source-location-data div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.24fr) minmax(0, 1fr);
  overflow: hidden;
}

.source-location-data div + div {
  border-top: 1px solid var(--subtle);
}

.source-location-data dt,
.source-location-data dd {
  margin: 0;
  padding: 0.75rem 0.85rem;
}

.source-location-data dt {
  background: #f3eee8;
  color: #806b53;
  font-weight: 900;
}

.source-location-data dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  background: #fbfaf8;
  color: #303033;
  font-weight: 800;
}

.source-location-data button {
  border: 1px solid var(--subtle);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 0.45rem 0.6rem;
  font-weight: 850;
}

.source-location-data [data-source-route-summary] {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.source-place-info {
  display: grid;
  gap: 0.25rem;
  min-width: 8rem;
  color: #111827;
  font-family: "Noto Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

.source-place-info strong {
  font-size: 0.92rem;
}

.source-place-info span {
  color: #4b5563;
  font-size: 0.82rem;
}

.source-place-info a {
  color: #4f46e5;
  font-weight: 850;
}

.map-card-premium-preview,
.map-premium-panel {
  background: color-mix(in srgb, var(--pro-locked) 8%, var(--panel));
}

.map-card-premium-preview {
  display: grid;
  gap: 0.35rem;
  border: 1px dashed color-mix(in srgb, var(--pro-locked) 45%, var(--subtle));
  border-radius: var(--radius);
  padding: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.premium-tab-splash {
  display: grid;
  gap: 1rem;
  min-height: 22rem;
  align-content: center;
  justify-items: start;
  border: 1px dashed color-mix(in srgb, var(--pro-locked) 46%, var(--subtle));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--pro-locked) 8%, var(--panel));
  padding: clamp(1rem, 4vw, 2rem);
}

.premium-tab-splash h3 {
  margin: 0.7rem 0 0.35rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1.05;
}

.premium-tab-splash p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.data-transparency {
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--wash);
  padding: 0.65rem;
}

.data-transparency summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.compact-heading {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.map-premium-panel {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
}

.premium-panel-copy {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.45;
}

.pro-benefit-groups {
  display: grid;
  gap: 0.75rem;
}

.pro-benefit-group {
  display: grid;
  gap: 0.45rem;
}

.pro-benefit-group h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
}

.pro-benefit-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.12rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--pro-locked) 28%, var(--subtle));
  border-radius: 8px;
  background: color-mix(in srgb, var(--pro-locked) 5%, var(--panel));
  padding: 0.55rem 0.6rem;
}

.pro-benefit-item strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.pro-benefit-item span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.35;
}

.pro-benefit-item small {
  align-self: start;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--pro-locked) 30%, transparent);
  background: color-mix(in srgb, var(--pro-locked) 10%, var(--panel));
  color: var(--pro-locked);
  padding: 0.15rem 0.4rem;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pro-benefit-item.active {
  border-color: color-mix(in srgb, var(--pro-gold-border) 76%, var(--subtle));
  background: color-mix(in srgb, var(--pro-gold) 9%, var(--panel));
}

.pro-benefit-item.active small {
  border-color: color-mix(in srgb, var(--pro-gold-border) 70%, transparent);
  background: var(--pro-gold-soft);
  color: var(--pro-gold-strong);
}

.pro-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pro-panel-actions [data-mobile-sheet-close] {
  display: none;
}

.map-premium-panel.is-premium {
  border-color: color-mix(in srgb, var(--pro-gold-border) 68%, var(--subtle));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pro-gold) 13%, transparent), transparent 62%),
    color-mix(in srgb, var(--pro-gold) 5%, var(--panel));
}

.premium-research-panel {
  display: grid;
  gap: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--pro-locked) 32%, var(--subtle));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--pro-locked) 5%, var(--panel));
  padding: 0.7rem;
}

.premium-research-panel.unlocked {
  border-color: color-mix(in srgb, var(--pro-gold-border) 68%, var(--subtle));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pro-gold) 12%, transparent), transparent 64%),
    color-mix(in srgb, var(--pro-gold) 5%, var(--panel));
}

.premium-research-panel header {
  display: flex;
  align-items: start;
  gap: 0.65rem;
}

.premium-research-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.premium-research-panel p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 740;
  line-height: 1.4;
}

.premium-research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.premium-research-card {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  border: 1px solid var(--subtle);
  border-radius: 8px;
  background: var(--panel);
  padding: 0.55rem;
}

.premium-research-card.unlocked {
  border-color: color-mix(in srgb, var(--pro-gold-border) 52%, var(--subtle));
  background: color-mix(in srgb, var(--pro-gold) 5%, var(--panel));
}

.premium-research-card > div {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.5rem;
}

.premium-research-card strong {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.2;
}

.premium-research-card small {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--pro-locked) 28%, transparent);
  background: color-mix(in srgb, var(--pro-locked) 10%, var(--panel));
  color: var(--pro-locked);
  padding: 0.12rem 0.36rem;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.premium-research-card.unlocked small {
  border-color: color-mix(in srgb, var(--pro-gold-border) 68%, transparent);
  background: var(--pro-gold-soft);
  color: var(--pro-gold-strong);
}

.premium-research-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 720;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.premium-research-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.map-layer-preview-list {
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--wash);
  padding: 0.7rem;
}

.map-layer-preview-list > div {
  display: grid;
  gap: 0.2rem;
}

.map-layer-preview-list strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.map-layer-preview-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.map-layer-preview-button {
  display: flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--subtle));
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.map-layer-preview-button small {
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 12%, var(--panel));
  color: var(--blue);
  padding: 0.15rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 900;
}

.map-results-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: 0.65rem;
}

.map-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.map-results-heading .compact-heading {
  margin-bottom: 0;
}

.map-results-heading p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.map-results-heading label {
  max-width: 9rem;
}

.map-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.55rem;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 0.2rem;
}

.map-list-item {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 1px solid var(--subtle);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 0.42rem;
  text-align: left;
  cursor: pointer;
}

.map-list-item .listing-thumb {
  width: 4.25rem;
  height: 3.6rem;
  min-height: 3.6rem;
  margin: 0;
  border-radius: 6px;
}

.map-list-copy {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  min-width: 0;
}

.map-list-copy strong,
.map-list-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-list-copy strong {
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.map-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.1rem;
}

.map-list-meta small {
  width: fit-content;
  border: 1px solid var(--subtle);
  border-radius: 999px;
  background: var(--wash);
  padding: 0.12rem 0.35rem;
  font-size: 0.72rem;
  line-height: 1.1;
}

.map-list-item:hover,
.map-list-item:focus,
.map-list-item.selected {
  border-color: color-mix(in srgb, var(--green-dark) 58%, var(--subtle));
  background: color-mix(in srgb, var(--green-dark) 10%, var(--panel));
  outline: none;
}

.map-list-item.selected {
  box-shadow: inset 0 0 0 2px var(--green-dark), 0 0 0 2px color-mix(in srgb, var(--green-dark) 18%, transparent);
}

.map-list-copy small,
.map-empty,
.map-list-more {
  color: var(--muted);
}

.map-list-more {
  grid-column: 1 / -1;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--wash);
  padding: 0.7rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 750;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.source-list {
  display: grid;
  gap: 1rem;
}

.source-item {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.source-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.source-url {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.policy-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.15rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--subtle);
  vertical-align: top;
}

th {
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--subtle);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  body[data-page="map"] {
    overflow: auto;
  }

  .map-app {
    height: auto;
    padding-bottom: 1rem;
  }

  .finder-shell,
  .content-grid,
  .source-layout,
  .map-layout,
  .map-hero {
    grid-template-columns: 1fr;
  }

  .map-hero {
    display: grid;
    gap: 0.75rem;
  }

  .map-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finder-copy,
  .page-hero,
  .photo-panel {
    min-height: auto;
  }

  .photo-panel {
    aspect-ratio: 16 / 10;
  }

  .search-panel,
  .map-toolbar,
  .status-band,
  .feature-grid,
  .benefit-band,
  .listing-grid,
  .two-up,
  .service-grid,
  .admin-metrics-grid {
    grid-template-columns: 1fr;
  }

  .map-toolbar {
    position: static;
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.7rem;
    scroll-snap-type: x proximity;
  }

  .map-toolbar label,
  .map-toolbar .filter-field,
  .map-toolbar .currency-control {
    flex: 0 0 min(78vw, 16rem);
    scroll-snap-align: start;
  }

  body[data-page="home"] .search-panel {
    grid-template-columns: 1fr;
  }

  .insight-panel {
    position: static;
  }

  .map-summary {
    width: 100%;
    flex-basis: auto;
  }

  .map-sidebar {
    position: static;
    overflow: visible;
  }

  .map-stage,
  .map-surface,
  .listing-map {
    min-height: min(62vh, 520px);
  }

  .listing-data.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px), (max-width: 980px) and (max-height: 520px) {
  html:has(body[data-page="map"]) {
    height: 100%;
    overflow: hidden;
  }

  body[data-page="map"] {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body[data-page="map"] .topbar {
    position: relative;
    z-index: 2200;
    flex: 0 0 auto;
    min-height: 3.5rem;
  }

  body[data-page="map"] .map-main {
    width: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body[data-page="map"].modal-open {
    overflow: hidden;
  }

  body[data-page="map"] .modal-backdrop[data-filter-modal] {
    display: block;
    padding: 0;
    background: var(--panel);
  }

  body[data-page="map"] .modal-backdrop[data-filter-modal][hidden] {
    display: none;
  }

  body[data-page="map"] .filter-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--paper);
    box-shadow: none;
    padding: 0;
  }

  body[data-page="map"] .filter-desktop-header,
  body[data-page="map"] .filter-modal-tabs {
    display: none;
  }

  body[data-page="map"] .filter-mobile-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.4rem;
    border-bottom: 1px solid var(--subtle);
    background: var(--panel);
    padding: max(0.45rem, env(safe-area-inset-top)) 0.75rem 0.45rem;
  }

  body[data-page="map"] .filter-mobile-header h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1;
    text-align: center;
  }

  body[data-page="map"] .filter-mobile-close {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid var(--subtle);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 850;
    line-height: 1;
  }

  body[data-page="map"] .filter-mobile-header .text-button {
    color: var(--green-dark);
    font-size: 0.84rem;
    white-space: nowrap;
  }

  body[data-page="map"] .filter-modal-body {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem 0.75rem calc(5.5rem + env(safe-area-inset-bottom));
  }

  body[data-page="map"] .filter-tab-panel + .filter-tab-panel {
    margin-top: 0.65rem;
  }

  body[data-page="map"] .filter-tab-panel,
  body[data-page="map"] .filter-tab-panel[hidden] {
    display: block !important;
    height: auto;
    min-height: 0;
    gap: 0;
    overflow: visible;
    border: 1px solid var(--subtle);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 0;
  }

  body[data-page="map"] .filter-tab-heading h3,
  body[data-page="map"] .filter-tab-heading p {
    display: none;
  }

  body[data-page="map"] .filter-accordion-trigger {
    display: flex;
    width: 100%;
    min-height: 3.1rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    padding: 0.85rem;
    text-align: left;
  }

  body[data-page="map"] .filter-accordion-trigger > span:first-child {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
  }

  body[data-page="map"] .filter-accordion-trigger strong {
    font-size: 0.96rem;
    line-height: 1.15;
  }

  body[data-page="map"] .filter-accordion-trigger small {
    display: none;
  }

  body[data-page="map"] .filter-section-status {
    max-width: 10rem;
    flex: 0 1 auto;
    overflow: hidden;
    border-radius: 999px;
    background: var(--wash);
    color: var(--muted);
    padding: 0.24rem 0.45rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 850;
  }

  body[data-page="map"] .filter-accordion-trigger.has-active-filter .filter-section-status {
    background: color-mix(in srgb, var(--green-dark) 14%, var(--panel));
    color: var(--green-dark);
  }

  body[data-page="map"] .filter-accordion-trigger::after {
    content: "⌄";
    color: var(--muted);
    font-size: 1rem;
    font-weight: 900;
  }

  body[data-page="map"] .filter-accordion-trigger[aria-expanded="true"]::after {
    content: "⌃";
  }

  body[data-page="map"] .filter-accordion-content {
    gap: 0.75rem;
    border-top: 1px solid var(--subtle);
    padding: 0.75rem;
  }

  body[data-page="map"] .filter-tab-panel[data-mobile-collapsed="true"] .filter-accordion-content {
    display: none;
  }

  body[data-page="map"] .type-option-grid,
  body[data-page="map"] .prefecture-option-grid,
  body[data-page="map"] .display-option-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  body[data-page="map"] .prefecture-option-grid {
    max-height: 22rem;
    max-height: min(42vh, 22rem);
    max-height: min(42dvh, 22rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.1rem;
  }

  body[data-page="map"] .prefecture-search {
    gap: 0.3rem;
  }

  body[data-page="map"] .prefecture-search span {
    font-size: 0.76rem;
  }

  body[data-page="map"] .prefecture-filter-actions,
  body[data-page="map"] .filter-section-actions {
    justify-content: space-between;
  }

  body[data-page="map"] .check-option {
    position: relative;
    min-height: 44px;
    align-items: center;
    gap: 0.55rem;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font-size: 0.88rem;
    line-height: 1.25;
  }

  body[data-page="map"] .check-option input {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    width: 1px;
    height: 1px;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
  }

  body[data-page="map"] .check-option span {
    position: relative;
    z-index: 1;
  }

  body[data-page="map"] .check-option::before {
    content: "";
    display: inline-grid;
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--green-dark) 42%, var(--subtle));
    border-radius: 999px;
    background: var(--panel);
  }

  body[data-page="map"] .check-option:has(input:checked) {
    border-color: color-mix(in srgb, var(--green-dark) 62%, var(--subtle));
    background: color-mix(in srgb, var(--green-dark) 12%, var(--panel));
    color: var(--ink);
  }

  body[data-page="map"] .check-option:has(input:checked)::before {
    border-color: var(--green-dark);
    background: radial-gradient(circle at center, var(--green-dark) 0 45%, transparent 47%);
  }

  body[data-page="map"] .check-option:focus-within {
    outline: 2px solid color-mix(in srgb, var(--green-dark) 38%, transparent);
    outline-offset: 2px;
  }

  body[data-page="map"] .price-bound-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  body[data-page="map"] .price-bound {
    gap: 0.5rem;
    padding: 0.65rem;
  }

  body[data-page="map"] .price-bound-heading {
    display: grid;
    gap: 0.1rem;
    align-items: start;
  }

  body[data-page="map"] .price-bound-heading span {
    font-size: 0.82rem;
  }

  body[data-page="map"] .price-bound-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  body[data-page="map"] .price-bound-row label {
    gap: 0;
  }

  body[data-page="map"] .price-bound-row label > span {
    display: none;
  }

  body[data-page="map"] .price-bound input[type="number"] {
    min-height: 2.6rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
  }

  body[data-page="map"] .price-bound input[type="range"] {
    margin-top: 0.15rem;
  }

  body[data-page="map"] .price-modal-summary {
    align-items: start;
    padding: 0.6rem 0.7rem;
    font-size: 0.82rem;
  }

  body[data-page="map"] .display-option-grid .currency-control {
    padding: 0.7rem;
  }

  body[data-page="map"] .filter-modal > footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: block;
    border-top: 1px solid var(--subtle);
    background: var(--panel);
    padding: 0.75rem 0.75rem max(0.75rem, env(safe-area-inset-bottom));
  }

  body[data-page="map"] .filter-modal > footer [data-filter-clear-current] {
    display: none;
  }

  body[data-page="map"] .filter-modal > footer [data-filter-apply] {
    width: 100%;
    min-height: 3rem;
  }

  .map-app {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }

  .map-hero,
  .map-toolbar {
    display: none;
  }

  .map-layout {
    display: flex;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .map-stage {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
    border: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .listing-map {
    height: 100%;
    min-height: 0;
    border-radius: 0;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .map-mobile-controls {
    position: absolute;
    z-index: 1200;
    top: max(0.65rem, env(safe-area-inset-top));
    left: 0.65rem;
    right: 0.65rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    pointer-events: none;
  }

  .map-mobile-control-button {
    position: relative;
    display: grid;
    min-height: 44px;
    min-width: 0;
    align-content: center;
    justify-items: center;
    gap: 0.05rem;
    border: 1px solid color-mix(in srgb, var(--subtle) 82%, var(--ink));
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel) 96%, transparent);
    color: var(--ink);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14);
    cursor: pointer;
    padding: 0.35rem 0.32rem;
    text-align: center;
    touch-action: manipulation;
    pointer-events: auto;
  }

  .map-mobile-control-button span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.1;
  }

  .map-mobile-control-button small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 850;
    line-height: 1;
  }

  .map-mobile-control-button.active {
    border-color: color-mix(in srgb, var(--blue) 55%, var(--subtle));
    background: color-mix(in srgb, var(--blue) 12%, var(--panel));
  }

  .map-mobile-control-button.pro {
    border-color: color-mix(in srgb, var(--pro-locked) 62%, var(--subtle));
    color: var(--pro-locked);
  }

  .map-mobile-control-button.pro small {
    border-radius: 999px;
    background: color-mix(in srgb, var(--pro-locked) 12%, var(--panel));
    color: var(--pro-locked);
    padding: 0.08rem 0.25rem;
  }

  .map-mobile-badge {
    position: absolute;
    top: -0.25rem;
    right: 0.2rem;
    min-width: 1.15rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    padding: 0.08rem 0.25rem;
    font-size: 0.62rem !important;
    line-height: 1;
  }

  .listing-map .leaflet-top {
    top: 4.55rem;
  }

  .listing-map .leaflet-left {
    left: 0.35rem;
  }

  .listing-map .leaflet-right {
    right: 0.35rem;
  }

  .mobile-sheet-layer {
    position: absolute;
    inset: 0;
    z-index: 1400;
    overflow: hidden;
    pointer-events: none;
  }

  .mobile-sheet-layer[hidden] {
    display: none;
  }

  .mobile-bottom-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100% - max(0.65rem, env(safe-area-inset-top)));
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--subtle) 88%, var(--ink));
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: var(--panel);
    box-shadow: 0 -18px 52px rgba(17, 24, 39, 0.24);
    pointer-events: auto;
    touch-action: pan-y;
    transition: height 180ms ease, transform 180ms ease;
  }

  .mobile-bottom-sheet[hidden] {
    display: none;
  }

  .mobile-bottom-sheet[data-sheet-state="peek"] {
    height: min(8.75rem, 34%);
  }

  .mobile-bottom-sheet[data-sheet-state="half"] {
    height: min(54%, 32rem);
  }

  .mobile-bottom-sheet[data-sheet-state="full"] {
    height: calc(100% - 0.75rem);
  }

  .mobile-sheet-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    border-bottom: 1px solid var(--subtle);
    background: var(--panel);
    padding: 0.55rem 0.75rem 0.7rem;
    touch-action: manipulation;
  }

  .mobile-sheet-handle {
    grid-column: 1 / -1;
    justify-self: center;
    width: 2.8rem;
    height: 0.32rem;
    min-height: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 34%, transparent);
    cursor: pointer;
    padding: 0;
  }

  .mobile-sheet-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.15;
  }

  .mobile-sheet-header p {
    margin: 0.18rem 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 780;
    line-height: 1.25;
  }

  .mobile-sheet-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .mobile-sheet-close {
    display: grid;
    width: 2rem;
    height: 2rem;
    min-height: 2rem;
    place-items: center;
    border: 1px solid var(--subtle);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 850;
    line-height: 1;
  }

  .mobile-sheet-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem 0.75rem max(0.9rem, env(safe-area-inset-bottom));
    touch-action: pan-y;
  }

  .mobile-bottom-sheet[data-sheet-state="peek"] .mobile-sheet-body {
    display: none;
  }

  .mobile-bottom-sheet .map-results-panel,
  .mobile-bottom-sheet .saved-panel,
  .mobile-bottom-sheet .map-premium-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }

  .mobile-bottom-sheet .map-results-panel {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .mobile-bottom-sheet .map-results-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
  }

  .mobile-bottom-sheet .map-results-heading > div {
    display: none;
  }

  .mobile-bottom-sheet .map-results-heading label {
    max-width: none;
  }

  .mobile-bottom-sheet .map-list {
    grid-template-columns: 1fr;
    overflow: visible;
    padding-right: 0;
  }

  .mobile-bottom-sheet .map-list-item,
  .mobile-bottom-sheet .saved-property-card {
    min-height: 5.2rem;
  }

  .mobile-bottom-sheet .map-list-copy small,
  .mobile-bottom-sheet .saved-property-card small {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .mobile-bottom-sheet .pro-panel-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--panel) 72%, transparent);
    padding-top: 0.65rem;
  }

  .mobile-bottom-sheet .pro-panel-actions [data-mobile-sheet-close] {
    display: inline-flex;
  }

  .mobile-bottom-sheet .pro-panel-actions .button {
    flex: 1 1 10rem;
  }

  .premium-research-grid {
    grid-template-columns: 1fr;
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-bottom-sheet {
      transition: none;
    }
  }

  body[data-page="map"] .map-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .footer,
  .source-item header {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
  }

  .header-actions {
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  .nav {
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a,
  .account-button,
  .theme-toggle {
    min-height: 2rem;
    padding: 0.32rem 0.48rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .account-button,
  .theme-toggle {
    flex: 0 0 auto;
  }

  .theme-toggle {
    width: 2rem;
    padding: 0;
  }

  .theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand span:last-child {
    display: none;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .auth-modal {
    width: calc(100vw - 24px);
    min-height: min(640px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
    border-radius: 24px;
    gap: 1.2rem;
    padding: 1.25rem;
  }

  .auth-modal h2 {
    margin-top: 1rem;
  }

  .auth-tabs button,
  .account-tabs button,
  .auth-form input[type="email"],
  .auth-form input[type="password"],
  .auth-primary,
  .auth-google {
    min-height: 50px;
  }

  main,
  .map-main {
    width: min(100% - 0.75rem, 100%);
  }

  .finder-shell,
  .page-hero,
  .pricing-section,
  .comparison-band,
  .content-grid,
  .field-map,
  .admin-shell {
    margin: 1rem 0;
  }

  .admin-shell {
    width: min(100% - 0.75rem, 100%);
  }

  .admin-console-header,
  .admin-user-card,
  .admin-route-row {
    display: grid;
  }

  .admin-user-actions {
    justify-content: stretch;
  }

  .admin-user-search {
    grid-template-columns: 1fr;
  }

  .admin-user-search .button,
  .admin-user-actions .button {
    width: 100%;
  }

  .finder-copy {
    padding: 1rem;
  }

  .search-panel,
  .map-toolbar {
    padding: 0.6rem;
  }

  .map-hero h1 {
    font-size: 1.65rem;
  }

  .map-hero .lede {
    font-size: 0.9rem;
  }

  .map-summary {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .map-summary::-webkit-scrollbar {
    display: none;
  }

  .map-summary article {
    flex: 0 0 8.6rem;
    padding: 0.5rem;
  }

  .map-summary strong {
    font-size: 0.92rem;
  }

  .map-layout {
    gap: 0.55rem;
  }

  .map-stage {
    padding: 0.35rem;
  }

  .listing-map {
    min-height: 58vh;
    border-radius: 6px;
  }

  body[data-page="map"] .map-stage,
  body[data-page="map"] .listing-map {
    height: auto;
    min-height: 0;
  }

  body[data-page="map"] .map-stage {
    flex: 1 1 auto;
    padding: 0;
    border-radius: 0;
  }

  body[data-page="map"] .listing-map {
    height: 100%;
    border-radius: 0;
  }

  .map-sidebar {
    padding: 0;
    gap: 0.55rem;
    border: 0;
    background: transparent;
  }

  .map-detail-card,
  .map-premium-panel,
  .map-results-panel,
  .saved-panel {
    border-radius: 6px;
  }

  .map-detail-backdrop {
    padding: 0.5rem;
  }

  .map-detail-modal {
    width: 100%;
    max-height: calc(100vh - 1rem);
    padding: 3rem 0.6rem 0.6rem;
  }

  .map-detail-close {
    width: 1.82rem;
    height: 1.82rem;
  }

  .detail-tabs button {
    padding: 0.5rem 0.55rem;
    font-size: 0.78rem;
  }

  .source-map-layout {
    display: block;
    height: 340px;
  }

  .source-google-map {
    height: 340px;
    min-height: 340px;
  }

  .source-google-map iframe {
    height: 340px;
    min-height: 340px;
  }

  .source-map-sidebar {
    width: min(250px, calc(100% - 3.5rem));
    height: 100%;
    overflow-y: auto;
  }

  .source-map-sidebar.collapsed {
    transform: translateX(calc(100% - 3.3rem));
  }

  .source-map-filter {
    min-height: 2.8rem;
    font-size: 0.82rem;
  }

  .source-map-filter-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .source-location-data div {
    grid-template-columns: 1fr;
  }

  .map-detail-card .listing-thumb.large {
    max-height: 13rem;
  }

  .property-facts,
  .listing-data,
  .listing-data.compact {
    grid-template-columns: 1fr;
  }

  .map-results-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .map-results-heading label {
    max-width: none;
  }

  .map-list-copy strong,
  .map-list-copy small {
    white-space: normal;
  }

  .map-list {
    grid-template-columns: 1fr;
  }

  .price-bound-row {
    grid-template-columns: 1fr;
  }

  .filter-modal {
    width: calc(100vw - 1rem);
    height: calc(100vh - 1rem);
    height: calc(100dvh - 1rem);
  }

  .price-modal footer {
    align-items: stretch;
  }

  .price-modal footer .button {
    width: 100%;
  }

  .listing-card-top,
  .listing-data,
  .listing-data.compact,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row-meta {
    justify-content: flex-start;
  }

  .listing-thumb {
    aspect-ratio: 16 / 9;
  }

  .listing-actions .button,
  .listing-actions .text-link {
    width: 100%;
  }

  body[data-page="pricing"] main {
    width: min(100% - 1rem, 100%);
  }

  body[data-page="pricing"] .pricing-hero {
    min-height: auto;
    margin: 0.95rem 0 1.35rem;
    padding: 0.6rem 0 0.2rem;
  }

  body[data-page="pricing"] .pricing-hero h1 {
    max-width: 24rem;
    margin-bottom: 0.75rem;
    font-size: 2rem;
    line-height: 1.02;
  }

  body[data-page="pricing"] .pricing-hero .lede {
    max-width: 25rem;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  body[data-page="pricing"] .pricing-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.9rem;
  }

  body[data-page="pricing"] .pricing-hero-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 2.7rem;
  }

  body[data-page="pricing"] .pricing-section {
    margin: 1.25rem 0 1.65rem;
    padding-top: 0;
  }

  body[data-page="pricing"] .section-heading {
    margin-bottom: 0.75rem;
  }

  body[data-page="pricing"] .section-heading h2 {
    margin-bottom: 0;
    font-size: 1.42rem;
    line-height: 1.12;
  }

  body[data-page="pricing"] .pricing-grid {
    gap: 0.75rem;
  }

  body[data-page="pricing"] .price-card {
    gap: 0.8rem;
    padding: 1rem;
  }

  body[data-page="pricing"] .price-card h3 {
    font-size: 1.1rem;
  }

  body[data-page="pricing"] .price-card p {
    margin-bottom: 0;
    font-size: 0.92rem;
  }

  body[data-page="pricing"] .price-card .price {
    font-size: 2.05rem;
  }

  body[data-page="pricing"] .price-card .price span {
    font-size: 0.82rem;
  }

  body[data-page="pricing"] .price-card-note {
    margin-top: -0.55rem;
    font-size: 0.84rem;
  }

  body[data-page="pricing"] .price-card ul {
    gap: 0.4rem;
    padding-left: 0;
    list-style: none;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  body[data-page="pricing"] .price-card li {
    position: relative;
    padding-left: 1.05rem;
  }

  body[data-page="pricing"] .price-card li::before {
    content: "";
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 999px;
    background: var(--green-dark);
  }

  body[data-page="pricing"] .price-card .button {
    width: 100%;
    min-height: 2.85rem;
  }

  body[data-page="pricing"] .comparison-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  body[data-page="pricing"] .comparison-table {
    min-width: 0;
    display: block;
  }

  body[data-page="pricing"] .comparison-table thead {
    display: none;
  }

  body[data-page="pricing"] .comparison-table tbody {
    display: grid;
    gap: 0.65rem;
  }

  body[data-page="pricing"] .comparison-table tr {
    display: grid;
    gap: 0.55rem;
    border: 1px solid var(--subtle);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 0.8rem;
  }

  body[data-page="pricing"] .comparison-table th,
  body[data-page="pricing"] .comparison-table td {
    display: block;
    border: 0;
    padding: 0;
  }

  body[data-page="pricing"] .comparison-table th:first-child {
    width: auto;
  }

  body[data-page="pricing"] .comparison-table tbody th {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  body[data-page="pricing"] .comparison-table tbody th span {
    margin-top: 0.2rem;
    font-size: 0.76rem;
  }

  body[data-page="pricing"] .comparison-table td {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
  }

  body[data-page="pricing"] .comparison-table td::before {
    color: var(--green-dark);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  body[data-page="pricing"] .comparison-table td:nth-child(2)::before {
    content: "Free";
  }

  body[data-page="pricing"] .comparison-table td:nth-child(3)::before {
    content: "Pro";
  }

  body[data-page="pricing"] .faq-list {
    gap: 0.55rem;
  }

  body[data-page="pricing"] .faq-list details {
    padding: 0.85rem;
  }

  body[data-page="pricing"] .faq-list summary {
    line-height: 1.3;
  }

  body[data-page="pricing"] .footer {
    margin-top: 1.6rem;
    align-items: start;
  }

  h1 {
    font-size: 2rem;
  }
}

@media (max-width: 360px) {
  body[data-page="map"] .map-mobile-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="map"] .listing-map .leaflet-top {
    top: 7.4rem;
  }

  body[data-page="map"] .mobile-bottom-sheet[data-sheet-state="peek"] {
    height: min(9.25rem, 38%);
  }
}

@media (max-width: 760px), (max-width: 980px) and (max-height: 520px) {
  .map-detail-backdrop {
    align-items: center;
    justify-items: center;
    overflow: hidden;
    padding: 0.5rem;
  }

  .map-detail-modal {
    width: min(25.5rem, calc(100vw - 1rem));
    height: min(42rem, calc(100vh - 4.25rem));
    height: min(42rem, calc(100dvh - 4.25rem));
    max-height: none;
    margin: 0;
    overscroll-behavior: contain;
    border: 1px solid var(--subtle);
    border-radius: 18px;
    padding: 0.6rem 0.75rem max(0.8rem, env(safe-area-inset-bottom));
  }

  .map-detail-modal::before {
    display: none;
    width: 2.65rem;
    height: 0.28rem;
    margin: 0.05rem auto 0.4rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 36%, transparent);
    content: "";
  }

  .map-detail-card {
    gap: 0.65rem;
    padding: 0;
  }

  .detail-tab-shell {
    gap: 0.65rem;
  }

  .detail-tabs {
    margin-inline: -0.1rem;
  }

  .detail-tabs button:not(.map-detail-close) {
    min-height: 2.25rem;
    padding: 0.42rem 0.55rem;
    font-size: 0.76rem;
  }

  .detail-tab-actions {
    display: flex;
  }

  .detail-tab-row .map-detail-close {
    width: 1.82rem;
    height: 1.82rem;
  }

  .map-detail-modal .listing-gallery {
    gap: 0.45rem;
  }

  .map-detail-modal .listing-thumb.large {
    max-height: 15rem;
    aspect-ratio: 16 / 10;
  }

  .map-detail-modal .source-map-panel,
  .map-detail-modal .premium-tab-splash {
    min-height: 100%;
  }

  .map-detail-modal .source-map-panel {
    gap: 0.55rem;
    padding: 0.2rem 0.35rem 0.55rem;
  }

  .map-detail-modal .source-map-layout {
    height: min(24rem, 58vh);
    height: min(24rem, 58dvh);
    min-height: 19rem;
    border: 1px solid var(--subtle);
    border-radius: 12px;
    overflow: hidden;
  }

  .map-detail-modal .source-google-map iframe {
    min-height: 19rem;
  }

  .map-detail-modal .source-google-map .gm-style-mtc,
  .map-detail-modal .source-google-map .gm-svpc,
  .map-detail-modal .source-google-map .gm-fullscreen-control {
    opacity: 0.7;
    transform: scale(0.68);
  }

  .map-detail-modal .source-google-map .gm-style-mtc button,
  .map-detail-modal .source-google-map .gm-style-mtc div {
    font-size: 0.62rem !important;
  }

  .map-detail-modal .map-button {
    gap: 0.25rem;
    min-height: 1.55rem;
    border-color: rgba(48, 48, 51, 0.12);
    padding: 0.25rem 0.45rem;
    font-size: 0.62rem;
    opacity: 0.75;
  }

  .map-detail-modal .show-route-button {
    top: 0.42rem;
    max-width: min(12.5rem, calc(100% - 1rem));
  }

  .map-detail-modal .map-button-icon {
    display: none;
  }

  .map-detail-modal .redo-button {
    left: 0.45rem;
    bottom: 0.45rem;
  }

  .map-detail-modal .map-button-text {
    overflow: hidden;
    max-width: 8.5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-detail-modal .source-map-sidebar,
  .map-detail-modal .nearby-info {
    width: min(14rem, calc(100% - 2.4rem));
    padding: 0.75rem 0.55rem 0.7rem;
    box-shadow: -8px 0 18px rgba(15, 23, 42, 0.14);
  }

  .map-detail-modal .nearby-info-title {
    gap: 0.4rem;
    padding-bottom: 0.55rem;
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .map-detail-modal .source-sidebar-toggle {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 7px;
  }

  .map-detail-modal .source-map-sidebar.collapsed {
    transform: translateX(calc(100% - 2.8rem));
  }

  .map-detail-modal .source-map-sidebar.collapsed .nearby-info-title {
    padding-bottom: 0;
  }

  .map-detail-modal .source-map-filter-list {
    gap: 0;
  }

  .map-detail-modal .nearby-list-item {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 0.32rem;
    min-height: 2.45rem;
  }

  .map-detail-modal .source-map-filter {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0.18rem 0;
  }

  .map-detail-modal .source-map-filter-check {
    width: 16px;
    height: 16px;
    border-width: 1.5px;
  }

  .map-detail-modal .source-map-filter-icon {
    width: 22px;
    height: 22px;
    border-width: 1.5px;
  }

  .map-detail-modal .source-map-filter-label {
    font-size: 0.72rem;
    line-height: 1.18;
  }

  .map-detail-modal .source-map-note {
    margin: 0;
    padding: 0 0.1rem;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .map-detail-modal .source-location-data {
    gap: 0.35rem;
    margin: 0;
  }

  .map-detail-modal .source-location-data div {
    gap: 0.15rem;
    padding: 0.5rem;
  }

  .map-detail-modal .source-location-data dt {
    font-size: 0.66rem;
  }

  .map-detail-modal .source-location-data dd {
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .map-detail-modal .source-help-modal {
    width: min(19rem, calc(100% - 1rem));
    max-height: calc(100% - 1rem);
    padding: 0.75rem;
    border-radius: 9px;
  }

  .map-detail-modal .modal-close-button {
    top: 0.42rem;
    right: 0.42rem;
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.92rem;
  }

  .map-detail-modal .modal-content__modal-title {
    margin: 0 1.75rem 0.55rem 0;
    padding: 0.45rem 0.5rem;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .map-detail-modal .modal-content__modal-text {
    gap: 0.55rem;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .map-detail-modal .source-help-illustration {
    grid-template-columns: 2.5rem 1fr 2.5rem;
    height: 4.55rem;
    padding: 0.45rem;
  }

  .map-detail-modal .source-help-home,
  .map-detail-modal .source-help-place {
    width: 1.75rem;
    height: 1.75rem;
  }

  .map-detail-modal .source-help-card {
    right: 0.55rem;
    top: 0.4rem;
    padding: 0.35rem 0.45rem;
    font-size: 0.64rem;
  }

  .map-detail-heading {
    gap: 0.45rem;
  }

  .map-detail-card h2 {
    -webkit-line-clamp: 2;
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .map-detail-heading .price {
    justify-self: start;
    font-size: 0.95rem;
  }

  .map-detail-modal .listing-summary {
    font-size: 0.88rem;
  }

  .map-detail-modal .property-facts,
  .map-detail-modal .listing-data,
  .map-detail-modal .listing-data.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-detail-modal .listing-actions {
    grid-template-columns: 1fr;
  }

  .map-detail-modal .listing-actions .button,
  .map-detail-modal .listing-actions .text-link {
    width: 100%;
  }

  .map-detail-modal .listing-actions [data-save-listing],
  .map-detail-modal .listing-actions [data-share-property] {
    display: none;
  }
}
