/* OneMap 地图 (老板 2026-10-29): styles for onemap.js, shared by the website and the admin. */
.om-map{position:relative;overflow:hidden;width:100%;height:360px;min-height:220px;background:#f4f3ef;border-radius:14px;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;outline:none;isolation:isolate}
.om-map:focus-visible{box-shadow:0 0 0 3px rgba(94, 93, 89,.45)}
.om-map.om-dragging{cursor:grabbing}
.om-map.om-compact{height:260px}
.om-map.om-tall{height:440px}
.om-layer{position:absolute;left:0;top:0;width:0;height:0;will-change:transform}
.om-tile{position:absolute;width:256px;height:256px;pointer-events:none;-webkit-user-drag:none}
.om-pins{position:absolute;inset:0;pointer-events:none}
.om-pin{position:absolute;left:0;top:0;margin:-32px 0 0 -13px;padding:0;border:0;background:none;line-height:0;cursor:pointer;pointer-events:auto;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35));text-decoration:none;color:inherit}
.om-pin svg{display:block}
/* 11-17 pin colours: residences --om-residence (website: brand red), campuses and office black, nearby places dark grey */
.om-pin{color:#5e5d59}.om-pin-campus,.om-pin-office,.om-pin-active{color:#141413}.om-pin-residence,.om-pin-residence.om-pin-active{color:var(--om-residence,#141413)}.om-pin-poi{color:#5e5d59}
.om-pin:focus-visible{outline:2px solid #141413;outline-offset:2px;border-radius:14px}
.om-pin-residence{margin:-44px 0 0 -17px;z-index:2}
.om-pin-residence .om-pin-text{top:46px}
/* 校区与公寓的名字可以换行，不然长校名会把地图挤满 (老板 2026-10-29)。 */
.om-pin-residence .om-pin-text,.om-pin-campus .om-pin-text,.om-pin-poi .om-pin-text{width:max-content;max-width:164px;white-space:normal}
/* 选中的校区 (老板 2026-10-29): larger pin, brand blue, above the others, label always shown in bold. */
.om-pin-active{margin:-50px 0 0 -19px;z-index:5;filter:drop-shadow(0 3px 4px rgba(0,0,0,.4))}
.om-pin-active.om-pin-residence{margin:-57px 0 0 -22px}
.om-pin-active .om-pin-text{top:53px;font-weight:700;color:#fff;background:#141413}
.om-pin-active .om-pin-text em{color:#fff}
.om-map.om-labels-off .om-pin-active .om-pin-text{display:block}
.om-map.om-labels-off .om-pin-text{display:none}
.om-pin-text{position:absolute;left:50%;top:34px;transform:translateX(-50%);white-space:nowrap;font:600 12px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;color:#141413;background:rgba(255,255,255,.92);padding:2px 6px;border-radius:6px;box-shadow:0 1px 2px rgba(0,0,0,.2);pointer-events:none;text-align:center}
/* 图钉文字：第一行是名称（学校图钉为学校全名），第二行是校区或行程时间；最多两行 (老板 2026-10-29)。
   长名称按行截断，完整文字留在气泡和按钮的 aria-label 里。 */
.om-pin-text b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-weight:inherit}
.om-pin-text:has(em) b{-webkit-line-clamp:1}
.om-pin-text em{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;margin-top:1px;font-style:normal;font-weight:700;font-size:11px;color:#141413}
.om-controls{position:absolute;right:10px;top:10px;display:flex;flex-direction:column;gap:4px;z-index:3}
.om-controls button{width:34px;height:34px;border:0;border-radius:8px;background:#fff;color:#141413;font:600 20px/1 system-ui,sans-serif;box-shadow:0 1px 3px rgba(0,0,0,.3);cursor:pointer}
.om-controls button:hover{background:#f4f3ef}
.om-controls button:focus-visible{outline:2px solid #141413;outline-offset:1px}
.om-attribution{position:absolute;right:0;bottom:0;z-index:3;display:flex;align-items:center;gap:4px;padding:3px 8px;font:11px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;color:#30302e;background:rgba(255,255,255,.85);border-top-left-radius:8px;pointer-events:auto;cursor:default}
.om-attribution img{width:18px;height:18px;vertical-align:middle}
.om-attribution a{color:#141413;text-decoration:none}
.om-attribution a:hover{text-decoration:underline}
.om-pop{position:absolute;z-index:4;max-width:min(280px,80%);padding:8px 10px;border-radius:10px;background:#fff;color:#141413;box-shadow:0 4px 14px rgba(0,0,0,.25);font:13px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;pointer-events:auto}
.om-pop-link{display:inline-block;margin-top:6px;color:#141413;font-weight:600;text-decoration:none}
.om-pop-link:hover{text-decoration:underline}
.om-pop strong{display:block;font-weight:600}
.om-pop span{display:block;color:#5e5d59;margin-top:2px}
.om-pop-detail{color:#141413!important}
.om-pop-more{font-size:12px}
.om-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:8px 0 0;padding:0;list-style:none;font-size:13px;color:#5e5d59}
.om-legend li{display:inline-flex;align-items:center;gap:6px}
.om-legend i{display:inline-block;width:10px;height:10px;border-radius:50%}
.om-legend .om-k-campus i{background:#141413}
.om-legend .om-k-residence i{background:var(--om-residence,#141413)}
.om-legend .om-k-poi i{background:#5e5d59}
.om-map.om-failed::after{content:"Map unavailable";position:absolute;inset:0;display:grid;place-items:center;color:#5e5d59}
@media (prefers-reduced-motion:no-preference){.om-pin{transition:transform .08s}}
@media (max-width:720px){.om-map{height:280px;border-radius:10px}.om-map.om-tall{height:340px}}
/* 老板 2026-10-30: the travel mode icon before the minutes on a residence label (walk / bus / MRT). */
.om-pin-text b .om-mode,.om-pin-text em .om-mode{display:inline-block;width:14px;height:14px;margin:0 4px 0 0;vertical-align:-3px}
/* 官网测试报告 2026-11-05 #5: a readable notice and a Google Maps link when OneMap tiles do not load. */
.om-map .om-fallback{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;background:#ffffff;color:#3d3d3a;text-align:center;font-size:15px}
.om-map .om-fallback a{color:#141413;font-weight:600}
.om-map.om-failed:has(.om-fallback)::after{content:none}

/* 老板 2026-11-07 21:00「这里颜色没改，还是蓝色」: every native control (radio, checkbox, range, progress) uses brand black,
   never the browser's default blue. */
html { accent-color: #141413; }

/* continuous-corners:start (generated by server/tools/continuous-corners.cjs from onemap.css; do not edit by hand) */
@supports (corner-shape: squircle) {
  :where(*, *::before, *::after) { corner-shape: squircle; }
  .om-map { border-radius: 21px; }
  .om-pin:focus-visible { border-radius: 21px; }
  .om-pin-text { border-radius: 9px; }
  .om-controls button { border-radius: 12px; }
  .om-attribution { border-top-left-radius: 12px; }
  .om-pop { border-radius: 15px; }
  .om-legend i { corner-shape: round; }
  @media (max-width:720px) {
    .om-map { border-radius: 15px; }
  }
}
/* continuous-corners:end */
