:root {
  color-scheme: light;
  --ink: #171a20;
  --muted: #5c5e62;
  --line: #d9d9d9;
  --soft-line: #e8e8e8;
  --surface: #ffffff;
  --surface-soft: #f4f4f4;
  --blue: #3e6ae1;
  --blue-dark: #3457b1;
  --yes: #176b58;
  --yes-soft: #e6f1ed;
  --no: #9d3f37;
  --no-soft: #f6e9e7;
  --unknown: #695a38;
  --unknown-soft: #f2eee4;
  --page-width: 1400px;
  --shadow: 0 16px 40px rgba(23, 26, 32, 0.14);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(62, 106, 225, 0.42);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(28px, calc((100vw - var(--page-width)) / 2));
  color: #fff;
}

.brand {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.header-actions,
.toolbar-actions,
.saved-button {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 6px;
}

.text-button,
.saved-button,
.icon-button,
.secondary-button,
.filter-button {
  border: 0;
  background: transparent;
}

.text-button {
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 650;
}

.site-header .text-button:hover,
.site-header .saved-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.saved-button {
  min-height: 38px;
  gap: 7px;
  padding: 0 12px;
  border-radius: 4px;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
}

.saved-button > span:first-child {
  font-size: 20px;
  line-height: 1;
}

.count-badge {
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
}

.search-band {
  position: relative;
  height: min(540px, calc(100svh - 72px));
  min-height: 480px;
  display: grid;
  color: #fff;
  background-image: url("assets/villa-enskede.png");
  background-position: center 54%;
  background-size: cover;
}

.search-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(11, 13, 16, 0.44);
}

.search-band-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 56px, 720px);
  margin: auto;
  padding: 88px 0 44px;
  text-align: center;
}

.search-intro {
  max-width: 720px;
  margin: 0 auto 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-intro h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.02;
  font-weight: 560;
}

.search-intro h1 span {
  font-weight: 760;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 0;
  width: min(100%, 620px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-field {
  min-width: 0;
}

.workplace-field,
.commute-time-field,
.commute-mode-field {
  height: 70px;
  min-width: 0;
  margin: 0;
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 4px;
  color: #fff;
  background: rgba(17, 19, 23, 0.52);
  backdrop-filter: blur(9px);
  text-align: left;
}

.workplace-field {
  grid-column: 1 / -1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(9px);
}

.workplace-field > span,
.commute-time-field > span,
.commute-mode-field legend {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 600;
}

.workplace-field > span {
  color: var(--muted);
}

.commute-time-field > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.commute-time-field strong {
  color: #fff;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 0;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  font-weight: 500;
}

.search-field input::placeholder {
  color: #74767a;
  opacity: 1;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 4px;
  font-weight: 650;
}

.primary-button {
  border: 1px solid var(--blue);
  color: #fff;
  background: var(--blue);
}

.primary-button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.search-form .primary-button {
  grid-column: auto;
  min-height: 58px;
  border: 0;
  border-radius: 0;
}

.commute-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 34px;
  padding: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.commute-mode-switch button {
  min-width: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
}

.commute-mode-switch button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 26, 32, 0.12);
}

.commute-time-field input {
  width: 100%;
  height: 26px;
  margin: 0;
  accent-color: #fff;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.secondary-button:hover {
  border-color: #a6a6a6;
  background: var(--surface-soft);
}

.quick-filters {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.quick-filters > span {
  align-self: center;
  margin-right: 2px;
  color: var(--muted);
  font-size: 11px;
}

.quick-filters button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.quick-filters button:hover,
.quick-filters button.is-active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.demo-note {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}

.workspace {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 44px 28px 90px;
}

.results {
  min-width: 0;
}

.results-toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.result-count {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}

.result-context {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.toolbar-actions {
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  height: 40px;
  min-width: 92px;
  padding: 0 13px;
  border-radius: 4px;
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 650;
}

.filter-button:hover {
  background: #e6e6e6;
}

.filter-button span {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-left: 5px;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
}

.view-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 40px;
  padding: 3px;
  border-radius: 4px;
  background: var(--surface-soft);
}

.view-switch button {
  min-width: 64px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
}

.view-switch button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 26, 32, 0.12);
}

.sort-control {
  min-width: 150px;
}

.sort-control span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sort-control select {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -10px 0 28px;
}

.active-filter {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.active-filter:hover {
  background: var(--surface-soft);
}

.active-filter span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.pagination button:disabled {
  color: var(--muted);
  border-color: var(--soft-line);
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-pages button.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  min-width: 24px;
  justify-content: center;
  color: var(--muted);
}

.listing-card {
  min-width: 0;
  background: var(--surface);
}

.listing-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: #e7e7e7;
}

.listing-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 300ms ease;
}

.listing-card:hover .listing-media img {
  transform: scale(1.015);
}

.listing-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 3px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(7px);
  font-size: 11px;
  font-weight: 700;
}

.favorite-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(23, 26, 32, 0.62);
  backdrop-filter: blur(7px);
  font-size: 23px;
  line-height: 1;
}

