:root {
  --ink: #202a27;
  --ink-2: #475650;
  --cream: #f4f5f3;
  --paper: #ffffff;
  --clay: #d45a42;
  --gold: #e8b35a;
  --muted: #707976;
  --line: #e3e6e4;
  --white: #ffffff;
  --shadow: 0 6px 18px rgba(27, 39, 34, .08);
}
* { box-sizing: border-box; }
html { background: #eceeec; }
body { margin: 0; min-width: 320px; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #eceeec; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(201, 103, 69, .25); outline-offset: 2px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { position: relative; width: 100%; min-height: 100dvh; margin: 0 auto; overflow: hidden; background: #f7f8f6; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.view { display: none; min-height: calc(100dvh - 90px); animation: fade .25s ease; }
.view--active { display: block; }
@keyframes fade { from { opacity: .35; transform: translateY(4px); } }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: calc(18px + env(safe-area-inset-top)) 20px 10px; background: #ffffff; }
.location-button { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; text-align: left; }
.location-button small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.location-button strong { font-size: 14px; font-weight: 700; }
.location-button .chevron { width: 16px; transform: rotate(90deg); }
.pin-dot { display: grid; place-items: center; width: 38px; height: 38px; color: var(--clay); border-radius: 50%; background: #f0e2d8; }
.pin-dot svg { width: 19px; }
.avatar { width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--paper); background: var(--ink); font-size: 12px; font-weight: 750; box-shadow: none; }
.hero-copy { padding: 22px 20px 20px; background: #ffffff; }
.eyebrow { margin: 0 0 7px; color: var(--clay); font-size: 11px; font-weight: 700; letter-spacing: .01em; text-transform: none; }
.hero-copy h1 { margin: 0; max-width: 350px; font-size: clamp(31px, 8.4vw, 36px); line-height: 1.12; letter-spacing: -.035em; font-weight: 750; }
.hero-copy h1 em { color: inherit; font-style: normal; font-weight: inherit; }
.hero-copy > p:last-child { max-width: 340px; margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.search-bar { display: flex; align-items: center; gap: 10px; margin: 14px 20px 26px; padding: 6px 6px 6px 14px; border: 1px solid #dfe3e1; border-radius: 14px; background: #ffffff; box-shadow: 0 2px 8px rgba(27,39,34,.05); }
.search-bar > svg { width: 20px; flex: 0 0 20px; color: var(--ink-2); }
.search-bar input { width: 100%; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-bar input::placeholder { color: #9baaa5; }
.filter-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 10px; color: var(--paper); background: var(--ink); }
.filter-button svg { width: 19px; }
.section-block { padding: 0 20px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.section-head h2, .subpage-head h2 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.025em; }
.text-button { padding: 6px 0; border: 0; color: var(--clay); background: none; font-size: 12px; font-weight: 700; }
.city-section { margin-bottom: 30px; }
.city-scroll { display: flex; gap: 9px; margin: 0 -20px; padding: 0 20px 3px; overflow-x: auto; scrollbar-width: none; }
.city-scroll::-webkit-scrollbar { display: none; }
.city-pill { flex: 0 0 auto; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff; color: var(--muted); font-size: 12px; font-weight: 650; transition: .2s; }
.city-pill.active { border-color: var(--ink); color: var(--paper); background: var(--ink); box-shadow: none; }
.listings-section { padding-bottom: 22px; }
.listing-list { display: grid; gap: 16px; }
.listing-card { overflow: hidden; padding: 0 0 13px; border: 1px solid var(--line); border-radius: 16px; background: #ffffff; box-shadow: 0 2px 8px rgba(27,39,34,.04); cursor: pointer; }
.listing-card:active .listing-image { transform: scale(.99); }
.image-wrap { position: relative; }
.listing-image { display: block; width: 100%; aspect-ratio: 1.42; object-fit: cover; border-radius: 15px 15px 0 0; background: #d6ddd8; transition: transform .2s; box-shadow: none; }
.listing-tag { position: absolute; top: 12px; left: 12px; padding: 7px 9px; border: 0; border-radius: 8px; color: var(--ink); background: #ffffff; font-size: 10px; font-weight: 700; }
.heart-button { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--ink); background: #ffffff; box-shadow: 0 2px 8px rgba(27,39,34,.10); }
.heart-button svg { width: 19px; transition: .2s; }
.heart-button.saved { color: var(--clay); }
.heart-button.saved svg { fill: currentColor; }
.listing-body { padding: 13px 14px 0; }
.listing-title-row { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.listing-body h3 { margin: 0 0 5px; font-size: 17px; font-weight: 700; line-height: 1.25; }
.listing-body .price { flex: 0 0 auto; color: var(--clay); font-size: 15px; font-weight: 800; }
.listing-body .price small { font-size: 10px; font-weight: 600; color: var(--muted); }
.listing-location { display: flex; align-items: center; gap: 4px; margin: 0 0 9px; color: var(--muted); font-size: 11px; }
.listing-location svg { width: 13px; height: 13px; }
.feature-line { display: flex; gap: 14px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 11px; font-weight: 700; }
.feature-line span { display: inline-flex; align-items: center; gap: 5px; }
.feature-line svg { width: 15px; height: 15px; }
.bottom-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 430px; margin: auto; padding: 10px 13px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #ffffff; }
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border: 0; color: #91a09b; background: none; font-size: 9px; font-weight: 700; }
.nav-item svg { width: 21px; height: 21px; }
.nav-item.active { color: var(--ink); }
.nav-item.active svg { stroke-width: 2.3; }
.nav-saved i { position: absolute; top: 2px; right: calc(50% - 14px); display: none; width: 6px; height: 6px; border: 1px solid var(--paper); border-radius: 50%; background: var(--clay); }
.nav-saved i.visible { display: block; }
.subpage-head { display: flex; align-items: center; justify-content: space-between; padding: calc(34px + env(safe-area-inset-top)) 20px 22px; }
.subpage-head h2 { font-size: 30px; }
.round-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); }
.map-view { background: #e9eee8; }
.map-canvas { position: relative; min-height: calc(100dvh - 175px); overflow: hidden; background-color: #e6ebe5; background-image: linear-gradient(28deg, transparent 48%, rgba(255,255,255,.8) 49%, rgba(255,255,255,.8) 52%, transparent 53%), linear-gradient(120deg, transparent 47%, rgba(255,255,255,.75) 48%, rgba(255,255,255,.75) 51%, transparent 52%); background-size: 140px 130px, 110px 160px; }
.map-canvas::before { content: ""; position: absolute; top: -10%; left: 48%; width: 50%; height: 120%; background: #c7dee2; transform: rotate(8deg); border-left: 9px solid rgba(255,255,255,.8); }
.map-water { position: absolute; top: 38%; left: 60%; color: rgba(21,61,51,.28); font-size: 10px; letter-spacing: .25em; transform: rotate(82deg); }
.map-road { position: absolute; height: 7px; background: #fffdf8; border: 1px solid #deddd5; transform-origin: left; }
.road-a { top: 28%; left: -5%; width: 70%; transform: rotate(16deg); }.road-b { top: 53%; left: 1%; width: 60%; transform: rotate(-22deg); }.road-c { top: 70%; left: 35%; width: 50%; transform: rotate(32deg); }
.price-pin { position: absolute; z-index: 2; padding: 8px 10px; border: 2px solid var(--paper); border-radius: 999px; color: var(--paper); background: var(--ink); font-size: 11px; font-weight: 800; box-shadow: 0 5px 15px rgba(21,61,51,.22); }
.price-pin::after { content: ""; position: absolute; bottom: -5px; left: 50%; width: 8px; height: 8px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.pin-a { top: 23%; left: 16%; }.pin-b { top: 48%; left: 30%; }.pin-c { top: 63%; left: 61%; }
.map-card { position: absolute; z-index: 3; right: 15px; bottom: 19px; left: 15px; display: none; align-items: center; gap: 11px; padding: 10px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.map-card.visible { display: flex; }
.map-card img { width: 88px; height: 74px; object-fit: cover; border-radius: 13px; }
.map-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }.map-card p { margin: 0; color: var(--muted); font-size: 10px; }.map-card strong { display: block; margin-top: 8px; color: var(--clay); font-size: 12px; }
.saved-view, .profile-view { padding-bottom: 25px; }
.count-badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--paper); background: var(--clay); font-weight: 800; }
.saved-list { padding: 0 20px; }
.empty-state { padding: 45px 20px 30px; text-align: center; color: var(--muted); }
.empty-state span { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 15px; border-radius: 50%; color: var(--clay); background: #f4e7e2; font-size: 28px; }
.empty-state h3 { margin: 0 0 7px; color: var(--ink); font-size: 21px; font-weight: 750; }.empty-state p { max-width: 280px; margin: 0 auto 18px; font-size: 12px; line-height: 1.55; }
.empty-state button { padding: 11px 16px; border: 0; border-radius: 999px; color: var(--paper); background: var(--ink); font-size: 12px; font-weight: 700; }
.profile-hero { padding: calc(44px + env(safe-area-inset-top)) 20px 20px; text-align: center; background: var(--ink); color: var(--paper); }
.profile-avatar { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 12px; border: 3px solid rgba(255,255,255,.35); border-radius: 50%; background: var(--clay); font-size: 22px; font-weight: 700; }
.profile-hero h2 { margin: 0 0 5px; font-size: 27px; font-weight: 750; }.profile-hero p { margin: 0; color: rgba(255,255,255,.65); font-size: 12px; }
.profile-stats { display: grid; grid-template-columns: repeat(3,1fr); margin: -1px 20px 22px; padding: 17px 0; border-radius: 0 0 18px 18px; background: var(--paper); box-shadow: 0 12px 25px rgba(21,61,51,.08); text-align: center; }
.profile-stats div + div { border-left: 1px solid var(--line); }.profile-stats strong { display: block; font-size: 22px; font-weight: 750; }.profile-stats span { color: var(--muted); font-size: 10px; }
.menu-card { margin: 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.menu-card button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 17px; border: 0; background: none; font-size: 13px; text-align: left; }.menu-card button + button { border-top: 1px solid var(--line); }.menu-card svg { width: 16px; color: var(--muted); }
.overlay { position: fixed; z-index: 50; inset: 0; display: flex; align-items: end; justify-content: center; background: rgba(8,18,14,.46); }
.overlay[hidden] { display: none; }
.detail-sheet, .filter-sheet { width: 100%; max-width: 430px; max-height: 94dvh; overflow-y: auto; border-radius: 20px 20px 0 0; background: var(--paper); box-shadow: 0 -12px 30px rgba(8,29,23,.16); animation: sheetIn .28s ease-out; }
@keyframes sheetIn { from { transform: translateY(35%); opacity: .4; } }
.sheet-handle { position: sticky; z-index: 4; top: 0; width: 42px; height: 5px; margin: 9px auto; border-radius: 999px; background: #d6d4cc; }
.detail-hero { position: relative; padding: 0 12px; }.detail-hero img { display: block; width: 100%; aspect-ratio: 1.1; object-fit: cover; border-radius: 19px; }
.detail-close { position: absolute; top: 13px; left: 25px; display: grid; place-items: center; width: 39px; height: 39px; border: 0; border-radius: 50%; background: rgba(255,253,248,.92); }.detail-close svg { width: 18px; }
.detail-save { position: absolute; top: 13px; right: 25px; }.detail-info { padding: 20px; }.detail-info h2 { margin: 0 0 5px; font-size: 25px; font-weight: 750; line-height: 1.15; }.detail-price { margin: 14px 0; color: var(--clay); font-size: 23px; font-weight: 800; }.detail-price small { color: var(--muted); font-size: 11px; }
.detail-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 17px 0; }.detail-features div { padding: 13px 7px; border: 1px solid var(--line); border-radius: 14px; text-align: center; }.detail-features svg { width: 19px; }.detail-features strong { display: block; margin-top: 4px; font-size: 11px; }
.detail-description { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }.amenities { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }.amenities span { padding: 8px 10px; border-radius: 999px; background: var(--cream); font-size: 10px; font-weight: 700; }.amenities svg { width: 12px; height: 12px; color: var(--clay); }
.primary-button { width: 100%; padding: 15px; border: 0; border-radius: 12px; color: var(--paper); background: var(--ink); font-size: 13px; font-weight: 750; box-shadow: none; }
.filter-sheet { padding: 0 20px calc(24px + env(safe-area-inset-bottom)); }
.filter-title-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0 22px; }.filter-title-row h2 { margin: 0; font-size: 27px; font-weight: 750; }.filter-title-row button { border: 0; color: var(--clay); background: none; font-size: 12px; font-weight: 700; }
.range-label { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 12px; }.range-label strong { color: var(--clay); }
input[type="range"] { width: 100%; accent-color: var(--clay); }
fieldset { margin: 25px 0; padding: 0; border: 0; } legend { margin-bottom: 12px; font-size: 17px; font-weight: 750; }
.option-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }.option-row label, .check-grid label { position: relative; }.option-row input, .check-grid input { position: absolute; opacity: 0; }.option-row span, .check-grid span { display: grid; place-items: center; padding: 11px 7px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 700; }.option-row input:checked + span, .check-grid input:checked + span { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toast { position: fixed; z-index: 80; right: 20px; bottom: calc(88px + env(safe-area-inset-bottom)); left: 20px; max-width: 390px; margin: auto; padding: 12px 16px; border-radius: 13px; color: var(--paper); background: var(--ink); font-size: 12px; font-weight: 700; text-align: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s; }.toast.visible { opacity: 1; transform: translateY(0); }
@media (min-width: 431px) { .app-shell { max-width: 430px; box-shadow: 0 0 30px rgba(27,39,34,.10); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
