/* 一手新盤（newlaunch.html）—— 逐項對 app
     activity_new_launch.xml（列表）、item_new_launch.xml（卡）、
     activity_new_launch_detail.xml（詳情）、item_new_launch_spec.xml、
     item_new_launch_price_list.xml。
   數值全部照 layout：1dp = 1px。顏色照 app/src/main/res/values/colors.xml
   （logo_blue #0056B3、logo_orange #FF8000、text_primary #111111、
     text_secondary #666666、text_tertiary #999999、divider #E5E5E5、
     surface_alt #F5F6F7、news_body #4A4A4A、section_header_bg #EBF2FA）
   同 drawable：bg_new_launch_status_on #FFF1E0／off #F0F1F3（radius 4dp）、
     bg_new_launch_price_row #F7F8FA（radius 8dp）、bg_search_input 白底 1dp #E5E5E5（radius 8dp）、
     bg_photo_viewer_chip #66000000（oval）。 */

.nl-page {
  background: #F5F6F7;                 /* activity_new_launch.xml root background */
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 24px;                /* RecyclerView paddingBottom 12 + 安全距離 */
}

/* ---------- 頂欄（56dp、#0056B3；btnBack 48dp 純箭嘴，冇底冇字） ---------- */
.nl-header { padding: 0; gap: 0; }
.nl-header .nl-back {
  width: 48px; height: 56px; min-width: 0; padding: 0; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: none; border-radius: 0; margin-left: 1px;
  -webkit-tap-highlight-color: transparent;
}
.nl-header .nl-back-ico { width: 10px; height: 18px; display: block; }  /* ic_back_chevron 10×18dp */
.nl-header .nl-title {
  flex: 1; min-width: 0; text-align: left; margin-left: 4px;
  font-size: 18px; font-weight: 700; color: #fff;                /* tvTitle 18sp bold */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* tvUpdated 11sp、alpha .8、marginEnd 14dp */
.nl-updated { flex: none; margin-right: 14px; font-size: 11px; color: #fff; opacity: .8; }

/* ---------- 搜尋（white、padding 12/12/8/4；輸入框 40dp 高、1dp #E5E5E5、radius 8dp） ---------- */
.nl-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; padding: 8px 12px 4px;
}
.nl-search-box {
  flex: 1; min-width: 0; height: 40px; display: flex; align-items: center;
  background: #fff; border: 1px solid #E5E5E5; border-radius: 8px; padding: 0 10px;
}
.nl-search-ico { width: 16px; height: 16px; flex: none; display: block; }  /* ic_search_gray 16dp */
.nl-search-input {
  flex: 1; min-width: 0; margin-left: 6px; height: 100%;
  border: 0; background: none; outline: none;
  font: inherit; font-size: 13px; color: #111;                  /* etSearch 13sp */
  -webkit-appearance: none; appearance: none;
}
.nl-search-input::placeholder { color: #666; }                  /* textColorHint = text_secondary */
.nl-search-input::-webkit-search-cancel-button { display: none; }
/* tvClearSearch：12sp #0056B3、40dp 高、padding 4dp、keyword 空就 GONE */
.nl-clear {
  flex: none; height: 40px; padding: 0 4px; margin-left: 0;
  background: none; border: 0; font: inherit; font-size: 12px; color: #0056B3;
  cursor: pointer;
}
.nl-clear[hidden] { display: none; }

/* ---------- 篩選（42dp、白底、四格等寬、13sp #111） ---------- */
.nl-filters { display: flex; height: 42px; background: #fff; }
.nl-filter {
  flex: 1; min-width: 0; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; font: inherit; font-size: 13px; color: #111;
  cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, .06);
}
.nl-filter:active { background: rgba(0, 0, 0, .04); }
.nl-divider { height: 1px; background: #E5E5E5; }

/* ---------- 統計條（34dp、#F7F8FA、左右 14dp） ---------- */
.nl-bar {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; background: #F7F8FA;
}
.nl-summary {
  flex: 1; min-width: 0; font-size: 11.5px; color: #666;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nl-sortbtn {
  flex: none; height: 100%; padding: 0; background: none; border: 0;
  font: inherit; font-size: 12px; color: #0056B3; cursor: pointer;
}

/* ---------- 列表卡（item_new_launch.xml） ---------- */
.nl-cards { padding: 6px 0 12px; }
.nl-cards[hidden] { display: none; }

.nl-card {
  display: block; margin: 6px 12px; padding: 12px 12px 10px;
  background: #fff; border-radius: 12px; color: inherit; text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);            /* cardElevation 1dp */
  -webkit-tap-highlight-color: rgba(0, 0, 0, .06);
}
.nl-card:active { background: #FAFBFC; }

.nl-card-top { display: flex; }
.nl-card-thumb {
  flex: none; width: 96px; height: 96px; border-radius: 8px; overflow: hidden;
  background: #EEF2F7;                                  /* cardImage cardBackgroundColor #EEF2F7 */
  display: flex; align-items: center; justify-content: center;
}
.nl-card-img { width: 96px; height: 96px; object-fit: cover; display: block; }
.nl-card-thumb .nl-house { width: 40px; height: 40px; opacity: .55; }

.nl-card-main { flex: 1; min-width: 0; margin-left: 12px; }

/* 狀態 pill 獨立一行（app 註解：長項目名唔會被擠到截字） */
.nl-pill {
  display: inline-block; font-size: 10px; line-height: 1.35;
  padding: 1px 6px; border-radius: 4px; background: #F0F1F3; color: #666;
  white-space: nowrap;
}
.nl-pill.on { background: #FFF1E0; color: #FF8000; }

.nl-card-name {
  margin-top: 3px; font-size: 16px; font-weight: 700; color: #111;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;                                    /* maxLines=2 ellipsize=end */
}
.nl-card-line {
  margin-top: 3px; font-size: 12px; color: #666; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nl-card-meta {
  margin-top: 3px; font-size: 11px; color: #666; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 伙數統計（#F7F8FA、上下 6dp、四格等寬） */
.nl-stats {
  display: flex; margin-top: 10px; padding: 6px 0; background: #F7F8FA;
}
.nl-stat {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center;
}
.nl-stat-v { font-size: 14px; font-weight: 700; color: #111; line-height: 1.35; }
.nl-stat-k { font-size: 10px; color: #666; line-height: 1.35; }

/* 價錢（label 11.5sp #666 ＋ 值 14.5sp bold 橙） */
.nl-price { display: flex; align-items: center; margin-top: 8px; min-width: 0; }
.nl-price-k { flex: none; font-size: 11.5px; color: #666; }
.nl-price-v {
  flex: 1; min-width: 0; margin-left: 6px; font-size: 14.5px; font-weight: 700; color: #FF8000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 空狀態（ic_placeholder_house 72dp alpha .6 ＋ 13sp #666） ---------- */
.nl-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 24px; text-align: center;
}
.nl-empty[hidden] { display: none; }
.nl-empty-ico { width: 72px; height: 72px; opacity: .6; display: block; }
.nl-empty-text { margin: 12px 0 0; font-size: 13px; color: #666; }

/* =====================================================================
   詳情頁（activity_new_launch_detail.xml）
   ===================================================================== */
.nl-pane[hidden] { display: none; }
#nlDetailPane { padding: 0 12px 20px; }

.nl-card-box {
  background: #fff; border-radius: 12px; margin-top: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  overflow: hidden;
}
.nl-card-box.nl-pad { padding: 14px; }

/* 封面相（186dp 高、radius 12；credit chip 右下 8dp、9sp 白、#66000000） */
.nl-cover-card { position: relative; }
.nl-cover-img {
  display: block; width: 100%; height: 186px; object-fit: cover; background: #F5F6F7;
}
.nl-cover-img.fit { object-fit: contain; }              /* 售樓書封面：保留全張 */
.nl-cover-ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 186px; background: #F5F6F7;                /* Glide placeholder/error = house_icon */
}
.nl-cover-ph .nl-house { width: 56px; height: 56px; opacity: .55; }
.nl-cover-credit {
  position: absolute; right: 8px; bottom: 8px; max-width: 240px;
  padding: 1px 6px; border-radius: 999px; background: rgba(0, 0, 0, .4);
  font-size: 9px; color: #fff; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 頭卡：狀態 pill ＋ 發展商；售價；地址；面積／入伙 */
.nl-head-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nl-head-row .nl-pill { font-size: 11px; }
.nl-head-dev {
  flex: 1; min-width: 0; font-size: 12px; color: #666;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nl-head-price-k { margin-top: 10px; font-size: 12px; color: #666; }
.nl-head-price { font-size: 22px; font-weight: 700; color: #FF8000; line-height: 1.3; }
.nl-head-ft { margin-top: 2px; font-size: 12px; color: #666; }
.nl-hr { height: 1px; background: #E5E5E5; margin-top: 12px; }
.nl-head-addr { margin-top: 10px; font-size: 13px; color: #111; }
.nl-head-area { margin-top: 3px; font-size: 12px; color: #666; }

/* 區塊標題（14sp bold #111） */
.nl-sec-title { font-size: 14px; font-weight: 700; color: #111; }

/* 銷售情況（值 18sp bold；餘貨用 logo_blue；進度條 6dp） */
.nl-sstats { display: flex; margin-top: 10px; }
.nl-sstat {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center;
}
.nl-sstat-v { font-size: 18px; font-weight: 700; color: #111; line-height: 1.3; }
.nl-sstat-v.blue { color: #0056B3; }
.nl-sstat-k { font-size: 11px; color: #666; line-height: 1.35; }
.nl-progress {
  height: 6px; margin-top: 10px; border-radius: 3px; background: #E8EDF3; overflow: hidden;
}
.nl-progress-fill { display: block; height: 100%; background: #0056B3; border-radius: 3px; }
.nl-pct { margin-top: 4px; text-align: right; font-size: 11px; color: #666; }

/* 物業資料（label 100dp 11.5sp #666；值 12sp #111、行距 2dp） */
.nl-spec { margin-top: 6px; }
.nl-spec-row { display: flex; padding: 6px 0; }
.nl-spec-k { flex: none; width: 100px; margin-right: 6px; font-size: 11.5px; color: #666; }
.nl-spec-v {
  flex: 1; min-width: 0; font-size: 12px; color: #111; line-height: 1.7; word-break: break-word;
}

/* 價單（每行 #F7F8FA、radius 8dp、padding 10dp、marginTop 6dp） */
.nl-pl-list { margin-top: 6px; }
.nl-pl-row {
  display: flex; gap: 8px; margin-top: 6px; padding: 10px;
  background: #F7F8FA; border-radius: 8px;
}
.nl-pl-list .nl-pl-row:first-child { margin-top: 0; }
.nl-pl-main { flex: 1; min-width: 0; }
.nl-pl-no { font-size: 13px; font-weight: 700; color: #111; }
.nl-pl-sub { margin-top: 2px; font-size: 11px; color: #666; word-break: break-word; }
.nl-pl-side { flex: none; max-width: 46%; text-align: right; }
.nl-pl-price { font-size: 13px; font-weight: 700; color: #FF8000; }
.nl-pl-area { margin-top: 2px; font-size: 11px; color: #666; }
.nl-nolist { margin-top: 8px; font-size: 12px; color: #666; }

/* 項目簡介（12.5sp #666、lineSpacingExtra 3dp） */
.nl-intro { margin-top: 6px; font-size: 12.5px; color: #666; line-height: 1.62; word-break: break-word; }

/* 動作（兩粒 46dp、radius 8dp、相距 10dp） */
.nl-actions { display: flex; gap: 10px; margin-top: 14px; }
.nl-btn {
  flex: 1; min-width: 0; height: 46px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font: inherit; font-size: 14px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; box-sizing: border-box;
}
.nl-btn-solid { background: #0056B3; color: #fff; border-color: #0056B3; }
.nl-btn-solid[disabled] { opacity: .55; cursor: default; }
.nl-btn-line { background: #fff; color: #0056B3; border-color: #0056B3; }

/* 資料來源（10.5sp #999999、置中、marginTop 14dp） */
.nl-source {
  margin-top: 14px; text-align: center; font-size: 10.5px; color: #999;
  line-height: 1.6;
}

/* =====================================================================
   詳情頁四張卡（平面圖／付款計劃／單位表／銷售文件）
   對 activity_new_launch_detail.xml 349-688 行、item_new_launch_photo_strip.xml、
   activity_new_launch_photo_pager.xml、item_sales_document.xml；1dp = 1px。
   ===================================================================== */

/* 卡內標題列：左標題 + 右邊 11sp #666 小字（tvPhotoCount／tvPaymentPriceList／tvUnitsSummary） */
.nl-sec-head { display: flex; align-items: center; gap: 8px; }
.nl-sec-head .nl-sec-title { flex: 1; min-width: 0; }
.nl-sec-extra { flex: none; font-size: 11px; color: #666; white-space: nowrap; }
/* 說明字（hint：11sp #666、marginTop 4dp） */
.nl-sec-hint { margin-top: 4px; font-size: 11px; color: #666; line-height: 1.55; }

/* ---------- 橫向縮圖條（RecyclerView 106dp、padding 13dp、item 148×106 radius 8） ---------- */
.nl-photo-card { padding: 14px 0; }                       /* 卡內 paddingTop/Bottom 14dp */
.nl-photo-card .nl-sec-head,
.nl-photo-card .nl-sec-hint { padding: 0 14px; }

.nl-strip {
  display: flex; gap: 8px;                                /* item marginEnd 8dp */
  margin-top: 8px; padding: 0 13px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nl-strip::-webkit-scrollbar { display: none; }
.nl-strip-flush { padding: 0; }                           /* 付款計劃內嘅 rvPaymentShots 冇左右 padding */

.nl-strip-item {
  position: relative; flex: none; width: 148px; height: 106px;
  padding: 0; border: 0; border-radius: 8px; overflow: hidden;
  background: #F5F6F7;                                    /* cardBackgroundColor surface_alt */
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  display: block;
}
.nl-strip-item:active { opacity: .9; }
.nl-strip-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nl-strip-item .nl-house {
  position: absolute; top: 50%; left: 50%; width: 34px; height: 34px;
  transform: translate(-50%, -50%); opacity: .55;
}
/* 相片種類 chip（tvPhotoLabel：bottom|start margin 6dp、bg #66000000、10sp 白、padding 6/1） */
.nl-strip-label {
  position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px);
  padding: 1px 6px; border-radius: 999px;                 /* bg_photo_viewer_chip：oval */
  background: rgba(0, 0, 0, .4); color: #fff;
  font-size: 10px; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 付款計劃（applyPaymentPlans：每個計劃 padding 8dp 上下） ---------- */
.nl-pay-plan { padding: 8px 0; }
.nl-pay-head { display: flex; align-items: center; gap: 8px; }
.nl-pay-name {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: #111; line-height: 1.4;
}
.nl-pay-tag { flex: none; font-size: 11.5px; color: #FF8000; white-space: nowrap; }  /* 減 3% · 實付 97% */
.nl-pay-first { margin-top: 2px; font-size: 10.5px; color: #999; }
.nl-pay-stage { display: flex; margin-top: 4px; }
.nl-pay-pct { flex: none; width: 46px; font-size: 12px; font-weight: 700; color: #0056B3; }
.nl-pay-when { flex: 1; min-width: 0; font-size: 11.5px; color: #4A4A4A; line-height: 1.5; }

/* ---------- 單位表（樓層 × 單位格；labelW 44dp、cellW 62dp、字 9.5sp） ---------- */
.nl-units-scroll {
  margin-top: 8px; overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.nl-units-scroll::-webkit-scrollbar { display: none; }
.nl-units-grid { display: inline-block; vertical-align: top; }
.nl-u-row { display: flex; }
.nl-u-cell {
  flex: none; width: 62px; box-sizing: border-box;
  padding: 4px 2px;
  font: inherit; font-size: 9.5px; line-height: 1.3; color: #111; text-align: center;
  border: 0; background: #fff; white-space: nowrap;
}
.nl-u-cell.head { background: #F5F6F7; font-weight: 700; }              /* surface_alt */
.nl-u-rowlabel { width: 44px; font-weight: 700; background: #F5F6F7; }
.nl-u-block { background: #EBF2FA; font-weight: 700; text-align: left; padding-left: 3px; }  /* section_header_bg */
.nl-u-empty { background: #fff; }
.nl-u-sold { background: #EFEFF1; }                                     /* 已售（app 灰） */
.nl-u-onsale { background: #FFF2BE; cursor: pointer; }                  /* 出售中（app 黃） */
.nl-u-onsale:active { background: #FBE79A; }
.nl-u-note { margin-top: 6px; font-size: 10px; color: #999; white-space: pre-line; line-height: 1.5; }

/* ---------- 銷售文件（item_sales_document.xml：每行 #F7F8FA radius 8、padding 10/8） ---------- */
.nl-doc-hint { margin-top: 2px; }
.nl-doc-group {
  margin-top: 10px; padding-bottom: 2px;
  font-size: 11px; color: #666;
}
.nl-doc-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px; padding: 8px 10px;
  background: #F7F8FA; border-radius: 8px;
  color: inherit; text-decoration: none;
}
.nl-doc-row:active { background: #EFF1F4; }
.nl-doc-main { flex: 1; min-width: 0; display: block; }
.nl-doc-label {
  display: block; font-size: 13px; font-weight: 700; color: #111; line-height: 1.35;
  word-break: break-word;
}
.nl-doc-sub { display: block; margin-top: 2px; font-size: 11px; color: #666; }
.nl-doc-open { flex: none; font-size: 11.5px; font-weight: 700; color: #0056B3; }
.nl-doc-ico { flex: none; width: 30px; height: 30px; padding: 4px; box-sizing: border-box; }  /* ivDownload 30dp padding 4 */
.nl-doc-more {
  display: block; width: 100%; margin: 0; padding: 8px 4px;
  background: none; border: 0; text-align: left;
  font: inherit; font-size: 12px; color: #0056B3; cursor: pointer;
}
.nl-doc-all {
  display: flex; align-items: center; justify-content: center;
  margin-top: 10px; padding: 10px 0;
  background: #F7F8FA; border-radius: 8px;
  font-size: 12px; font-weight: 700; color: #0056B3; text-decoration: none;
}
.nl-doc-all:active { background: #EFF1F4; }

/* =====================================================================
   全屏相片 pager（activity_new_launch_photo_pager.xml：黑底、chip #66000000）
   ===================================================================== */
body.nl-lock { overflow: hidden; }

.nl-pager {
  position: fixed; inset: 0; z-index: 120;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.nl-pager-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; display: block;                /* PhotoView FIT_CENTER */
}
.nl-pager-title {
  position: absolute; top: 12px; left: 12px; max-width: 240px;
  padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .4);
  color: #fff; font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nl-pager-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; padding: 10px; box-sizing: border-box;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .4);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nl-pager-close svg { display: block; width: 100%; height: 100%; }
.nl-pager-prev,
.nl-pager-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 10px; box-sizing: border-box;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .4);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nl-pager-prev { left: 8px; }
.nl-pager-next { right: 8px; }
.nl-pager-prev svg, .nl-pager-next svg { display: block; width: 100%; height: 100%; }
.nl-pager-prev[disabled], .nl-pager-next[disabled] { opacity: .25; cursor: default; }
.nl-pager-label {
  position: absolute; left: 16px; bottom: 24px;
  padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .4);
  color: #fff; font-size: 12px;
}
.nl-pager-credit {
  position: absolute; left: 16px; bottom: 56px; max-width: 280px;
  padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .4);
  color: #fff; font-size: 10px; line-height: 1.5;
}
.nl-pager-counter {
  position: absolute; right: 16px; bottom: 24px;
  padding: 3px 10px; border-radius: 4px; background: rgba(0, 0, 0, .7);  /* bg_video_badge */
  color: #fff; font-size: 12px; font-weight: 700;
}
.nl-pager-label[hidden], .nl-pager-credit[hidden], .nl-pager-counter[hidden] { display: none; }

/* ---------- Toast（app Toast.makeText LENGTH_LONG；單位格詳情） ---------- */
.nl-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 130;
  max-width: min(92vw, 360px);
  padding: 10px 14px; border-radius: 8px;
  background: rgba(28, 28, 28, .93); color: #fff;
  font-size: 12.5px; line-height: 1.55; white-space: pre-line;
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.nl-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   單選清單（app AlertDialog：setTitle + setSingleChoiceItems + 取消）
   ===================================================================== */
.nl-modal-bg {
  position: fixed; inset: 0; z-index: 90; display: flex;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(0, 0, 0, .45);
}
.nl-modal {
  width: 100%; max-width: 320px; max-height: 80vh; overflow-y: auto; scrollbar-width: none;
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .24);
}
.nl-modal::-webkit-scrollbar { display: none; }
.nl-modal-title {
  padding: 18px 20px 8px; font-size: 18px; font-weight: 700; color: #111;
}
.nl-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 20px; background: none; border: 0;
  font: inherit; font-size: 16px; color: #111; text-align: left; cursor: pointer;
}
.nl-opt:active { background: #F2F4F7; }
.nl-radio {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #B9C2CC; box-sizing: border-box; position: relative;
}
.nl-opt[aria-pressed="true"] .nl-radio { border-color: #0056B3; }
.nl-opt[aria-pressed="true"] .nl-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #0056B3;
}
.nl-opt-label { flex: 1; min-width: 0; }
.nl-modal-foot {
  display: flex; justify-content: flex-end; gap: 4px;
  border-top: 1px solid #E5E5E5; margin-top: 6px; padding: 8px 12px;
}
.nl-modal-cancel {
  background: none; border: 0; font: inherit; font-size: 14px; font-weight: 700;
  color: #0056B3; padding: 10px 12px; cursor: pointer;
}

/* ==========================================================================
   桌面寬版（≥961px，2026-11-22 Alan「用盡屏幕、唔好置中」規則）
   手機 ≤960px 完全唔變（.nl-page 仍然 520px、卡仍然單欄）。
   列表：篩選變 pill 工具列、卡變 3 欄卡格；詳情：卡片兩欄流（column-count）。
   ========================================================================== */
@media (min-width: 961px) {
  .nl-page {
    max-width: none;
    margin: 0;
    padding: 0 28px 40px;
  }
  .nl-header { border-radius: 10px; }

  .nl-search { padding: 16px 0 0; }
  .nl-search-box { max-width: 560px; }
  .nl-filters {
    height: auto;
    margin-top: 12px;
    padding: 0;
    gap: 8px;
    background: transparent;
  }
  .nl-filter {
    flex: none;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #E5E5E5;
    border-radius: 999px;
    background: #FFFFFF;
  }
  .nl-divider { display: none; }
  .nl-bar { margin-top: 14px; }

  .nl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(430px, 100%), 1fr));
    gap: 12px 20px;
    padding: 12px 0 24px;
  }
  .nl-card {
    margin: 0;
    border: 1px solid #EDF0F3;
    border-radius: 12px;
    background: #FFFFFF;
  }
}

/* 詳情：卡片夠多，兩欄流好過一條 520px 長龍（≥1200 才開，1100 以下兩欄太窄） */
@media (min-width: 1200px) {
  #nlDetailPane {
    max-width: none;
    column-count: 2;
    column-gap: 20px;
    padding: 0;
  }
  #nlDetailPane > * { break-inside: avoid; }
  #nlDetailPane > .nl-cover-card { column-span: all; background: #fff; }
  .nl-cover-img,
  .nl-cover-ph { height: 300px; }
  /* 售樓書封面係直版文件 → 唔好拉闊成 340px 灰帶，改用原比例居中 */
  .nl-cover-img.fit { width: auto; max-width: 100%; margin: 0 auto; }
}
