/* The guide's paper, typography and dashed rules, adapted to a map workspace. */
.desk-identity{display:flex;align-items:center;gap:22px;flex-shrink:0}.map-city-switcher{display:flex;flex-wrap:wrap;align-items:center;gap:7px;max-width:200px;font-size:11px;letter-spacing:.03em;line-height:1.6}.map-city-switcher>span:first-child{width:100%;font-size:10px;opacity:.6}.map-city-switcher a{color:inherit;text-decoration:underline;text-underline-offset:4px}.map-page .detail-top::after{content:var(--city-name,'广州')}
.map-page {
  --paper: #f5f5f2;
  --ink: #151515;
  --green: #151515;
  --muted: #727270;
  --line: #0003;
  --bg: var(--paper);
  --gutter: clamp(20px, 2.3vw, 44px);
  font-family: 'DM Sans', Arial, 'Microsoft YaHei', sans-serif;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.map-page ::selection { background: #d8c69d; color: #111; }
/* City photography sits behind the interface; the interactive map stays opaque. */
.map-page {
  --city-backdrop: url('/assets/guangzhou-hero.webp');
  isolation: isolate;
}
.map-page[data-city="beijing"] { --city-backdrop: url('/assets/beijing-hero.webp'); }
.map-page[data-city="shanghai"] { --city-backdrop: url('/assets/shanghai-hero.webp'); }
.map-page :is(.header, .sidebar) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.map-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--city-backdrop) center 48% / cover no-repeat;
  filter: blur(3px);
}
.map-page .header :is(.brand, .nav-link, .nav-link.active, .nav-link:hover, .language, .help-button, .tiny-label, .map-city-switcher) { color: #fff; }
.map-page .header .map-city-switcher > span:first-child { opacity: .9; }
.map-page .header .nav-link.active::after { background: #fff; }
.map-page .header .tiny-label { border-color: #fff8; }
.map-page .sidebar :is(.sidebar-top, .results-heading, .results, .sidebar-foot) {
  background: rgb(245 245 242 / 76%);
}
.map-page .sidebar :is(.results-heading, .results, .sidebar-foot) { background: rgb(245 245 242 / 88%); }
.map-page :is(button, a, select, input):focus-visible { outline: 2px solid #b99658; outline-offset: 4px; }
.map-page .header {
  height: 82px;
  padding: 0 var(--gutter);
  gap: 38px;
  background: rgb(0 0 0 / 30%);
  border-bottom: 1px dashed var(--line);
}
.map-page .brand { width: auto; margin-right: auto; gap: 12px; color: var(--ink); font-family: inherit; font-size: 21px; font-weight: 600; letter-spacing: -1px; }
.map-page .brand img { height: 44px; width: 15px; object-fit: contain; }
.map-page .brand small { margin-top: 3px; color: var(--ink); font-size: 10px; font-weight: 400; letter-spacing: 1px; }
.map-page .header nav { gap: 32px; }
.map-page .nav-link { color: #555553; font-size: 14px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.map-page .nav-link.active { color: var(--ink); }
.map-page .nav-link.active::after { height: 1px; bottom: 20px; border-radius: 0; }
.map-page .nav-link:hover { color: var(--ink); }
.map-page .tiny-label { background: none; border: 1px dashed var(--line); border-radius: 0; color: #727270; font-weight: 400; }
.map-page #saved-count { border-radius: 0; background: #e8e8e3; color: #555553; font-size: 11px; }
.map-page .header-right { margin-left: auto; gap: 22px; }
.map-page .language, .map-page .help-button { color: var(--ink); }
.map-page .language svg, .map-page .nav-link svg { display: none; }
.map-page .workspace { height: calc(100dvh - 82px); min-height: 0; }
.map-page .sidebar { width: 460px; background: transparent; border-right: 1px dashed var(--line); }
.map-page .sidebar :is(.section-label, .place-cn, .place-meta, .source-line, .sidebar-foot, .results-heading > span) { color: #555553; }
.map-page .sidebar .search-box { background: rgb(245 245 242 / 88%); }
.map-page .sidebar :is(.filters select, .bank-tools select, .office-tools select) { background-color: var(--paper); }
.map-page .sidebar-top { padding: 28px 28px 0; max-height: 66%; }
.map-page .search-box { height: 52px; background: transparent; border: 1px dashed #0005; border-radius: 0; box-shadow: none; padding: 0 14px; color: #727270; }
.map-page .search-box:focus-within { border-color: var(--ink); box-shadow: none; }
.map-page .search-box input { font-size: 16px; color: var(--ink); }
.map-page .search-box input::placeholder { color: #777773; }
.map-page .shortcut { border-color: var(--line); border-radius: 0; color: #727270; }
.map-page .section-label { margin: 26px 0 14px; color: #727270; font-size: 12px; font-weight: 400; letter-spacing: .06em; }
.map-page .section-label button { color: #555553; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }
.map-page .categories { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-height: none; border-top: 1px dashed var(--line); }
.map-page .category { height: 76px !important; padding: 8px 4px; gap: 8px; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; background: transparent; color: #555553; font-size: 14px; font-weight: 400; transform: none; box-shadow: none; }
.map-page .category svg { color: #555553; width: 18px; height: 18px; }
.map-page .category:hover { background: #eaeae5; }
.map-page .category.active { background: var(--ink); color: var(--paper); }
.map-page .category.active svg { color: inherit; }
.map-page .filters { margin: 16px 0; gap: 12px; }
.map-page .filters select, .map-page .filters button { color: #555553; }
.map-page .filters label svg { color: #727270; }
.map-page .filters button { border: 1px dashed var(--line); border-radius: 0; padding: 8px 10px; }
.map-page .filters button.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.map-page .filter-dot { border-color: currentColor; }
.map-page .filters button.active .filter-dot { background: currentColor; }
.map-page .results-heading { padding: 20px 28px 16px; border-bottom: 0; gap: 12px; }
.map-page .results-heading h2 { font-size: 22px; font-weight: 400; letter-spacing: -.035em; }
.map-page .results-heading > span { color: #727270; }
.map-page .results { padding: 0 28px; scrollbar-color: #c8c8c2 transparent; }
.map-page .place-card { padding: 23px 0; border-radius: 0; border-bottom: 1px dashed var(--line); gap: 16px; }
.map-page .place-card:hover { background: #eaeae566; }
.map-page .place-card.selected { background: #e8e8e1; margin-top: 0; border-bottom-color: var(--line); }
.map-page .place-icon { width: 30px; height: 35px; border-radius: 0; background: transparent; }
.map-page .place-info h3 { font-size: 18px; font-weight: 400; line-height: 1.5; letter-spacing: -.02em; margin-top: 0; margin-right: 22px; }
.map-page .place-cn { color: #727270; margin-bottom: 12px; }
.map-page .place-meta { color: #727270; }
.map-page .place-meta .type { background: transparent; border-radius: 0; padding: 0; }
.map-page .source-line { color: #727270; margin-top: 10px; }
.map-page .place-save { right: 0; top: 26px; color: #727270; }
.map-page .place-save.saved svg { fill: #d8c69d; }
.map-page .sidebar-foot { padding: 16px 20px; font-size: 12px; color: #727270; }
.map-page .little-compass { color: inherit; }
.map-page .map-area { background: #e8e8e2; }
.map-page :is(.location-chip, .map-pill, .map-note, .map-controls button, .map-legend) { background: #f5f5f2f5; color: #555553; border: 1px dashed #0004; border-radius: 0; box-shadow: none; }
.map-page .map-top { top: 28px; left: 28px; right: 28px; }
.map-page .location-chip { padding: 14px 18px; }
.map-page .location-chip strong { font-weight: 500; color: var(--ink); }
.map-page .location-chip > span:last-child { color: #727270; }
.map-page .live-dot { background: #555553; box-shadow: none; }
.map-page .chip-divider { background: var(--line); }
.map-page .map-pill { padding: 14px 18px; }
.map-page .map-note.location-request { top: 100px; left: 28px; color: var(--ink); }
.map-page .map-note.location-request:hover { background: var(--paper); border-color: var(--ink); }
.map-page .map-note small { color: #727270; }
.map-page .map-controls { right: 28px; gap: 12px; }
.map-page .map-controls button { width: 42px; height: 42px; font-weight: 400; }
.map-page .zoom-group { border-radius: 0; box-shadow: none; }
.map-page .zoom-group button + button { border-top: 0; }
.map-page .map-controls button:hover, .map-page .map-pill:hover { background: #e8e8e1; }
.map-page .map-bottom { left: 28px; right: 28px; color: #555553; }
.map-page .prototype-label, .map-page .map-bottom button { border-radius: 0; background: #f5f5f2eb; color: #555553; }
.map-page .detail-card { width: 410px; border: 1px dashed #0005; border-radius: 0; background: var(--paper); box-shadow: 0 12px 36px #0001; }
.map-page .detail-top { background: #eaeae4; border-bottom: 1px dashed var(--line); }
.map-page .detail-top::after { display: none; }
.map-page .detail-top .place-icon { background: transparent; }
.map-page .detail-top small { color: #727270; }
.map-page .detail-body { padding: 26px; }
.map-page .detail-body h2 { font-family: inherit; font-size: 30px; font-weight: 400; line-height: 1.15; letter-spacing: -.045em; }
.map-page .detail-body :is(.chinese, .description), .map-page .detail-fine { color: #727270; }
.map-page .detail-address { background: transparent; border-block: 1px dashed var(--line); padding: 16px 0; border-radius: 0; color: #555553; }
.map-page :is(.detail-close, .dialog-close) { border-radius: 0; background: var(--paper); color: var(--ink); }
.map-page .copy-address, .map-page .detail-source { color: #555553; }
.map-page :is(.directions, .detail-save, .rental-details .rental-phone) { border-radius: 0; }
.map-page .detail-save { border: 1px dashed #0005; background: transparent; width: 44px; }
.map-page :is(.bank-tools, .office-tools, .bank-tools p, .office-tools > p) { color: #555553; }
.map-page :is(.bank-tools, .office-tools) select { background: transparent; color: var(--ink); border: 1px dashed var(--line); border-radius: 0; }
.map-page :is(.bank-details, .office-details) { background: transparent; border: 0; border-top: 1px dashed var(--line); border-radius: 0; padding: 16px 0; color: #555553; }
.map-page :is(.bank-details, .office-details) a { color: var(--ink); text-underline-offset: 4px; }
.map-page :is(.bank-details, .office-details) small { color: #727270; }
.map-page dialog { background: var(--paper); border: 1px dashed #0005; border-radius: 0; padding: 40px; box-shadow: 0 25px 100px #0002; }
.map-page dialog::backdrop { background: #15151566; }
.map-page dialog h2 { font-family: inherit; font-size: 42px; font-weight: 400; line-height: 1.05; letter-spacing: -.045em; }
.map-page :is(dialog > p, .about-block p, .check-item small, .guide-bottom) { color: #727270; }
.map-page .eyebrow { color: #727270; font-weight: 400; }
.map-page .check-item { border-top: 1px dashed var(--line); padding: 22px 0; }
.map-page :is(.check-item strong, .about-block h3) { font-weight: 500; }
.map-page .check-find-hint { color: #555553; text-decoration: underline; text-underline-offset: 4px; }
.map-page .check-complete { border: 1px dashed #0005; border-radius: 0; background: transparent; color: var(--ink); }
.map-page .check-complete[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.map-page .check-item.is-complete strong { color: #727270; }
.map-page .guide-bottom { background: transparent; border-top: 1px dashed var(--line); border-radius: 0; padding: 18px 0 0; }
.map-page .guide-bottom a { color: var(--ink) !important; }
.map-page .nearby-summary { color: #555553; background: #eaeae4; border-radius: 0; }
.map-page .nearby-links button, .map-page .empty-state button { color: var(--ink); background: transparent; border: 1px dashed #0005; border-radius: 0; }
.map-page .search-popup { background: var(--paper); border-color: var(--line); border-radius: 0; }
.map-page .search-status, .map-page .search-option span, .map-page .search-option small { color: #727270; }
.map-page .search-option:hover, .map-page .search-option[aria-selected=true] { background: #e8e8e1; }
.map-page #toast { background: var(--ink); border-radius: 0; }
.map-page #map-loading, .map-page #map-error { background: var(--paper); }
.map-page #map-loading strong, .map-page #map-error h2 { font-family: inherit; font-weight: 400; }
.map-page #map-error h2 { font-size: 36px; letter-spacing: -.04em; }
.map-page #map-error > svg, .map-page #map-error p, .map-page #map-loading p { color: #727270; }
.map-page #map-error button { border-radius: 0; }
.map-page .loader { border-color: #d1d1ca; border-top-color: var(--ink); }
@media (max-width: 1250px) and (min-width: 601px) {
  .map-page .header { gap: 24px; padding-inline: 24px; }
  .map-page .header nav { gap: 20px; }
  .map-page .tiny-label { display: none; }
  .map-page .sidebar { width: 400px; }
  .map-page .sidebar-top { padding-inline: 24px; }
  .map-page .results-heading { padding-inline: 24px; }
  .map-page .results { padding-inline: 24px; }
  .map-page .detail-card { width: 330px; right: 82px; }
}
@media (max-width: 950px) and (min-width: 601px) {
  .map-page .brand small, .map-page .header-divider, .map-page .help-button { display: none; }
  .map-page .header nav { gap: 16px; }
  .map-page .nav-link { font-size: 12px; }
  .map-page .sidebar { width: 360px; }
  .map-page .category { font-size: 13px; }
  .map-page .location-chip > span:last-child, .map-page .chip-divider { display: none; }
}
@media (max-width: 600px) {
  .map-page .header { height: 70px; padding: 0 16px; gap: 12px; }
  .map-page .brand { font-size: 17px; gap: 6px; }
  .map-page .brand img { height: 36px; width: 16px; }
  .map-page .brand small { display: none; }
  .map-page .header nav { margin-left: auto; gap: 12px; }
  .map-page .nav-link { font-size: 12px !important; letter-spacing: 0; text-transform: none; }
  .map-page .nav-link.active::after { bottom: 12px; }
  .map-page .nav-link[data-view=saved] svg { display: block; }
  .map-page .header-right { margin-left: 0; }
  .map-page .language span { font-size: 12px; }
  .map-page .workspace { height: calc(100dvh - 70px); }
  .map-page .sidebar { width: 100%; border-radius: 0; margin-top: 0; box-shadow: none; border-top: 1px dashed var(--line); }
  .map-page .sidebar-top { padding: 16px 20px 0; max-height: 64%; }
  .map-page .search-box { height: 46px; margin-top: 0; }
  .map-page .section-label { margin: 18px 0 12px; font-size: 11px; }
  .map-page .categories { gap: 0; }
  .map-page .category { flex-basis: 94px; height: 64px !important; font-size: 13px; }
  .map-page .filters { margin: 12px 0; }
  .map-page .results-heading { padding: 14px 20px; }
  .map-page .results-heading h2 { font-size: 20px; }
  .map-page .results { padding: 0 20px; }
  .map-page .place-card { padding: 20px 0; gap: 12px; }
  .map-page .place-info h3 { font-size: 17px; }
  .map-page .map-top { top: 16px; left: 16px; right: 16px; }
  .map-page .location-chip, .map-page .map-pill { padding: 10px 12px; }
  .map-page .map-controls { right: 16px; top: 72px; gap: 8px; }
  .map-page .map-controls button { width: 36px; height: 36px; }
  .map-page .map-note.location-request { left: 16px; top: 72px; max-width: calc(100% - 80px); padding: 10px; }
  .map-page .map-note strong { font-size: 13px; }
  .map-page .map-note small { font-size: 11px; }
  .map-page .map-bottom { left: 16px; right: 16px; }
  .map-page .detail-card { left: 12px; right: 62px; width: auto; }
  .map-page .detail-body { padding: 18px; }
  .map-page .detail-body h2 { font-size: 24px; }
  .map-page dialog { padding: 30px 24px; }
  .map-page dialog h2 { font-size: 36px; }
}
.map-page .desk-identity .brand{white-space:nowrap;margin:0}.map-page .header{gap:24px}.map-page .header nav{gap:20px}
@media(max-width:1400px) and (min-width:901px){.map-page .desk-identity{gap:14px}.map-page .header{gap:16px}.map-page .header nav{gap:14px}.map-page .nav-link{font-size:12px}.map-page .desk-identity .brand{font-size:19px}.map-city-switcher{max-width:166px;font-size:10px}}
@media(max-width:900px){.map-page .header{height:116px;flex-wrap:wrap;gap:0 18px;padding-block:10px}.map-page .desk-identity{width:100%;justify-content:space-between;gap:12px}.map-page .desk-identity .brand{font-size:18px}.map-city-switcher{max-width:160px;font-size:10px;gap:5px}.map-city-switcher>span:first-child{font-size:9px}.map-page .header nav{margin:0;margin-right:auto;gap:18px}.map-page .header-right{margin:0}.map-page .workspace{height:calc(100dvh - 116px)}}
@media(max-width:380px){.map-page .desk-identity .brand{font-size:15px}.map-page .desk-identity .brand img{width:12px}.map-city-switcher{font-size:9px;max-width:136px}}

/* Resize the directory independently of the map; categories follow its width. */
.sidebar-resizer { display: none; }
@media(min-width:601px) {
  .map-page .sidebar { container: map-sidebar / inline-size; width: var(--sidebar-width, 460px); }
  .map-page .sidebar-top { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  .map-page .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-page .sidebar-resizer { display: block; position: relative; z-index: 4; flex: 0 0 12px; margin-inline: -6px; cursor: col-resize; touch-action: none; outline-offset: -3px; }
  .sidebar-resizer::after { content: ''; position: absolute; top: 50%; left: 4px; width: 4px; height: 44px; border-radius: 2px; background: #727270; transition: background .15s; }
  .sidebar-resizer:is(:hover,:focus-visible)::after, .sidebar-resizing .sidebar-resizer::after { background: #b99658; }
  .sidebar-resizing, .sidebar-resizing * { cursor: col-resize !important; user-select: none !important; }
}
@media(min-width:951px) and (max-width:1250px) { .map-page .sidebar { width: var(--sidebar-width, 400px); } }
@media(min-width:601px) and (max-width:950px) { .map-page .sidebar { width: var(--sidebar-width, 360px); } }
@container map-sidebar (min-width:440px) { .map-page .categories { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container map-sidebar (min-width:640px) { .map-page .categories { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
