:root {
  --navy: #142e43;
  --ink: #172f40;
  --muted: #526777;
  --blue: #006d68;
  --accent-soft: #e6f3ef;
  --border: #d7e0e0;
  --bg: #f3f5f4;
  --line: #bac9ca;
  --radius: 13px;
  --page-width: 1496px;
  --gutter: clamp(16px, 3.2vw, 54px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
button, input, select, summary { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: default; }
button, a, input, select, summary { touch-action: manipulation; }
a { color: var(--blue); text-underline-offset: .2em; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #168b97;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .65rem 1rem; border-radius: 6px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px max(var(--gutter), calc((100% - var(--page-width)) / 2 + var(--gutter)));
  color: white;
  background: var(--navy);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-size: 15px; font-weight: 650; letter-spacing: .035em; }
.brand-mark, .app-icon { display: grid; place-items: center; border-radius: 7px; font: 750 21px/1 "Segoe UI", sans-serif; letter-spacing: -.09em; }
.brand-mark { width: 38px; height: 38px; color: var(--navy); background: #edf7f1; border-bottom: 3px solid #78bbab; }
.brand small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.35; letter-spacing: .1em; font-weight: 500; color: #c6d6dc; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-actions form { margin: 0; }
.quiet { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid #668092; border-radius: 6px; background: transparent; color: #f5f8fb; font-size: 12px; white-space: nowrap; }
.quiet svg { width: 16px; height: 16px; }
.quiet:hover { background: #29485d; border-color: #a2bdc8; }
main { max-width: var(--page-width); margin: auto; padding: 27px var(--gutter) 50px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
h1 { margin: 0; font-size: clamp(28px, 3.1vw, 43px); line-height: 1.18; letter-spacing: .035em; font-weight: 750; }
.updated { display: grid; grid-template-columns: max-content auto; justify-items: end; align-items: center; gap: 1px 9px; color: var(--muted); font-size: 11px; }
.updated strong { color: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.text-button { padding: 4px 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 650; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.updated .text-button { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 2px; }
.updated svg { width: 13px; height: 13px; }
.view-switch {
  position: sticky;
  top: max(6px, env(safe-area-inset-top));
  z-index: 3;
  display: grid;
  grid-template-columns: auto repeat(2, minmax(146px, 1fr));
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid #bbcfc9;
  border-radius: 10px;
  background: #e8efeb;
}
#view-switch-label { margin: 0 8px; font-size: 13px; font-weight: 650; color: #37554e; }
.view-switch button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 0; min-height: 44px; padding: 7px 15px;
  border: 1px solid #86a99f; border-radius: 6px;
  background: white; color: #155d53; font-size: 15px; line-height: 1.3; font-weight: 650;
}
.view-switch svg { flex: none; width: 19px; height: 19px; }
.view-switch button[aria-pressed="false"]:hover { background: #f1f8f4; border-color: #377d6f; }
.view-switch button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: white; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.summary > * { position: relative; padding: 15px clamp(11px, 1.5vw, 24px) 14px; background: white; border: 1px solid var(--border); border-radius: var(--radius); text-align: left; }
.summary > :first-child { color: white; background: var(--navy); border-color: var(--navy); }
.stat-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; line-height: 1.45; color: var(--muted); }
.stat-label svg { width: 17px; height: 17px; color: var(--blue); flex-shrink: 0; }
.summary > :first-child .stat-label { color: #dfebe9; }
.summary > :first-child svg { color: #96d7c4; }
.summary .stat-note { font-size: 10px; font-weight: 450; margin-left: -6px; }
.summary strong { display: inline-block; margin-top: 6px; font-size: clamp(27px, 2.55vw, 41px); font-weight: 650; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.summary small { margin-left: 6px; font-size: 12px; opacity: .79; }
#warning-stat { background: #fffaf0; border-color: #dfd7c3; color: #75521b; }
#warning-stat .stat-label, #warning-stat svg { color: #77531c; }
#warning-stat::after { content: ''; position: absolute; right: 16px; top: 50%; width: 6px; height: 6px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
#warning-stat:hover { background: #fff3d9; border-color: #b49863; }
.scope-note { display: flex; align-items: baseline; gap: 7px; margin: 12px 0 23px; color: var(--muted); font-size: 12px; }
.scope-note p { margin: 0; }
.notice-icon { display: inline-grid; place-items: center; align-self: flex-start; margin-top: 2px; width: 14px; height: 14px; flex-shrink: 0; border: 1px solid #748988; border-radius: 50%; font: 700 10px/1 Georgia, serif; }
.workspace { display: grid; grid-template-columns: clamp(220px, 19vw, 270px) minmax(0, 1fr); gap: clamp(16px, 2.1vw, 34px); align-items: start; }
.filters { min-width: 0; padding: 18px; border: 1px solid var(--border); border-top: 3px solid var(--blue); border-radius: var(--radius); background: white; }
.filter-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 15px; }
.filter-heading h2 { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 18px; }
.filter-heading h2 svg { width: 20px; height: 20px; color: var(--blue); }
.filters label, .filter-label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.search-field { position: relative; margin-bottom: 17px; }
.search-field svg { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: #687e84; pointer-events: none; }
.filters input:not([type="checkbox"]), .filters select, .layout-picker summary {
  width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-size: 14px;
}
.filters .search-field input { padding-left: 38px; background: #f6f9f8; }
.filters input::placeholder { color: #677b83; }
select, .layout-picker summary { cursor: pointer; }
.filter-grid { display: grid; gap: 13px; }
.filter-grid > div { min-width: 0; }
.hint, .filter-foot { color: var(--muted); font-size: 11px; line-height: 1.6; }
.hint { display: block; margin-top: 4px; }
.money-input { display: flex; align-items: center; gap: 7px; }
.money-input span { font-size: 13px; }
.checks, .filter-foot { padding-top: 14px; margin-top: 16px; border-top: 1px solid var(--border); }
.checks { display: grid; gap: 7px; }
.checks label, .filters #layout label { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 27px; font-size: 13px; font-weight: 500; cursor: pointer; }
.checks input, #layout input { margin: 0; width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }
.layout-picker summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.layout-picker summary::-webkit-details-marker { display: none; }
.layout-picker summary::after { content: ''; width: 6px; height: 6px; margin-right: 3px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); flex-shrink: 0; }
.layout-picker[open] summary::after { transform: rotate(225deg); }
.layout-picker[open] summary { border-radius: 7px 7px 0 0; }
.layout-options-panel { padding: 8px 10px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 7px 7px; }
.layout-hint { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
#layout { margin: 0; padding: 0; border: 0; display: grid; gap: 3px; max-height: 235px; overflow: auto; }
.filters #layout label { min-height: 32px; }
#clear-layout { margin-top: 5px; }
#filter-toggle { display: none; }
.active-conditions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.active-conditions button { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; padding: 4px 9px; border-radius: 5px; border: 1px solid #a8cec4; color: #08594f; background: var(--accent-soft); font-size: 12px; text-align: left; overflow-wrap: anywhere; }
.active-conditions button span { font-size: 17px; }

/* The list controls and the cards share a left edge, for fast scanning. */
.results { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; min-width: 0; align-items: center; }
.results:focus { outline: none; }
.results > * { grid-column: 1 / -1; min-width: 0; }
.tabs { display: flex; align-self: stretch; align-items: stretch; gap: 2px; min-width: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { position: relative; flex: none; min-height: 43px; padding: 5px 11px; color: var(--muted); background: transparent; font-size: 13px; white-space: nowrap; }
.tabs button:hover { color: var(--blue); background: #eaf0ee; }
.tabs button[aria-selected="true"] { color: var(--blue); font-weight: 700; }
.tabs button[aria-selected="true"]::after { content: ''; position: absolute; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; bottom: 0; left: 4px; right: 4px; }
.tabs span:not(:empty) { display: inline-block; padding: 0 5px; margin-left: 2px; background: #e4e9e7; color: #475e66; font-size: 10px; line-height: 1.65; border-radius: 4px; font-variant-numeric: tabular-nums; }
.tabs [aria-selected="true"] span:not(:empty) { color: #075950; background: #d5eae3; }
.result-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 10px 0; }
.result-toolbar p { flex: 1; margin: 0; font-size: 13px; color: var(--muted); }
.result-toolbar strong { margin-right: 3px; font: 720 23px/1.2 Inter, -apple-system, "Segoe UI", sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.result-toolbar p span { white-space: nowrap; }
.sort-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sort-label select, .list-print { max-width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: 12px; }
.list-print { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.print-short { display: none; }
.list-print:hover { background: #edf5f2; border-color: #87aaa3; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.pagination:first-of-type { justify-content: flex-end; margin: 0 0 10px; }
.pagination:first-of-type small { display: none; }
.pagination button, .pagination select { min-height: 35px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font-size: 12px; }
.pagination button:not(:disabled):hover { background: var(--accent-soft); }
.pagination button:disabled { border-color: var(--border); background: #f0f3f1; color: #66767a; }
.pagination label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.pagination small { flex-basis: 100%; color: var(--muted); font-size: 11px; text-align: center; }
@media (min-width: 1151px) {
  .results > .result-toolbar { grid-column: 1; grid-row: 2; }
  .results > .pagination:first-of-type { grid-column: 2; grid-row: 2; margin: 0; }
}
.result-list { display: grid; gap: 10px; }
.result-list[aria-busy="true"] { opacity: .65; pointer-events: none; }
#map-panel, #results, #result-count, #result-list { scroll-margin-top: calc(76px + env(safe-area-inset-top, 0px)); }
.property {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1fr) minmax(106px, .42fr);
  grid-template-areas: "media main price" "media main action";
  align-items: center;
  gap: 9px clamp(12px, 1.25vw, 22px);
  padding: clamp(13px, 1.3vw, 20px);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.property:hover, .property:focus-within { border-color: #a2b8b8; }
.property-main { grid-area: main; min-width: 0; }
.property > .property-images { grid-area: media; }
.property > .price { grid-area: price; align-self: end; }
.property > .detail-open { grid-area: action; align-self: start; }
.property-images, .photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; min-width: 0; }
.media-tile, .media-empty { border: 1px solid var(--border); border-radius: 8px; min-width: 0; overflow: hidden; }
.media-tile { display: flex; flex-direction: column; align-self: stretch; background: #edf2f1; padding: 0; }
.media-tile:hover { border-color: #78a39b; }
.media-tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #f4f6f5; }
.media-tile.floorplan img { object-fit: contain; padding: 3px; background: white; }
.media-tile img:not([src]) { opacity: 0; }
.media-label { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; width: 100%; min-height: 27px; margin-top: auto; padding: 3px 7px; border-top: 1px solid var(--border); background: white; color: var(--ink); font-size: 11px; font-weight: 650; text-align: left; }
.media-label small { margin-left: auto; font-size: 10px; color: var(--blue); }
.media-label em { font-style: normal; font-size: 9px; font-weight: 500; color: #2a6150; background: var(--accent-soft); border-radius: 3px; padding: 1px 3px; }
.media-empty, .media-failed { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; padding: 9px; background: #f7f9f8; text-align: center; font-size: 12px; color: var(--muted); }
.media-empty { border-style: dashed; }
.media-empty small, .media-failed small { font-size: 11px; }
.media-empty.unsupported { background: #fcf8ee; border-color: #daccaa; color: #755727; }
.media-empty a { font-size: 12px; }
.media-tile.failed { border-color: #dfc4bc; }
.media-tile.failed .media-failed { flex: 1; width: 100%; background: #fff7f1; color: #7c4231; }
.media-tile.failed .media-label { display: none; }
.property .property-images:has(> .media-tile):has(> .media-empty:not(.unsupported)) { grid-template-columns: minmax(0, 1fr); }
.property .property-images:has(> .media-empty:not(.unsupported)) > .media-tile { grid-row: 1; }
.property .property-images:has(> .media-empty:not(.unsupported)) > .media-tile img { aspect-ratio: 2.1; }
.property .property-images:has(> .media-tile) > .media-empty:not(.unsupported) { flex-direction: row; gap: 6px; padding: 2px 5px; border: 0; background: transparent; font-size: 11px; }
.property:has(> .property-images > .media-empty:first-child + .media-empty) {
  grid-template-columns: minmax(0, 1fr) minmax(114px, 145px);
  grid-template-areas: "main price" "media action";
}
.property-images:has(> .media-empty:first-child + .media-empty) { align-self: start; }
.property .property-images:has(> .media-empty:first-child + .media-empty) { display: flex; flex-wrap: wrap; gap: 5px; }
.property .property-images:has(> .media-empty:first-child + .media-empty) .media-empty { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 4px; padding: 3px 6px; border-radius: 4px; font-size: 11px; }
.vendor-line, .tags, .property-title { display: flex; flex-wrap: wrap; align-items: center; }
.vendor-line { gap: 4px 8px; font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 2px 7px; border-radius: 4px; line-height: 1.5; font-size: 11px; font-weight: 650; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.active { color: #125959; background: #dcefed; }
.badge.ready { color: #216447; background: #e1f3e6; }
.badge.scheduled { color: #3a5a84; background: #e8eef7; }
.badge.renovation { color: #665084; background: #f0eaf8; }
.badge.stopped { color: #4b5e6c; background: #eef1f3; }
.badge.unknown, .tag.warn { color: #7c5118; background: #fff1d5; }
.property-title { align-items: baseline; gap: 2px 7px; margin: 6px 0 4px; }
.property-title h2 { margin: 0; font-weight: 700; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.45; overflow-wrap: anywhere; }
.room { color: #475c68; font-size: 13px; }
.property-address { font-size: 13px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.tags { gap: 4px 5px; margin-top: 10px; }
.tag, .tags a { display: inline-flex; align-items: center; padding: 2px 6px; font-size: 11px; border-radius: 4px; line-height: 1.55; overflow-wrap: anywhere; }
.tag { background: #eef3f2; color: #415c62; }
.tags a { color: var(--blue); text-decoration: underline; }
.price { min-width: 0; font-variant-numeric: tabular-nums; text-align: right; }
.price > strong { font-size: clamp(23px, 1.8vw, 29px); letter-spacing: -.04em; font-weight: 700; line-height: 1.25; }
.unit { margin-left: 3px; font-size: 12px; white-space: nowrap; }
.price > small { display: block; font-size: 11px; color: var(--muted); }
.ad-fee { display: flex; flex-wrap: wrap; justify-content: end; align-items: baseline; gap: 1px 4px; margin-top: 8px; font-size: 11px; color: #185f49; }
.ad-fee > strong { overflow-wrap: anywhere; font-size: 13px; }
.ad-fee > small { flex-basis: 100%; font-size: 10px; }
.ad-fee.unknown { color: var(--muted); }
.detail-open, .primary, .source-links .brochure-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 12px; border: 1px solid #adcac4; border-radius: 6px; background: #f0f7f4; color: #075d53; font-size: 13px; font-weight: 650; }
.detail-open::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.detail-open:hover { background: #dfefe9; border-color: #7ca69a; }
.primary, .source-links .brochure-link { color: white; background: var(--blue); border-color: var(--blue); }
.data-footer { color: var(--muted); margin: 19px 0 0; text-align: center; font-size: 11px; }
.empty { margin-top: 6px; padding: 48px 15px; border: 1px solid var(--border); border-radius: var(--radius); background: white; text-align: center; }
.empty h2 { font-size: 19px; }
.empty p { color: var(--muted); font-size: 14px; }

dialog { padding: 0; width: min(735px, calc(100% - 28px)); max-height: calc(100dvh - 36px); border: 1px solid #bbc9c9; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 22px 75px #0a263143; }
dialog::backdrop { background: #11293387; }
.dialog-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 22px; border-bottom: 1px solid var(--border); background: #f7f9f8; color: var(--muted); font-size: 13px; font-weight: 650; }
.close { flex: none; width: 38px; height: 38px; background: white; border: 1px solid var(--border); color: var(--ink); border-radius: 50%; font-size: 24px; line-height: 1; }
.dialog-body, .detail-body { padding: 23px; overflow-wrap: anywhere; }
.dialog-body h2, .detail-body h2 { margin: 5px 0 8px; font-size: 25px; line-height: 1.4; }
.detail-address { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.detail-body > .property-images { margin: 16px 0; }
.detail-body .media-tile img { aspect-ratio: 4 / 3; object-fit: contain; }
.detail-body .media-empty, .detail-body .media-failed { min-height: 108px; }
.detail-body .media-label { padding: 5px 10px; font-size: 12px; }
.shared-note { margin: -5px 0 17px; padding: 8px 11px; background: var(--accent-soft); color: #285f50; border-radius: 5px; font-size: 13px; }
.photo-section { margin: 18px 0; }
.photo-section h3, .coverage h3 { font-size: 16px; margin: 0 0 10px; }
.photo-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-price { display: flex; align-items: baseline; gap: 3px 12px; flex-wrap: wrap; padding: 12px 16px; margin: 18px 0 10px; border-radius: 9px; background: #edf5f2; }
.detail-price strong { color: #17493e; font-size: 27px; letter-spacing: -.035em; }
.detail-price small { color: var(--muted); font-size: 13px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0; }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--border); }
.facts .wide { grid-column: 1 / -1; }
.facts dt { margin-bottom: 3px; font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.warning-box { margin: 18px 0; padding: 13px 15px; border: 1px solid #e3d0a4; border-radius: 7px; background: #fff6df; color: #71501b; font-size: 14px; }
.warning-box p { margin: 5px 0 0; }
.source-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 19px; }
.source-links a, .map-actions button, #map-more, #sources-retry, [data-detail-retry] { display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; min-height: 38px; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: 13px; text-decoration: none; }
.source-links a:hover, .map-actions button:hover, #map-more:hover { border-color: #7ea99e; }
.source-caption, .image-viewer p, .coverage p, .source-item p, .muted, .install-step p { color: var(--muted); }
.source-caption { font-size: 12px; margin: 10px 0 0; }
.source-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.source-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.source-item p, .install-body p, .muted { font-size: 14px; }
.source-item a { font-size: 13px; }
.app-icon { width: 52px; height: 52px; color: white; background: var(--navy); margin-bottom: 14px; }
.install-step { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--border); }
.install-step p { margin: 5px 0; }
#image-dialog { width: min(1050px, calc(100vw - 18px)); }
#image-title { color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.image-viewer { padding: 16px; text-align: center; }
.image-viewer img { display: block; max-width: 100%; max-height: 72dvh; width: auto; height: auto; margin: auto; object-fit: contain; }
.image-viewer a { display: inline-block; margin-top: 11px; font-size: 14px; }
.image-viewer p { font-size: 13px; margin: 7px 0; }
.coverage { padding: 6px 0 12px; border-bottom: 1px solid var(--border); }
.coverage h3 small { margin-left: 7px; color: var(--muted); font-size: 12px; font-weight: 500; }
.coverage-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 14px; }
.coverage-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 4px; background: #e1ebe7; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--blue); }
.coverage p, .coverage details { margin: 6px 0 12px; font-size: 13px; }
.coverage p strong { color: var(--ink); }
.coverage summary { cursor: pointer; color: var(--blue); }
.coverage ol { margin: 7px 0 0; padding-left: 22px; line-height: 1.75; }
.coverage li small { color: var(--muted); }
#map-panel { margin-top: 12px; }
#map-status, #map-selection { font-size: 15px; }
.map-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.map-note, .map-credit { color: var(--muted); font-size: 12px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 28%); gap: 9px; }
#vacancy-map, .map-results { border: 1px solid var(--border); border-radius: 11px; }
#vacancy-map { height: 515px; z-index: 0; }
.map-results { max-height: 515px; overflow: auto; padding: 12px; background: white; }
#map-selection { margin-top: 0; }
.map-room { display: grid; gap: 4px; width: 100%; padding: 12px 3px; text-align: left; border-bottom: 1px solid var(--border); background: white; overflow-wrap: anywhere; }
.map-room:hover { background: #eff6f3; }
.map-room small { color: var(--muted); }
.map-room .map-vendor { color: #31695c; }
.leaflet-marker-icon.vacancy-map-pin { display: block; line-height: 32px; text-align: center; background: var(--navy); color: white; border: 2px solid white; border-radius: 50%; box-shadow: 0 1px 5px #0005; font-size: 13px; font-weight: 700; }
.vacancy-map-pin:focus { outline: 3px solid #e99a21; }

@media (min-width: 761px) and (max-width: 1070px) {
  .workspace { grid-template-columns: 211px minmax(0, 1fr); }
  .filters { padding: 14px; }
  .property { grid-template-columns: minmax(0, 1fr) minmax(95px, .54fr); grid-template-areas: "main price" "media action"; align-items: start; }
  .property > .property-images { align-self: end; max-width: 320px; width: 100%; }
  .property > .price { align-self: start; }
  .property > .detail-open { align-self: end; }
}
@media (max-width: 1000px) {
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  #vacancy-map { height: 400px; }
  .map-results { max-height: 340px; }
}
@media (max-width: 760px) {
  main { padding-top: 17px; }
  .topbar { padding-top: 8px; padding-bottom: 8px; min-height: 55px; gap: 8px; }
  .brand { gap: 8px; font-size: 13px; }
  .brand-mark { width: 33px; height: 33px; font-size: 18px; }
  .top-actions { gap: 5px; }
  .quiet { min-height: 40px; padding: 5px 9px; }
  .page-heading { margin-bottom: 12px; }
  .updated { gap: 0 5px; font-size: 10px; }
  .updated strong, .updated .text-button { font-size: 12px; }
  .summary { gap: 5px; }
  .summary > * { padding: 10px 8px; border-radius: 8px; }
  .stat-label { gap: 4px; font-size: 11px; }
  .stat-label svg { width: 14px; height: 14px; }
  .summary .stat-note { display: none; }
  .summary strong { margin-top: 5px; font-size: 24px; }
  .summary small { margin-left: 3px; font-size: 10px; }
  #warning-stat::after { right: 8px; width: 4px; height: 4px; }
  .scope-note { margin: 9px 0 13px; font-size: 11px; }
  .workspace { display: block; }
  .filters { padding: 12px 14px; margin-bottom: 13px; }
  .filter-heading { margin-bottom: 7px; gap: 7px; }
  .filter-heading h2 { font-size: 16px; gap: 6px; }
  .filter-heading h2 svg { width: 17px; }
  .filter-heading .text-button { min-height: 40px; }
  #filter-toggle { display: inline-flex; align-items: center; margin-left: auto; padding: 0 7px; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .filter-grid .full { grid-column: 1 / -1; }
  .filters.collapsed .filter-grid, .filters.collapsed .checks, .filter-foot { display: none; }
  .filters.collapsed .search-field { margin-bottom: 0; }
  .filters.collapsed > label[for="q"] { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  .filters input:not([type="checkbox"]), .filters select, .layout-picker summary { font-size: 16px; min-height: 44px; }
  .checks { display: flex; gap: 10px 16px; flex-wrap: wrap; }
  .checks label, .filters #layout label, .active-conditions button { min-height: 42px; }
  .tabs { justify-content: flex-start; }
  .tabs button { min-height: 44px; padding: 5px 9px; }
  .result-toolbar { gap: 5px 7px; }
  .result-toolbar p { font-size: 12px; }
  .sort-label select, .list-print, .pagination button, .pagination select { min-height: 42px; }
  .sort-label { font-size: 0; gap: 0; }
  .property { grid-template-columns: minmax(0, 1fr) minmax(0, .64fr); grid-template-areas: "main price" "media media" "action action"; gap: 11px 10px; padding: 14px; }
  .property > .price { align-self: start; }
  .property-title h2 { font-size: 18px; }
  .media-tile img { aspect-ratio: 1.8; }
  .property .property-images:has(> .media-empty:not(.unsupported)) > .media-tile img { aspect-ratio: 2.7; }
  .property .detail-open { min-height: 42px; }
  .property:has(> .property-images > .media-empty:first-child + .media-empty) { grid-template-columns: minmax(0, 1fr) minmax(93px, .5fr); grid-template-areas: "main price" "media action"; }
  .dialog-top { padding: 9px 15px; }
  .close { width: 42px; height: 42px; }
  .dialog-body, .detail-body { padding: 16px; }
  .facts { gap: 0 13px; }
  .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 530px) {
  .updated { display: flex; flex-direction: column; align-items: flex-end; }
  .quiet[type="submit"] { font-size: 0; gap: 0; width: 40px; }
  .stat-label svg { display: none; }
  .result-toolbar { flex-wrap: wrap; }
  .sort-label select { padding: 5px 2px; }
  .list-print { min-width: 44px; justify-content: center; padding: 5px; font-size: 12px; }
  .list-print .print-long { display: none; }
  .list-print .print-short { display: inline; }
  .tabs { gap: 0; }
  .tabs button { font-size: 12px; padding-inline: 6px; }
  .result-toolbar p span { display: block; font-size: 10px; }
  .view-switch { width: 100%; grid-template-columns: auto repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; }
  #view-switch-label { margin: 0 4px; font-size: 11px; }
  .view-switch button { gap: 4px; padding: 7px 2px; font-size: 13px; }
  .view-switch svg { width: 17px; height: 17px; }
  .pagination:first-of-type { justify-content: center; margin: 0 0 9px; }
  .badge { font-size: 10px; }
  .vendor-line { font-size: 11px; }
  .media-label { font-size: 11px; }
}
@media (max-width: 384px) {
  :root { --gutter: 12px; }
  .quiet { padding: 4px 5px; }
  .quiet svg { width: 14px; }
  #warning-stat::after { display: none; }
  .property { padding: 12px; }
  .summary strong { font-size: 22px; }
  .photo-gallery .media-label small { display: none; }
}
@media print {
  .topbar, .filters, .result-toolbar, .pagination, .view-switch, .tabs, .data-footer { display: none; }
  main { padding: 0; }
  .workspace, .results { display: block; }
  .property { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
