* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #222; background: #f6f6f4; }
header { padding: 14px 18px 10px; background: #fff; border-bottom: 1px solid #e5e5e0; }
header h1 { margin: 0; font-size: 20px; }
header .sub { margin: 4px 0 0; color: #666; font-size: 13px; }

main { display: flex; gap: 0; height: calc(100vh - 118px); min-height: 480px; }
#map-wrap { flex: 1 1 60%; position: relative; min-width: 0; }
#map { width: 100%; height: 100%; }
#map-hint { position: absolute; left: 10px; bottom: 10px; z-index: 500; background: rgba(255,255,255,.92); border: 1px solid #ddd; border-radius: 6px; padding: 5px 9px; font-size: 12px; color: #555; pointer-events: none; }

#side { flex: 0 0 380px; max-width: 42%; background: #fff; border-left: 1px solid #e5e5e0; overflow-y: auto; padding: 14px 16px; }
#side h2 { font-size: 17px; margin: 4px 0 10px; }
#side h3 { font-size: 15px; margin: 18px 0 8px; }
.hidden { display: none; }

.listing { border: 1px solid #e5e5e0; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; cursor: pointer; }
.listing:hover, .listing.active { border-color: #1a7f4b; background: #f3faf5; }
.listing .l-name { font-weight: 700; font-size: 15px; }
.listing .l-price { color: #d4380d; font-weight: 700; font-size: 16px; margin-top: 2px; }
.listing .l-meta { color: #666; font-size: 13px; margin-top: 2px; }
.listing.pending { opacity: .75; cursor: default; }
.badge-pending { display: inline-block; background: #faad14; color: #fff; font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.badge-approx { display: inline-block; background: #eee; color: #888; font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }

.caveat { font-size: 12px; color: #999; line-height: 1.6; }

#detail-close { border: 1px solid #ddd; background: #fff; border-radius: 6px; padding: 5px 10px; cursor: pointer; margin-bottom: 8px; }
#d-price { color: #d4380d; font-size: 22px; font-weight: 700; margin: 4px 0 8px; }
#d-meta { margin: 0 0 8px; font-size: 14px; line-height: 1.9; }
#d-meta dt { display: inline; color: #888; }
#d-meta dt::after { content: "："; }
#d-meta dd { display: inline; margin: 0; }
#d-meta dd::after { content: ""; display: block; }
#d-desc { font-size: 14px; line-height: 1.7; }
#d-amenities { font-size: 14px; line-height: 1.8; padding-left: 20px; margin: 0 0 8px; }
.coords-note { font-size: 12px; color: #999; line-height: 1.6; }
#d-link { color: #1a7f4b; }

.comment { border-top: 1px solid #eee; padding: 8px 0; font-size: 14px; }
.comment .c-head { color: #888; font-size: 12px; margin-bottom: 2px; }
.comment .c-head b { color: #333; }
.muted { color: #999; font-size: 13px; }

#comment-form input, #comment-form textarea { width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 8px 10px; font-size: 14px; margin-bottom: 8px; font-family: inherit; }
#comment-form button { background: #1a7f4b; color: #fff; border: 0; border-radius: 6px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
#comment-form button:disabled { opacity: .5; cursor: default; }
#c-msg { min-height: 18px; }

footer { padding: 10px 18px; font-size: 12px; color: #999; line-height: 1.6; }

.marker-price { background: #d4380d; color: #fff; border: 2px solid #fff; border-radius: 14px; padding: 2px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 1px 5px rgba(0,0,0,.35); }
.marker-price.pending { background: #faad14; }

@media (max-width: 760px) {
  main { flex-direction: column; height: auto; }
  #map-wrap { height: 55vh; flex: none; }
  #side { flex: none; max-width: none; border-left: 0; border-top: 1px solid #e5e5e0; }
}
