/* 省 / 市 / 区县三级滚动选择 */

/* 模块说明（人工修改前先读）
 * 模块：public/styles/location-picker.css
 * 职责：省市县三级选择器样式。
 * 修改边界：只改地点选择器。
 */
.lp-root { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; }
.lp-mask { position: absolute; inset: 0; background: rgba(20, 24, 30, .42); opacity: 0; transition: opacity .16s; }
.lp-root.show .lp-mask { opacity: 1; }
.lp-dialog { position: relative; width: 560px; max-width: calc(100vw - 32px); background: #fff; border-radius: 12px; padding: 18px 20px 16px; box-shadow: 0 18px 50px rgba(20,24,30,.22); transform: translateY(8px); opacity: 0; transition: .16s; }
.lp-root.show .lp-dialog { transform: translateY(0); opacity: 1; }
.lp-grab { display: none; }
.lp-head { display: flex; align-items: flex-start; gap: 10px; }
.lp-head h3 { margin: 0; font-size: 18px; font-weight: 650; color: #1f2329; }
.lp-head p { margin: 4px 0 0; font-size: 10.5px; color: #86909c; }
.lp-close { margin-left: auto; border: 0; background: transparent; color: #86909c; font-size: 22px; line-height: 1; padding: 0 2px; cursor: pointer; }
.lp-path { margin: 13px 0 10px; padding: 8px 10px; border-radius: 5px; background: #fff2f2; color: #d51921; font-size: 11px; font-weight: 600; }
.lp-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; position: relative; }
.lp-col-wrap { min-width: 0; }
.lp-col-title { display: block; text-align: center; font-size: 9.5px; color: #86909c; margin-bottom: 5px; }
.lp-col { height: 240px; overflow-y: auto; border: 1px solid #f2f3f5; border-radius: 5px; background: #fff; padding: 4px 0; scrollbar-width: thin; }
.lp-col::-webkit-scrollbar { width: 4px; }
.lp-col::-webkit-scrollbar-thumb { background: #e5e6eb; border-radius: 4px; }
.lp-item { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 34px; border: 0; background: transparent; color: #4e5969; font: inherit; font-size: 11px; padding: 5px 4px; cursor: pointer; }
.lp-item:hover { background: #f7f8fa; }
.lp-item.sel { background: #fff2f2; color: #d51921; font-weight: 600; }
.lp-empty, .lp-loading { display: flex; align-items: center; justify-content: center; height: 100%; color: #b5bdc7; font-size: 10px; }
.lp-error { min-height: 16px; color: #d51921; font-size: 10px; margin-top: 5px; }
.lp-foot { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: 9px; }
.lp-foot button { height: 40px; border-radius: 5px; font: inherit; font-size: 12px; cursor: pointer; }
.lp-cancel { border: 1px solid #e5e6eb; background: #fff; color: #86909c; }
.lp-ok { border: 1px solid #d51921; background: #d51921; color: #fff; font-weight: 600; }
.lp-ok:disabled { border-color: #e5e6eb; background: #e5e6eb; color: #fff; cursor: not-allowed; }

@media (max-width: 760px) {
  .lp-root { align-items: flex-end; }
  .lp-dialog { width: 100%; max-width: none; border-radius: 20px 20px 0 0; padding: 10px 16px calc(15px + env(safe-area-inset-bottom)); transform: translateY(100%); }
  .lp-grab { display: block; width: 34px; height: 3px; border-radius: 2px; background: #e5e6eb; margin: 0 auto 11px; }
  .lp-col { height: 220px; }
  .lp-head h3 { font-size: 17px; }
}

/* 「我的」里的论坛地点展示范围 */
.me-scope { display: inline-flex; gap: 3px; background: #f2f3f5; border-radius: 4px; padding: 2px; vertical-align: middle; }
.me-scope button { border: 0; background: transparent; border-radius: 3px; color: #86909c; font: inherit; font-size: 10px; padding: 4px 8px; cursor: pointer; }
.me-scope button.on { background: #fff; color: #1f2329; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* 发帖弹窗的地点行 */
.compose-loc { display: flex; align-items: center; gap: 6px; border: 1px solid #f0d2d3; background: #fff2f2; border-radius: 5px; padding: 7px 9px; color: #d51921; font-size: 11px; }
.compose-loc-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compose-loc button { border: 0; background: transparent; color: #d51921; font: inherit; font-size: 10px; padding: 2px 4px; cursor: pointer; }

/* 帖子列表里的地点 */
.cm-loc { color: #86909c; font-size: 10px; white-space: nowrap; }
