:root {
  color-scheme: light;
  --ink: #172b27;
  --muted: #485e56;
  --faint: #587168;
  --line: #dce7e0;
  --control-line: #718779;
  --surface: #fff;
  --soft: #f3f8f5;
  --accent: #17634d;
  --accent-hover: #104b3a;
  --accent-light: #e6f3ed;
  --success: #255d27;
  --success-light: #eaf5df;
  --map-bg: #e9f1ee;
  --header: 70px;
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; min-height: 100dvh; margin: 0; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid #378f74; outline-offset: 3px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 999; border-radius: 7px; padding: 10px 14px; background: var(--ink); color: white; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: var(--header); padding: 0 clamp(20px, 5.5vw, 84px); border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; font-size: 1.22rem; font-weight: 800; letter-spacing: -.062em; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); }
.brand-mark span { display: block; width: 3px; height: 14px; border-radius: 1px; background: #e1fae8; }
.brand-mark span:nth-child(2) { width: 7px; height: 3px; border-radius: 0; }
.top-nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 32px); }
.top-nav a { flex: none; padding: 8px 2px; font-size: .91rem; color: var(--muted); font-weight: 680; }
.top-nav a:hover, .top-nav [aria-current="page"] { color: var(--accent); }
.top-nav .nav-icon { display: none; }
#watch-link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.listing-report-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); }
.listing-report-dialog::backdrop { background: rgb(23 43 39 / 45%); }
.listing-report-dialog form, .listing-report-dialog label { display: grid; gap: 8px; }
.listing-report-dialog form { margin-top: 16px; gap: 16px; }
.listing-report-dialog select, .listing-report-dialog textarea { width: 100%; border: 1px solid var(--control-line); border-radius: 8px; padding: 8px 10px; font: inherit; color: inherit; background: var(--surface); }
.listing-report-dialog textarea { resize: vertical; }
.listing-report-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.watch-badge { display: inline-grid; place-items: center; min-width: 1.35em; padding: 2px 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 780; line-height: 1.2; font-variant-numeric: tabular-nums; }

