:root { --route-brand: #2547c8; --ink: #27304a; --muted: #717b92; --line: #dde3f0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
html { min-height: 100%; background: #f3f5fb; }
body { min-width: 320px; min-height: 100dvh; margin: 0; color: var(--ink); background: radial-gradient(circle at 85% 4%, #eaf5f0 0, transparent 28%), linear-gradient(145deg, #f4f6fc, #fff 46%, #f4f8ff); }
button, select { font: inherit; }
input { font: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.route-shell { width: min(880px, 100%); min-height: 100dvh; margin: 0 auto; padding: 20px 20px 42px; }
.route-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.return-link { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: #52607e; background: rgba(255,255,255,.82); font-size: 13px; font-weight: 750; }
.return-link:hover { border-color: #b9c8ed; color: var(--route-brand); }
.route-brand { display: inline-flex; min-width: 0; align-items: center; gap: 7px; color: var(--route-brand); font-size: 14px; }
.route-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-brand span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #fff; background: var(--route-brand); font: 800 16px "Kaiti SC", "STKaiti", serif; }
.route-intro { max-width: 620px; margin: 36px auto 22px; text-align: center; }
.route-intro__eyebrow { margin: 0 0 8px; color: var(--route-brand); font-size: 13px; font-weight: 850; letter-spacing: .08em; }
.route-intro h1 { margin: 0; font-size: clamp(28px, 5vw, 42px); line-height: 1.17; letter-spacing: -.035em; }
.route-intro > p:last-child { max-width: 520px; margin: 12px auto 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.campus-route-planner { margin: 0 0 16px; overflow: hidden; border: 1px solid #dbe4f2; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 12px 30px rgba(37,51,100,.07); }
.campus-route-planner__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px 15px; border-bottom: 1px solid #edf1f6; background: linear-gradient(118deg, #f8faff, #f2fbf7); }
.campus-route-planner__header p { margin: 0 0 5px; color: #39836a; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.campus-route-planner__header h2 { margin: 0; color: #2b3854; font-size: 20px; letter-spacing: -.02em; }
.campus-route-planner__header span { display: block; max-width: 590px; margin-top: 6px; color: #758198; font-size: 12px; line-height: 1.55; }
.campus-route-planner__header em { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #cce8dc; border-radius: 999px; color: #2f765c; background: #ecf8f2; font-size: 9px; font-style: normal; font-weight: 900; white-space: nowrap; }
.campus-route-planner__form { display: grid; grid-template-columns: minmax(0,1fr) 38px minmax(0,1fr) auto; gap: 11px; align-items: end; padding: 16px 20px 13px; }
.campus-route-planner__field { display: grid; gap: 6px; min-width: 0; color: #5d6a83; font-size: 11px; font-weight: 850; }
.campus-route-planner__field select { width: 100%; height: 42px; padding: 0 34px 0 12px; border: 1px solid #d7dfec; border-radius: 11px; outline: 0; color: #33415c; background: #fbfcff; font-size: 13px; }
.campus-route-planner__field select:focus { border-color: #91a3df; box-shadow: 0 0 0 3px color-mix(in srgb, var(--route-brand) 11%, transparent); }
.campus-route-planner__swap { display: grid; width: 38px; height: 42px; place-items: center; padding: 0; border: 1px solid #d9e1ef; border-radius: 11px; color: var(--route-brand); background: #f7f9ff; font-size: 18px; font-weight: 900; cursor: pointer; }
.campus-route-planner__swap:hover { border-color: #aebce5; background: #eff3ff; }
.campus-route-planner__submit { min-height: 42px; padding: 0 15px; border: 0; border-radius: 10px; color: #fff; background: var(--route-brand); box-shadow: 0 7px 16px color-mix(in srgb, var(--route-brand) 24%, transparent); font-size: 11px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.campus-route-planner__submit:hover { filter: brightness(1.04); }
.campus-route-planner__status { margin: 0; padding: 0 20px 12px; color: #8792a6; font-size: 10px; line-height: 1.55; }
.campus-route-result { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; margin: 0 20px 16px; padding: 12px; border: 1px solid #cfe5da; border-radius: 13px; background: #f5fbf8; }
.campus-route-result__icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: #338064; font-size: 16px; font-weight: 900; }
.campus-route-result p { margin: 0; color: #387661; font-size: 9px; font-weight: 900; }
.campus-route-result h3 { margin: 3px 0 5px; color: #334d45; font-size: 14px; }
.campus-route-result span, .campus-route-result small { display: block; color: #5f746d; font-size: 10px; line-height: 1.65; }
.campus-route-result small { margin-top: 5px; color: #82928d; font-size: 9px; }
.route-mode-tabs { display: flex; width: fit-content; margin: 0 auto 16px; padding: 4px; border: 1px solid #d9e1ef; border-radius: 13px; background: rgba(255,255,255,.88); box-shadow: 0 6px 18px rgba(40,54,100,.05); }
.route-mode-tabs button { min-height: 36px; padding: 0 15px; border: 0; border-radius: 9px; color: #66718a; background: transparent; font-size: 12px; font-weight: 850; cursor: pointer; }
.route-mode-tabs button.is-active { color: #fff; background: var(--route-brand); box-shadow: 0 5px 13px color-mix(in srgb, var(--route-brand) 22%, transparent); }
.route-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 1px solid #dce5f3; border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: 0 7px 20px rgba(41,58,112,.055); }
.route-toolbar > div { display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 10px; }
.route-toolbar > div > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #fff; background: #43a07d; font-size: 14px; font-weight: 900; }
.route-toolbar p { margin: 0; }
.route-toolbar strong, .route-toolbar small { display: block; }
.route-toolbar strong { color: #35415a; font-size: 12px; }
.route-toolbar small { margin-top: 3px; color: #8791a5; font-size: 10px; }
.route-toolbar label { display: flex; align-items: center; gap: 7px; color: #6f7a91; font-size: 11px; font-weight: 800; white-space: nowrap; }
.route-toolbar select { min-width: 150px; height: 34px; padding: 0 9px; border: 1px solid #dbe1ed; border-radius: 9px; outline: none; color: #37425a; background: #fff; }
.route-toolbar select:focus { border-color: #92a3e3; box-shadow: 0 0 0 3px rgba(45,58,240,.1); }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.route-grid.route-grid--single { grid-template-columns: minmax(0, 1fr); }
.route-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #dfe5f0; border-radius: 18px; background: rgba(255,255,255,.95); box-shadow: 0 9px 23px rgba(37,51,100,.06); }
.route-card__header { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 15px 16px; border-bottom: 1px solid #edf0f5; background: linear-gradient(110deg, #fbfcff, #f6f8ff); }
.route-card__header > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--route-brand); background: #eaf0ff; font-size: 11px; font-weight: 900; }
.route-card__header small { display: block; color: #8994aa; font-size: 9px; font-weight: 800; }
.route-card__header h2 { margin: 3px 0 0; overflow: hidden; color: #303c58; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.route-card__header em { padding: 5px 7px; border-radius: 999px; color: #2f755a; background: #e8f6ef; font-size: 9px; font-style: normal; font-weight: 850; white-space: nowrap; }
.route-card__details { display: grid; gap: 0; padding: 4px 16px; }
.route-detail { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 9px; padding: 11px 0; border-bottom: 1px dashed #e5e9f1; }
.route-detail:last-child { border-bottom: 0; }
.route-detail > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: var(--route-brand); background: #f0f3ff; font-size: 14px; font-weight: 900; }
.route-detail small { display: block; color: #8b95a9; font-size: 9px; font-weight: 800; }
.route-detail p { margin: 3px 0 0; color: #48536a; font-size: 12px; line-height: 1.6; white-space: pre-line; }
.route-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 13px 16px 16px; }
.route-card__actions a { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 35px; padding: 0 10px; border-radius: 10px; font-size: 11px; font-weight: 850; }
.map-button { color: #fff; background: var(--route-brand); }
.ask-button { border: 1px solid #d7dff1; color: var(--route-brand); background: #fafbff; cursor: pointer; }
.route-empty { grid-column: 1 / -1; margin: 0; padding: 24px; border: 1px dashed #ccd6e8; border-radius: 14px; color: #768199; background: rgba(255,255,255,.72); font-size: 12px; text-align: center; }
@media (min-width: 760px) {
  .route-grid.route-grid--single .route-card__details { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; padding: 5px 18px; }
  .route-grid.route-grid--single .route-detail { padding: 14px 0; }
  .route-grid.route-grid--single .route-detail:nth-child(odd):last-child { grid-column: 1 / -1; }
}
.dorm-showcase-panel { overflow: hidden; border: 1px solid #e2dfd2; border-radius: 23px; background: linear-gradient(145deg, #fffefd, #fbf8f0); box-shadow: 0 18px 48px rgba(79,65,31,.08); }
.dorm-showcase-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid #eee7d9; background: linear-gradient(120deg, #fffdf7, #f4fbf5); }
.dorm-showcase-panel__header p { margin: 0 0 5px; color: #66845f; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.dorm-showcase-panel__header h2 { margin: 0; color: #4c4b39; font-size: 22px; letter-spacing: -.02em; }
.dorm-showcase-panel__header span { display: block; max-width: 600px; margin-top: 7px; color: #7d806f; font-size: 12px; line-height: 1.65; }
.dorm-showcase-panel__header em { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: #68734e; background: #edf3df; font-size: 10px; font-style: normal; font-weight: 850; }
.dorm-showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.dorm-showcase-student-card { overflow: hidden; border: 1px solid #e5e2d8; border-radius: 15px; background: #fff; box-shadow: 0 6px 17px rgba(65,53,26,.045); }
.dorm-showcase-student-card:only-child { grid-column: 1 / -1; width: min(100%, 610px); justify-self: center; }
.dorm-showcase-student-card__photo { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; padding: 0; border: 0; background: #ecece7; cursor: pointer; }
.dorm-showcase-student-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.dorm-showcase-student-card__photo:hover img { transform: scale(1.025); }
.dorm-showcase-student-card__photo span { position: absolute; right: 10px; bottom: 9px; padding: 4px 7px; border-radius: 999px; color: #fff; background: rgba(34,42,33,.66); font-size: 10px; font-weight: 800; }
.dorm-showcase-student-card__body { display: grid; gap: 10px; padding: 13px; }
.dorm-showcase-student-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dorm-showcase-student-card__heading small { display: block; color: #69815a; font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.dorm-showcase-student-card__heading h3 { margin: 4px 0 0; color: #4c4a3b; font-size: 17px; line-height: 1.35; }
.dorm-showcase-student-card__heading em { flex: 0 0 auto; color: #8c866f; font-size: 9px; font-style: normal; line-height: 1.5; text-align: right; }
.dorm-showcase-student-card__meta { margin: 0; color: #686a5b; font-size: 11px; font-weight: 720; line-height: 1.55; }
.dorm-showcase-student-card__description { margin: 0; padding: 9px 10px; border-radius: 10px; color: #6a6b62; background: #faf9f4; font-size: 11px; line-height: 1.65; }
.dorm-showcase-student-card__freshness { margin: 0; color: #5d795e; font-size: 10px; line-height: 1.5; }
.dorm-showcase-student-card__freshness.is-stale { color: #9b7135; }
.dorm-showcase-student-card__actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.dorm-showcase-student-card__actions > button { min-height: 36px; border: 1px solid #dce4d6; border-radius: 10px; color: #4e7154; background: #f5faf5; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.dorm-showcase-student-card__actions .campus-gallery-dialog__consult { min-height: 36px; font-size: 10px; text-align: center; }
.campus-map-panel { overflow: hidden; border: 1px solid #dce4ef; border-radius: 23px; background: rgba(255,255,255,.96); box-shadow: 0 18px 48px rgba(36,50,93,.09); }
.campus-map-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; background: linear-gradient(120deg, #f8faff, #f2faf6); }
.campus-map-header p { margin: 0 0 5px; color: #388268; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.campus-map-header h2 { margin: 0; color: #283653; font-size: 22px; letter-spacing: -.02em; }
.campus-map-header span { display: block; margin-top: 7px; color: #738097; font-size: 12px; line-height: 1.6; }
.campus-map-header em { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #cfe6dc; border-radius: 999px; color: #2c7359; background: #ecf8f2; font-size: 9px; font-style: normal; font-weight: 900; }
.campus-map-switch { display: flex; gap: 8px; overflow-x: auto; margin: 13px 18px 0; padding: 5px; border: 1px solid #dfe8e6; border-radius: 12px; background: #f4f8f7; scrollbar-width: none; }
.campus-map-switch::-webkit-scrollbar { display: none; }
.campus-map-switch button { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; min-width: 112px; height: 38px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; color: #63766f; background: transparent; font-size: 10px; cursor: pointer; }
.campus-map-switch button span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; color: #fff; background: #75958a; font-size: 10px; }
.campus-map-switch button strong { overflow: hidden; max-width: 118px; text-overflow: ellipsis; white-space: nowrap; }
.campus-map-switch button.is-active { border-color: #cbd9ff; color: #2547c8; background: #fff; box-shadow: 0 4px 10px rgba(38,63,130,.08); }
.campus-map-switch button.is-active span { background: #2547c8; }
.campus-map-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 14px 16px 10px; border-top: 1px solid #edf1f6; }
.campus-map-toolbar label { min-width: 0; }
.campus-map-toolbar input { width: 100%; height: 40px; padding: 0 13px; border: 1px solid #d8dfeb; border-radius: 11px; outline: 0; color: #35415a; background: #fbfcff; font-size: 12px; }
.campus-map-toolbar input:focus { border-color: #8da0df; box-shadow: 0 0 0 3px color-mix(in srgb, var(--route-brand) 11%, transparent); }
.campus-map-zoom { display: flex; gap: 5px; }
.campus-map-zoom button { min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid #d9e0ec; border-radius: 10px; color: #4c5871; background: #fff; font-size: 13px; font-weight: 900; cursor: pointer; }
.campus-map-zoom button:first-child, .campus-map-zoom button:last-child { font-size: 19px; }
.campus-map-zoom button:hover:not(:disabled) { border-color: #9dabd7; color: var(--route-brand); }
.campus-map-zoom button:disabled { opacity: .38; cursor: not-allowed; }
.campus-map-category-wrap { position: relative; }
.campus-map-categories { display: flex; gap: 7px; overflow-x: auto; padding: 0 16px 13px; scrollbar-width: none; scroll-snap-type: x proximity; }
.campus-map-categories::-webkit-scrollbar { display: none; }
.campus-map-categories button { flex: 0 0 auto; min-height: 30px; padding: 0 10px; border: 1px solid #dce3ee; border-radius: 999px; color: #68738b; background: #fff; font-size: 10px; font-weight: 850; cursor: pointer; scroll-snap-align: start; }
.campus-map-categories button.is-active { border-color: #b7dcca; color: #25684f; background: #edf8f3; }
.campus-map-category-hint { display: none; }
.campus-map-viewport { position: relative; margin: 0 16px; overflow: hidden; border: 1px solid #ccd7e5; border-radius: 16px; background: #eaf0f1; cursor: zoom-in; touch-action: none; user-select: none; }
.campus-map-viewport.is-dragging { cursor: grabbing; }
.campus-map-world { position: relative; width: 100%; transform-origin: center; transition: transform .18s ease-out; will-change: transform; }
.campus-map-world > img { display: block; width: 100%; height: auto; min-height: 300px; object-fit: cover; pointer-events: none; }
.campus-map-route-layer { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.campus-map-route-layer .campus-map-route-line { stroke: #2d84d0; stroke-width: 1.15; stroke-linecap: round; stroke-dasharray: 3 1.6; filter: drop-shadow(0 1px 1px rgba(31,84,142,.25)); }
.campus-map-route-layer marker path { fill: #2d84d0; }
.campus-map-route-dot { stroke: #fff; stroke-width: .7; }
.campus-map-route-dot--start { fill: #2c7e62; }
.campus-map-route-dot--end { fill: #e0783f; }
.campus-map-markers { position: absolute; inset: 0; }
.campus-map-marker { position: absolute; z-index: 2; display: grid; justify-items: center; min-width: 0; padding: 0; border: 0; outline: 0; color: #fff; background: transparent; transform: translate(-50%,-50%) scale(var(--marker-scale, 1)); transform-origin: center; cursor: pointer; }
.campus-map-marker > span { position: relative; display: grid; width: 29px; height: 29px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #344ec5; box-shadow: 0 4px 11px rgba(31,44,90,.28); font-size: 10px; font-weight: 950; line-height: 1; transition: transform .15s ease, background .15s ease; }
.campus-map-marker > span::after { position: absolute; z-index: -1; bottom: -3px; left: 50%; width: 7px; height: 7px; content: ""; background: inherit; transform: translateX(-50%) rotate(45deg); }
.campus-map-marker small { max-width: 112px; margin-top: 4px; padding: 3px 6px; overflow: hidden; border-radius: 6px; color: #27334c; background: rgba(255,255,255,.94); box-shadow: 0 2px 7px rgba(31,44,90,.18); font-size: 8px; font-weight: 900; line-height: 1.2; opacity: 0; pointer-events: none; text-overflow: ellipsis; transform: translateY(-2px); transition: opacity .15s ease, transform .15s ease; white-space: nowrap; }
.campus-map-marker.is-active { z-index: 4; }
.campus-map-marker.is-active > span, .campus-map-marker:hover > span { background: #e0783f; transform: scale(1.12); }
.campus-map-marker.is-route-origin > span { background: #2c7e62; box-shadow: 0 0 0 4px rgba(44,126,98,.14), 0 4px 11px rgba(31,44,90,.28); }
.campus-map-marker.is-route-destination > span { background: #e0783f; box-shadow: 0 0 0 4px rgba(224,120,63,.14), 0 4px 11px rgba(31,44,90,.28); }
.campus-map-marker.is-active small, .campus-map-marker:hover small, .campus-map-marker:focus-visible small { opacity: 1; transform: translateY(0); }
.campus-map-marker:focus-visible > span { outline: 3px solid #fff; box-shadow: 0 0 0 5px var(--route-brand); }
.campus-map-drag-hint { position: absolute; right: 9px; bottom: 8px; margin: 0; padding: 5px 8px; border-radius: 7px; color: #526077; background: rgba(255,255,255,.88); backdrop-filter: blur(5px); font-size: 8px; font-weight: 850; pointer-events: none; }
.campus-map-content { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 12px; padding: 14px 16px 17px; }
.campus-map-list, .campus-map-detail { min-width: 0; border: 1px solid #e0e6ef; border-radius: 14px; background: #fbfcfe; }
.campus-map-list { align-self: start; overflow: hidden; }
.campus-map-list__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 13px 9px; }
.campus-map-list__heading h3 { margin: 0; color: #34405a; font-size: 12px; }
.campus-map-list__heading span { color: #8a94a8; font-size: 9px; font-weight: 800; }
#campusMapList { display: grid; max-height: min(360px, 48vh); overflow-y: auto; overscroll-behavior: contain; padding: 0 7px 7px; scrollbar-gutter: stable; }
#campusMapList > button { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 9px; width: 100%; min-height: 48px; padding: 7px; border: 0; border-radius: 9px; color: #4f5a70; background: transparent; text-align: left; cursor: pointer; }
#campusMapList > button:hover, #campusMapList > button.is-active { color: #25345b; background: #eef3ff; }
#campusMapList > button > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #fff; background: #43a07d; font-size: 9px; font-weight: 900; }
#campusMapList strong, #campusMapList small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#campusMapList strong { font-size: 11px; }
#campusMapList small { margin-top: 3px; color: #8993a6; font-size: 8px; }
.campus-map-list__empty { margin: 0; padding: 18px 10px; color: #7b869a; font-size: 10px; line-height: 1.6; text-align: center; }
.campus-map-detail { display: flex; flex-direction: column; padding: 14px; }
.campus-map-detail__heading { display: grid; grid-template-columns: 37px minmax(0,1fr); align-items: center; gap: 10px; }
.campus-map-detail__heading > span { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 11px; color: #fff; background: #e0783f; font-size: 11px; font-weight: 900; }
.campus-map-detail__heading small { display: block; color: #7d899d; font-size: 8px; font-weight: 850; }
.campus-map-detail__heading h3 { margin: 3px 0 0; color: #2f3c57; font-size: 16px; }
.campus-map-detail__description { min-height: 38px; margin: 12px 0 8px; color: #5e687c; font-size: 10px; line-height: 1.7; }
.campus-map-detail dl { display: grid; gap: 7px; margin: 0; }
.campus-map-detail dl div { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 8px; padding-top: 7px; border-top: 1px dashed #e1e6ef; }
.campus-map-detail dt { color: #8a94a6; font-size: 9px; }
.campus-map-detail dd { margin: 0; color: #4d5870; font-size: 9px; line-height: 1.5; }
.campus-map-detail__actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 12px; }
.campus-map-detail__actions a, .campus-map-detail__actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 10px; border-radius: 9px; font-size: 10px; font-weight: 850; }
.campus-map-detail__navigate { border: 0; color: #fff; background: #2c7e62; cursor: pointer; }
.campus-map-detail__navigate:hover { filter: brightness(1.04); }
.campus-map-detail__note { margin: 9px 0 0; color: #929bac; font-size: 8px; line-height: 1.5; }
.campus-map-detail__empty { margin: auto; padding: 18px; color: #7e899c; font-size: 11px; line-height: 1.6; text-align: center; }
.campus-map-gallery-preview { display: grid; gap: 8px; margin-top: 12px; padding: 11px; border: 1px solid #dbe8df; border-radius: 12px; background: #f8fcf9; }
.campus-map-gallery-preview__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.campus-map-gallery-preview__heading small { display: block; color: #6d8b7b; font-size: 8px; font-weight: 800; }
.campus-map-gallery-preview__heading h4 { margin: 2px 0 0; color: #355546; font-size: 12px; }
.campus-map-gallery-preview__heading > span { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #2f7659; background: #e0f3e7; font-size: 9px; font-weight: 850; }
.campus-map-gallery-preview__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.campus-map-gallery-preview__photos button { min-width: 0; aspect-ratio: 1.18; overflow: hidden; padding: 0; border: 1px solid #d5e5da; border-radius: 8px; background: #eaf2ed; cursor: pointer; }
.campus-map-gallery-preview__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.campus-map-gallery-preview__photos button:hover img, .campus-map-gallery-preview__photos button:focus-visible img { transform: scale(1.04); }
.campus-map-gallery-preview p { margin: 0; overflow: hidden; color: #607568; font-size: 9px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.campus-map-gallery-preview__freshness { color: #678172; font-size: 9px; font-weight: 750; line-height: 1.45; }
.campus-map-gallery-preview__freshness.is-stale { color: #a76d32; }
.campus-map-gallery-preview__open { justify-self: start; min-height: 30px; padding: 0 9px; border: 0; border-radius: 8px; color: #246148; background: #dff1e6; font-size: 9px; font-weight: 850; cursor: pointer; }
.campus-map-gallery-preview__open:hover { background: #ccead8; }
.campus-gallery-dialog { width: min(620px, calc(100vw - 28px)); max-height: min(780px, calc(100dvh - 30px)); overflow: auto; padding: 0; border: 0; border-radius: 18px; color: #33415b; box-shadow: 0 24px 68px rgba(29, 44, 70, .24); background: #fff; }
.campus-gallery-dialog::backdrop { background: rgba(23, 34, 54, .52); backdrop-filter: blur(2px); }
.campus-gallery-dialog__topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border-bottom: 1px solid #edf0f5; background: #fbfcff; }
.campus-gallery-dialog__topbar p { margin: 0; color: #748196; font-size: 10px; font-weight: 750; }
.campus-gallery-dialog__close { min-height: 30px; padding: 0 10px; border: 1px solid #dce3ee; border-radius: 8px; color: #55637a; background: #fff; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.campus-gallery-dialog__content { display: grid; gap: 13px; padding: 16px; }
.campus-gallery-dialog__content > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.campus-gallery-dialog__content h2 { margin: 0; color: #2e3f5a; font-size: 19px; line-height: 1.35; }
.campus-gallery-dialog__content header p { margin: 5px 0 0; color: #7f8b9d; font-size: 11px; line-height: 1.55; }
.campus-gallery-dialog__content header > span { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: #2f7659; background: #e3f4e9; font-size: 10px; font-weight: 850; }
.campus-gallery-dialog__groups, .campus-gallery-dialog__thumbs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.campus-gallery-dialog__groups button { flex: 0 0 auto; min-height: 31px; padding: 0 10px; border: 1px solid #dce4ef; border-radius: 999px; color: #657289; background: #fff; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.campus-gallery-dialog__groups button.is-active { border-color: #b6d7c1; color: #286446; background: #eef9f1; }
.campus-gallery-dialog__hero { margin: 0; overflow: hidden; border-radius: 13px; background: #edf1f5; }
.campus-gallery-dialog__hero img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #ecf0f4; }
.campus-gallery-dialog__hero figcaption { padding: 8px 10px; color: #6e7b90; background: #f8fafc; font-size: 10px; line-height: 1.5; }
.campus-gallery-dialog__thumbs button { flex: 0 0 68px; height: 54px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 9px; background: #eef1f4; cursor: pointer; }
.campus-gallery-dialog__thumbs button.is-active { border-color: #3c906b; }
.campus-gallery-dialog__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.campus-gallery-dialog__description { margin: 0; padding: 10px 11px; border-radius: 10px; color: #516078; background: #f5f8fb; font-size: 12px; line-height: 1.7; }
.campus-gallery-dialog__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.campus-gallery-dialog__details div { min-width: 0; padding: 9px 10px; border: 1px solid #e3e9ef; border-radius: 10px; background: #fff; }
.campus-gallery-dialog__details dt { color: #8995a6; font-size: 9px; }
.campus-gallery-dialog__details dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #46556e; font-size: 11px; font-weight: 750; line-height: 1.45; }
.campus-gallery-dialog__freshness { margin: 0; padding: 9px 10px; border-radius: 10px; color: #52705d; background: #f2f8f3; font-size: 10px; font-weight: 750; line-height: 1.55; }
.campus-gallery-dialog__freshness.is-stale { color: #8e622b; background: #fff7ea; }
.campus-gallery-dialog__consult { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border-radius: 10px; color: #fff; background: #2c7e62; font-size: 11px; font-weight: 850; text-decoration: none; }
.campus-gallery-dialog__consult:hover { filter: brightness(1.04); }
.campus-gallery-dialog__notice { margin: 0; color: #8994a4; font-size: 10px; line-height: 1.6; }
.map-contact-dialog { width: min(420px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 18px; color: #33415b; box-shadow: 0 24px 68px rgba(29, 44, 70, .24); background: #fff; }
.map-contact-dialog::backdrop { background: rgba(23, 34, 54, .52); backdrop-filter: blur(2px); }
.map-contact-dialog__topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border-bottom: 1px solid #edf0f5; background: linear-gradient(110deg, #fbfcff, #f4faf7); }
.map-contact-dialog__topbar p { margin: 0; color: #56806d; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.map-contact-dialog__close { min-height: 30px; padding: 0 10px; border: 1px solid #dce3ee; border-radius: 8px; color: #55637a; background: #fff; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.map-contact-dialog__content { display: grid; justify-items: start; gap: 12px; padding: 18px; }
.map-contact-dialog__icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #35866a, #4ba783); font-size: 15px; font-weight: 900; box-shadow: 0 8px 17px rgba(48, 126, 98, .18); }
.map-contact-dialog__content h2 { margin: 0; color: #2f3e59; font-size: 20px; line-height: 1.35; }
.map-contact-dialog__content > p { margin: -5px 0 0; color: #718097; font-size: 12px; line-height: 1.65; }
.map-contact-dialog__value { width: 100%; padding: 12px; border: 1px solid #d7e9df; border-radius: 12px; background: #f5fbf7; }
.map-contact-dialog__value small { display: block; color: #5a8270; font-size: 10px; font-weight: 850; }
.map-contact-dialog__value strong { display: block; margin-top: 5px; overflow-wrap: anywhere; color: #315f50; font-size: 16px; line-height: 1.45; }
.map-contact-dialog__copy { width: 100%; min-height: 40px; border: 0; border-radius: 10px; color: #fff; background: #2c7e62; font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; box-shadow: 0 8px 17px rgba(44, 126, 98, .17); }
.map-contact-dialog__copy:hover { filter: brightness(1.04); }
.map-contact-dialog__status { min-height: 16px; color: #5b786a; font-size: 10px; font-weight: 750; }
.dorm-bedding-card { display: grid; gap: 10px; padding: 12px; border: 1px solid #eadcb9; border-radius: 12px; background: linear-gradient(140deg, #fffaf0, #fffdf8); }
.dorm-bedding-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dorm-bedding-card small { display: block; color: #907644; font-size: 9px; font-weight: 850; }
.dorm-bedding-card h3 { margin: 3px 0 0; color: #6f5424; font-size: 14px; line-height: 1.4; }
.dorm-bedding-card > header > span { flex: 0 0 auto; padding: 4px 7px; border-radius: 99px; color: #7a5d2d; background: #f7ebce; font-size: 9px; font-weight: 850; }
.dorm-bedding-card__intro { margin: 0; color: #82705a; font-size: 10px; line-height: 1.6; }
.dorm-bedding-card__products { display: grid; gap: 8px; }
.dorm-bedding-product { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 9px; align-items: start; padding: 9px; border: 1px solid #eee0bf; border-radius: 10px; background: rgba(255,255,255,.78); }
.dorm-bedding-product--link { color: inherit; text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.dorm-bedding-product--link:hover { border-color: #d6bd86; box-shadow: 0 7px 16px rgba(136, 101, 43, .1); transform: translateY(-1px); }
.dorm-bedding-product--link:focus-visible { outline: 3px solid rgba(183, 129, 44, .28); outline-offset: 2px; }
.dorm-bedding-product > img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; background: #f5ecd8; }
.dorm-bedding-product strong,
.dorm-bedding-product b,
.dorm-bedding-product p,
.dorm-bedding-product small { display: block; }
.dorm-bedding-product strong { color: #5c4a2e; font-size: 12px; line-height: 1.45; }
.dorm-bedding-product b { margin-top: 3px; color: #b56c27; font-size: 11px; }
.dorm-bedding-product p { margin: 5px 0 0; color: #786a57; font-size: 10px; line-height: 1.55; }
.dorm-bedding-product small { margin-top: 5px; color: #8b7c65; font-size: 9px; font-weight: 650; line-height: 1.5; }
.dorm-bedding-product em { display: block; margin-top: 7px; color: #92703a; font-size: 10px; font-style: normal; font-weight: 850; }
.dorm-bedding-card__consult { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; padding: 0 11px; border-radius: 9px; color: #fff; background: #9d6b2e; font-size: 11px; font-weight: 850; text-decoration: none; }
.dorm-bedding-card__consult:hover { background: #825320; }
.route-footer { display: grid; justify-items: center; gap: 11px; margin-top: 24px; color: #8992a5; font-size: 11px; text-align: center; }
.route-footer p { max-width: 540px; margin: 0; line-height: 1.6; }
.route-footer a { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 13px; border: 1px solid #d5def5; border-radius: 11px; color: var(--route-brand); background: #fff; font-size: 12px; font-weight: 800; }
.route-unavailable { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; max-width: 650px; margin: 62px auto; padding: 20px; border: 1px solid #dce4f4; border-radius: 17px; background: #fff; }
.route-unavailable > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--route-brand); background: #eef2ff; font-size: 21px; }
.route-unavailable p { margin: 0 0 3px; color: var(--route-brand); font-size: 11px; font-weight: 850; }
.route-unavailable h1 { margin: 0; font-size: 18px; }
.route-unavailable small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.route-unavailable a { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; border: 1px solid #d9e1f3; border-radius: 9px; color: var(--route-brand); font-size: 12px; font-weight: 800; }
@media (max-width: 680px) {
  .route-shell { padding: 15px 14px 30px; }
  .route-topbar { gap: 8px; }
  .return-link { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .route-brand { max-width: calc(100% - 118px); font-size: 13px; }
  .route-brand span { width: 24px; height: 24px; border-radius: 7px; font-size: 14px; }
  .route-intro { margin: 28px auto 18px; }
  .route-intro h1 { font-size: 29px; }
  .route-intro > p:last-child { margin-top: 9px; font-size: 13px; }
  .campus-route-planner { margin-bottom: 13px; border-radius: 17px; }
  .campus-route-planner__header { padding: 15px 14px 13px; }
  .campus-route-planner__header h2 { font-size: 18px; }
  .campus-route-planner__header span { font-size: 11px; }
  .campus-route-planner__header em { display: none; }
  .campus-route-planner__form { grid-template-columns: 1fr; gap: 10px; padding: 13px 14px 11px; }
  .campus-route-planner__swap { justify-self: center; width: 34px; height: 32px; margin: -5px 0; transform: rotate(90deg); }
  .campus-route-planner__submit { width: 100%; min-height: 42px; }
  .campus-route-planner__status { padding: 0 14px 10px; }
  .campus-route-result { margin: 0 14px 14px; }
  .route-mode-tabs { margin-bottom: 12px; }
  .route-mode-tabs button { min-height: 34px; padding: 0 12px; font-size: 11px; }
  .route-toolbar { align-items: stretch; flex-direction: column; padding: 12px; }
  .route-toolbar label { justify-content: space-between; }
  .route-toolbar select { min-width: 0; width: 58%; }
  .route-grid { grid-template-columns: 1fr; gap: 11px; margin-top: 11px; }
  .route-card__header { padding: 13px; }
  .route-card__details { padding: 3px 13px; }
  .route-card__actions { padding: 11px 13px 14px; }
  .dorm-showcase-panel { border-radius: 18px; }
  .dorm-showcase-panel__header { padding: 17px 15px 14px; }
  .dorm-showcase-panel__header h2 { font-size: 19px; }
  .dorm-showcase-grid { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .dorm-showcase-student-card__actions { grid-template-columns: 1fr; }
  .campus-map-panel { border-radius: 18px; }
  .campus-map-header { padding: 17px 15px 14px; }
  .campus-map-header h2 { font-size: 19px; }
  .campus-map-header em { display: none; }
  .campus-map-switch { margin: 11px 12px 0; }
  .campus-map-toolbar { grid-template-columns: 1fr; padding: 12px 12px 9px; }
  .campus-map-zoom { justify-content: flex-end; }
  .campus-map-zoom button { min-width: 38px; height: 36px; }
  .campus-map-category-wrap::after { position: absolute; top: 0; right: 0; bottom: 11px; width: 34px; content: ""; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.96)); pointer-events: none; }
  .campus-map-categories { padding: 0 12px 7px; }
  .campus-map-category-hint { display: block; margin: 0 12px 10px; color: #8b96aa; font-size: 9px; font-weight: 750; }
  .campus-map-viewport { margin: 0 12px; border-radius: 13px; }
  .campus-map-world > img { min-height: 215px; }
  .campus-map-marker > span { width: 25px; height: 25px; font-size: 9px; }
  .campus-map-marker small { display: none; }
  .campus-map-content { grid-template-columns: 1fr; padding: 11px 12px 13px; }
  #campusMapList { display: flex; max-height: none; overflow-x: auto; padding: 0 7px 7px; }
  #campusMapList > button { flex: 0 0 170px; }
  .campus-map-detail { min-height: 190px; }
  .campus-map-gallery-preview { padding: 10px; }
  .campus-gallery-dialog { width: min(100vw - 20px, 620px); max-height: calc(100dvh - 20px); border-radius: 15px; }
  .campus-gallery-dialog__content { gap: 11px; padding: 14px; }
  .campus-gallery-dialog__content h2 { font-size: 17px; }
  .campus-gallery-dialog__hero img { max-height: 56dvh; }
  .campus-gallery-dialog__details { grid-template-columns: 1fr; gap: 7px; }
  .map-contact-dialog { width: min(100vw - 20px, 420px); border-radius: 15px; }
  .map-contact-dialog__content { gap: 11px; padding: 15px; }
  .map-contact-dialog__content h2 { font-size: 18px; }
  .dorm-bedding-product { grid-template-columns: 54px minmax(0, 1fr); }
  .dorm-bedding-product > img { width: 54px; height: 54px; }
  .route-unavailable { grid-template-columns: auto minmax(0,1fr); margin: 34px auto; padding: 16px; }
  .route-unavailable a { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
