/* 地圖搵樓 —— 對 Android app `activity_map_search.xml` ＋ `MapSearchActivity.kt`
   數值全部跟 app：header 56dp(@app.css)、買租 tab 45dp 16sp、chip 36dp 12sp／1dp #E5E5E5／4dp 圓角、
   提示 chip #FF8000 12sp／白 92% 底／8dp 圓角、底部清單白底 16dp 上圓角、泡泡 #1A2E4C 白邊。
   只准呢個檔服務 map.html；唔好改 tokens.css／app.css。 */

.map-page {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: var(--app-width);
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}

/* 桌面專用元素：手機一律唔出現（保持 app 鏡像） */
.map-site-head,
.map-panel-tip,
.estate-index,
.map-ad { display: none; }

/* ── ① header 內嘅搜尋 pill（app bg_map_search_pill：白底 8dp 圓角，header 係藍底）── */
.map-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  margin-right: 4px;
  padding: 0 12px;
  background: #fff;
  border-radius: 8px;
}
.map-search .ic-search { width: 18px; height: 18px; flex: none; display: block; }
.map-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: #222;
  -webkit-appearance: none;
  appearance: none;
}
.map-search input::placeholder { color: #999; }
.map-search input:focus { outline: none; }

/* ── ② 買樓／租樓 tab（app tabBar：45dp 高、16sp、選中橙字粗體＋3dp 橙底線）── */
.map-tabs {
  flex: none;
  display: flex;
  height: 45px;
  background: #fff;
  border-bottom: 1px solid #EEE;
}
.map-tabs button {
  position: relative;
  flex: 1;
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: #000;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.map-tabs button[aria-selected="true"] {
  color: var(--brand-orange);
  font-weight: 700;
}
.map-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60px;
  height: 3px;
  transform: translateX(-50%);
  background: var(--brand-orange);
}

/* ── ③ 篩選 chips（app chipStrip：可橫向捲、chip 自適應闊度唔截字）── */
.map-chips {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  background: #fff;
  border-bottom: 1px solid #E0E0E0;
  overflow-x: auto;
  scrollbar-width: none;
}
.map-chips::-webkit-scrollbar { display: none; }
.chip-wrap { display: flex; align-items: center; flex: none; }
.mchip {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  color: #333;
  white-space: nowrap;
  cursor: pointer;
}
/* 生效中：品牌橙字 ＋ 淺橙底（app setChip：#FF8000 / #FFF3F3） */
.mchip.on {
  color: #FF8000;
  border-color: #FF8000;
  background: #FFF3F3;
  font-weight: 700;
}
.mchip-x {
  width: 22px;
  height: 22px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  line-height: 1;
  color: #FF8000;
  cursor: pointer;
}
.mchip-x[hidden] { display: none; }