.favorite-button:hover,
.favorite-button.is-saved {
  color: var(--ink);
  background: #fff;
}

.favorite-button.is-saved {
  color: var(--blue);
}

.commute-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 3px;
  color: #fff;
  background: rgba(23, 26, 32, 0.78);
  backdrop-filter: blur(8px);
}

.commute-badge.is-nearby {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.commute-badge.is-unknown {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  font-size: 11px;
}

.commute-badge strong {
  font-size: 18px;
}

.commute-badge span {
  font-size: 10px;
  font-weight: 600;
}

.listing-body {
  padding: 18px 4px 0;
}

.commute-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 13px;
  font-size: 11px;
  font-weight: 650;
}

.commute-status span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yes);
}

.commute-status.is-nearby {
  color: var(--unknown);
}

.commute-status.is-nearby span {
  background: #b38328;
}

.listing-location {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.listing-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 600;
}

.listing-price {
  margin: 14px 0 8px;
  font-size: 17px;
  font-weight: 650;
}

.listing-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.listing-facts span:not(:last-child)::after {
  margin: 0 8px;
  color: #a5a5a5;
  content: "·";
}

.feature-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.feature-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

.feature-chip strong {
  font-weight: 750;
}

.status-yes {
  color: var(--yes);
  background: var(--yes-soft);
}

.status-no {
  color: var(--no);
  background: var(--no-soft);
}

.status-unknown {
  color: var(--unknown);
  background: var(--unknown-soft);
}

.evidence-panel {
  margin-top: 17px;
  border-top: 1px solid var(--soft-line);
}

.evidence-toggle {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
}

.evidence-toggle span:last-child {
  color: var(--muted);
  font-size: 19px;
  transition: transform 160ms ease;
}

.evidence-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.evidence-content {
  padding: 0 0 8px;
}

.evidence-item {
  padding: 14px 0;
  border-top: 1px solid var(--soft-line);
}

.evidence-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
}

.confidence {
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
}

.evidence-item blockquote {
  margin: 0;
  color: #44464a;
  font-size: 12px;
  line-height: 1.55;
}

.evidence-missing {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

.evidence-corrected {
  margin: 6px 0 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.evidence-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

.evidence-actions button {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
}

.evidence-actions button:hover {
  background: var(--surface-soft);
}

.listing-source {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 10px;
}

.listing-source a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.listing-source a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-view {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #e6e8ea;
}

.map-canvas {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background-color: #e9eaec;
  background-image:
    linear-gradient(31deg, transparent 45%, rgba(255, 255, 255, 0.95) 46%, rgba(255, 255, 255, 0.95) 49%, transparent 50%),
    linear-gradient(111deg, transparent 43%, rgba(199, 202, 205, 0.75) 44%, rgba(199, 202, 205, 0.75) 47%, transparent 48%),
    linear-gradient(rgba(150, 153, 157, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 153, 157, 0.1) 1px, transparent 1px);
  background-size: 260px 230px, 340px 290px, 42px 42px, 42px 42px;
}

.map-canvas::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: rgba(62, 106, 225, 0.05);
}

.map-pin {
  position: absolute;
  z-index: 1;
  min-width: 90px;
  min-height: 36px;
  padding: 0 10px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 18px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 5px 14px rgba(23, 26, 32, 0.2);
  font-size: 11px;
  font-weight: 700;
}

.map-pin:hover,
.map-pin.is-selected {
  z-index: 2;
  background: var(--blue);
}

.map-selection {
  padding: 18px;
  border-left: 1px solid var(--line);
  background: #fff;
}

.map-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  border-radius: 3px;
}

.map-selection h2 {
  margin: 17px 0 5px;
  font-size: 20px;
  font-weight: 600;
}

.map-selection p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.map-selection .map-commute {
  margin: 14px 0;
  padding: 12px 0;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  color: var(--ink);
}

.map-selection .feature-summary {
  margin: 15px 0 18px;
}

.map-selection > a {
  font-size: 12px;
  font-weight: 650;
  text-underline-offset: 3px;
}

.empty-state {
  min-height: 440px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 40px 20px;
  text-align: center;
  background: var(--surface-soft);
}

.empty-state > span {
  font-size: 48px;
}

.empty-state h2 {
  margin: 16px 0 7px;
  font-size: 25px;
  font-weight: 600;
}

.empty-state p {
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 13px;
}

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 80px rgba(23, 26, 32, 0.28);
}

dialog::backdrop {
  background: rgba(23, 26, 32, 0.48);
}

.filter-dialog {
  width: min(520px, 100vw);
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
}

.dialog-header,
.dialog-footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--soft-line);
}

.dialog-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.dialog-header .eyebrow {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
}

.icon-button:hover {
  background: var(--surface-soft);
}

.dialog-content {
  height: calc(100dvh - 140px);
  overflow: auto;
  padding: 26px 24px 112px;
}

.dialog-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 70px;
  border-top: 1px solid var(--soft-line);
  border-bottom: 0;
  background: #fff;
}

