:root {
  --primary: #1976d2;
  --accent: #42a5f5;
  --bg: #eef5ff;
  --glass: rgba(255,255,255,0.85);
  --card-bg: rgba(255,255,255,0.98);
  --shadow: 0 8px 32px #1a237e25;
  --radius: 28px;
  --fab-size: 56px;
  --fab-gap: 15px;
  --handle-height: 8px;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: #1a237e;
  min-height: 100vh;
  overflow: hidden;
}
body {
  position: relative;
}
#map {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: var(--bg);
}

/* NAV ARROW OVERLAY */
#nav-arrow-overlay {
  pointer-events: none;
  position: fixed;
  z-index: 20;
  transition: left .19s, top .19s;
  will-change: left, top, transform;
}
#nav-arrow {
  filter: drop-shadow(0 3px 12px #1976d255);
  opacity: 0.99;
}

/* FAB Controls: overlayed on map, glassmorphic, mobile-first */
.fab-controls {
  position: fixed;
  left: 50%;
  bottom: 25vh;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: var(--fab-gap);
  background: rgba(255,255,255,0.18);
  border-radius: 40px;
  box-shadow: 0 2px 20px #1976d244;
  backdrop-filter: blur(8px);
  padding: 5px 13px;
}

.fab {
  background: var(--glass);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: var(--fab-size);
  height: var(--fab-size);
  font-size: 2em;
  box-shadow: 0 3px 12px #1565c022;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .16s, box-shadow .12s, color .16s;
  cursor: pointer;
  outline: none;
  border: 2px solid #fff;
  opacity: 0.98;
}
.fab:active, .fab:focus {
  background: var(--primary);
  color: #fff;
}
#mute-btn.active {
  background: #e1e1e1;
  color: #999;
}
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: 700;
  font-size: 1.2em;
}

#poi-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  min-height: 22vh;
  max-height: 55vh;
  background: var(--card-bg);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  z-index: 40;
  transition: transform .23s cubic-bezier(.7,.2,.3,1), max-height .23s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(6px);
  border-top: 1.5px solid #eef3f8;
}
#poi-sheet-handle {
  width: 60px; height: var(--handle-height);
  background: #b0b6bb;
  border-radius: 4px;
  margin: 0.85em auto 0.4em auto;
  opacity: 0.39;
  cursor: grab;
}
#poi-info {
  width: 98%;
  max-width: 530px;
  margin: 0 auto;
  padding: 0.5em 1em 1.2em 1em;
  text-align: center;
  user-select: text;
}
#poi-title {
  font-size: 1.35em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3em;
  letter-spacing: 0.01em;
}
#poi-dist {
  font-size: 0.99em;
  color: var(--accent);
  margin-bottom: 0.5em;
}
#poi-desc {
  font-size: 1.13em;
  color: #222;
  margin-bottom: 0.7em;
  max-height: 11em;
  overflow: auto;
}
#poi-index {
  font-size: 0.95em;
  color: #999;
  margin-bottom: 0.2em;
}
#poi-extra {
  font-size: 0.96em;
  color: #444;
  margin-top: 0.5em;
}
#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  border-radius: 22px;
  padding: 1.1em 2em;
  font-size: 1.13em;
  box-shadow: var(--shadow);
  display: none;
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
  opacity: 0.97;
  animation: fadeInOut 3.2s linear;
}
@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 0.97; }
  90% { opacity: 0.97; }
  100% { opacity: 0; }
}
footer {
  text-align: center;
  padding: 0.7em 0.2em;
  background: #ececec;
  color: #1a237e;
  font-size: 1em;
  position: fixed;
  width: 100vw;
  left: 0;
  bottom: 0;
  z-index: 12;
  letter-spacing: 0.03em;
  box-shadow: 0 -1px 10px #1565c01a;
  opacity: 0.92;
}

/* POI Sheet expanded/collapsed states */
#poi-sheet.expanded {
  max-height: 90vh;
}

/* Responsive styles */
@media (max-width: 900px) {
  .fab-controls {
    bottom: 24vh;
    gap: 9px;
    padding: 3px 7px;
  }
  .fab {
    width: 44px;
    height: 44px;
    font-size: 1.05em;
  }
  #poi-sheet {
    min-height: 26vh;
    max-height: 80vh;
  }
  #poi-info {
    padding: 0.2em 0.6em 0.6em 0.6em;
  }
  #toast {
    bottom: 74px;
    font-size: 1em;
    padding: 1em 1em;
  }
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-thumb { background: #c5cae9; border-radius: 6px; }