/* ── ④ 地圖區 ── */
.map-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #E9E6E1;
}
#map { position: absolute; inset: 0; }
.leaflet-container { font-family: inherit; background: #E9E6E1; }

/* 頂部提示 chip（app tvMapHint：bg_map_hint 白 92%／8dp 圓角／#FF8000 12sp） */
.map-hint {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 800;
  transform: translateX(-50%);
  margin: 0;
  max-width: 88%;
  padding: 8px 14px;
  border: 1px solid rgba(0, 0, 0, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: #FF8000;
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}
.map-hint[hidden] { display: none; }

/* ── 屋苑泡泡（app bubbleBitmap：40dp × 52dp 水滴、#1A2E4C、2dp 白邊、白色數字）── */
.estate-pin {
  background: none;
  border: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}
.estate-pin svg { display: block; overflow: visible; }
.estate-pin .pin-num {
  position: absolute;
  top: 2px;
  left: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.estate-pin .pin-num.sm { font-size: 12px; }
.leaflet-marker-icon.estate-pin:focus-visible { outline: 2px solid #FF8000; outline-offset: 2px; }

/* OSM 版權：（一定要保留）放右上，底部清單拉開都唔會遮住 */
.leaflet-top.leaflet-right .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, .82);
  margin: 0 4px 0 0;
}
.leaflet-control-attribution a { color: #0056B3; }

/* ── 搜尋結果（打字即出，貼住地圖頂；app searchResultsContainer 最多佔 45% 高）── */
.map-search-results {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  max-height: 45%;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .16);
}
.map-search-results[hidden] { display: none; }
.sr-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #F0F0F0;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sr-item .n { font-size: 14px; color: #222; }
.sr-item .s { margin-top: 2px; font-size: 12px; color: #888; }
.sr-item:hover { background: #FAFAFA; }
.sr-empty { padding: 16px; color: #888; font-size: 13px; }

/* ── 底部樓盤清單（app sheetEstateListings ＋ bg_bottom_sheet：白底、上圓角 16dp）── */
.estate-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  height: 44vh;
  max-height: 420px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .18);
}
.estate-sheet[hidden] { display: none; }
.sheet-handle {
  flex: none;
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: #DDD;
}
.sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 16px;
  border-bottom: 1px solid #EEE;
}
.sheet-head h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sheet-close {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  color: #666;
  cursor: pointer;
}
.sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 清單卡（複用 app.css 嘅 .card，只收窄少少邊距，令 sheet 內見到多啲） */
.sheet-body .card { margin-top: 8px; }

/* ── toast（app Toast 短訊）── */
.map-toast {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 1500;
  transform: translateX(-50%);
  max-width: 86%;
  padding: 10px 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 13px;
  text-align: center;
}
.map-toast[hidden] { display: none; }

/* ── 篩選對話框（app AlertDialog：標題 17sp、選項一行、多選有確定／清除全部）── */
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.map-modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); }
.modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 370px;
  max-height: 80vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  overflow: hidden;
}
.modal-title {
  flex: none;
  margin: 0;
  padding: 16px 16px 8px;
  font-size: 17px;
  font-weight: 700;
  color: #222;
}
.modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 6px; }
.modal-actions {
  flex: none;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px 12px;
}
.modal-actions:empty { display: none; }
.modal-actions .btn { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-ghost { background: #fff; border: 1px solid #DDD; color: #333; }

.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: #222;
  text-align: left;
  cursor: pointer;
}
.opt:hover { background: #FAFAFA; }
.opt[aria-checked="true"] { color: #FF8000; font-weight: 700; }
.opt .mark { flex: none; width: 16px; color: #FF8000; }

/* 地區三欄（app SelectDistrictActivity：港島/九龍/新界 → 區 → 細區） */
.dist-cols { display: flex; height: 320px; border-top: 1px solid #F0F0F0; }
.dist-col { flex: 1 1 0; overflow-y: auto; border-right: 1px solid #F0F0F0; }
.dist-col:last-child { border-right: 0; }
.dist-col.wide { flex: 1.4 1 0; }
.dist-col .opt { padding: 10px 12px; font-size: 14px; }
.dist-col .opt[aria-current="true"] { background: #EBF2FA; color: #0056B3; font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════
   桌面（≥961px）—— 左欄：搜尋／買租 tab／篩選／屋苑清單；右邊：大圖
   手機（≤960px）一律唔變，仍然係上圖下清單嘅 app 鏡像。
   版面：1440px 置中，左右兩欄；地圖由 411×850 放大到 ~1000×900。
   ══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 961px) {
  html, body { height: 100%; }
  body { background: var(--page-bg); }

  .map-page {
    --panel-w: 400px;
    --panel-pad: 20px;
    position: relative;
    display: grid;
    grid-template-columns: var(--panel-w) minmax(0, 1fr);
    grid-template-rows: 76px auto auto auto minmax(0, 1fr) auto;
    max-width: none;              /* 用盡整個屏幕闊度，唔留左右空白 */
    height: 100vh;
    height: 100dvh;
    background: #fff;
    overflow: hidden;
  }

  /* ── 站頭：logo ＋ 主選單 ＋ 免費放盤／登入（同 browse.html 一樣）── */
  .map-site-head {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 76px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid #E3E7EC;
  }
  .map-site-head .brand-link { display: flex; align-items: center; gap: 10px; flex: none; }
  .map-site-head .brand-link img { height: 36px; }
  .map-site-head .wordmark { margin-left: 0; font-size: 22px; font-weight: 700; letter-spacing: .5px; }
  .map-site-head .wordmark .blue { color: var(--brand-blue); }
  .map-site-head .wordmark .orange { color: var(--brand-orange); }

  .map-nav { display: flex; gap: 2px; }
  .map-nav a {
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    color: #46505C;
    white-space: nowrap;
  }
  .map-nav a:hover { color: var(--brand-blue); background: #F6F8FB; }
  .map-nav a.on { color: var(--brand-orange); }

  .map-site-head .header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
  .map-site-head .hdr-member {
    margin-left: 0;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    color: #46505C;
  }
  .map-site-head .hdr-member:hover { background: #F6F8FB; color: var(--brand-blue); }
  .map-site-head .hdr-post {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--brand-orange);
    color: #111;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 128, 0, .26);
  }
  .map-site-head .hdr-post:hover { filter: brightness(.95); }

  /* ── 左欄 ① 搜尋（app header 變白底一行，唔再係藍 bar）── */
  .map-page > .app-header {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    gap: 0;
    padding: 16px 20px 12px;
    background: #fff;
    border-bottom: 0;
  }
  .map-page > .app-header .btn-back { display: none; }
  .map-page > .app-header .map-search {
    height: 46px;
    margin-right: 0;
    padding: 0 14px;
    gap: 10px;
    background: #F4F6F9;
    border: 1px solid #E3E7EC;
    border-radius: 10px;
  }
  .map-page > .app-header .map-search input { font-size: 14px; }
  .map-page > .app-header .map-search .ic-search { width: 17px; height: 17px; }

  /* ── 左欄 ② 買樓／租樓：分段式（同 browse.html 頁內 tab 一致）── */
  .map-page > .map-tabs {
    grid-column: 1;
    grid-row: 3;
    height: auto;
    margin: 0 20px;
    padding: 4px;
    gap: 2px;
    background: #fff;
    border: 1px solid #E3E7EC;
    border-radius: 12px;
  }
  .map-page > .map-tabs button {
    height: 40px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    color: #46505C;
  }
  .map-page > .map-tabs button[aria-selected="true"] {
    background: #FFF3F3;
    color: var(--brand-orange);
    font-weight: 700;
  }
  .map-page > .map-tabs button[aria-selected="true"]::after { display: none; }

  /* ── 左欄 ③ 篩選 chips：放寬可以摺行，唔使橫捲 ── */
  .map-page > .map-chips {
    grid-column: 1;
    grid-row: 4;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 0 20px 14px;
    background: #fff;
    border-bottom: 1px solid #EDF0F3;
    overflow: visible;
  }
  .map-page > .map-chips .mchip {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    border-color: #E3E7EC;
  }

  /* ── 左欄 ④ 屋苑清單（原本嘅底部 sheet 移入左欄，自己捲）── */
  .map-page > .estate-sheet {
    grid-column: 1;
    grid-row: 5;
    position: static;
    height: auto;
    max-height: none;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }
  .map-page > .estate-sheet .sheet-handle { display: none; }
  .map-page > .estate-sheet .sheet-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 10px 12px 20px;
    background: #fff;
    border-bottom: 1px solid #EDF0F3;
  }
  .map-page > .estate-sheet .sheet-head h2 { font-size: 16px; }
  .map-page > .estate-sheet .sheet-close { width: 34px; height: 34px; border-radius: 8px; }
  .map-page > .estate-sheet .sheet-close:hover { background: #F4F6F9; color: #222; }
  .map-page > .estate-sheet .sheet-body { padding-bottom: 16px; }
  .map-page > .estate-sheet .sheet-body .card { margin: 8px 12px 0; }

  /* ── 左欄 ④b 屋苑索引（未揀屋苑時用盡左欄；揀完屋苑自動收埋）── */
  .estate-index {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 5;
    min-height: 0;
    border-top: 1px solid #EDF0F3;
  }
  .ei-head {
    flex: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 20px 8px;
    background: #fff;
  }
  .ei-title { font-size: 13px; font-weight: 700; color: #111; letter-spacing: .3px; }
  .ei-count { font-size: 12px; color: #8B95A1; font-variant-numeric: tabular-nums; }
  .ei-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 6px; }
  .ei-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 20px;
    border: 0;
    border-bottom: 1px solid #F3F5F8;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .ei-row:hover { background: #F7F9FC; }
  .ei-row:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: -2px; }
  .ei-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ei-dist { flex: none; font-size: 11.5px; color: #8B95A1; }
  .ei-n {
    margin-left: auto;
    flex: none;
    min-width: 24px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #EBF2FA;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .ei-empty { padding: 18px 20px; }
  .ei-empty p { margin: 0 0 12px; font-size: 13.5px; color: #5A6470; }
  .ei-reset {
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--brand-orange);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #111;                 /* 橙底一律深色字（品牌對比規則） */
    cursor: pointer;
  }
  .ei-reset:hover { filter: brightness(.95); }
  #estateSheet:not([hidden]) ~ .estate-index { display: none; }

  /* ── 左欄 ④c 推廣位（列表填唔滿時才出，見 js syncAdSlot；日後可換客戶廣告）── */
  .map-ad {
    display: block;
    margin: 12px 20px 8px;
    padding: 12px 16px 6px;
    border: 1px solid #E8ECF0;
    border-radius: 12px;
    background: #FBFCFE;
  }
  .map-ad[hidden] { display: none; }
  .ad-label { margin: 0 0 6px; font-size: 11px; letter-spacing: .5px; color: #9AA4B0; }
  .ad-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #F1F4F8;
  }
  .ad-row:last-child { border-bottom: 0; }
  .ad-ico {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #FFF3E6;
  }
  .ad-ico img { display: block; width: 19px; height: 19px; object-fit: contain; }
  .ad-txt { display: flex; flex-direction: column; min-width: 0; }
  .ad-txt b { font-size: 13.5px; font-weight: 700; color: #1A2E4C; }
  .ad-txt span {
    font-size: 11.5px;
    color: #8B95A1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ad-go { margin-left: auto; color: #B6BEC8; font-size: 16px; line-height: 1; }
  .ad-row:hover .ad-txt b { color: var(--brand-orange); }

  /* ── 左欄 ⑤ 底部提示卡（唔阻住主內容，貼住底邊）── */
  .map-panel-tip {
    display: block;
    grid-column: 1;
    grid-row: 6;
    margin: 0;
    padding: 14px 20px 16px;
    border-top: 1px solid #EDF0F3;
    background: #FAFBFC;
    font-size: 12.5px;
    line-height: 1.6;
    color: #5A6470;
  }
  .map-panel-tip h3 { margin: 0 0 6px; font-size: 13px; color: #111; }
  .map-panel-tip ul { margin: 0; padding-left: 16px; }
  .map-panel-tip li + li { margin-top: 1px; }
  #estateSheet:not([hidden]) ~ .map-panel-tip { display: none; }

  /* ── 右邊：地圖（由 header 底一路到底）── */
  .map-page > .map-stage {
    grid-column: 2;
    grid-row: 2 / -1;
    border-left: 1px solid #E3E7EC;
  }
  .leaflet-container { font-size: 13px; }

  /* 搜尋結果：貼住左欄搜尋框嘅下拉（蓋住 tab／chips，唔會擋地圖） */
  .map-search-results {
    left: calc(-1 * (var(--panel-w) - var(--panel-pad)) - 1px);
    right: auto;
    top: 62px;
    width: calc(var(--panel-w) - var(--panel-pad) * 2);
    max-height: 55%;
    border-top: 1px solid #EDF0F3;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
  }
  .sr-item { padding: 11px 20px; }
  .sr-item .n { font-size: 14px; }

  /* 篩選對話框：桌面用闊啲，三欄地區唔好擠 */
  .modal-card { max-width: 560px; max-height: 76vh; }
  .modal-title { padding: 18px 20px 10px; font-size: 16px; }
  .modal-actions { padding: 10px 16px 14px; }
  .opt { padding: 11px 20px; font-size: 14px; }
  .dist-cols { height: 380px; }
  .dist-col .opt { padding: 9px 14px; font-size: 14px; }

  /* 地圖提示 chip：桌面上左欄（屋苑索引／空狀態）已經講清楚，唔重複 */
  .map-hint { display: none; }

  /* OSM 版權／縮放掣 */
  .leaflet-top.leaflet-right .leaflet-control-attribution { margin: 8px 10px 0 0; }
  .leaflet-control-zoom,
  .map-fit-all {
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18) !important;
    border: 0 !important;
  }
  .leaflet-control-zoom a,
  .map-fit-all a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 20px !important;
    color: #1A2E4C !important;
    border-bottom: 1px solid #EEE !important;
  }
  .map-fit-all a { display: flex; align-items: center; justify-content: center; }
  .map-fit-all a svg { display: block; }
  .map-fit-all a:hover { background: #F4F6F9; }
  .leaflet-bottom.leaflet-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin: 0 18px 20px 0; }
  .leaflet-bottom.leaflet-right .leaflet-control { margin: 0; }

  /* toast 浮喺地圖底部中間 */
  .map-toast { bottom: 28px; font-size: 13px; }
}

/* 窄桌面（961–1120px）：左欄收窄，唔好搶走地圖位置 */
@media (min-width: 961px) and (max-width: 1120px) {
  .map-page { --panel-w: 336px; --panel-pad: 16px; }
  .map-page > .map-tabs { margin: 0 16px; }
  .map-page > .map-chips { padding: 0 16px 12px; }
  .map-page > .app-header { padding: 14px 16px 10px; }
  .map-page > .estate-sheet .sheet-body .card { margin: 8px 8px 0; }
  .ei-head, .ei-row { padding-left: 16px; padding-right: 16px; }
  .map-panel-tip { padding: 12px 16px 14px; }
  .map-nav a { padding: 9px 9px; font-size: 14px; }
}

/* 大屏幕（≥1600px）：左欄闊少少，地圖照樣食盡其餘空間 */
@media (min-width: 1600px) {
  .map-page { --panel-w: 452px; --panel-pad: 24px; }
  .map-page > .map-tabs { margin: 0 24px; }
  .map-page > .map-chips { padding: 0 24px 14px; }
  .map-page > .app-header { padding: 16px 24px 12px; }
  .ei-head, .ei-row { padding-left: 24px; padding-right: 24px; }
  .map-ad { margin: 0 24px 12px; }
  .map-panel-tip { padding: 14px 24px 16px; }
  .map-site-head { padding: 0 32px; }
}