.home { min-height: calc(100dvh - var(--header)); display: flex; flex-direction: column; }
.home-hero { isolation: isolate; position: relative; display: grid; flex: 1; min-height: min(600px, 70vh); place-items: center; overflow: clip; padding: clamp(66px, 10vh, 108px) 20px clamp(98px, 16vh, 172px); background: linear-gradient(180deg, #fff 22%, #fcfefc 57%, #f0f8f3 100%); }
.hero-geometry { position: absolute; z-index: -1; inset: 43% -17% -42%; border-radius: 50%; background: repeating-radial-gradient(ellipse at 50% 92%, transparent 0 33px, #79a99732 34px, transparent 35px 50px); mask-image: linear-gradient(180deg, transparent 0%, #000 30% 65%, transparent 92%); pointer-events: none; }
.hero-content { width: min(100%, 680px); text-align: center; }
.hero-content h1 { font-size: clamp(2.07rem, 5vw, 4.35rem); line-height: 1.19; letter-spacing: -.083em; font-weight: 820; word-break: keep-all; }
.hero-content h1 span { color: var(--accent); }
.home-subtitle { margin: 22px auto 36px; font-size: clamp(.94rem, 1.85vw, 1.12rem); line-height: 1.7; color: var(--muted); word-break: keep-all; }
.search-form { display: flex; align-items: center; gap: 12px; width: 100%; padding: 5px 5px 5px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.search-form:focus-within { border-color: #69a58b; box-shadow: 0 0 0 3px #286a4d19; }
.home-search { min-height: 66px; margin-inline: auto; padding-left: 20px; border-radius: 17px; box-shadow: 0 9px 29px #204e3513, 0 2px 6px #204e350a; }
.search-form input { min-width: 0; flex: 1; height: 44px; padding: 0; border: 0; background: transparent; appearance: none; }
.search-form input:focus-visible { outline: none; }
.search-form input::placeholder { color: var(--faint); opacity: 1; }
.search-icon { position: relative; display: inline-block; flex: 0 0 16px; width: 16px; height: 16px; margin-right: 3px; border: 2px solid currentColor; border-radius: 50%; color: var(--accent); }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; border-radius: 1px; background: currentColor; top: 11px; left: 10px; transform: rotate(45deg); transform-origin: 0 50%; }
.primary-button { min-height: 44px; padding: 0 19px; border: 1px solid transparent; border-radius: 10px; background: var(--accent); color: #fff; font-size: .92rem; font-weight: 700; white-space: nowrap; }
.primary-button:hover { background: var(--accent-hover); }
.home-search .primary-button { min-height: 54px; padding-inline: clamp(16px, 4vw, 30px); border-radius: 12px; }
.home-examples { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-top: 19px; }
.home-examples:empty { margin-top: 0; }
.example-button { display: inline-flex; align-items: center; min-height: 40px; max-width: 100%; padding: 5px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: .88rem; line-height: 1.2; font-weight: 650; }
.example-button:hover { border-color: #a6ccba; background: var(--accent-light); color: var(--accent); }

.workspace { display: grid; grid-template-columns: minmax(325px, 425px) minmax(0, 1fr); height: calc(100dvh - var(--header)); min-height: 440px; }
.sidebar { position: relative; z-index: 2; min-width: 0; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--surface); }
.sidebar-header { flex: none; padding: 18px 18px 0; border-bottom: 1px solid var(--line); }
.workspace-search { background: var(--soft); }
.workspace-search input { font-size: .94rem; }
.dataset-tabs { display: flex; gap: 22px; margin-top: 8px; }
.dataset-tabs a { position: relative; display: grid; min-height: 48px; align-items: center; color: var(--muted); font-size: .94rem; font-weight: 680; }
.dataset-tabs a[aria-current="page"] { color: var(--accent); }
.dataset-tabs a[aria-current="page"]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.list-view, .detail-view { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.results-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 19px 18px 12px; }
.results-top h2 { text-wrap: pretty; overflow-wrap: anywhere; font-size: 1.22rem; letter-spacing: -.055em; line-height: 1.36; }
.notes { margin-top: 3px; color: var(--faint); font-size: .84rem; }
.list-sources { margin: 0 18px 9px; color: var(--faint); font-size: .8rem; }
.list-sources summary { width: fit-content; padding-block: 5px; cursor: pointer; font-weight: 650; }
.list-sources ul { padding: 2px 0 5px 18px; }
.listing-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 10px; margin: 0 18px 13px; }
.listing-area-primary { flex: 1 1 126px; max-width: 200px; }
.opportunity-filter { white-space: nowrap; }
.opportunity-filter[aria-pressed="true"], .listing-follow button[aria-pressed="true"] { border-color: #69a58b; color: var(--accent); background: var(--accent-light); }
.listing-advanced { min-width: 0; }
.listing-advanced[open] { flex-basis: 100%; }
.listing-advanced summary { width: fit-content; padding: 10px 4px; color: var(--accent); cursor: pointer; font-size: .85rem; font-weight: 700; }
.listing-advanced-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; padding: 10px; border-radius: 9px; background: var(--soft); }
.listing-property-filters { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.listing-feature-filters { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 2px 12px; min-width: 0; margin: 0; padding: 0 0 4px; border: 0; }
.listing-feature-filters legend { color: var(--muted); font-size: .84rem; }
.listing-feature-filters .filter-checkbox { display: inline-flex; min-height: 36px; align-items: center; gap: 5px; }
.listing-filters > .text-button { margin-left: auto; }
.listing-filters label { display: grid; min-width: 0; gap: 3px; font-size: .84rem; color: var(--muted); }
.listing-filters input[type="number"], .listing-filters select { width: 100%; min-width: 0; min-height: 42px; padding: 4px 7px; border: 1px solid var(--control-line); border-radius: 7px; color: var(--ink); background: var(--surface); font-size: .86rem; }
.listing-filters select { appearance: none; padding-right: 22px; background-image: linear-gradient(45deg, transparent 50%, #5a7194 50%), linear-gradient(135deg, #5a7194 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.listing-sort, .listing-filter-actions { grid-column: 1 / -1; }
.listing-filter-actions { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.listing-filter-actions .filter-checkbox { display: inline-flex; min-height: 40px; align-items: center; gap: 6px; }
.filter-checkbox input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.search-results { list-style: none; padding: 0 9px; }
.search-results > li { border-bottom: 1px solid var(--line); }
.result-card { display: block; width: 100%; min-height: 108px; padding: 13px 10px; border: 0; border-radius: 8px; background: transparent; text-align: start; }
.result-card:hover { background: var(--soft); }
.apartment-choice { min-height: 44px; border: 1px solid #8fbba7; border-radius: 8px; background: var(--accent-light); color: var(--accent); font-weight: 750; text-align: start; }
.apartment-choice:hover { border-color: var(--accent); background: #d8eee2; }
.search-results > li:has(.apartment-choice) { margin-bottom: 7px; border-bottom: 0; }
.result-card-name { display: block; overflow-wrap: anywhere; font-size: 1rem; font-weight: 770; letter-spacing: -.034em; }
.result-card-address { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; word-break: keep-all; overflow-wrap: anywhere; }
.result-card-data { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 22px; margin-top: 7px; color: var(--muted); font-size: .87rem; }
.result-card-data strong { color: var(--ink); font-weight: 770; }
.tag { display: inline-block; width: fit-content; padding: 3px 6px; border-radius: 5px; background: var(--success-light); color: var(--success); font-size: .76rem; font-weight: 700; }
.occupancy-tag { display: inline-block; color: var(--muted); font-size: .8rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 17px 10px 22px; color: var(--muted); font-size: .85rem; }
.outline-button, .text-button { min-height: 40px; padding: 4px 10px; border-radius: 8px; font-size: .87rem; font-weight: 680; }
.outline-button { border: 1px solid var(--line); background: var(--surface); }
.text-button { border: 0; color: var(--accent); background: transparent; }
.outline-button:not(:disabled):hover, .text-button:not(:disabled):hover { background: var(--accent-light); }
.feedback { display: grid; justify-items: start; gap: 9px; margin: 15px 18px; padding: 20px 14px; border-radius: 10px; background: var(--soft); color: var(--muted); word-break: keep-all; }
.feedback strong { color: var(--ink); }

.detail-view { padding: 9px 18px 22px; }
.detail-back { margin: 0 0 4px -9px; }
.detail-view h2 { overflow-wrap: anywhere; font-size: 1.53rem; letter-spacing: -.05em; line-height: 1.28; }
.detail-view h3 { font-size: 1.03rem; line-height: 1.35; letter-spacing: -.035em; }
.detail-address { margin-top: 4px; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.detail-tabs { display: flex; gap: 12px; margin-top: 14px; border-bottom: 1px solid var(--line); }
.detail-tabs button { min-height: 44px; padding: 6px 10px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: .96rem; font-weight: 730; }
.detail-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.detail-tab-panel { min-width: 0; }
.detail-section { margin-top: 22px; }
.detail-section-title { display: flex; align-items: center; justify-content: space-between; gap: 5px 8px; flex-wrap: wrap; margin-bottom: 8px; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 13px; border-radius: 10px; background: var(--soft); }
.metrics dt { color: var(--muted); font-size: .84rem; }
.metrics dd { font-size: .95rem; font-weight: 730; overflow-wrap: anywhere; }
.apartment-area-filter { max-width: 200px; margin-block: 4px 10px; }
.price-review-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.price-review-field { display: grid; align-content: start; min-width: 0; gap: 4px; color: var(--muted); font-size: .84rem; }
.price-review-field input, .price-review-field select, .share-link { width: 100%; min-height: 44px; min-width: 0; padding: 5px 7px; border: 1px solid var(--control-line); border-radius: 7px; color: var(--ink); background: var(--surface); font-size: .89rem; }
.price-review-field select { appearance: none; padding-right: 22px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; text-overflow: ellipsis; }
.price-review-reference { grid-column: 1 / -1; display: grid; gap: 2px; padding: 9px 0; border-block: 1px solid var(--line); }
.price-review-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; grid-column: 1 / -1; }
.price-review-actions .primary-button { padding-inline: 13px; }
.price-review-status { grid-column: 1 / -1; }
.price-review-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.price-evidence .metrics { margin-top: 7px; padding: 7px 0; background: transparent; }
.price-delta { margin-top: 4px; color: var(--ink); font-size: 1rem; font-weight: 760; overflow-wrap: anywhere; }
.price-delta.below { color: var(--accent); }
.comparison-shortage { margin: 7px 0; color: var(--ink); font-size: .92rem; }
.price-band { margin-block: 9px; }
.price-dot-plot { position: relative; height: 51px; overflow: clip; }
.price-dot-plot::before { content: ""; position: absolute; inset: 26px 0 auto; height: 1px; background: #aabcb3; }
.price-dot { position: absolute; left: var(--x); width: 7px; height: 7px; top: calc(17px + 8px * var(--lane)); transform: translate(-50%, -50%); border-radius: 50%; background: #718981; }
.price-dot-median, .price-dot-offer { width: 10px; height: 10px; transform: translate(-50%, -50%) rotate(45deg); top: 10px; border-radius: 1px; background: var(--ink); }
.price-dot-offer { transform: translate(-50%, -50%); top: 42px; background: #25825f; }
.price-dot-scale { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: .78rem; }
.price-dot-legend { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 3px; padding-top: 7px; color: var(--muted); font-size: .78rem; }
.price-dot-legend span { display: inline-flex; gap: 4px; align-items: center; }
.price-dot-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #718981; }
.price-dot-legend .price-legend-median::before { transform: rotate(45deg); border-radius: 1px; background: var(--ink); }
.price-dot-legend .price-legend-offer::before { border-radius: 1px; background: #25825f; }
.transaction-table { width: 100%; border-collapse: collapse; font-size: .83rem; font-variant-numeric: tabular-nums; }
.transaction-table th, .transaction-table td { padding: 8px 3px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.transaction-table th { color: var(--faint); font-weight: 650; }
.transaction-table td:last-child, .transaction-table th:last-child { text-align: right; }
.transaction-table td:last-child { font-weight: 720; }
.trade-types { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.trade-type { min-height: 34px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: .82rem; font-weight: 660; white-space: nowrap; }
.trade-type:hover { border-color: var(--accent); }
.trade-type[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.trade-exact-field { max-width: 205px; }
.trade-section { margin-top: 15px; }
.trade-status { margin-block: 8px; }
.trade-results { min-width: 0; }
.trade-scroll { max-width: 100%; overflow-x: auto; }
.trade-scroll .transaction-table { white-space: nowrap; }
.trade-extra { display: block; color: var(--muted); font-size: .75rem; }
.trade-pages { justify-content: start; padding-inline: 0; }
.trade-actions { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-block: 12px 7px; }
.trade-actions button { min-height: 44px; }
.trade-chart { margin-block: 11px 14px; color: var(--faint); font-size: .84rem; }
.trade-figure { min-width: 0; margin: 0; padding: 10px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.trade-figure figcaption { margin-bottom: 11px; color: var(--ink); font-weight: 730; }
.trade-chart-canvas { display: grid; grid-template: 118px auto / max-content minmax(0, 1fr); gap: 4px 8px; padding-inline-end: 5px; font-size: .7rem; font-variant-numeric: tabular-nums; }
.trade-chart-axis { display: flex; flex-direction: column; justify-content: space-between; text-align: end; }
.trade-chart-axis > :only-child { margin-block: auto; }
.trade-chart-plot { position: relative; margin-block: 6px; border-block: 1px solid #91a99e; border-inline-start: 1px solid #91a99e; background: linear-gradient(#91a99e59, #91a99e59) center / 100% 1px no-repeat; }
.trade-chart-point { position: absolute; width: 7px; height: 7px; border: 1px solid var(--surface); border-radius: 50%; background: var(--accent); transform: translate(-50%, 50%); }
.trade-chart-point:hover { z-index: 1; outline: 2px solid var(--accent); }
.trade-chart-dates { grid-column: 2; display: flex; justify-content: space-between; gap: 4px; white-space: nowrap; }
.trade-chart-dates > :only-child { margin-inline: auto; }
.detail-card-list { padding: 0; list-style: none; }
.detail-card-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-card-list strong { overflow-wrap: anywhere; font-size: .92rem; }
.detail-card-list .text-button { min-height: 0; padding: 3px 0; border-radius: 4px; text-align: start; }
.call-link, .listing-link { display: inline-flex; align-items: center; min-height: 40px; padding: 5px 9px; border-radius: 7px; color: var(--accent); background: var(--accent-light); font-weight: 650; font-size: .89rem; }
.call-link:hover, .listing-link:hover { background: #d7eee1; }
.listing-link { margin-top: 6px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.benchmark-records { margin-top: 7px; }
.benchmark-records summary { width: fit-content; color: var(--accent); font-size: .87rem; font-weight: 700; cursor: pointer; }
.result-card-meta { width: 100%; color: var(--muted); font-size: .82rem; }
.sale-price-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; margin-bottom: 6px; }
.sale-price { font-size: 1.48rem; font-weight: 780; letter-spacing: -.04em; }
.price-policy-tag { display: inline-flex; margin-inline-end: 3px; padding: 2px 6px; border-radius: 5px; background: var(--soft); color: var(--accent); font-size: .78rem; font-weight: 750; }
.listing-price-policy { margin-bottom: 4px; color: var(--accent); font-size: .92rem; font-weight: 730; word-break: keep-all; }
.listing-follow { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; margin-top: 11px; }
.listing-follow [role="status"] { flex-basis: 100%; }
.sale-status { padding: 3px 7px; border-radius: 5px; background: var(--soft); color: var(--muted); font-size: .84rem; font-weight: 680; }
.sale-inactive { margin-inline: 0; }
.sale-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-block: 14px 6px; }
.sale-footer a { display: inline-flex; align-items: center; }
.sale-footer > p { flex-basis: 100%; }
.sale-footer > p:empty { display: none; }
.price-history { list-style: none; padding: 0; }
.price-history li { display: flex; justify-content: space-between; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }

.watch-page { width: min(100%, 1060px); margin-inline: auto; padding: clamp(24px, 6vw, 65px) clamp(14px, 4vw, 42px) 45px; }
.watch-header { display: grid; gap: 6px; margin-bottom: 25px; }
.watch-header h1 { font-size: clamp(1.65rem, 4vw, 2.48rem); letter-spacing: -.055em; line-height: 1.25; }
.watch-header p { color: var(--muted); word-break: keep-all; }
.watch-sign-in { width: fit-content; color: var(--accent); font-weight: 730; }
.watch-header .watch-sign-in { display: inline-flex; align-items: center; }
.notes .watch-sign-in { text-decoration: underline; text-underline-offset: 3px; }
.watch-columns { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.watch-section { min-width: 0; padding: clamp(12px, 2.1vw, 22px); border: 1px solid var(--line); border-radius: 14px; }
.watch-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 12px; }
.watch-section h2 { font-size: 1.17rem; letter-spacing: -.04em; }
.watch-find, .watch-saved-link { display: inline-flex; align-items: center; }
.watch-list { display: grid; gap: 7px; list-style: none; padding: 0; }
.watch-card { display: grid; min-width: 0; gap: 4px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.watch-card.unread, .watch-empty, .watch-message { background: var(--soft); }
.watch-card.unread { border-left: 3px solid var(--accent); padding-left: 9px; }
.watch-card-top, .watch-card-foot, .watch-prices { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: center; justify-content: space-between; }
.watch-card-foot > .notes { flex: 1; }
.watch-kind { font-size: .85rem; font-weight: 760; }
.watch-read-state { padding: 1px 5px; border-radius: 4px; color: var(--muted); background: var(--soft); font-size: .77rem; font-weight: 650; }
.watch-card.unread .watch-read-state { color: var(--accent); background: var(--accent-light); }
.watch-item-link, .watch-item-title { width: fit-content; color: var(--ink); font-weight: 780; overflow-wrap: anywhere; }
.watch-item-link:hover { color: var(--accent); text-decoration: underline; }
.watch-prices { justify-content: flex-start; }
.watch-prices .notes { margin: 0; }
.watch-condition .text-button { margin-left: auto; }
.watch-empty, .watch-message { padding: 11px; border-radius: 8px; color: var(--muted); font-size: .9rem; word-break: keep-all; }
.watch-message, #watch-retry { margin-bottom: 9px; }
.watch-push-settings { margin: 0 0 18px; }
.watch-push-settings > :is(p, button) { margin-top: 8px; }
.watch-save { margin-top: 13px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; }
.watch-save summary { width: fit-content; min-height: 28px; color: var(--accent); font-size: .94rem; font-weight: 740; cursor: pointer; }
.watch-save-description { margin-top: 5px; word-break: keep-all; }
.watch-save-form .price-review-field:has([name="occupancy"]) { grid-column: 1 / -1; }
#watch-region-host { margin-bottom: 11px; }
#watch-region-host .watch-save { margin-top: 7px; }
.watch-region-field, .watch-region-extras { grid-column: 1 / -1; }
.watch-trades-follow { flex-basis: 100%; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.watch-trades-follow button[aria-pressed="true"] { background: var(--accent-light); color: var(--accent); border-color: #69a58b; }
.watch-trades-follow .watch-kind { color: var(--muted); font-size: .8rem; }
.watch-trades-follow .notes { margin-top: 5px; }

.map-pane { isolation: isolate; position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--map-bg); }
.map-canvas { width: 100%; height: 100%; background: var(--map-bg); }
.map-top { position: absolute; z-index: 1000; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; top: 14px; right: 57px; left: 12px; pointer-events: none; }
.map-button { pointer-events: auto; display: inline-flex; gap: 7px; align-items: center; min-height: 43px; padding: 5px 11px; border: 1px solid #dbe5f2; border-radius: 9px; color: #294069; background: var(--surface); box-shadow: 0 2px 7px #15355f19; font-size: .86rem; font-weight: 700; }
.map-button:hover { background: var(--soft); }
.map-button .search-icon { width: 13px; height: 13px; margin-right: 3px; flex-basis: 13px; }
.map-button .search-icon::after { width: 5px; left: 8px; top: 8px; }
.map-caption, .map-warning { position: absolute; z-index: 1000; left: 10px; bottom: 24px; max-width: min(360px, calc(100% - 20px)); padding: 5px 8px; border-radius: 6px; background: #fffffff5; color: #304c71; font-size: .78rem; box-shadow: 0 2px 7px #15355f19; }
.map-warning { top: 67px; left: 12px; bottom: auto; font-size: .85rem; }
.map-marker { --marker-fill: var(--accent); display: grid; place-items: center; width: 24px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: transparent; }
.map-marker.offices { --marker-fill: #365879; }
.map-marker.listings { --marker-fill: #866528; }
.map-marker.selected { --marker-fill: #122e26; width: 30px; height: 38px; }
.map-marker svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 2px #162f6859); pointer-events: none; }
.map-marker svg path { fill: var(--marker-fill); stroke: #fff; stroke-width: 1.6; }
.map-marker svg circle { fill: #fff; }
.map-marker:hover svg { filter: drop-shadow(0 1px 3px #122e26a0); }
.leaflet-container { font-family: inherit; }
.mobile-mode { display: none; }

@media (max-width: 740px) {
  :root { --header: 59px; }
  .topbar { gap: 13px; padding-inline: 13px; }
  .brand { gap: 6px; font-size: 1.04rem; }
  .brand-mark { width: 29px; height: 29px; }
  .top-nav { gap: 8px; }
  .top-nav a { font-size: .82rem; }
  .home-hero { min-height: 438px; padding-inline: 15px; }
  .home-subtitle { margin: 17px auto 25px; }
  .search-form { gap: 9px; padding-left: 12px; }
  .home-search .primary-button { min-height: 48px; }
  .home-search { min-height: 60px; }
  .workspace { position: relative; display: block; min-height: 360px; }
  .sidebar, .map-pane { height: 100%; border: 0; }
  .workspace[data-mode="map"] .sidebar, .workspace:not([data-mode="map"]) .map-pane { display: none; }
  .map-top { right: 49px; }
  .map-fit { display: none; }
  .results-top { padding-top: 16px; }
  .list-view, .detail-view { padding-bottom: 72px; scrollbar-gutter: auto; }
  .mobile-mode { position: absolute; z-index: 1100; bottom: max(10px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); box-shadow: 0 4px 18px #243a6d26; }
  .mobile-mode button { min-width: 65px; min-height: 44px; padding: 4px 9px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font-size: .87rem; font-weight: 700; }
  .mobile-mode [aria-pressed="true"] { background: var(--accent); color: white; }
  .watch-columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 440px) {
  :root { --header: 87px; }
  .topbar { display: grid; grid-template-rows: 38px 1fr; justify-content: stretch; padding-inline: 13px; gap: 0; }
  .brand { font-size: .94rem; }
  .brand-mark { width: 25px; height: 25px; }
  .top-nav { justify-content: space-between; gap: 8px; align-self: stretch; }
  .top-nav a { padding-inline: 2px; font-size: .84rem; }
}

:root[data-layout="mobile"] {
  --mobile-width: 35rem;
  --mobile-footer: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  --mobile-switch: 3.5rem;
  --header: calc(3.5rem + env(safe-area-inset-top, 0px));
  background: #edf4f0;
  scroll-padding-top: var(--mobile-switch);
  scroll-padding-bottom: var(--mobile-footer);
}

:root[data-layout="mobile"] body {
  max-width: var(--mobile-width);
  margin-inline: auto;
  padding-bottom: var(--mobile-footer);
  background: var(--surface);
  box-shadow: 0 0 45px #172b2710;
}

:root[data-layout="mobile"] .topbar {
  display: flex;
  padding: env(safe-area-inset-top, 0px) 18px 0;
}

:root[data-layout="mobile"] .brand { min-height: 44px; gap: 8px; font-size: 1.16rem; }
:root[data-layout="mobile"] .brand-mark { width: 32px; height: 32px; }

:root[data-layout="mobile"] .top-nav {
  position: fixed;
  z-index: 1200;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  min-height: var(--mobile-footer);
  max-width: var(--mobile-width);
  margin-inline: auto;
  padding: 4px max(6px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -5px 18px #172b270c;
}

:root[data-layout="mobile"] .top-nav > a,
:root[data-layout="mobile"] #watch-link {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  padding: 3px 0 4px;
  border-radius: 11px;
  font-size: clamp(.62rem, 2.8vw, .76rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  white-space: nowrap;
}

:root[data-layout="mobile"] .top-nav a[aria-current="page"] { background: var(--accent-light); font-weight: 800; }
:root[data-layout="mobile"] .top-nav a:focus-visible { outline-offset: -1px; }
:root[data-layout="mobile"] .nav-icon {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root[data-layout="mobile"] .watch-badge { position: absolute; top: 5px; left: calc(50% + 5px); }

:root[data-layout="mobile"] .home { min-height: 0; padding: 16px; }
:root[data-layout="mobile"] .home-hero {
  display: block;
  min-height: 0;
  padding: 32px 18px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(155deg, #fff 5%, #edf7f0 100%);
}

:root[data-layout="mobile"] .hero-content { text-align: start; }
:root[data-layout="mobile"] .hero-content h1 { font-size: clamp(1.95rem, 7.6vw, 2.7rem); }
:root[data-layout="mobile"] .hero-geometry { inset: 38% -35% -50% 15%; }
:root[data-layout="mobile"] .home-subtitle { margin: 13px 0 22px; font-size: .95rem; }
:root[data-layout="mobile"] .search-form { gap: 8px; }
:root[data-layout="mobile"] .home-search { min-height: 56px; padding-left: 12px; border-radius: 13px; }
:root[data-layout="mobile"] .home-search .primary-button { min-height: 44px; padding-inline: 14px; border-radius: 8px; }
:root[data-layout="mobile"] .home-examples { justify-content: start; margin-top: 14px; }
:root[data-layout="mobile"] .home-examples:empty { margin-top: 0; }
:root[data-layout="mobile"] .example-button { min-height: 44px; padding-inline: 11px; }

:root[data-layout="mobile"] .workspace { display: block; height: auto; min-height: 0; }
:root[data-layout="mobile"] .sidebar { display: block; height: auto; border-right: 0; }
:root[data-layout="mobile"] .sidebar-header { padding: 12px 16px 0; }
:root[data-layout="mobile"] .dataset-tabs { justify-content: space-between; gap: 12px; }
:root[data-layout="mobile"] .dataset-tabs a { min-height: 44px; }
:root[data-layout="mobile"] .workspace-search input { font-size: 1rem; }
:root[data-layout="mobile"] .workspace[data-mode="map"] .sidebar,
:root[data-layout="mobile"] .workspace:not([data-mode="map"]) .map-pane { display: none; }
:root[data-layout="mobile"] .workspace[data-mode="map"] .map-pane {
  height: max(240px, calc(100dvh - var(--header) - var(--mobile-footer) - var(--mobile-switch)));
}
:root[data-layout="mobile"] .map-fit { display: inline-flex; }
:root[data-layout="mobile"] :is(.list-view, .detail-view) {
  padding-bottom: 24px;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
}

:root[data-layout="mobile"] .mobile-mode {
  position: sticky;
  z-index: 4;
  inset: 0 auto auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  height: var(--mobile-switch);
  padding: 5px 16px 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  transform: none;
}

:root[data-layout="mobile"] .mobile-mode button {
  min-width: 0;
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 730;
}
:root[data-layout="mobile"] .mobile-mode [aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

:root[data-layout="mobile"] .watch-page { padding: 22px 16px 24px; }
:root[data-layout="mobile"] .watch-header { margin-bottom: 18px; }
:root[data-layout="mobile"] .watch-columns { grid-template-columns: minmax(0, 1fr); }

.office-application-form {
  display: grid;
  gap: .8rem;
  margin: .75rem 0;
}

.office-application-form[hidden] { display: none; }
.office-application-form label:not(.filter-checkbox) { display: grid; gap: .25rem; }
.office-application-form input:not([type="checkbox"]) {
  inline-size: 100%;
  min-block-size: 2.65rem;
  padding-inline: .6rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
}
.office-application-form button { justify-self: start; }
