:root{--map-bg:#07111d;--panel:rgba(7,17,29,.94);--panel2:rgba(10,21,34,.96);--border:rgba(255,255,255,.12);--muted:#8e9bab;--blue:#1677ff;--green:#32d583;--red:#ff625f}
*{box-sizing:border-box}html,body{height:100%;margin:0;background:#07111d;color:#f7fafc;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden}button,input{font:inherit}button{cursor:pointer}
#map{position:fixed;inset:0;z-index:1}.leaflet-control-zoom{display:none}.leaflet-control-attribution{font-size:8px!important;background:rgba(4,10,17,.56)!important;color:#687789!important;border-radius:8px 0 0 0!important}.leaflet-control-attribution a{color:#8b9aab!important}
.map-ui{position:fixed;inset:0;z-index:500;pointer-events:none}.map-top{position:absolute;top:10px;left:50%;transform:translateX(-50%);width:min(700px,calc(100% - 20px));padding:7px 8px 9px;border:1px solid rgba(255,255,255,.08);border-radius:21px;background:linear-gradient(180deg,rgba(5,14,24,.96),rgba(6,16,27,.76));box-shadow:0 16px 42px rgba(0,0,0,.25);backdrop-filter:blur(18px);pointer-events:auto}
.map-search-row{position:relative;z-index:5;display:flex;align-items:center;gap:9px}.map-search{height:44px;flex:1;display:flex;align-items:center;gap:9px;padding:0 13px;background:rgba(18,31,45,.92);border:1px solid rgba(255,255,255,.06);border-radius:14px}.map-search svg{color:#a8b4c2;flex:none}.map-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#f5f8fb;font-size:16px!important;line-height:1.25;-webkit-text-size-adjust:100%;appearance:none;-webkit-appearance:none}.map-search input::placeholder{color:#788697}.map-avatar{width:42px;height:42px;flex:none;border-radius:50%;display:grid;place-items:center;background:#2d79bd;border:1px solid rgba(255,255,255,.2);color:white;text-decoration:none;font-size:12px;font-weight:850;letter-spacing:-.02em;box-shadow:0 8px 20px rgba(0,0,0,.3)}
.category-row{position:relative;z-index:1;display:flex;gap:7px;margin-top:8px;overflow:auto;padding:0 1px 1px;scrollbar-width:none}.category-row::-webkit-scrollbar{display:none}.category-chip{height:33px;padding:0 11px;border:1px solid rgba(255,255,255,.10);background:rgba(10,22,35,.92);color:#b9c5d2;border-radius:999px;display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:750;white-space:nowrap}.category-chip svg{opacity:.9}.category-chip.active{background:var(--blue);color:#fff;border-color:var(--blue)}.category-chip[data-category="buildings"] svg{color:#62a6ff}.category-chip[data-category="halls"] svg{color:#b875ff}.category-chip[data-category="labs"] svg{color:#f0bd32}.category-chip[data-category="hostels"] svg{color:#ff6868}
.search-results{position:absolute;z-index:30;top:52px;left:0;right:51px;display:none;background:#0b1725;border:1px solid var(--border);border-radius:13px;overflow:hidden;box-shadow:0 16px 34px rgba(0,0,0,.42)}.search-result{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.06);display:flex;align-items:center;gap:10px;color:#edf2f7;font-size:12px;cursor:pointer}.search-result:last-child{border-bottom:0}.search-result:hover{background:#122238}.result-icon{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;background:#10263f;color:#70aaff}.result-meta{font-size:9px;color:#8291a2;margin-top:2px}
.map-rail{position:absolute;right:12px;top:145px;display:flex;flex-direction:column;gap:9px;pointer-events:auto}.map-control{width:43px;height:43px;display:grid;place-items:center;border:1px solid var(--border);border-radius:14px;background:rgba(7,17,29,.94);color:#f7fafc;box-shadow:0 10px 25px rgba(0,0,0,.34);backdrop-filter:blur(16px);padding:0}.map-control.active{color:#5da3ff;border-color:rgba(22,119,255,.45)}.map-control svg{width:20px;height:20px}
.compass-face{width:34px;height:34px;border-radius:50%;position:relative;display:block;background:#05090d;border:1px solid rgba(255,255,255,.28);box-shadow:inset 0 0 0 2px rgba(255,255,255,.04)}.compass-face:before,.compass-face:after{content:"N";position:absolute;top:2px;left:50%;transform:translateX(-50%);font-size:7px;font-weight:900;color:#fff}.compass-face:after{content:"S";top:auto;bottom:2px;color:#b9c1ca}.compass-face i,.compass-face b{position:absolute;left:50%;top:8px;width:2px;height:10px;transform-origin:50% 9px;transform:translateX(-50%) rotate(0deg);background:#e9eef4;border-radius:2px 2px 0 0}.compass-face b{top:16px;background:#e85252;transform-origin:50% -1px;transform:translateX(-50%) rotate(180deg)}
.campus-sheet{position:absolute;left:50%;bottom:78px;transform:translateX(-50%);width:min(700px,calc(100% - 20px));max-height:34vh;padding:7px 9px 10px;border:1px solid rgba(255,255,255,.10);border-radius:20px;background:rgba(6,16,27,.95);box-shadow:0 18px 42px rgba(0,0,0,.38);backdrop-filter:blur(18px);pointer-events:auto;touch-action:none;transition:height .22s ease,max-height .22s ease}.campus-sheet.expanded{max-height:70vh}.sheet-grabber,.place-grabber{height:13px;display:grid;place-items:center;cursor:grab}.sheet-grabber span,.place-grabber span{width:42px;height:4px;border-radius:999px;background:#77818d}.sheet-head{display:flex;justify-content:space-between;align-items:center;margin:1px 3px 8px}.sheet-title{font-size:13px;font-weight:800}.sheet-link{font-size:10px;color:#4d9aff;text-decoration:none}.activity-list{display:grid;gap:7px;max-height:22vh;overflow:hidden}.campus-sheet.expanded .activity-list{max-height:58vh;overflow:auto}.activity-card{display:flex;align-items:center;gap:9px;padding:10px;background:rgba(12,27,42,.86);border:1px solid rgba(255,255,255,.08);border-radius:13px}.activity-icon{width:31px;height:31px;flex:none;border-radius:9px;display:grid;place-items:center;background:rgba(22,119,255,.13);color:#65a7ff}.activity-icon.green{background:rgba(37,196,107,.12);color:#47d985}.activity-main{min-width:0;flex:1}.activity-title{font-size:11px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-sub{font-size:9px;color:#8391a1;margin-top:2px}.activity-status{font-size:9px;color:#45d27f;white-space:nowrap}.activity-chevron{color:#728093;font-size:20px}
.place-sheet{position:absolute;left:50%;bottom:0;transform:translate(-50%,105%);width:min(700px,100%);max-height:88vh;overflow:auto;background:linear-gradient(180deg,#0a1723,#07111d);border:1px solid rgba(255,255,255,.12);border-bottom:0;border-radius:22px 22px 0 0;box-shadow:0 -20px 60px rgba(0,0,0,.48);pointer-events:auto;transition:transform .28s ease;z-index:760}.place-sheet.open{transform:translate(-50%,0)}.place-photo{height:185px;background:linear-gradient(135deg,#162d42,#07111d);background-size:cover;background-position:center;position:relative}.place-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(7,17,29,.72) 100%)}.place-close{position:absolute;right:12px;top:12px;width:38px;height:38px;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:rgba(5,11,17,.75);color:#fff;display:grid;place-items:center;z-index:2}.place-content{padding:17px 17px 25px}.place-heading h2{margin:0;font-size:22px;letter-spacing:-.03em}.place-heading p{margin:4px 0 0;color:#a4afbc;font-size:12px}.place-badges{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.place-badge{padding:6px 9px;border:1px solid rgba(255,255,255,.09);border-radius:8px;background:#0d1a27;color:#c8d1db;font-size:10px}.place-status-card{margin-top:15px;padding:14px;border:1px solid rgba(255,255,255,.09);border-radius:13px;background:rgba(10,22,34,.82);display:flex;justify-content:space-between;gap:20px}.muted-label{display:block;color:#7e8c9c;font-size:10px;margin-bottom:5px}.status-line{font-size:12px}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:5px}.place-class{min-width:120px;text-align:right}.place-class strong{display:block;font-size:12px}.place-class small{display:block;color:#8491a0;font-size:10px;margin-top:3px}.place-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.place-action{height:42px;border:0;border-radius:11px;background:#17222e;color:#eef3f7;display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px}.place-action.primary{background:var(--blue);color:white}.place-action svg{flex:none}
.marker-pin{width:30px;height:30px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);display:grid;place-items:center;border:2px solid rgba(255,255,255,.88);box-shadow:0 6px 15px rgba(0,0,0,.35);color:white}.marker-pin svg{width:15px;height:15px;transform:rotate(45deg)}.marker-blue{background:#1677ff}.marker-purple{background:#9747ff}.marker-yellow{background:#e4a919}.marker-red{background:#e74e4e}.marker-green{background:#29ad67}.user-location{width:18px;height:18px;border-radius:50%;background:#1479ff;border:2px solid #fff;box-shadow:0 0 0 7px rgba(20,121,255,.16),0 2px 8px rgba(0,0,0,.35);position:relative}.user-heading{position:absolute;left:50%;top:-8px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:8px solid #fff;transform:translateX(-50%);transform-origin:50% 17px;will-change:transform}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#0b1725;color:#f3f6f8}.leaflet-popup-content{margin:12px}.popup-title{font-weight:800;font-size:13px}.popup-meta{color:#95a1af;font-size:10px;margin-top:3px}.popup-actions{display:grid;gap:6px;margin-top:9px}.popup-btn{border:1px solid rgba(255,255,255,.1);background:#152333;color:#fff;border-radius:8px;padding:7px;font-size:10px}.popup-btn.primary{background:#1677ff;border-color:#1677ff}
.route-card{position:absolute;left:50%;bottom:78px;transform:translateX(-50%);width:min(500px,calc(100% - 28px));display:none;padding:11px 13px;background:#0b1725;border:1px solid var(--border);border-radius:13px;box-shadow:0 15px 35px rgba(0,0,0,.4);pointer-events:auto}.route-top{display:flex;justify-content:space-between;align-items:center;font-size:11px}.route-close{border:0;background:transparent;color:#8fa0b1;font-size:10px}.route-details{color:#8e9bab;font-size:9px;margin-top:5px}.toast{position:absolute;left:50%;bottom:150px;transform:translateX(-50%);display:none;padding:9px 12px;background:#0c1927;border:1px solid var(--border);border-radius:10px;color:#fff;font-size:10px;box-shadow:0 12px 28px rgba(0,0,0,.4)}
.unimap-bottom-nav{position:fixed;left:50%;bottom:9px;transform:translateX(-50%);width:min(700px,calc(100% - 20px));height:60px;background:rgba(7,17,29,.97);border:1px solid var(--border);border-radius:18px;backdrop-filter:blur(18px);display:grid;grid-template-columns:repeat(5,1fr);z-index:700;box-shadow:0 14px 35px rgba(0,0,0,.38)}.unimap-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#7e8d9f;text-decoration:none;font-size:9px;font-weight:750}.unimap-bottom-nav a.active{color:#1677ff}.unimap-bottom-nav svg{width:19px;height:19px}
@media(max-width:520px){.map-top{width:calc(100% - 12px);top:6px}.map-rail{right:7px;top:136px}.campus-sheet{bottom:75px;width:calc(100% - 10px)}.place-photo{height:165px}.place-sheet{max-height:92vh}.unimap-bottom-nav{bottom:5px;width:calc(100% - 10px);height:57px}}

/* --- UNIMAP campus boundary + unified bottom dock --- */
.leaflet-control-attribution{display:none!important}
.bottom-dock{position:absolute;left:50%;bottom:9px;transform:translateX(-50%);width:min(700px,calc(100% - 20px));max-height:132px;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:rgba(6,16,27,.93);box-shadow:0 18px 48px rgba(0,0,0,.48);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);overflow:hidden;pointer-events:auto;z-index:700;transition:max-height .28s ease}
.bottom-dock.expanded{max-height:min(66vh,620px)}
.campus-sheet{position:relative;left:auto;bottom:auto;transform:none;width:100%;max-height:66px;padding:5px 9px 7px;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;overflow:hidden;transition:max-height .28s ease}
.bottom-dock.expanded .campus-sheet{max-height:min(56vh,520px);overflow:hidden}
.sheet-grabber{height:11px}
.sheet-grabber span{width:38px;height:4px;background:rgba(164,176,190,.68)}
.sheet-head{margin:1px 3px 6px}
.activity-list{max-height:none;overflow:hidden}
.activity-card{min-height:43px;padding:8px 9px;border-radius:12px}
.bottom-dock.expanded .activity-list{max-height:min(48vh,450px);overflow:auto;padding-bottom:4px}
.bottom-dock.expanded .activity-card{min-height:48px}
.unimap-bottom-nav{position:relative;left:auto;bottom:auto;transform:none;width:100%;height:57px;border:0;border-top:1px solid rgba(255,255,255,.08);border-radius:0;background:rgba(3,11,19,.38);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}

/* Subtle dim/blur outside the actual campus boundary. The map remains fully visible inside it. */
.campus-mask-pane{pointer-events:none!important}
.campus-mask-pane svg path{filter:blur(.35px)}
.campus-boundary-line{fill:none;stroke:rgba(74,155,255,.78);stroke-width:2;stroke-dasharray:7 7;filter:drop-shadow(0 0 4px rgba(22,119,255,.32))}

/* A more polished compass/orientation control inspired by the reference. */
.compass-control{padding:0!important}
.compass-orb{position:relative;width:34px;height:34px;border-radius:50%;display:block;background:radial-gradient(circle at 50% 42%,#1a3148 0 20%,#0b1724 48%,#050a10 100%);border:1px solid rgba(255,255,255,.28);box-shadow:inset 0 0 0 2px rgba(255,255,255,.05),0 0 18px rgba(22,119,255,.16)}
.compass-orb:before{content:"";position:absolute;inset:4px;border:1px solid rgba(117,175,255,.22);border-radius:50%}
.compass-orb .north{position:absolute;top:3px;left:50%;transform:translateX(-50%);font-size:6px;font-weight:900;color:#fff;letter-spacing:.04em}
.compass-orb .needle{position:absolute;left:50%;top:7px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:9px solid #ff5b5b;transform:translateX(-50%);filter:drop-shadow(0 0 3px rgba(255,91,91,.5));transform-origin:50% 10px}
.compass-orb .needle:after{content:"";position:absolute;left:-4px;top:9px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:9px solid #dce7f2}

/* Place sheet: fixed-height scroll region so every detail/action remains reachable. */
.place-sheet{height:min(88vh,760px);max-height:88vh;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}
.place-sheet.open{display:block}
.place-photo{flex:none}
.place-content{padding-bottom:40px}
.place-grabber{position:sticky;top:0;z-index:4;background:linear-gradient(180deg,rgba(10,23,35,.98),rgba(10,23,35,.72),transparent);margin-bottom:-13px}
.place-close{top:18px}

@media(max-width:520px){
  .bottom-dock{width:calc(100% - 10px);bottom:5px;max-height:126px;border-radius:20px}
  .bottom-dock.expanded{max-height:68vh}
  .campus-sheet{max-height:61px}
  .bottom-dock.expanded .campus-sheet{max-height:58vh}
  .unimap-bottom-nav{height:55px}
  .place-sheet{height:92vh;max-height:92vh}
}

/* --- UNIMAP bottom dock v2: default / collapsed / expanded --- */
.bottom-dock{
  bottom:8px;
  max-height:132px;
  border-radius:22px;
  transition:max-height .32s cubic-bezier(.22,.8,.22,1), box-shadow .25s ease;
}
.bottom-dock.collapsed{
  height:64px;
  max-height:64px;
  min-height:64px;
  overflow:hidden;
}
.bottom-dock.collapsed .campus-sheet{
  display:none !important;
}
.bottom-dock.collapsed .sheet-head,
.bottom-dock.collapsed .activity-list{
  display:none;
}
.bottom-dock.collapsed .sheet-grabber{
  height:9px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
}
.bottom-dock:not(.collapsed):not(.expanded) .campus-sheet{
  max-height:66px;
}
.bottom-dock:not(.collapsed):not(.expanded) .activity-card:nth-child(2){
  display:none;
}
.bottom-dock.expanded{
  max-height:min(66vh,500px);
}
.bottom-dock.expanded .campus-sheet{
  max-height:min(66vh,443px);
  overflow:hidden;
}
.bottom-dock.expanded .activity-list{
  max-height:min(48vh,350px);
  overflow:auto;
  padding-bottom:4px;
}
.bottom-dock.expanded .activity-card:nth-child(2){display:flex}
.sheet-grabber{cursor:grab;touch-action:none;display:flex;justify-content:center;align-items:center}
.sheet-grabber:active{cursor:grabbing}
.sheet-grabber span{display:block;border-radius:999px;box-shadow:0 0 8px rgba(255,255,255,.08)}

/* Better outside-campus treatment: keep the campus clear and soften everything beyond it. */
.campus-mask-pane svg{overflow:visible}
.campus-mask-pane path{filter:blur(1.4px)}

/* Refined compass + install/download button */
.compass-orb{width:35px;height:35px;overflow:visible}
.compass-orb:after{content:"";position:absolute;inset:-4px;border-radius:50%;border:1px solid rgba(22,119,255,.12);box-shadow:0 0 14px rgba(22,119,255,.12)}
.compass-core{position:absolute;left:50%;top:50%;width:5px;height:5px;border-radius:50%;background:#fff;transform:translate(-50%,-50%);box-shadow:0 0 7px rgba(255,255,255,.65)}
#downloadBtn{color:#dce8f5}
#downloadBtn:hover{color:#fff;border-color:rgba(22,119,255,.5);background:rgba(10,29,48,.97)}

/* First-login splash */
.unimap-splash{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:radial-gradient(circle at 50% 42%,rgba(17,75,128,.28),transparent 34%),linear-gradient(180deg,#02080e 0%,#06111c 100%);color:#fff;opacity:1;transition:opacity .45s ease,visibility .45s ease;overflow:hidden}
.unimap-splash.hide{opacity:0;visibility:hidden;pointer-events:none}
.splash-glow{position:absolute;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(22,119,255,.22),transparent 68%);filter:blur(3px)}
.splash-logo{position:relative;width:92px;height:92px;object-fit:contain;filter:drop-shadow(0 12px 28px rgba(22,119,255,.2));animation:splashPulse 1.5s ease both}
.splash-title{position:absolute;top:calc(50% + 58px);font-size:31px;font-weight:850;letter-spacing:-.045em}
.splash-title span{color:#1677ff}
.splash-subtitle{position:absolute;top:calc(50% + 102px);font-size:11px;color:#8e9cac;letter-spacing:.03em}
.splash-progress{position:absolute;top:calc(50% + 137px);width:74px;height:3px;border-radius:99px;background:rgba(255,255,255,.1);overflow:hidden}
.splash-progress span{display:block;width:40%;height:100%;background:#1677ff;border-radius:99px;animation:splashLoad 1.5s ease both}
@keyframes splashPulse{0%{opacity:0;transform:scale(.86)}55%{opacity:1;transform:scale(1.04)}100%{opacity:1;transform:scale(1)}}
@keyframes splashLoad{from{transform:translateX(-100%)}to{transform:translateX(260%)}}

@media(max-width:520px){
  .bottom-dock{bottom:5px;width:calc(100% - 10px);max-height:126px;border-radius:20px}
  .bottom-dock.collapsed{max-height:69px}
  .bottom-dock.expanded{max-height:68vh}
  .bottom-dock.expanded .campus-sheet{max-height:58vh}
  .bottom-dock.expanded .activity-list{max-height:48vh}
}

/* Final map interaction pass */
.map-top{background:linear-gradient(180deg,rgba(4,13,22,.92),rgba(5,15,25,.74));backdrop-filter:blur(24px) saturate(1.12);-webkit-backdrop-filter:blur(24px) saturate(1.12)}
.map-control{backdrop-filter:blur(22px) saturate(1.15);-webkit-backdrop-filter:blur(22px) saturate(1.15)}
.bottom-dock{bottom:8px;max-height:128px;border-radius:22px;transition:max-height .34s cubic-bezier(.22,.8,.22,1),box-shadow .25s ease}
.bottom-dock.dragging{transition:none}
.bottom-dock.collapsed{max-height:60px}
.bottom-dock.collapsed .campus-sheet{max-height:9px;min-height:9px;padding:2px 9px 0}
.bottom-dock.collapsed .sheet-head,.bottom-dock.collapsed .activity-list{display:none}
.bottom-dock.collapsed .sheet-grabber{height:9px}
.bottom-dock:not(.collapsed):not(.expanded) .campus-sheet{max-height:62px}
.bottom-dock:not(.collapsed):not(.expanded) .activity-card:nth-child(n+2){display:none}
.bottom-dock.expanded{max-height:min(68vh,540px)}
.bottom-dock.expanded .campus-sheet{max-height:min(68vh,483px);overflow:hidden}
.bottom-dock.expanded .activity-list{max-height:min(48vh,370px);overflow:auto;padding-bottom:4px;overscroll-behavior:contain}
.bottom-dock.expanded .activity-card:nth-child(2){display:flex}
.bottom-dock .sheet-grabber{user-select:none;-webkit-user-select:none;touch-action:none}
.bottom-dock .sheet-grabber span{width:42px;height:4px;background:rgba(240,246,252,.78);box-shadow:0 0 10px rgba(255,255,255,.12)}
.bottom-dock .unimap-bottom-nav{flex:none}
.place-sheet{height:min(90vh,780px);max-height:90vh;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scroll-behavior:smooth}
.place-sheet.open{pointer-events:auto}
.place-content{padding-bottom:72px}
.place-actions{padding-bottom:12px}
.status-dot.green{background:var(--green)}.status-dot.red{background:var(--red)}.status-dot.yellow{background:var(--yellow)}
@media(max-width:520px){
  .bottom-dock{bottom:5px;width:calc(100% - 10px);max-height:124px;border-radius:20px}
  .bottom-dock.collapsed{max-height:56px}
  .bottom-dock.expanded{max-height:72vh}
  .bottom-dock.expanded .campus-sheet{max-height:62vh}
  .bottom-dock.expanded .activity-list{max-height:49vh}
}


/* FINAL BOTTOM DOCK CORRECTION — one connected surface with the bottom nav */
.bottom-dock{
  bottom:8px;
  max-height:132px;
  border-radius:22px;
  overflow:hidden;
  gap:0;
}
.bottom-dock .campus-sheet{
  position:relative;
  left:auto;
  bottom:auto;
  transform:none;
  width:100%;
  max-height:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
  padding:5px 10px 9px;
}
.bottom-dock .sheet-grabber{height:15px}
.bottom-dock .sheet-grabber span{background:#fff;width:42px;height:4px}
.bottom-dock .sheet-head{margin:0 3px 7px}
.bottom-dock .sheet-title{font-size:12px}
.bottom-dock .sheet-link{display:none}
.bottom-dock .activity-list{max-height:none;overflow:hidden}
.bottom-dock:not(.collapsed):not(.expanded){max-height:128px}
.bottom-dock:not(.collapsed):not(.expanded) .campus-sheet{max-height:72px}
.bottom-dock:not(.collapsed):not(.expanded) .activity-card:nth-child(n+2){display:none}
.bottom-dock.expanded{max-height:min(68vh,540px)}
.bottom-dock.expanded .campus-sheet{max-height:min(68vh,483px);overflow:hidden}
.bottom-dock.expanded .sheet-link{display:block}
.bottom-dock.expanded .activity-list{max-height:min(48vh,370px);overflow:auto}
.bottom-dock.expanded .activity-card:nth-child(2){display:flex}
.bottom-dock.collapsed{max-height:60px}
.bottom-dock.collapsed .campus-sheet{max-height:9px;min-height:9px;padding:2px 9px 0}
.bottom-dock.collapsed .sheet-head,.bottom-dock.collapsed .activity-list{display:none}
.bottom-dock.collapsed .sheet-grabber{height:9px}
.bottom-dock.collapsed .unimap-bottom-nav{border-top:0}
.stop-navigation{display:block;width:100%;margin-top:9px;height:38px;border:1px solid rgba(255,98,95,.32);border-radius:10px;background:rgba(255,98,95,.10);color:#ff8b88;font-weight:800;font-size:11px;cursor:pointer}
.stop-navigation:hover{background:rgba(255,98,95,.16)}
@media(max-width:520px){
 .bottom-dock{bottom:5px;width:calc(100% - 10px);max-height:124px;border-radius:20px}
 .bottom-dock.collapsed{max-height:56px}
 .bottom-dock:not(.collapsed):not(.expanded){max-height:122px}
 .bottom-dock.expanded{max-height:72vh}
}


/* FINAL BOTTOM DOCK STATE FIX — keep activity and bottom navigation connected. */
.bottom-dock{bottom:8px;max-height:128px;overflow:hidden;display:flex;flex-direction:column;}
.bottom-dock .sheet-grabber{order:0;flex:0 0 15px;height:15px;margin:0;padding:0;}
.bottom-dock .campus-sheet{order:1;position:relative;left:auto;bottom:auto;transform:none;width:100%;max-width:none;margin:0;padding:0 9px 8px;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}
.bottom-dock .unimap-bottom-nav{order:2;flex:0 0 auto;}
.bottom-dock:not(.collapsed):not(.expanded){max-height:128px;}
.bottom-dock:not(.collapsed):not(.expanded) .campus-sheet{height:65px;max-height:65px;overflow:hidden;}
.bottom-dock:not(.collapsed):not(.expanded) .activity-card:nth-child(n+2){display:none;}
.bottom-dock.collapsed{max-height:62px;min-height:62px;}
.bottom-dock.collapsed .campus-sheet{height:0!important;max-height:0!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;}
.bottom-dock.collapsed .sheet-head,.bottom-dock.collapsed .activity-list{display:none!important;}
.bottom-dock.collapsed .sheet-grabber{display:flex;height:15px;flex-basis:15px;}
.bottom-dock.collapsed .unimap-bottom-nav{border-top:0;}
.bottom-dock.expanded{max-height:min(68vh,540px);}
.bottom-dock.expanded .campus-sheet{height:auto;max-height:min(68vh,483px);overflow:hidden;padding-bottom:8px;}
.bottom-dock.expanded .activity-list{max-height:min(48vh,370px);overflow:auto;}
.bottom-dock.expanded .activity-card:nth-child(2){display:flex;}
.bottom-dock.dragging{transition:none!important;}
@media(max-width:700px){
  .bottom-dock{bottom:5px;width:calc(100% - 10px);max-height:124px;}
  .bottom-dock:not(.collapsed):not(.expanded){max-height:124px;}
  .bottom-dock:not(.collapsed):not(.expanded) .campus-sheet{height:64px;max-height:64px;}
  .bottom-dock.collapsed{max-height:58px;min-height:58px;}
  .bottom-dock.expanded{max-height:72vh;}
}


/* Profile avatar image on the campus map */
.map-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}


/* Map community invitation + quick feedback */
.map-community-modal[hidden],.map-report-modal[hidden]{display:none!important}
.map-community-modal,.map-report-modal{position:fixed;inset:0;z-index:1800;display:grid;place-items:center;padding:18px;font-family:Inter,system-ui,sans-serif}
.map-community-backdrop,.map-report-backdrop{position:absolute;inset:0;background:rgba(2,8,15,.72);backdrop-filter:blur(5px)}
.map-community-card,.map-report-card{position:relative;width:min(440px,100%);max-height:calc(100dvh - 36px);overflow:auto;padding:25px;border:1px solid rgba(255,255,255,.13);border-radius:22px;background:#0b1725;color:#f7fafc;box-shadow:0 25px 80px rgba(0,0,0,.5)}
.map-community-card h2,.map-report-card h2{font-size:23px;line-height:1.2;margin:12px 0}
.map-community-card p,.map-report-card p{font-size:14px;line-height:1.55;color:#c4cfdb}
.map-community-tag{display:inline-block;padding:6px 9px;border-radius:999px;background:#12345a;color:#8fc4ff;font-size:10px;font-weight:850;letter-spacing:.08em}
.map-community-close,.map-report-close{position:absolute;right:13px;top:10px;border:0;background:transparent;color:#cbd5e1;font-size:27px}
.map-community-emphasis{font-weight:800;color:#fff!important}
.map-community-primary,.map-community-secondary,.map-community-later,.map-community-report{width:100%;min-height:43px;margin-top:9px;border-radius:12px;font-weight:750;text-align:center;display:flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;padding:10px 14px}
.map-community-primary{border:0;background:#1677ff;color:#fff}
.map-community-secondary{border:1px solid #3b526c;background:#14263a;color:#fff}
.map-community-later,.map-community-report{border:0;background:transparent;color:#a9c9ee}
.map-community-card small{display:block;margin-top:12px;color:#8e9bab;font-size:11px;line-height:1.45}

.map-report-card form{display:grid;gap:12px;margin-top:15px}
.map-report-card label{display:grid;gap:6px;color:#dce6f1;font-size:12px;font-weight:700}
.map-report-card input,.map-report-card select,.map-report-card textarea{width:100%;border:1px solid #33465b;border-radius:10px;padding:11px;background:#101f30;color:#f7fafc;font:inherit;font-size:13px}
.map-report-card textarea{resize:vertical}
.map-report-result{min-height:20px;margin:0!important;font-size:12px!important}
@media(max-width:600px){.map-community-card,.map-report-card{padding:21px}}
