:root {
  color: #272621;
  background: #f2eee6;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
button, a, input, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.app-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #e9ebe9;
}

#map, .map-tint { position: absolute; inset: 0; }
#map { background: #e9ebe9; }
.map-tint { pointer-events: none; background: rgba(238, 228, 210, 0.22); mix-blend-mode: multiply; }

/* 顶部渐变压底，保证标题在地图上可读 */
.top-scrim {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  height: 168px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 245, 242, 0.94) 0%, rgba(245, 245, 242, 0.55) 55%, rgba(245, 245, 242, 0) 100%);
}

/* ---------- 顶部 ---------- */

.top-panel {
  position: absolute;
  z-index: 5;
  top: max(12px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
  display: grid;
  gap: 10px;
}

.brand-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 0 6px;
}

.brand-name { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.brand-cn { margin: 3px 0 0; color: #6d6a61; font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; }
.brand-cn--name { margin: 6px 0 0; color: #b6533d; font-family: "Songti SC", serif; font-size: 15px; font-weight: 650; letter-spacing: 0.28em; }
[data-theme="dark"] .brand-cn--name { color: #d97c5f; }

.profile-button {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(41, 39, 33, 0.07);
  border-radius: 50%;
  background: rgba(252, 250, 245, 0.92);
  box-shadow: 0 6px 18px rgba(45, 42, 34, 0.1);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
}
.profile-button span::before { content: ""; position: absolute; top: 9px; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: #6f6c63; }
.profile-button span::after { content: ""; position: absolute; left: 10px; bottom: 8px; width: 18px; height: 10px; border-radius: 10px 10px 8px 8px; background: #6f6c63; }

.search-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  border: 1px solid rgba(41, 39, 33, 0.07);
  border-radius: 16px;
  background: rgba(252, 250, 245, 0.94);
  box-shadow: 0 8px 26px rgba(45, 42, 34, 0.1);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
}
.search-icon { width: 15px; height: 15px; flex: none; border: 1.6px solid #8a877e; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 5px; height: 1.6px; right: -4px; bottom: -2px; rotate: 45deg; border-radius: 2px; background: #8a877e; }
.search-bar input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0; color: #282721; background: transparent; font-size: 13px; }
.search-bar input::placeholder { color: #94918a; opacity: 1; }

.filters { display: flex; gap: 7px; }
.filters button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(41, 39, 33, 0.07);
  border-radius: 12px;
  background: rgba(252, 250, 245, 0.92);
  box-shadow: 0 5px 16px rgba(45, 42, 34, 0.08);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  font-size: 12px;
  font-weight: 560;
}
.filters button span { color: #8a877e; font-size: 11px; }
.filters button.is-active { border-color: transparent; color: #fff8ef; background: #b6533d; }
.filters button.is-active span { color: rgba(255, 248, 239, 0.75); }
.filters .advanced-filter {
  margin-left: auto;
  width: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #54524b;
}

.locate-button {
  position: absolute;
  z-index: 4;
  right: 15px;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(41, 39, 33, 0.07);
  border-radius: 50%;
  background: rgba(252, 250, 245, 0.92);
  box-shadow: 0 6px 18px rgba(45, 42, 34, 0.1);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
}
.locate-button span { position: relative; width: 16px; height: 16px; border: 1.8px solid #3a3933; border-radius: 50%; }
.locate-button span::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #b6533d; }
.locate-button span::after { content: ""; position: absolute; inset: -5px 6px; border-top: 1.8px solid #3a3933; border-bottom: 1.8px solid #3a3933; }

.map-status { position: absolute; left: 14px; bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px)); color: rgba(45, 43, 37, 0.6); font-size: 10px; }

.amap-logo, .amap-copyright { opacity: 0.72; }

/* ---------- 底部抽屉通用 ---------- */

.sheet {
  position: absolute;
  z-index: 12;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 26px 16px max(14px, env(safe-area-inset-bottom));
  border: 1px solid rgba(41, 39, 33, 0.08);
  border-radius: 28px;
  background: rgba(253, 251, 246, 0.97);
  box-shadow: 0 -14px 48px rgba(45, 42, 34, 0.2);
  backdrop-filter: blur(26px) saturate(1.1);
  -webkit-backdrop-filter: blur(26px) saturate(1.1);
  animation: sheet-in 280ms cubic-bezier(0.22, 0.75, 0.24, 1) both;
}
.sheet[hidden] { display: none; }
@keyframes sheet-in {
  from { transform: translateY(32px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.sheet-handle { position: absolute; top: 9px; left: 50%; width: 38px; height: 4px; translate: -50% 0; border-radius: 4px; background: #d4d0c6; }
.sheet-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  color: #8b877d;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  z-index: 2;
}
.sheet-back {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 30px;
  height: 30px;
  padding: 0 0 3px;
  border: 0;
  color: #54514a;
  background: transparent;
  font-size: 27px;
  line-height: 1;
  z-index: 2;
}
.sheet-back[hidden] { display: none; }
.sheet-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-title h3 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.sheet-title .sheet-close { position: static; }

/* ---------- 屏 1：选择品牌 ---------- */

.picker-sheet { max-height: 62%; display: flex; flex-direction: column; }
.brand-list { overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.brand-list li + li { border-top: 1px solid rgba(50, 47, 40, 0.07); }
.brand-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 2px;
  border: 0;
  background: transparent;
  text-align: left;
}
.brand-logo {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(41, 39, 33, 0.08);
  border-radius: 50%;
  background: #fff;
  color: #8a857a;
  font-size: 17px;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo--mono { color: #b6533d; font-size: 15px; font-weight: 700; font-family: "Songti SC", serif; }
.brand-list .brand-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.brand-list .brand-text b { font-size: 14.5px; font-weight: 620; }
.brand-list .brand-text small { color: #96928a; font-size: 11px; }
.chev { color: #b9b4a9; font-size: 19px; font-weight: 300; }

/* ---------- 屏 2：品牌详情 ---------- */

.brand-detail { max-height: 84%; display: flex; flex-direction: column; }
.brand-detail .sheet-scroll { overflow-y: auto; margin: 0 -4px; padding: 0 4px; }

.brand-hero { display: grid; justify-items: center; gap: 7px; padding: 4px 0 16px; text-align: center; }
.brand-hero-logo {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(41, 39, 33, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(45, 42, 34, 0.08);
}
.brand-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-hero h2 { margin: 2px 0 0; font-family: "Songti SC", serif; font-size: 25px; font-weight: 650; letter-spacing: -0.02em; }
.brand-hero p { margin: 0; color: #96928a; font-size: 11.5px; letter-spacing: 0.06em; }

.subbrands { padding: 14px 2px 4px; border-top: 1px solid rgba(50, 47, 40, 0.08); }
.subbrands h4, .brand-listings-head h4 { margin: 0; font-size: 13.5px; font-weight: 650; }
.subbrand-row { display: flex; gap: 14px; padding: 14px 2px 10px; }
.subbrand {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
}
.subbrand img { height: 34px; max-width: 74px; object-fit: contain; }
.subbrand span { font-size: 11.5px; color: #54514a; }
.subbrand.is-current { border-color: rgba(182, 83, 61, 0.35); background: rgba(182, 83, 61, 0.06); }
.subbrand.is-current span { color: #b6533d; font-weight: 620; }
.subbrands-note { margin: 0; padding: 2px 2px 10px; color: #96928a; font-size: 10.5px; letter-spacing: 0.02em; }

.brand-desc { margin: 0; padding: 13px 2px 4px; border-top: 1px solid rgba(50, 47, 40, 0.08); color: #6f6b62; font-size: 12px; line-height: 1.75; }

.brand-listings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 13px 2px 4px;
  border-top: 1px solid rgba(50, 47, 40, 0.08);
}
.sort-pills { display: flex; gap: 2px; padding: 2px; border-radius: 11px; background: #edeae1; }
.sort-pills button { padding: 4px 13px; border: 0; border-radius: 9px; color: #7d7a72; background: transparent; font-size: 11px; font-weight: 560; }
.sort-pills button.is-on { color: #2c2a24; background: #fffdf9; box-shadow: 0 1px 4px rgba(45, 42, 34, 0.12); }
.sort-pills button:disabled { opacity: 0.45; cursor: default; }

.listing-list { padding-bottom: 2px; }
.listing-list li + li { border-top: 1px solid rgba(50, 47, 40, 0.07); }
.listing-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 2px;
  border: 0;
  background: transparent;
  text-align: left;
}
.listing-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  flex: none;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(145deg, #e4dac9, #cbbba5);
}
.listing-thumb::before {
  content: "";
  position: absolute;
  top: 18px;
  width: 30px;
  height: 42px;
  border: 1px solid rgba(82, 73, 60, 0.3);
  border-bottom-width: 7px;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(82, 73, 60, 0.14) 7.5px 8.5px);
}
.listing-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.listing-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 620; }
.listing-info small { color: #96928a; font-size: 11px; }
.price { color: #b6533d; font-size: 15px; font-weight: 750; letter-spacing: -0.01em; }
.price i { color: #a39e93; font-size: 10.5px; font-weight: 500; font-style: normal; }
.listing-empty { padding: 22px 0 18px; color: #96928a; font-size: 12px; text-align: center; }

/* ---------- 屏 3：公寓详情 ---------- */

.detail-sheet { z-index: 14; }
.detail-main { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 15px; }

.property-cover {
  min-height: 158px;
  display: grid;
  place-items: end center;
  padding: 12px 6px;
  overflow: hidden;
  border-radius: 17px;
  color: #8d8778;
  background: linear-gradient(145deg, #e4dac9, #cbbba5);
  font-size: 10px;
}
.property-cover::before {
  content: "";
  align-self: center;
  width: 38px;
  height: 52px;
  border: 1px solid rgba(82, 73, 60, 0.3);
  border-bottom-width: 8px;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(82, 73, 60, 0.14) 9.5px 10.5px);
}

.property-head { min-width: 0; display: grid; gap: 5px; align-content: start; }
.property-head h2 { margin: 0 0 2px; padding-right: 22px; font-family: "Songti SC", serif; font-size: 21px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }

.brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.brand-row img { width: 19px; height: 19px; object-fit: contain; border-radius: 5px; background: #fff; }
.brand-row-label { color: #96928a; font-size: 11px; }
.brand-row b { font-size: 12px; font-weight: 620; }
.brand-row .chev { margin-left: auto; font-size: 16px; }

.meta-line { margin: 0; display: flex; align-items: center; gap: 7px; color: #54514a; font-size: 12px; }
.meta-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ico-pin { position: relative; width: 10px; height: 10px; flex: none; border: 1.5px solid #96928a; border-radius: 50% 50% 50% 0; rotate: -45deg; }
.ico-pin::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: #96928a; }
.ico-metro { flex: none; width: 13px; height: 13px; display: grid; place-items: center; border-radius: 4px; background: #96928a; }
.ico-metro::after { content: "M"; color: #fdfbf6; font-size: 8.5px; font-weight: 800; }

.detail-price { margin: 3px 0 0; color: #b6533d; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.detail-price i { color: #a39e93; font-size: 11px; font-weight: 500; font-style: normal; }
.detail-price .yen { margin-right: 2px; font-size: 14px; font-weight: 700; }

.detail-rows { margin: 15px 0 0; }
.detail-rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-top: 1px solid rgba(50, 47, 40, 0.08);
  font-size: 12.5px;
}
.detail-rows dt { color: #96928a; }
.detail-rows dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }

.contact-button {
  width: 100%;
  margin-top: 12px;
  height: 46px;
  border: 0;
  border-radius: 23px;
  color: #fff8ef;
  background: #b6533d;
  box-shadow: 0 8px 20px rgba(182, 83, 61, 0.32);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.06em;
}
.contact-button:disabled { opacity: 0.5; box-shadow: none; }

/* ---------- 地图标记 ---------- */

.apartment-marker {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 3px 6px rgba(72, 48, 39, 0.2));
}
.apartment-marker--compact { pointer-events: none; }

/* 选中态：整体放大，元素单独放大 + 描边 */
.apartment-marker.is-selected .marker-brand,
.apartment-marker.is-selected .marker-pin {
  transform: scale(1.4);
  transition: transform 180ms cubic-bezier(0.22, 0.75, 0.24, 1);
}
.apartment-marker.is-selected .marker-brand {
  border-color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #b6533d, 0 6px 18px rgba(60, 50, 40, 0.35);
}
.apartment-marker.is-selected .marker-pin {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #b6533d, 0 5px 14px rgba(72, 48, 39, 0.3);
}
.apartment-marker.is-selected strong {
  transform: scale(1.06);
  background: #fffdf9;
  box-shadow: 0 3px 12px rgba(45, 42, 34, 0.22);
  transition: transform 180ms cubic-bezier(0.22, 0.75, 0.24, 1);
}
.apartment-marker strong { transition: transform 180ms cubic-bezier(0.22, 0.75, 0.24, 1); }

/* 聚合点 */
.apartment-cluster {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 250, 242, 0.92);
  border-radius: 50%;
  color: #fff8ed;
  background: #b6533d;
  box-shadow: 0 4px 12px rgba(72, 48, 39, 0.2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* 有品牌：白底 logo 徽章 + 下方小圆点 */
.marker-brand {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: #fffdf9;
  box-shadow: 0 3px 10px rgba(60, 50, 40, 0.28);
}
.marker-brand::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  translate: -50% 0;
  width: 6px;
  height: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #b6533d;
}
.marker-brand img { width: 26px; height: 26px; object-fit: contain; }
.marker-brand--mono { color: #b6533d; font-family: "Songti SC", serif; font-size: 16px; font-weight: 700; }

/* 无品牌：小号陶土 pin + 房子 glyph */
.marker-pin {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 250, 242, 0.92);
  border-radius: 50% 50% 50% 7px;
  rotate: -45deg;
  background: #b6533d;
  box-shadow: 0 3px 8px rgba(72, 48, 39, 0.24);
}
.marker-pin svg { display: block; width: 13px; height: 13px; rotate: 45deg; }

.apartment-marker strong { padding: 5px 8px; border: 1px solid rgba(41, 39, 33, 0.08); border-radius: 9px; color: #2c2a24; background: rgba(252, 250, 245, 0.95); font-size: 11px; white-space: nowrap; backdrop-filter: blur(10px); }

/* ---------- 筛选选项抽屉（mock） ---------- */

.option-sheet { max-height: 60%; display: flex; flex-direction: column; }
.option-list { overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.option-list li + li { border-top: 1px solid rgba(50, 47, 40, 0.07); }
.option-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  text-align: left;
}
.option-list button small { color: #96928a; font-size: 11px; }
.option-list .tick { width: 16px; color: #b6533d; font-size: 14px; font-weight: 700; opacity: 0; }
.option-list button.is-chosen { color: #b6533d; font-weight: 620; }
.option-list button.is-chosen .tick { opacity: 1; }

/* 筛选项被选中（非「不限」）时按钮高亮 */
.filters button.is-chosen { border-color: rgba(182, 83, 61, 0.4); color: #b6533d; font-weight: 640; }
.filters button.is-chosen span { color: rgba(182, 83, 61, 0.65); }

/* ---------- 设置抽屉 ---------- */

.settings-list { display: grid; }
.settings-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 4px;
  font-size: 13.5px;
}
.settings-list li + li { border-top: 1px solid rgba(50, 47, 40, 0.07); }
.settings-action {
  padding: 6px 14px;
  border: 1px solid rgba(41, 39, 33, 0.12);
  border-radius: 14px;
  color: #54514a;
  background: transparent;
  font-size: 12px;
}
.settings-about { align-items: start; }
.settings-about p { flex: 1; margin: 0; color: #96928a; font-size: 11px; line-height: 1.7; text-align: right; }

/* 开关 */
.switch { position: relative; display: inline-block; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #d8d4c9;
  transition: background 180ms;
}
.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fffdf9;
  box-shadow: 0 1px 4px rgba(45, 42, 34, 0.25);
  transition: translate 180ms;
}
.switch input:checked + i { background: #b6533d; }
.switch input:checked + i::after { translate: 18px 0; }

/* ---------- 深色模式 ---------- */

[data-theme="dark"] { color: #e6e3da; background: #161513; }
[data-theme="dark"] .app-shell, [data-theme="dark"] #map { background: #1c1b18; }
[data-theme="dark"] .map-tint { background: rgba(20, 19, 16, 0.14); }
[data-theme="dark"] .top-scrim { background: linear-gradient(180deg, rgba(22, 21, 18, 0.94) 0%, rgba(22, 21, 18, 0.55) 55%, rgba(22, 21, 18, 0) 100%); }
[data-theme="dark"] .brand-cn { color: #9c988e; }
[data-theme="dark"] .search-bar,
[data-theme="dark"] .filters button,
[data-theme="dark"] .profile-button,
[data-theme="dark"] .locate-button {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(36, 34, 30, 0.92);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .search-bar input { color: #e6e3da; }
[data-theme="dark"] .search-bar input::placeholder { color: #8b877d; }
[data-theme="dark"] .search-icon { border-color: #8b877d; }
[data-theme="dark"] .search-icon::after { background: #8b877d; }
[data-theme="dark"] .filters button span { color: #8b877d; }
[data-theme="dark"] .filters button.is-active { border-color: transparent; color: #fff8ef; background: #b6533d; }
[data-theme="dark"] .filters button.is-chosen { border-color: rgba(207, 107, 82, 0.5); color: #d97c5f; }
[data-theme="dark"] .advanced-filter { color: #b5b1a6; }
[data-theme="dark"] .profile-button span::before, [data-theme="dark"] .profile-button span::after { background: #b5b1a6; }
[data-theme="dark"] .locate-button span { border-color: #c9c5ba; }
[data-theme="dark"] .locate-button span::after { border-color: #c9c5ba; }
[data-theme="dark"] .sheet {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(30, 29, 25, 0.97);
  box-shadow: 0 -14px 48px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .sheet-handle { background: #4a4740; }
[data-theme="dark"] .sheet-close, [data-theme="dark"] .sheet-back { color: #9c988e; }
[data-theme="dark"] .brand-logo { border-color: rgba(255, 255, 255, 0.1); background: #262420; color: #9c988e; }
[data-theme="dark"] .brand-logo--mono { color: #d97c5f; }
[data-theme="dark"] .brand-list li + li,
[data-theme="dark"] .option-list li + li,
[data-theme="dark"] .settings-list li + li,
[data-theme="dark"] .listing-list li + li { border-top-color: rgba(255, 255, 255, 0.07); }
[data-theme="dark"] .brand-list .brand-text small,
[data-theme="dark"] .option-list button small,
[data-theme="dark"] .listing-info small,
[data-theme="dark"] .subbrands-note,
[data-theme="dark"] .settings-about p { color: #8b877d; }
[data-theme="dark"] .chev { color: #6b675e; }
[data-theme="dark"] .brand-hero-logo { border-color: rgba(255, 255, 255, 0.1); background: #262420; box-shadow: none; }
[data-theme="dark"] .subbrands, [data-theme="dark"] .brand-desc, [data-theme="dark"] .brand-listings-head { border-top-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .subbrand span { color: #b5b1a6; }
[data-theme="dark"] .subbrand.is-current { border-color: rgba(207, 107, 82, 0.45); background: rgba(182, 83, 61, 0.14); }
[data-theme="dark"] .subbrand.is-current span { color: #d97c5f; }
[data-theme="dark"] .brand-desc { color: #a5a196; }
[data-theme="dark"] .sort-pills { background: #262420; }
[data-theme="dark"] .sort-pills button { color: #8b877d; }
[data-theme="dark"] .sort-pills button.is-on { color: #e6e3da; background: #3a3833; box-shadow: none; }
[data-theme="dark"] .listing-thumb { background: linear-gradient(145deg, #3a362f, #2b2823); }
[data-theme="dark"] .listing-thumb::before { border-color: rgba(220, 210, 190, 0.25); background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(220, 210, 190, 0.12) 7.5px 8.5px); }
[data-theme="dark"] .price, [data-theme="dark"] .detail-price, [data-theme="dark"] .option-list button.is-chosen { color: #d97c5f; }
[data-theme="dark"] .option-list .tick { color: #d97c5f; }
[data-theme="dark"] .property-cover { color: #8b877d; background: linear-gradient(145deg, #3a362f, #2b2823); }
[data-theme="dark"] .property-cover::before { border-color: rgba(220, 210, 190, 0.25); background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(220, 210, 190, 0.12) 9.5px 10.5px); }
[data-theme="dark"] .meta-line { color: #b5b1a6; }
[data-theme="dark"] .ico-pin { border-color: #8b877d; }
[data-theme="dark"] .ico-pin::after { background: #8b877d; }
[data-theme="dark"] .ico-metro { background: #8b877d; }
[data-theme="dark"] .ico-metro::after { color: #262420; }
[data-theme="dark"] .brand-row-label { color: #8b877d; }
[data-theme="dark"] .brand-row img { background: #262420; }
[data-theme="dark"] .detail-rows div { border-top-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .detail-rows dt { color: #8b877d; }
[data-theme="dark"] .settings-action { border-color: rgba(255, 255, 255, 0.14); color: #b5b1a6; }
[data-theme="dark"] .switch i { background: #4a4740; }
[data-theme="dark"] .switch i::after { background: #e6e3da; }
[data-theme="dark"] .switch input:checked + i { background: #b6533d; }
[data-theme="dark"] .apartment-marker strong { border-color: rgba(255, 255, 255, 0.1); color: #e6e3da; background: rgba(36, 34, 30, 0.95); }
[data-theme="dark"] .map-status { color: rgba(230, 227, 218, 0.55); }
