:root {
  --bg: #e9eee9;
  --surface: rgba(255, 255, 255, 0.90);
  --surface-solid: #ffffff;
  --ink: #18221e;
  --muted: #6d7973;
  --line: rgba(24, 34, 30, 0.09);
  --line-strong: rgba(24, 34, 30, 0.15);
  --accent: #246c54;
  --accent-dark: #184b3c;
  --accent-soft: #e6f1eb;
  --warm: #cf8f58;
  --coffee: #b87548;
  --library: #497b68;
  --coworking: #5d6f91;
  --public-space: #63835d;
  --hotel: #876d85;
  --danger: #b14f49;
  --shadow: 0 20px 60px rgba(36, 48, 42, 0.16);
  --shadow-soft: 0 12px 36px rgba(36, 48, 42, 0.11);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }

.app-shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  background: var(--bg);
}

.glass-panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: 0 14px 42px rgba(44, 58, 50, 0.12), inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: blur(22px) saturate(1.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 36px));
  min-height: 66px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 14px;
  transition: width .25s ease, border-radius .25s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: transparent;
  color: white;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(31, 107, 82, .18);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-copy { display: grid; text-align: left; line-height: 1.05; min-width: 0; }
.brand-copy strong { font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }

.topbar-actions { display: flex; gap: 7px; align-items: center; }
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.icon-button:hover { transform: translateY(-1px); background: #fff; border-color: var(--line-strong); }
.icon-button:active { transform: translateY(0) scale(.97); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.search-strip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 18px;
  background: rgba(255,255,255,.98);
  animation: fadeSlide .2s ease;
}
.search-strip svg { width: 21px; height: 21px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-strip input { border: 0; outline: 0; font-size: 15px; background: transparent; min-width: 0; color: var(--ink); }
.search-strip input::placeholder { color: #929b97; }
.text-button { border: 0; background: transparent; color: var(--accent); cursor: pointer; padding: 8px 4px; font-weight: 650; font-size: 14px; }

.filter-rail {
  position: fixed;
  z-index: 35;
  top: 98px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 36px));
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 2px 8px;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 18px), transparent);
}
.filter-rail::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.84);
  box-shadow: 0 7px 22px rgba(35,48,42,.09);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 15px;
  cursor: pointer;
  color: #4e5b56;
  font-size: 13px;
  font-weight: 650;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.filter-chip:hover { transform: translateY(-1px); }
.filter-chip.active { color: #fff; background: var(--accent); border-color: var(--accent); }

.map-stage, .map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 420px; }
.map-stage { isolation: isolate; background: #e8ede8; }
.map-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(229,237,231,.30) 0%, rgba(229,237,231,.08) 35%, transparent 62%),
    radial-gradient(circle at 72% 42%, transparent 28%, rgba(225,233,227,.12) 100%);
}
.map-canvas > .amap-container, .map-canvas .amap-maps { width: 100% !important; height: 100% !important; }
.map-canvas { background: #e8ede8; overflow: hidden; }
.map-canvas .amap-maps { filter: saturate(.62) contrast(.94) brightness(1.035) hue-rotate(-3deg); }
.map-canvas .amap-logo, .map-canvas .amap-copyright { opacity: .56 !important; filter: grayscale(1); }
.map-canvas .amap-copyright { background: rgba(255,255,255,.62) !important; border-radius: 8px 0 0 0; }

.map-status {
  position: absolute;
  left: calc(50% + 160px);
  bottom: 20px;
  z-index: 25;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 9px 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(31,107,82,.10); }
.location-button {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 26;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.7);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.location-button svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }

.place-rail {
  position: fixed;
  z-index: 30;
  left: 20px;
  top: 145px;
  bottom: 20px;
  width: 336px;
  border-radius: var(--radius-xl);
  padding: 22px 18px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rail-heading h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.12; letter-spacing: -.04em; }