.dialog-footer .primary-button {
  min-width: 170px;
}

.filter-section {
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--soft-line);
}

.filter-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.filter-section-heading h3 {
  margin: 0;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.filter-toggle input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue);
}

.commute-filter-controls {
  transition: opacity 160ms ease;
}

.commute-filter-controls.is-disabled {
  opacity: 0.45;
}

.wide-input-label > span,
.control-label,
.commute-filter-time > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.wide-input-label input {
  width: 100%;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}

.commute-filter-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  margin-top: 15px;
}

.commute-filter-mode {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 38px;
  padding: 3px;
  border-radius: 4px;
  background: var(--surface-soft);
}

.commute-filter-mode button {
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
}

.commute-filter-mode button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 26, 32, 0.12);
}

.commute-filter-mode button.is-disabled {
  color: var(--muted);
  opacity: 0.55;
  cursor: not-allowed;
}

.commute-status-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.commute-filter-time > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.commute-filter-time strong {
  color: var(--ink);
}

.commute-filter-time input {
  width: 100%;
  height: 27px;
  margin: 0;
  accent-color: var(--blue);
}

.filter-section h2,
.filter-section h3 {
  margin: 0 0 15px;
  font-size: 14px;
  font-weight: 650;
}

.filter-section h2 {
  font-size: 17px;
}

.filter-note {
  margin: -6px 0 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

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

.input-label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.input-label select {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}

.check-list {
  display: flex;
  gap: 8px;
}

.check-label {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
}

.check-label:has(input:checked) {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.check-label input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--blue);
}

.feature-filter {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
}

.feature-filter:last-child {
  margin-bottom: 0;
}

.feature-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 650;
}

.feature-label small {
  color: var(--muted);
  font-weight: 450;
}

.tri-state {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3px;
  border-radius: 4px;
  background: var(--surface-soft);
}

.tri-state button {
  height: 34px;
  padding: 0 5px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}

.tri-state button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 26, 32, 0.12);
}

.reset-filters {
  width: 100%;
}

.saved-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100dvh - 40px));
  border-radius: 4px;
}

.saved-dialog-content {
  max-height: 620px;
  overflow: auto;
  padding: 6px 24px 24px;
}

.saved-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--soft-line);
}

.saved-item img {
  width: 116px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 3px;
}

.saved-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.saved-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.saved-item button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 22px;
}

.saved-empty {
  padding: 56px 20px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 16px;
  border-radius: 3px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 12px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .search-band {
    height: min(520px, calc(100svh - 64px));
    min-height: 470px;
  }

  .listing-grid {
    gap: 44px 20px;
  }

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

  .map-selection {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 58px;
    padding: 0 16px;
  }

  .brand {
    font-size: 16px;
  }

  .header-actions .text-button,
  .saved-button > span:nth-child(2) {
    display: none;
  }

  .saved-button {
    padding: 0 4px;
  }

  .search-band {
    height: min(500px, calc(100svh - 56px));
    min-height: 460px;
    background-position: 58% center;
  }

  .search-band-inner {
    width: min(100% - 32px, 720px);
    padding: 64px 0 20px;
  }

  .search-intro {
    margin-bottom: 20px;
  }

  .search-intro h1 {
    font-size: 41px;
  }

  .search-field input {
    height: 54px;
    padding: 0 14px;
    font-size: 14px;
  }

  .search-form .primary-button {
    min-height: 54px;
    padding: 0 12px;
  }

  .workplace-field,
  .commute-time-field,
  .commute-mode-field {
    height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .quick-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: calc(100% + 16px);
    margin-right: -16px;
    padding-right: 16px;
    margin: 0 -16px 18px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .demo-note {
    margin-top: 12px;
  }

  .quick-filters::-webkit-scrollbar {
    display: none;
  }

  .quick-filters button {
    flex: 0 0 auto;
  }

  .quick-filters > span {
    flex: 0 0 auto;
  }

  .workspace {
    padding: 30px 16px 64px;
  }

  .results-toolbar {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
  }

  .result-count {
    font-size: 21px;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    width: 100%;
  }

  .filter-button,
  .sort-control,
  .sort-control select,
  .view-switch {
    min-width: 0;
    width: 100%;
  }

  .listing-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .listing-title {
    font-size: 21px;
  }

  .listing-source {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px 4px;
  }

  .map-view,
  .map-canvas {
    min-height: 500px;
  }

  .map-selection {
    min-height: 0;
  }

  .dialog-header,
  .dialog-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .dialog-content {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 430px) {
  .search-intro h1 {
    font-size: 36px;
  }

  .workplace-field,
  .commute-time-field,
  .commute-mode-field {
    padding-right: 13px;
    padding-left: 13px;
  }

  .toolbar-actions {
    grid-template-columns: 1fr 1fr;
  }

  .sort-control {
    grid-column: 1 / -1;
  }

  .tri-state button {
    font-size: 10px;
  }

  .saved-item {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .saved-item img {
    width: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
