/* 刊登樓盤表單（批 3）—— 版面跟 app activity_publish_property / _rent 嘅分節結構 */
.post-main { max-width: 640px; margin: 0 auto; padding: 16px 12px 96px; }
.p-sec { background: #fff; border-radius: 12px; padding: 14px 14px 16px; margin-bottom: 12px; }
.p-sec h2 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0 0 10px; }
.p-sec h2.mt { margin-top: 16px; }
.p-sec label { display: block; font-size: 13px; color: var(--text-secondary); margin: 12px 0 5px; }
.p-sec label:first-of-type { margin-top: 0; }
.p-sec input[type="text"], .p-sec input[type="email"], .p-sec input[type="date"],
.p-sec input:not([type]), .p-sec select, .p-sec textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px;
  padding: 10px 12px; border: 1px solid var(--divider); border-radius: 8px;
  background: #fff; color: var(--text-primary); outline: none;
}
.p-sec input:focus, .p-sec select:focus, .p-sec textarea:focus { border-color: var(--brand-blue, #0056B3); }
/* 期數／座／樓層：右邊顯示 ▶（同 app 欄位一樣，表示撳一下有清單）；padding-right 預留位 */
.p-sec input.na-arrow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999999' d='M8 5 L19 12 L8 19 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px 20px;
  padding-right: 40px;
}
.p-sec textarea { resize: vertical; line-height: 1.6; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }
.req { color: var(--red, #FF8000); }
.hint { font-size: 12px; color: var(--text-tertiary); margin: 6px 0 0; line-height: 1.5; }
.chip-row { display: flex; gap: 8px; flex-wrap: nowrap; }
.chip-row.wrap { flex-wrap: wrap; }
.chip {
  font: inherit; font-size: 13px; padding: 8px 14px; border-radius: 18px;
  border: 1px solid var(--divider); background: #fff; color: var(--text-secondary);
  cursor: pointer;
}
.chip.on { background: var(--brand-blue, #0056B3); border-color: var(--brand-blue, #0056B3); color: #fff; font-weight: 700; }
.chip[disabled] { opacity: .5; cursor: default; }
.sw { display: flex !important; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); margin-top: 12px; }
.sw input { width: auto; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: #F0F2F5; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; line-height: 18px;
  border: 0; border-radius: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; cursor: pointer;
}
.btn-outline {
  font: inherit; font-size: 14px; padding: 9px 16px; border-radius: 8px;
  border: 1px dashed var(--brand-blue, #0056B3); background: #fff;
  color: var(--brand-blue, #0056B3); cursor: pointer;
}
.btn-primary {
  width: 100%; font: inherit; font-size: 16px; font-weight: 700; color: #fff;
  background: var(--brand-blue, #0056B3); border: 0; border-radius: 10px;
  padding: 14px 0; cursor: pointer; margin-top: 4px;
}
.btn-primary[disabled] { background: #E0E0E0; cursor: default; }
.fee-box {
  margin-top: 12px; background: var(--bg-light, #F7F8FA); border-radius: 10px;
  padding: 12px; font-size: 14px; line-height: 1.7;
}
.fee-box #coinBalance { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
.err { color: #D93025; font-size: 13px; margin-top: 10px; }

/* 補地價狀態（2026-10-02）：外層容器 hidden 時一定要收埋 ——
   .chip-row { display:flex } 會蓋過 [hidden] 嘅 display:none。 */
#premiumBlock[hidden] { display: none; }

/* ---------- 差餉單（業主盤；2026-10-16 鏡像 app activity_publish_rent.xml 同一塊）----------
   app 值：一行 RelativeLayout，marginTop 14dp、paddingBottom 8dp、底部 1dp @color/divider #E5E5E5；
   左邊 label「檔案」bold @color/black；右邊 tvRatesBillDisplay #999999（app 揀完檔之後顏色都係 #999999，
   只換文字＝檔名），末尾帶一個 ▷ 指示（app drawableEndCompat = ic_media_play）。 */
.rates-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-bottom: 8px; border-bottom: 1px solid #E5E5E5;
  cursor: pointer;
}
.rates-row:focus-visible { outline: 2px solid #6200EE; outline-offset: 2px; }
.rates-label { font-weight: 700; color: #111111; }
.rates-display {
  display: inline-flex; align-items: center; gap: 6px;
  color: #999999; text-align: right; word-break: break-all;
}
.rates-arrow { font-size: 10px; line-height: 1; }

/* 樓盤標籤分組（app PropertyTagsActivity：橙邊＋橙字；選中時橙字橙框） */
.tag-groups { display: flex; flex-direction: column; gap: 12px; }
.tag-group-title { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.tag-max { font-size: 11px; font-weight: 400; color: #999; }
.tag-group .chip { border-color: #EEEEEE; color: #333333; background: #fff; }
.tag-group .chip[aria-pressed="true"] {
  border-color: var(--brand-orange, #FF8000); color: var(--brand-orange, #FF8000); background: #FFF6EC; font-weight: 700;
}

/* 儲存結果提示條（2026-11-23 Alan：「撳完儲存修改冇 popup 講成功」）
   原因：#status 喺表單最頂，會員捲到頁底撳掣時嗰行字喺畫面外 → 完全睇唔到。
   所以用 position:fixed 貼住 viewport 底部，唔理捲到邊都見到。
   唔用 alert()：同 app 一樣（PropertyDetailsActivity Toast「更新成功」）只係短暫提示，唔阻下一個動作。 */
.edit-toast {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 300;
  /* ⚠️ left:50% 之下 shrink-to-fit 只有「容器闊度 - 50%」（390 螢幕 = 195px），
     文字會被硬斷成兩行（「即／刻」被拆開）。所以要 width:max-content 再由 max-width 封頂。 */
  width: max-content;
  max-width: min(360px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.94);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.edit-toast:not([hidden]) { opacity: 1; transform: translateX(-50%) translateY(0); }
.edit-toast.is-ok { background: #0F8A4D; }   /* tokens --badge-source-text（成功綠） */
.edit-toast.is-err { background: #C62828; }
@media (prefers-reduced-motion: reduce) { .edit-toast { transition: none; } }

/* 代理顯示電話 checkbox 清單（post.html #agentPicker） */
.agent-picker-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.agent-pick { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #333; cursor: pointer; }
.agent-pick input { width: 18px; height: 18px; accent-color: #FF8000; }
.agent-pick-phone { color: #888; font-size: 12px; margin-left: auto; }
.agent-pick-main { color: #888; font-size: 12px; margin-left: 2px; }