.eyebrow { display: block; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.count-badge { min-width: 34px; height: 34px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.rail-intro { margin: 12px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.place-list { overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(23,33,29,.18) transparent; }
.place-list::-webkit-scrollbar { width: 5px; }
.place-list::-webkit-scrollbar-thumb { background: rgba(23,33,29,.14); border-radius: 999px; }

.place-card {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  padding: 15px 2px;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}
.place-card:first-child { border-top: 0; padding-top: 5px; }
.place-card:hover { transform: translateX(2px); }
.place-card.selected { margin: 2px 0; padding-left: 10px; padding-right: 10px; border-radius: 16px; border-top-color: transparent; background: rgba(231,241,235,.82); box-shadow: inset 0 0 0 1px rgba(36,108,84,.08); }
.place-card.selected + .place-card { border-top-color: transparent; }
.place-card-top { display: flex; align-items: flex-start; gap: 11px; }
.category-icon {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center;
  background: #edf2ee; color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(25,40,33,.035);
}
.category-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.category-icon.category-coffee { color: var(--coffee); background: #f6ece5; }
.category-icon.category-library { color: var(--library); background: #e8f1ed; }
.category-icon.category-coworking { color: var(--coworking); background: #ebedf4; }
.category-icon.category-public { color: var(--public-space); background: #edf3e9; }
.category-icon.category-hotel { color: var(--hotel); background: #f1ebf0; }
.place-card-copy { min-width: 0; flex: 1; }
.place-card h3 { margin: 0; font-size: 14px; line-height: 1.35; letter-spacing: -.01em; }
.place-meta { margin-top: 5px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; color: var(--muted); font-size: 11px; }
.place-meta span { display: inline-flex; align-items: center; gap: 4px; }
.place-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.soft-tag { padding: 5px 8px; border-radius: 999px; background: #f0f3ef; color: #5e6a64; font-size: 10px; font-weight: 650; }
.soft-tag.accent { background: var(--accent-soft); color: var(--accent); }

.detail-sheet {
  position: fixed;
  z-index: 50;
  width: min(500px, calc(100vw - 32px));
  right: 24px;
  top: 145px;
  bottom: 24px;
  border-radius: 30px;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(calc(100% + 60px));
  opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.detail-sheet.open { transform: translateX(0); opacity: 1; }
.sheet-handle { display: none; }
.sheet-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.75); display: grid; place-items: center; cursor: pointer; }
.sheet-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.detail-kicker { display: flex; flex-wrap: wrap; gap: 8px; padding-right: 50px; }
.detail-badge { padding: 6px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 750; }
.detail-badge.demo { background: #fff1de; color: #9b6429; }
.detail-title { margin: 14px 52px 8px 0; font-size: 29px; line-height: 1.15; letter-spacing: -.04em; }
.detail-subtitle { color: var(--muted); line-height: 1.55; font-size: 13px; }
.detail-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 18px 0; }
.primary-button, .secondary-button, .danger-button {
  border: 0;
  border-radius: 15px;
  min-height: 46px;
  padding: 0 17px;
  cursor: pointer;
  font-weight: 750;
  font-size: 14px;
  transition: transform .18s ease, opacity .18s ease;
}
.primary-button { background: var(--accent); color: #fff; box-shadow: 0 12px 26px rgba(31,107,82,.20); }
.secondary-button { background: #eef1ee; color: var(--ink); }
.danger-button { background: #f8e9e8; color: var(--danger); }
.primary-button:hover, .secondary-button:hover, .danger-button:hover { transform: translateY(-1px); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.favorite-action { width: 48px; padding: 0; display: grid; place-items: center; }
.favorite-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.favorite-action.saved svg { fill: currentColor; }
.detail-metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 20px 0; }
.metric-card { background: #f1f3ef; border-radius: 17px; padding: 13px; min-height: 84px; }
.metric-card span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 8px; }
.metric-card strong { display: block; font-size: 14px; line-height: 1.35; }
.quiet-meter { display: flex; gap: 4px; margin-top: 8px; }
.quiet-meter i { width: 18px; height: 4px; border-radius: 999px; background: #d4dbd6; }
.quiet-meter i.on { background: var(--accent); }
.detail-section { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.detail-section h4 { margin: 0 0 9px; font-size: 12px; }
.detail-section p { margin: 0; color: #54615b; font-size: 13px; line-height: 1.72; }
.mode-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-tag { padding: 8px 10px; border-radius: 12px; background: #eef3ef; font-size: 11px; font-weight: 650; color: #4d5f56; }
.detail-footnote { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #fff7e9; color: #80592d; font-size: 11px; line-height: 1.55; }

.submit-fab {
  position: fixed;
  z-index: 38;
  right: 24px;
  top: 145px;
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 760;
  box-shadow: 0 16px 34px rgba(31,107,82,.28);
}
.submit-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.map-marker {
  --marker-color: var(--accent);
  position: relative;
  width: 46px;
  height: 56px;
  cursor: pointer;
  transform-origin: center bottom;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), filter .22s ease;
  filter: drop-shadow(0 9px 10px rgba(33, 50, 41, .19));
}
.map-marker.category-coffee { --marker-color: var(--coffee); }
.map-marker.category-library { --marker-color: var(--library); }
.map-marker.category-coworking { --marker-color: var(--coworking); }
.map-marker.category-public { --marker-color: var(--public-space); }
.map-marker.category-hotel { --marker-color: var(--hotel); }
.map-marker:hover, .map-marker.selected { transform: translateY(-5px) scale(1.08); filter: drop-shadow(0 14px 15px rgba(33,50,41,.24)); z-index: 50; }
.map-marker-halo { position: absolute; left: 3px; top: 1px; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--marker-color) 16%, transparent); transform: scale(.9); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.map-marker:hover .map-marker-halo, .map-marker.selected .map-marker-halo, .map-marker.featured .map-marker-halo { opacity: 1; transform: scale(1.28); }
.map-marker-pin {
  position: absolute;
  left: 5px;
  top: 2px;
  width: 36px;
  height: 42px;
  border-radius: 18px 18px 18px 7px;
  transform: rotate(-45deg);
  background: rgba(255,255,255,.97);
  border: 2px solid var(--marker-color);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7);
}
.map-marker-icon {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--marker-color);
  color: #fff;
  z-index: 1;
}
.map-marker-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-marker-label {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translate(-50%, 6px);
  width: max-content;
  max-width: 180px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.86);
  box-shadow: 0 10px 24px rgba(35,50,42,.13);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.map-marker:hover .map-marker-label, .map-marker.selected .map-marker-label { opacity: 1; transform: translate(-50%, 0); }
.map-marker.featured .map-marker-pin { border-color: var(--warm); }
.map-marker.featured .map-marker-icon { background: var(--warm); }
.map-marker.featured .map-marker-halo { background: rgba(207,143,88,.18); }
.map-marker.unverified { opacity: .68; }
.map-marker.unverified .map-marker-pin { border-style: dashed; }

.fallback-map-art { position: absolute; inset: 0; background: linear-gradient(135deg, #edf1ed 0%, #e3eae4 100%); overflow: hidden; }
.fallback-map-art::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(58,76,66,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(58,76,66,.09) 1px, transparent 1px); background-size: 48px 48px; }
.fallback-map-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fallback-map-art .river { fill: none; stroke: #c7dcda; stroke-width: 90; stroke-linecap: round; opacity: .82; }
.fallback-map-art .road { fill: none; stroke: rgba(255,255,255,.95); stroke-width: 8; stroke-linecap: round; }
.fallback-map-art .road.main { stroke-width: 14; }
.fallback-map-art .metro { fill: none; stroke: #8ea89b; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 8; opacity: .65; }
.fallback-map-art .metro.alt { stroke: #c29c79; }
.fallback-map-art .park { fill: #cfdfcf; opacity: .55; }
.map-label { position: absolute; color: #7b8982; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.label-xinjiekou { left: 45%; top: 42%; }
.label-gulou { left: 34%; top: 25%; }
.label-hexi { left: 22%; top: 56%; }
.label-xianlin { right: 14%; top: 27%; }
.label-south { left: 52%; bottom: 16%; }
.fallback-marker { position: absolute; z-index: 7; border: 0; background: transparent; padding: 0; }

.modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
.modal::backdrop { background: rgba(20,29,25,.42); backdrop-filter: blur(8px); }
.modal-card {
  width: min(760px, calc(100vw - 28px));
  max-height: min(88dvh, 880px);
  overflow-y: auto;
  background: #fff;
  border-radius: 30px;
  padding: 26px;
  box-shadow: var(--shadow);
  animation: modalIn .25s ease;
}
.compact-card { width: min(520px, calc(100vw - 28px)); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-header h2 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.035em; }
.modal-close { flex: 0 0 auto; }
.form-note { color: var(--muted); line-height: 1.65; font-size: 12px; margin: 12px 0 20px; }
.submission-form label { display: grid; gap: 7px; margin: 0 0 14px; }
.submission-form label > span { color: #52605a; font-size: 11px; font-weight: 700; }
.submission-form input, .submission-form select, .submission-form textarea, .admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 13px; background: #fbfcfa; color: var(--ink); outline: 0; padding: 11px 12px; min-height: 44px; transition: border-color .18s ease, box-shadow .18s ease; }
.submission-form textarea, .admin-form textarea { resize: vertical; line-height: 1.55; }
.submission-form input:focus, .submission-form select:focus, .submission-form textarea:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,107,82,.10); background: #fff; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid.three-col { grid-template-columns: repeat(3, minmax(0,1fr)); }
.check-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 2px 0 16px; }
.check { display: inline-flex !important; grid-auto-flow: column; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; border: 1px solid var(--line); padding: 9px 11px; border-radius: 13px; margin: 0 !important; background: #fbfcfa; }
.check input { width: 16px !important; min-height: 16px !important; height: 16px; margin: 0; accent-color: var(--accent); }
.check span { font-size: 11px !important; }
.upload-field { border: 1px dashed var(--line-strong); border-radius: 20px; padding: 14px; background: #fafbf9; }
.upload-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.upload-heading strong { display: block; color: var(--ink); font-size: 12px; }
.upload-heading div > span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.photo-count { flex: 0 0 auto; border-radius: 999px; padding: 5px 9px; background: #edf3ef; color: var(--accent); font-size: 11px; font-weight: 800; }
.photo-picker-button { min-height: 46px; margin: 0 !important; border: 1px solid var(--line-strong); border-radius: 14px; display: flex !important; grid-template-columns: auto 1fr; align-items: center; justify-content: center; gap: 8px !important; background: #fff; color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 800; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.photo-picker-button:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: 0 8px 20px rgba(31,107,82,.10); }
.photo-picker-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.photo-processing { min-height: 18px; margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.photo-preview { min-height: 92px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.photo-empty { grid-column: 1 / -1; min-height: 80px; display: grid; place-items: center; border-radius: 14px; background: #f4f6f3; }
.photo-item { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: #edf1ed; aspect-ratio: 1; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-item figcaption { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 4px 6px; overflow: hidden; border-radius: 999px; background: rgba(20,29,25,.72); color: #fff; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; backdrop-filter: blur(6px); }
.photo-remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(20,29,25,.78); color: #fff; cursor: pointer; box-shadow: 0 5px 14px rgba(0,0,0,.16); }
.photo-remove svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.success-card { text-align: center; padding: 38px 30px 30px; overflow: hidden; }
.success-orbit { width: 92px; height: 92px; margin: 0 auto 22px; position: relative; display: grid; place-items: center; border-radius: 50%; background: #eaf3ee; color: var(--accent); }
.success-orbit::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(31,107,82,.22); border-radius: 50%; }
.success-orbit svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.success-orbit span { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #d58f50; }
.success-orbit span:nth-child(1) { top: 4px; right: 18px; }
.success-orbit span:nth-child(2) { bottom: 10px; left: 9px; width: 5px; height: 5px; }
.success-orbit span:nth-child(3) { bottom: 2px; right: 25px; width: 4px; height: 4px; background: var(--accent); }
.success-kicker { display: block; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.success-card h2 { margin: 11px auto 12px; max-width: 390px; font-size: 25px; line-height: 1.2; letter-spacing: -.035em; }
.success-card p { margin: 0 auto 24px; max-width: 420px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.success-close { width: 100%; justify-content: center; }
.honeypot { position: absolute !important; left: -9999px; opacity: 0; pointer-events: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.form-feedback { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: right; }
.form-feedback.error { color: var(--danger); }
.form-feedback.success { color: var(--accent); }
.favorite-list { display: grid; gap: 10px; margin-top: 18px; }
.favorite-item { border: 1px solid var(--line); border-radius: 17px; padding: 13px; display: flex; gap: 10px; align-items: center; }
.favorite-item button { flex: 1; text-align: left; border: 0; background: transparent; padding: 0; cursor: pointer; }
.favorite-item strong { display: block; font-size: 13px; }
.favorite-item small { display: block; margin-top: 5px; color: var(--muted); }
.favorite-empty { padding: 34px 14px; text-align: center; color: var(--muted); font-size: 13px; }

.empty-state { padding: 28px 10px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(30px); opacity: 0; pointer-events: none; background: #18211d; color: #fff; border-radius: 999px; padding: 11px 16px; font-size: 12px; box-shadow: var(--shadow); transition: all .25s ease; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@keyframes fadeSlide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Admin portal */
body.admin-page { overflow: auto; background: #eef1ed; }
.admin-shell { min-height: 100dvh; }
.admin-login-view { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 20%, rgba(31,107,82,.11), transparent 32%), radial-gradient(circle at 85% 85%, rgba(213,143,80,.12), transparent 30%), #eef1ed; }
.login-card { width: min(440px, 100%); background: #fff; border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-brand .brand-mark { width: 48px; height: 48px; }
.login-card h1 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.login-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.admin-form { display: grid; gap: 14px; }
.admin-form label { display: grid; gap: 7px; }
.admin-form label > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.admin-form .primary-button { margin-top: 4px; }
.login-links { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.login-links a { color: var(--accent); font-weight: 700; }

.portal { min-height: 100dvh; }
.portal-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; background: rgba(255,255,255,.90); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.portal-brand { display: flex; align-items: center; gap: 10px; }
.portal-brand .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
.portal-brand strong { font-size: 14px; }
.portal-user { display: flex; align-items: center; gap: 10px; }
.portal-user-copy { text-align: right; }
.portal-user-copy strong { display: block; font-size: 12px; }
.portal-user-copy small { display: block; color: var(--muted); margin-top: 3px; }
.portal-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: calc(100dvh - 67px); }
.portal-sidebar { border-right: 1px solid var(--line); background: rgba(255,255,255,.6); padding: 22px 14px; }
.portal-nav { display: grid; gap: 6px; position: sticky; top: 92px; }
.portal-nav button { border: 0; background: transparent; border-radius: 13px; padding: 12px 13px; text-align: left; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
.portal-nav button.active { color: var(--accent); background: var(--accent-soft); }
.portal-content { padding: 28px; min-width: 0; }
.portal-section { display: none; }
.portal-section.active { display: block; animation: fadeSlide .2s ease; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2 { margin: 6px 0 0; font-size: 28px; letter-spacing: -.04em; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.heading-actions .primary-button, .heading-actions .secondary-button { min-height: 42px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.stat-card span { display: block; color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin-top: 8px; font-size: 27px; letter-spacing: -.04em; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.admin-list { display: grid; }
.admin-row { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(150px,.8fr) minmax(130px,.7fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.admin-row:first-child { border-top: 0; }
.admin-row strong { font-size: 13px; }
.admin-row small { color: var(--muted); display: block; margin-top: 5px; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; background: #eef1ee; color: var(--muted); }
.status-pill.pending { background: #fff3dd; color: #94642c; }
.status-pill.approved { background: var(--accent-soft); color: var(--accent); }
.status-pill.rejected { background: #f8e9e8; color: var(--danger); }
.row-actions { display: flex; gap: 7px; justify-content: flex-end; }
.small-button { min-height: 36px; border-radius: 11px; padding: 0 11px; font-size: 11px; font-weight: 750; border: 1px solid var(--line); background: #f7f8f6; cursor: pointer; }
.small-button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.small-button.danger { background: #f8e9e8; color: var(--danger); border-color: transparent; }
.admin-drawer { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff; box-shadow: -20px 0 60px rgba(31,43,37,.17); transform: translateX(105%); transition: transform .28s ease; overflow-y: auto; padding: 24px; }
.admin-drawer.open { transform: translateX(0); }
.admin-drawer-overlay { position: fixed; inset: 0; z-index: 49; background: rgba(20,29,25,.35); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.admin-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.drawer-header h3 { margin: 6px 0 0; font-size: 23px; letter-spacing: -.035em; }
.drawer-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 15px 0; }
.drawer-meta div { background: #f4f6f3; border-radius: 13px; padding: 11px; }
.drawer-meta span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.drawer-meta strong { font-size: 12px; }
.drawer-images { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 15px 0; }
.drawer-images img { width: 100%; aspect-ratio: 1.3; object-fit: cover; border-radius: 12px; }
.inline-form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.form-actions-inline { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }

@media (max-width: 980px) {
  .place-rail { width: 300px; }
  .map-status { left: 50%; }
  .detail-sheet { width: min(460px, calc(100vw - 28px)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-row { grid-template-columns: minmax(160px,1fr) minmax(130px,.7fr) auto; }
  .admin-row > :nth-child(3) { display: none; }
}

@media (max-width: 760px) {
  body { overflow: hidden; }
  .app-shell { min-height: 560px; }
  .topbar { top: max(10px, env(safe-area-inset-top)); width: calc(100vw - 20px); min-height: 58px; border-radius: 19px; padding: 8px 9px 8px 10px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 13px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 8px; }
  .icon-button { width: 38px; height: 38px; border-radius: 13px; }
  .topbar-actions .icon-button:nth-child(3) { display: none; }
  .filter-rail { top: calc(max(10px, env(safe-area-inset-top)) + 67px); width: 100vw; left: 0; transform: none; padding-left: 10px; padding-right: 10px; mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent); }
  .filter-chip { min-height: 36px; padding: 0 13px; font-size: 12px; }
  .place-rail {
    left: 10px; right: 10px; top: auto; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; height: 166px;
    border-radius: 24px; padding: 14px 14px 10px;
  }
  .rail-heading { align-items: center; }
  .rail-heading h1 { font-size: 18px; margin-top: 2px; }
  .rail-heading .eyebrow, .rail-intro { display: none; }
  .count-badge { height: 28px; min-width: 28px; border-radius: 10px; }
  .place-list { display: flex; overflow-x: auto; overflow-y: hidden; gap: 9px; padding: 8px 2px 2px; scrollbar-width: none; }
  .place-list::-webkit-scrollbar { display: none; }
  .place-card { min-width: 255px; border: 1px solid var(--line); border-radius: 16px; background: rgba(248,250,247,.8); padding: 11px !important; }
  .category-icon { width: 34px; height: 34px; border-radius: 11px; }
  .place-tags { flex-wrap: nowrap; overflow: hidden; }
  .place-tags .soft-tag:nth-child(n+3) { display: none; }
  .submit-fab { top: auto; right: 18px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 180px); width: 48px; height: 48px; min-height: 48px; padding: 0; justify-content: center; border-radius: 16px; }
  .submit-fab span { display: none; }
  .location-button { right: 18px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 238px); width: 46px; height: 46px; }
  .map-status { left: 12px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 184px); transform: none; padding: 8px 11px; }
  .detail-sheet {
    left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 78dvh; border-radius: 28px 28px 22px 22px;
    padding: 26px 20px 20px; transform: translateY(calc(100% + 30px));
  }
  .detail-sheet.open { transform: translateY(0); }
  .sheet-handle { display: block; width: 40px; height: 4px; border-radius: 999px; background: #d3d8d5; margin: -12px auto 12px; }
  .detail-title { font-size: 25px; }
  .detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .modal-card { max-height: 92dvh; padding: 20px; border-radius: 25px; }
  .form-grid.two-col, .form-grid.three-col { grid-template-columns: 1fr; gap: 0; }
  .photo-preview { grid-template-columns: repeat(3,minmax(0,1fr)); }

  .portal-topbar { padding: 11px 13px; }
  .portal-user-copy { display: none; }
  .portal-layout { display: block; }
  .portal-sidebar { position: sticky; top: 61px; z-index: 15; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; overflow-x: auto; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); }
  .portal-nav { position: static; display: flex; gap: 7px; width: max-content; }
  .portal-nav button { white-space: nowrap; padding: 9px 12px; }
  .portal-content { padding: 18px 12px 30px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2 { font-size: 24px; }
  .heading-actions { width: 100%; }
  .heading-actions .primary-button, .heading-actions .secondary-button { flex: 1 1 180px; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-row { grid-template-columns: 1fr; gap: 8px; }
  .admin-row > :nth-child(2), .admin-row > :nth-child(3) { display: block; }
  .row-actions { justify-content: flex-start; }
  .drawer-meta { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand-copy small { display: none; }
  .topbar-actions { gap: 5px; }
  .topbar { width: calc(100vw - 14px); }
  .place-card { min-width: 235px; }
  .detail-metrics { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}


/* v1.5 Demo-style map refinements */
.map-canvas .amap-icon img { image-rendering: auto; }
.map-canvas .amap-marker { overflow: visible !important; }
.map-canvas .amap-marker-content { overflow: visible !important; }
.map-canvas .amap-info-content { border-radius: 16px !important; box-shadow: var(--shadow-soft) !important; }
.map-canvas .amap-overlay-text-container { border: 0 !important; border-radius: 10px !important; box-shadow: 0 8px 20px rgba(32,48,40,.12) !important; }

@supports not (color: color-mix(in srgb, white, black)) {
  .map-marker-halo { background: rgba(36,108,84,.14); }
}

/* v1.6 Map-confirmed location workflow */
.location-picker {
  margin: 4px 0 16px;
  padding: 16px;
  border: 1px solid #d8e2dc;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7faf7 0%, #f1f6f2 100%);
}
.location-picker.compact { padding: 14px; border-radius: 18px; }
.location-picker-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.location-picker-heading strong { display: block; font-size: 14px; color: var(--text); }
.location-picker-heading span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.location-search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.location-search-row input { min-width: 0; }
.location-search-row .secondary-button { min-height: 44px; padding-inline: 15px; white-space: nowrap; }
.location-status { margin: 8px 2px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.location-search-results { display: grid; max-height: 230px; overflow-y: auto; margin: 8px 0 10px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 12px 30px rgba(39,54,46,.09); }
.location-result { display: grid; gap: 3px; width: 100%; padding: 10px 11px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.location-result:hover, .location-result:focus-visible { background: var(--accent-soft); outline: none; }
.location-result strong { font-size: 12px; color: var(--text); }
.location-result span { font-size: 10px; color: var(--muted); line-height: 1.45; }
.location-search-empty { padding: 14px; color: var(--muted); font-size: 11px; text-align: center; }
.location-picker-map { width: 100%; height: 260px; overflow: hidden; border: 1px solid #d9e0dc; border-radius: 16px; background: #e9eee9; }
.location-picker.compact .location-picker-map { height: 220px; }
.location-summary { display: grid; gap: 3px; margin-top: 10px; padding: 11px 12px; border-radius: 13px; background: #fff; border: 1px solid var(--line); }
.location-summary strong { font-size: 12px; color: var(--text); }
.location-summary span { font-size: 10px; color: var(--muted); line-height: 1.5; }
.location-summary small { font-size: 9px; color: #789087; }
.location-picker.has-location .location-summary { border-color: rgba(36,108,84,.26); box-shadow: inset 3px 0 0 var(--accent); }
.location-picker-pin { position: relative; width: 34px; height: 42px; filter: drop-shadow(0 7px 8px rgba(24,57,45,.2)); }
.location-picker-pin::before { content: ''; position: absolute; inset: 0 0 8px; border-radius: 18px 18px 18px 4px; background: var(--accent); transform: rotate(-45deg); border: 3px solid #fff; }
.location-picker-pin span { position: absolute; left: 50%; top: 10px; z-index: 1; width: 9px; height: 9px; border-radius: 50%; background: #fff; transform: translateX(-50%); }
.location-picker .amap-logo, .location-picker .amap-copyright { opacity: .72; }
.location-picker input[readonly] { background: #f3f6f3; color: #53655d; }

@media (max-width: 760px) {
  .location-picker { padding: 12px; border-radius: 17px; }
  .location-search-row { grid-template-columns: 1fr; }
  .location-search-row .secondary-button { width: 100%; }
  .location-picker-map, .location-picker.compact .location-picker-map { height: 210px; }
}

/* v2.0 quick community submission */
.quick-submission { width: min(860px, calc(100vw - 28px)); }
.submission-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0 20px; }
.submission-progress span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.72); color: var(--muted); font-size: 12px; font-weight: 800; transition: .18s ease; }
.submission-progress span small { font-size: 10px; font-weight: 700; }
.submission-progress span.active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 8px 20px rgba(28,43,36,.13); }
.submission-progress span.done { background: rgba(31,107,82,.09); color: var(--accent); border-color: rgba(31,107,82,.2); }
.submission-step { display: none; animation: submitStepIn .2s ease; }
.submission-step.active { display: block; }
@keyframes submitStepIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.choice-section { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.68); }
.choice-section legend { padding: 0 5px; color: var(--ink); font-size: 12px; font-weight: 800; }
.choice-section.highlight-choice { background: rgba(31,107,82,.045); border-color: rgba(31,107,82,.22); }
.choice-section.compact-choice { margin: 4px 0 14px; }
.choice-pills { display: grid; gap: 7px; }
.choice-pills.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-pills.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice-pills.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.choice-pills.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.choice-pills label { display: block; margin: 0; cursor: pointer; }
.choice-pills input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pills label span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 9px; border: 1px solid #d8ded9; border-radius: 12px; background: #fff; color: #4f5c56; font-size: 11px; font-weight: 750; line-height: 1.25; text-align: center; transition: .15s ease; }
.choice-pills label:hover span { border-color: #aebbb4; transform: translateY(-1px); }
.choice-pills input:checked + span { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 7px 18px rgba(31,107,82,.16); }
.choice-pills input:focus-visible + span { outline: 3px solid rgba(31,107,82,.2); outline-offset: 2px; }
.quick-question-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.submission-summary { display: grid; gap: 8px; margin: 14px 0; padding: 16px; border-radius: 17px; background: #f4f7f4; border: 1px solid var(--line); }
.submission-summary > strong { font-size: 13px; color: var(--ink); }
.submission-summary > div { display: flex; justify-content: space-between; gap: 18px; font-size: 11px; }
.submission-summary span { color: var(--muted); }
.submission-summary b { color: var(--ink); text-align: right; }

/* v2.0 moderation cards */
.review-health { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin: 14px 0; }
.review-health > div { padding: 13px; border-radius: 15px; border: 1px solid var(--line); background: #f8faf8; }
.review-health span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 750; }
.review-health strong { color: var(--ink); font-size: 13px; }
.review-health .good { background: rgba(31,107,82,.07); border-color: rgba(31,107,82,.2); }
.review-health .warn { background: rgba(196,128,52,.08); border-color: rgba(196,128,52,.24); }
.review-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 14px 0; }
.review-choice { padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.review-choice span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.review-choice strong { color: var(--ink); font-size: 12px; }
.suggested-tag-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.suggested-tag-grid label { margin: 0; }
.suggested-tag-grid input { position: absolute; opacity: 0; }
.suggested-tag-grid span { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 750; cursor: pointer; }
.suggested-tag-grid input:checked + span { background: rgba(31,107,82,.1); color: var(--accent); border-color: rgba(31,107,82,.25); }
.duplicate-panel { margin: 14px 0; padding: 14px; border-radius: 16px; border: 1px solid rgba(196,128,52,.25); background: rgba(196,128,52,.06); }
.duplicate-panel h4 { margin: 0 0 8px; font-size: 12px; }
.duplicate-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(196,128,52,.15); }
.duplicate-option:first-of-type { border-top: 0; }
.duplicate-option label { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.duplicate-option small { display: block; margin-top: 3px; color: var(--muted); }
.review-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.review-actions .approve { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .quick-question-grid { grid-template-columns: 1fr; }
  .choice-pills.five, .choice-pills.six { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .choice-pills.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .review-health, .review-choice-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .submission-progress span small { display: none; }
  .choice-pills.five, .choice-pills.six { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .review-health, .review-choice-grid, .review-actions { grid-template-columns: 1fr; }
  .review-actions .approve { grid-column: auto; }
}
.form-grid.four-col { grid-template-columns: repeat(4, minmax(0,1fr)); }
.field-caption { display: block; margin: 0 0 7px; color: #52605a; font-size: 11px; font-weight: 700; }
.review-location-details { margin: 14px 0; border: 1px solid var(--line); border-radius: 15px; background: #fafbfa; overflow: hidden; }
.review-location-details summary { padding: 13px 15px; cursor: pointer; color: var(--ink); font-size: 12px; font-weight: 800; }
.review-location-details .location-picker { margin: 0 12px 12px; }
.status-pill.needs_info { background: rgba(196,128,52,.11); color: #9b6428; }
.status-pill.secondary_review { background: rgba(73,101,130,.11); color: #496582; }
.status-pill.merged { background: rgba(99,82,140,.11); color: #63528c; }
@media (max-width: 900px) { .form-grid.four-col { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 610px) { .form-grid.four-col { grid-template-columns: 1fr; } }
.submission-step-feedback { min-height: 18px; margin: -10px 0 10px; }


/* v2.4 public photo gallery and live refresh */
.refresh-button svg { transition: transform .2s ease; }
.refresh-button.is-loading svg { animation: refreshSpin .8s linear infinite; }
.refresh-button:disabled { cursor: wait; opacity: .65; }
@keyframes refreshSpin { to { transform: rotate(360deg); } }

.place-card-thumb { position: relative; flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden; border-radius: 17px; background: #edf1ed; box-shadow: inset 0 0 0 1px rgba(34,53,44,.06); }
.place-card-thumb > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.place-card-thumb-badge { position: absolute; right: 5px; bottom: 5px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--accent); box-shadow: 0 4px 12px rgba(24,40,32,.16); backdrop-filter: blur(6px); }
.place-card-thumb-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.detail-photo-heading { display: flex; align-items: center; justify-content: space-between; margin: 17px 0 8px; }
.detail-photo-heading strong { font-size: 13px; color: var(--ink); }
.detail-photo-heading span { color: var(--muted); font-size: 11px; font-weight: 750; }
.detail-photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 15px; }
.detail-photo-grid.count-1 { grid-template-columns: 1fr; }
.detail-photo-grid.count-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.detail-photo { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: #edf1ed; cursor: zoom-in; aspect-ratio: 1.25; box-shadow: inset 0 0 0 1px rgba(34,53,44,.06); }
.detail-photo-grid.count-1 .detail-photo { aspect-ratio: 1.8; }
.detail-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.detail-photo:hover img { transform: scale(1.035); }

.image-viewer { width: 100vw; max-width: none; height: 100vh; max-height: none; padding: 0; border: 0; background: rgba(8,13,11,.91); }
.image-viewer::backdrop { background: rgba(8,13,11,.88); }
.image-viewer-frame { width: 100%; height: 100%; margin: 0; display: grid; place-items: center; padding: max(56px, env(safe-area-inset-top)) 18px max(36px, env(safe-area-inset-bottom)); }
.image-viewer-frame img { max-width: min(1100px, 96vw); max-height: 82vh; object-fit: contain; border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.image-viewer-frame figcaption { margin-top: 12px; color: rgba(255,255,255,.8); font-size: 12px; text-align: center; }
.image-viewer-close { position: fixed; z-index: 3; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; backdrop-filter: blur(12px); }
.image-viewer-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 610px) {
  .place-card-thumb { flex-basis: 58px; width: 58px; height: 58px; border-radius: 15px; }
  .detail-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-photo-grid.count-1 { grid-template-columns: 1fr; }
}


/* v3.1 high-quality media and swipeable viewer */
.image-viewer-frame { grid-template-rows: minmax(0, 1fr) auto; gap: 10px; touch-action: pan-y; user-select: none; }
.image-viewer-stage { min-width: 0; min-height: 0; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.image-viewer-stage img { -webkit-user-drag: none; user-select: none; }
.image-viewer-stage.slide-next img { animation: imageSlideNext .22s ease both; }
.image-viewer-stage.slide-prev img { animation: imageSlidePrev .22s ease both; }
@keyframes imageSlideNext { from { opacity: .25; transform: translateX(34px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes imageSlidePrev { from { opacity: .25; transform: translateX(-34px) scale(.985); } to { opacity: 1; transform: none; } }
.image-viewer-frame figcaption { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 24px; }
.image-viewer-counter { padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.13); color: #fff; font-weight: 800; letter-spacing: .02em; }
.image-viewer-nav { position: fixed; z-index: 3; top: 50%; width: 50px; height: 50px; margin-top: -25px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.image-viewer-nav:hover { background: rgba(255,255,255,.23); }
.image-viewer-nav:active { transform: scale(.96); }
.image-viewer-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.image-viewer-prev { left: max(16px, env(safe-area-inset-left)); }
.image-viewer-next { right: max(16px, env(safe-area-inset-right)); }
.image-viewer-nav[hidden] { display: none; }
.detail-photo::after { content: attr(aria-label); position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 7px; border-radius: 8px; background: rgba(12,20,16,.56); color: #fff; font-size: 10px; font-weight: 750; opacity: 0; transform: translateY(4px); transition: .2s ease; }
.detail-photo:hover::after { opacity: 1; transform: none; }
@media (max-width: 610px) {
  .image-viewer-frame { padding-left: 8px; padding-right: 8px; }
  .image-viewer-frame img { max-width: 100vw; max-height: 78vh; border-radius: 10px; }
  .image-viewer-nav { width: 42px; height: 42px; margin-top: -21px; background: rgba(12,18,15,.48); }
  .image-viewer-prev { left: 8px; }
  .image-viewer-next { right: 8px; }
  .detail-photo::after { display: none; }
}

/* v3.3 published place editing */
.contributor-edit-note { margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(31,107,82,.18); border-radius: 14px; background: rgba(31,107,82,.07); color: #35594b; font-size: 12px; line-height: 1.55; }
.place-photo-editor { margin: 4px 0 2px; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: #f8faf8; }
.place-photo-preview { grid-template-columns: repeat(3,minmax(0,1fr)); }
.place-change-list { display: grid; gap: 8px; margin: 15px 0; }
.place-change-list > div { display: grid; grid-template-columns: 90px minmax(0,1fr) minmax(0,1fr); gap: 10px; align-items: start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.place-change-list span { color: var(--muted); font-size: 10px; font-weight: 800; }
.place-change-list small { color: #7b8680; font-size: 11px; line-height: 1.45; }
.place-change-list strong { color: var(--ink); font-size: 11px; line-height: 1.45; }
.editable-review-images { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media (max-width: 610px) {
  .place-photo-preview, .editable-review-images { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .place-change-list > div { grid-template-columns: 72px 1fr; }
  .place-change-list strong { grid-column: 2; }
}
