:root {
  color-scheme: light;
  --paper: #fbf7f0;
  --white: #fffdf9;
  --ink: #30231e;
  --muted: #715e52;
  --line: #e8dace;
  --accent: #9e412e;
  --tint: #faeae0;
  --catalog-columns: minmax(335px, .92fr) minmax(0, 1.55fr);
  --catalog-gap: 16px;
  --serif: "Playfair Display", Georgia, serif;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { color: inherit; font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.frame { width: min(100% - 88px, 1432px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.masthead { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 30px; letter-spacing: -.055em; font-weight: 800; text-decoration: none; }
.brand-mark { display: block; flex: none; width: 55px; height: 55px; }
.brand-copy { display: grid; gap: 2px; line-height: 1.12; }
.brand-tagline { color: #696360; font-size: 11px; font-weight: 550; letter-spacing: normal; line-height: 1.3; white-space: nowrap; }
.main-nav { display: flex; gap: clamp(10px,2vw,26px); align-items: center; }
.main-nav :is(a, button) { display: inline-flex; align-items: center; padding: 8px 1px; background: none; border: 0; color: var(--muted); font-weight: 650; text-decoration: none; }
.main-nav :is(a, button):hover, .main-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.preview-label { display: flex; align-items: center; gap: 7px; grid-column: -2; grid-row: 1; justify-self: end; color: var(--muted); font-size: 12px; white-space: nowrap; }
.preview-label span, .area-dot { width: 7px; height: 7px; border-radius: 50%; background: #b65e45; flex: none; }
.intro { grid-area: intro; min-width: 0; container-type: inline-size; }
h1 { font: 600 clamp(34px, 4.25vw, 62px)/1.11 var(--serif); letter-spacing: -.04em; }
.intro h1 { font: 750 clamp(26px,10cqi,60px)/1.12 Inter, Arial, sans-serif; letter-spacing: -.045em; }
.market-sources { margin-top: 13px; color: var(--muted); }
.market-source-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.market-source-links a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--accent); text-decoration: none; font-weight: 700; }
.market-source-links a:hover { background: var(--tint); }
.listing-source { margin-top: 7px; color: var(--accent); font-size: 12px; font-weight: 700; }
.catalog-search { display: grid; grid-template-columns: minmax(0,1fr); gap: 13px; margin-top: 16px; }
.catalog-controls { container-type: inline-size; }
.catalog-modes { display: flex; align-items: stretch; flex-wrap: wrap; gap: 7px; }
.deal-switch { display: flex; gap: 8px; }
.deal-switch button { min-height: 45px; min-width: 108px; padding: 8px 19px; border: 1px solid #dfb9a8; border-radius: 10px; background: var(--tint); color: var(--accent); font-size: 15px; font-weight: 800; }
.deal-switch button:hover { background: #f6d9cd; }
.deal-switch button[aria-pressed="true"] { color: #fffaf5; background: var(--accent); border-color: var(--accent); box-shadow: 0 2px 6px #9e412e30; }
.currency-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f3e9de; }
.currency-switch button { min-width: 42px; min-height: 37px; padding: 4px 7px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 800; }
.currency-switch button[aria-pressed="true"] { color: var(--accent); background: var(--white); box-shadow: 0 1px 3px #55302020; }
.currency-rate { margin-top: 6px; color: var(--muted); font-size: 11px; }
.catalog-modes .deal-switch { gap: 5px; }
.catalog-modes .deal-switch button { min-width: 0; padding-inline: clamp(6px,2.7cqi,19px); font-size: clamp(13px,3.25cqi,15px); }
.catalog-modes .currency-switch button { min-width: clamp(28px,8cqi,42px); padding-inline: 4px; }
.location-search { position: relative; min-width: 0; }
.search-field { display: flex; align-items: flex-start; min-height: 52px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #a344321a; }
.search-content { flex: 1; min-width: 0; }
.search-field input { display: block; width: 100%; min-height: 50px; padding: 10px 6px 10px 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field > button { display: grid; place-items: center; flex: 0 0 44px; min-height: 50px; padding: 0; border: 0; color: var(--accent); background: transparent; }
.selected-locations { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 5px 0 0; }
.location-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; max-width: 100%; padding: 4px 9px; border: 1px solid var(--accent); border-radius: 6px; text-align: left; color: #fffaf0; background: var(--accent); font-size: 12px; font-weight: 700; }
.location-chip span:first-child { overflow-wrap: anywhere; }
.location-chip span:last-child { font-size: 16px; }
.search-icon { position: relative; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 8px; height: 2px; border-radius: 2px; background: currentColor; left: 10px; top: 10px; transform: rotate(45deg); transform-origin: left center; }
.search-clear { font-size: 25px; }
.search-menu { position: absolute; z-index: 10; inset: calc(100% + 7px) 0 auto; display: flex; flex-direction: column; max-height: min(435px, 52dvh); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--white); box-shadow: 0 8px 24px #49302323; }
.search-menu-body { min-height: 0; overflow: auto; padding: 5px; }
.search-menu-actions { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; background: var(--white); border-top: 1px solid var(--line); padding: 7px; }
.search-menu-actions button { padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); font-size: 13px; font-weight: 700; }
.search-menu-actions [data-search-apply] { background: var(--accent); color: #fffaf0; border-color: var(--accent); }
.search-menu button, .search-menu summary { min-height: 44px; }
.search-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 12px; width: 100%; text-align: left; border: 0; border-radius: 7px; padding: 8px 11px; background: transparent; }
.search-option:is(:hover,.is-active) { background: var(--tint); }
.search-option[aria-selected="true"] strong::before { content: "✓ "; color: var(--accent); }
.search-option strong { overflow-wrap: anywhere; }
.search-meta { font-size: 11px; color: var(--muted); }
.search-context { grid-column: 1/-1; color: var(--muted); font-size: 12px; }
.search-categories details + details { border-top: 1px solid var(--line); }
.search-categories summary { padding: 12px 9px; font-weight: 700; cursor: pointer; }
.search-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 3px 8px 9px; }
.search-chips button { padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.search-chips button:hover { border-color: var(--accent); }
.search-chips button[aria-pressed="true"] { color: #fffaf0; background: var(--accent); border-color: var(--accent); }
.metro-line h3 { display: flex; align-items: center; gap: 7px; padding: 6px 8px 3px; font-size: 12px; }
.metro-line h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--metro-color); }
.metro-line[data-line="m1"] { --metro-color: #c63139; }
.metro-line[data-line="m2"] { --metro-color: #2278ae; }
.metro-line[data-line="m3"] { --metro-color: #278358; }
.sort-label { min-width: 0; display: grid; gap: 5px; }
.filter-body input[type="number"], .sort-label select {
  min-width: 0; width: 100%; height: 40px; padding: 7px 8px;
  border: 1px solid #e9dcd1; border-radius: 8px; background: #faf5ed;
  color: var(--ink); font-size: 13px; font-weight: 600;
}
.more-button { flex: 1 0 auto; min-height: 45px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 clamp(6px,2.6cqi,15px); border: 1px solid #ebcdbf; border-radius: 11px; background: var(--tint); color: var(--accent); font-size: clamp(15px,3.4cqi,17px); font-weight: 750; }
.more-button:hover, .more-button[aria-expanded="true"] { background: #f6d9cd; }
@container (max-width: 385px) {
  .catalog-modes { gap: 5px; }
  .catalog-modes .deal-switch button, .more-button { padding-inline: 6px; }
}
@container (max-width: 345px) {
  .more-button .tune-icon { display: none; }
}
@container (max-width: 320px) {
  .catalog-modes .deal-switch button { padding-inline: 5px; font-size: 12px; }
}
@container (max-width: 300px) {
  .catalog-modes { gap: 4px; }
  .catalog-modes .deal-switch button { padding-inline: 4px; font-size: 11px; }
  .catalog-modes .currency-switch { padding-inline: 2px; }
  .catalog-modes .currency-switch button { min-width: 23px; padding-inline: 2px; font-size: 12px; }
}
@container (min-width: 440px) {
  .catalog-modes { gap: 13px; }
  .catalog-modes .deal-switch { gap: 8px; }
}
.tune-icon { width: 13px; height: 9px; border-block: 1.5px solid currentColor; position: relative; }
.tune-icon::before, .tune-icon::after { content: ""; position: absolute; border-radius: 50%; width: 4px; height: 4px; background: currentColor; }
.tune-icon::before { left: 3px; top: -2.5px; }
.tune-icon::after { right: 2px; bottom: -2.5px; }
.mobile-switch { display: none; }
.search-layout { display: grid; grid-template-columns: var(--catalog-columns); grid-template-areas: "intro map" "results map"; grid-template-rows: auto 1fr; align-items: start; gap: var(--catalog-gap); margin-top: 16px; }
.search-layout > .results { grid-area: results; min-width: 0; }
.search-layout > .map { grid-area: map; margin-top: 8px; height: clamp(410px, calc(100dvh - 120px), 760px); }
.results-header { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 9px; }
.results-header h2 { font-size: 20px; letter-spacing: -.03em; }
.results-header p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.sort-label select { width: auto; max-width: 174px; height: 36px; font-size: 11px; background: var(--white); }
.cards { display: grid; gap: 10px; }
.listing { display: grid; grid-template-columns: minmax(112px,.74fr) minmax(0,1fr); min-height: 131px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; position: relative; transition: border-color .15s, box-shadow .15s; }
.listing.is-highlighted { border-color: var(--accent); box-shadow: 0 0 0 2px #a3443221; }
.listing.is-selected { border-color: var(--accent); background: #fff7ee; box-shadow: 0 0 0 1px var(--accent); }
.home-photo { position: relative; overflow: hidden; min-height: 100%; background-color: #ead7c2; }
.home-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listing-body { padding: 11px 12px; min-width: 0; }
.listing-body:first-child { grid-column: 1 / -1; }
.listing-body h3 { font-size: 19px; letter-spacing: -.035em; margin-bottom: 4px; }
.listing-title { font-size: 13px; font-weight: 700; line-height: 1.25; }
.listing-address { color: var(--muted); font-size: 11px; margin-top: 3px; }
.listing-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.listing-facts span { padding: 3px 6px; background: #f7eee3; border-radius: 4px; }
.listing-hit { position: absolute; inset: 0; border: 0; background: none; color: transparent; }
.listing-hit:focus-visible { outline-offset: -3px; border-radius: 11px; }
.empty { border: 1px dashed var(--line); border-radius: 12px; padding: 23px; color: var(--muted); }
.map { position: sticky; top: 14px; height: clamp(410px, calc(100dvh - 275px), 680px); border: 1px solid #ddd0c0; background: #eae6d7; border-radius: 15px; overflow: hidden; isolation: isolate; }
.map canvas, .map-labels, .map-markers { position: absolute; inset: 0; width: 100%; height: 100%; }
.map canvas { cursor: grab; touch-action: none; }
.map canvas:active { cursor: grabbing; }
.map > .map-detail { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.has-map-detail .map-detail { visibility: visible; }
.has-map-detail > canvas { opacity: 0; }
.has-map-detail > .map-labels { visibility: hidden; }
.map-markers, .map-labels { pointer-events: none; }
.map-labels span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; color: #514c43; text-shadow: 0 1px 3px #fffdf8, 0 -1px 3px #fffdf8; font-size: 11px; font-weight: 600; }
.map-labels span.capital { font-size: 16px; font-weight: 800; }
.marker { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; min-width: 35px; min-height: 30px; white-space: nowrap; color: #733625; background: #fffaf1; border: 1px solid #d2ab99; border-radius: 99px; padding: 5px 9px; font-size: 12px; font-weight: 800; box-shadow: 0 2px 4px #61452e2c; }
.marker[data-group="true"] { background: #f3d9c8; }
.marker:is(.is-highlighted, :focus-visible) { color: #fff9ed; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px #a3443238, 0 3px 8px #66331750; z-index: 2; }
.marker.is-selected { color: #fff9ed; background: #78301f; border-color: #78301f; box-shadow: 0 0 0 5px #a344324b, 0 3px 8px #66331750; z-index: 3; }
.map-area, .map-controls button { color: #49362d; background: #fffaf1; border: 1px solid #dfcebd; box-shadow: 0 2px 5px #5c44291c; }
.map-area { position: absolute; top: 12px; left: 12px; display: flex; gap: 7px; align-items: center; border-radius: 8px; padding: 7px 9px; font-size: 11px; font-weight: 700; }
.map-controls { position: absolute; right: 12px; top: 12px; display: grid; gap: 4px; }
.map-controls button { width: 38px; height: 38px; border-radius: 8px; font-size: 21px; line-height: 1; }
.map-controls button:hover { background: #f9e6d8; }
.map-controls button:disabled { opacity: .6; }
.attribution { position: absolute; right: 4px; bottom: 4px; color: #55473b; background: #fffaf0; font-size: 9px; padding: 2px 4px; border-radius: 3px; }
.map-selection { position: absolute; z-index: 5; left: 12px; bottom: 27px; width: min(340px, calc(100% - 24px)); max-height: 46%; overflow: auto; border: 1px solid var(--line); border-radius: 11px; background: var(--white); box-shadow: 0 4px 14px #50342733; }
.map-pop-title { display: flex; justify-content: space-between; align-items: start; gap: 5px; padding: 10px 11px; }
.map-pop-title p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.map-selection :is(button, a) { color: var(--accent); background: none; border: 0; padding: 4px; font-weight: 700; }
.map-selection :is(button, a):hover { text-decoration: underline; }
.map-pop-actions { display: flex; gap: 10px; align-items: center; padding: 0 7px 7px; }
.cluster-list { display: grid; padding: 0 7px 7px; }
.cluster-list button { text-align: left; font-size: 12px; }
.footer { margin-top: 24px; padding: 16px 0 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; }
.footer span:first-child { font-weight: 800; color: var(--ink); }
dialog { border: 1px solid var(--line); border-radius: 15px; padding: 0; background: var(--white); color: var(--ink); width: min(580px, calc(100% - 28px)); max-height: calc(100dvh - 28px); }
dialog::backdrop { background: #271810aa; }
.dialog-close { position: absolute; z-index: 1; top: 10px; right: 10px; height: 40px; width: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 25px; }
.filter-dialog { width: min(620px, calc(100% - 24px)); overflow: hidden; }
.filters { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: min(87dvh, 760px); }
.filter-header { position: relative; padding: 17px 58px 15px; text-align: center; border-bottom: 1px solid var(--line); }
.filter-header h2 { font-size: 23px; }
.filter-header .dialog-close { top: 8px; width: 44px; height: 44px; }
.filter-body { overflow: auto; overscroll-behavior: contain; }
.filter-section { display: grid; gap: 16px; padding: 17px 22px 20px; }
.filter-section + .filter-section { border-top: 1px solid var(--line); }
.filter-section h3 { font-size: 17px; font-weight: 800; color: var(--accent); }
.filter-group { min-width: 0; border: 0; padding: 0; margin: 0; }
.filter-group legend { margin-bottom: 7px; padding: 0; font-size: 14px; font-weight: 700; }
.filter-terms, .filter-room-counts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.filter-terms:has(> fieldset[hidden]), .filter-room-counts:has(> fieldset[hidden]) { grid-template-columns: minmax(0,1fr); }
.filter-room-counts .filter-chip span { justify-content: center; min-width: 33px; padding-inline: 6px; }
.filter-term-card { padding: 5px 11px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.filter-term-card legend { padding: 0 5px; }
.filter-programs { background: #fbede3; border-color: #ead0c2; }
.filter-programs legend { color: var(--accent); }
.filter-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 9px; align-items: center; }
.filter-text { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.filter-body input:is([type="number"], [type="text"]) { height: 44px; font-size: 16px; font-weight: 500; }
.filter-body input[aria-invalid="true"] { border-color: var(--accent); }
.filter-error { margin-top: 6px; color: var(--accent); font-size: 12px; }
.filter-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-range + .filter-choices { margin-top: 8px; }
.filter-chip { position: relative; display: inline-flex; max-width: 100%; }
.filter-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.filter-chip span, .filter-preset { display: inline-flex; align-items: center; min-height: 42px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; font-size: 13px; }
.filter-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-chip input:checked + span, .filter-preset[aria-pressed="true"] { border-color: #c5917c; background: var(--tint); color: var(--accent); font-weight: 700; }
.filter-blackout { row-gap: 1px; }
.filter-blackout h3 { margin-bottom: 15px; }
.filter-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.filter-switch input { appearance: none; flex: none; position: relative; width: 39px; height: 23px; margin: 0; border: 1px solid #d7c6b8; border-radius: 40px; background: #e9ddd1; cursor: pointer; }
.filter-switch input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; background: var(--white); border-radius: 50%; }
.filter-switch input:checked { border-color: var(--accent); background: var(--accent); }
.filter-switch input:checked::before { left: 18px; }
.filter-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 7px 10px; border-top: 1px solid var(--line); padding: 10px 22px 13px; background: var(--white); }
.filter-actions output { grid-column: 1/-1; color: var(--muted); text-align: right; font-size: 12px; }
.filter-actions button { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); font-weight: 800; }
.filter-actions [type="submit"] { border-color: var(--accent); background: var(--accent); color: #fffaf5; }
.filter-actions [type="submit"]:disabled { opacity: .55; }
.dialog-body { padding: 22px 20px; }
.dialog-body h2 { margin: 0 36px 8px 0; font: 600 28px/1.15 var(--serif); }
.dialog-body p { margin-top: 8px; line-height: 1.5; color: var(--muted); }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 0; }
.services div { padding: 13px; background: var(--paper); border-radius: 8px; }
.services dt { font-weight: 800; }
.services dd { margin: 4px 0 0; color: var(--muted); line-height: 1.4; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1050px) {
  .frame { width: calc(100% - 44px); }
}
@media (max-width: 1340px) {
  .masthead { grid-template-columns: auto 1fr auto; gap: 4px 9px; min-height: 0; padding-block: 10px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; flex-wrap: wrap; column-gap: 14px; row-gap: 0; }
  .main-nav :is(a, button) { min-height: 37px; font-size: 12px; }
}
@media (max-width: 720px) {
  .frame { width: calc(100% - 28px); }
  .brand { font-size: 25px; }
  .brand-mark { width: 44px; height: 44px; }
  .search-menu { position: static; margin-top: 7px; }
  .filter-section { padding-inline: 14px; }
  .filter-actions { padding-inline: 14px; }
  .mobile-switch { display: flex; margin-top: 13px; gap: 4px; background: #f1e7db; padding: 4px; border-radius: 9px; }
  .mobile-switch button { flex: 1; min-height: 41px; border: 0; border-radius: 6px; background: transparent; font-weight: 700; }
  .mobile-switch button[aria-pressed="true"] { background: var(--white); color: var(--accent); }
  .search-layout { display: block; margin-top: 15px; }
  .search-layout > .results { margin-top: 10px; }
  .search-layout > .map { height: clamp(380px, 61dvh, 590px); }
  .search-layout[data-mobile-view="list"] .map, .search-layout[data-mobile-view="map"] .results { display: none; }
  .map { position: relative; top: auto; height: clamp(380px, 61dvh, 590px); }
  .map-controls button { width: 44px; height: 44px; }
  .marker { min-height: 40px; min-width: 40px; }
  .listing { min-height: 123px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 490px) {
  .filter-terms, .filter-room-counts { grid-template-columns: minmax(0,1fr); }
  .masthead .brand { grid-column: 1 / -1; grid-row: 1; }
  .masthead .preview-label { align-self: start; margin-top: 2px; }
  .brand-tagline { font-size: 10px; }
}
