/*
  RoamWise — style.css
  Desktop: sidebar left, map right
  Mobile:  map full screen, bottom sheet panel with tabs
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0d1b2e;
  color: #e8edf5;
}

#app {
  display: flex;
  height: 100dvh;
  width: 100vw;
}

/* ══ MAP ══════════════════════════════════════════════════ */
#map-container {
  flex: 1;
  position: relative;
  min-width: 0;
}

#map {
  position: absolute;
  inset: 0;
}

/* ══ PANEL (sidebar on desktop) ══════════════════════════ */
#panel {
  width: 320px;
  min-width: 320px;
  background: #112240;
  overflow-y: auto;
  border-left: 1px solid #1e3a5a;
  display: flex;
  flex-direction: column;
  order: -1; /* sidebar on left */
}

/* Desktop header */
#sidebar-header {
  background: #ffffff;
  padding: 14px 16px;
  text-align: center;
  border-bottom: 2px solid #f0a030;
}

#header-logo {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Panel tabs — hidden on desktop */
#panel-tabs { display: none; }
#panel-handle { display: none; }

/* Desktop: show all panel sections (no tabs to navigate between them) */
@media (min-width: 769px) {
  .tab-content { display: block !important; }
}

/* Mobile topbar — hidden on desktop */
#mobile-topbar { display: none; }

/* Mobile route button — hidden on desktop */
#mobile-route-btn { display: none; }

/* ══ SECTIONS ════════════════════════════════════════════ */
.section {
  padding: 14px 16px;
  border-bottom: 1px solid #1e3a5a;
}

.section h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #5a8832;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

/* ══ FORMS ════════════════════════════════════════════════ */
.form-group { margin-bottom: 10px; }

.form-group label {
  display: block;
  font-size: 0.74rem;
  color: #7a90b0;
  margin-bottom: 4px;
}

.form-group input[type="number"],
.form-group input[type="text"] {
  width: 100%;
  background: #162b45;
  border: 1px solid #1e3a5a;
  color: #e8edf5;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus { border-color: #f0a030; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ══ SEARCH ══════════════════════════════════════════════ */
.search-box { display: flex; gap: 4px; }
.search-box input { flex: 1; }

.search-box button {
  background: #f0a030;
  border: none;
  color: #0d1b2e;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s;
  touch-action: manipulation;
}

.search-box button:hover { background: #f5b448; }

.suggestions {
  background: #162b45;
  border: 1px solid #1e3a5a;
  border-radius: 6px;
  margin-top: 3px;
  max-height: 150px;
  overflow-y: auto;
  z-index: 999;
  position: relative;
}

.suggestion-item {
  padding: 10px;
  font-size: 0.8rem;
  cursor: pointer;
  border-bottom: 1px solid #1e3a5a;
  color: #c0d0e0;
  line-height: 1.4;
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: rgba(240,160,48,0.12); color: #f0a030; }

/* ══ BUTTONS ══════════════════════════════════════════════ */
.route-buttons { display: flex; gap: 8px; margin-top: 8px; }

.btn-primary {
  flex: 1;
  background: #f0a030;
  color: #0d1b2e;
  border: none;
  padding: 12px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
  touch-action: manipulation;
}

.btn-primary:hover { background: #f5b448; }
.btn-primary:disabled { background: #1e3a5a; color: #7a90b0; cursor: not-allowed; }

.btn-secondary {
  background: #162b45;
  color: #7a90b0;
  border: 1px solid #1e3a5a;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s;
  touch-action: manipulation;
}

.btn-secondary:hover { background: #1e3a5a; color: #c0d0e0; }

.btn-save {
  width: 100%;
  background: #162b45;
  color: #f0a030;
  border: 1px solid #1e3a5a;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.2s;
  margin-top: 4px;
  touch-action: manipulation;
}

.btn-save:hover { background: #f0a030; color: #0d1b2e; border-color: #f0a030; }

/* ══ ROUTE INFO ══════════════════════════════════════════ */
.route-summary {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  background: #162b45;
  border-radius: 6px;
  border: 1px solid #1e3a5a;
}

.route-stat { flex: 1; text-align: center; }
.route-stat-value { font-size: 1rem; font-weight: 700; color: #f0a030; }
.route-stat-label { font-size: 0.68rem; color: #7a90b0; margin-top: 1px; }

.route-warning {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(240,160,48,0.08);
  border-left: 3px solid #f0a030;
  border-radius: 4px;
  font-size: 0.74rem;
  color: #f0c878;
  line-height: 1.5;
}

/* ══ DIRECTIONS ══════════════════════════════════════════ */
#directions-list { max-height: 260px; overflow-y: auto; }

.direction-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #1e3a5a;
}

.direction-step:last-child { border-bottom: none; }

.step-icon {
  width: 26px;
  height: 26px;
  background: #162b45;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  color: #f0a030;
  border: 1px solid #1e3a5a;
}

.step-text { flex: 1; font-size: 0.78rem; color: #c0d0e0; line-height: 1.4; }
.step-dist { font-size: 0.7rem; color: #7a90b0; margin-top: 2px; }

/* ══ NOTICE ══════════════════════════════════════════════ */
.notice {
  background: rgba(22,43,69,0.8);
  border-left: 3px solid #f0a030;
  font-size: 0.76rem;
  line-height: 1.6;
  color: #c0d0e0;
}

/* ══ MAP CONTROLS (floating) ════════════════════════════ */
#map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  background: rgba(13,27,46,0.95);
  border: 1px solid #1e3a5a;
  border-radius: 8px;
  padding: 12px 14px;
  min-width: 150px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.control-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #f0a030;
  margin-bottom: 9px;
  font-weight: 700;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 0.8rem;
  color: #c0d0e0;
  user-select: none;
}

.toggle input[type="checkbox"] {
  accent-color: #f0a030;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ══ UTILITIES ══════════════════════════════════════════ */
.hidden { display: none !important; }

.fa-spinner { animation: fa-spin 1s infinite linear; }
@keyframes fa-spin { to { transform: rotate(360deg); } }

/* ══ SCROLLBARS ══════════════════════════════════════════ */
#panel::-webkit-scrollbar,
#directions-list::-webkit-scrollbar { width: 4px; }
#panel::-webkit-scrollbar-track,
#directions-list::-webkit-scrollbar-track { background: #112240; }
#panel::-webkit-scrollbar-thumb,
#directions-list::-webkit-scrollbar-thumb { background: #1e3a5a; border-radius: 2px; }

/* ══ LEAFLET POPUP ══════════════════════════════════════ */
.leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: 0 3px 14px rgba(0,0,0,0.35); }
.leaflet-popup-content { margin: 12px 14px; font-family: -apple-system, sans-serif; }
.popup-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: #0d1b2e; }
.popup-addr { font-size: 11px; color: #666; margin-bottom: 6px; }
.popup-detail { font-size: 11.5px; color: #333; margin: 2px 0; display: flex; align-items: flex-start; gap: 5px; }
.popup-tag {
  display: inline-block;
  background: #e8f0e0;
  color: #3a6010;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin: 2px 2px 0 0;
  font-weight: 600;
}

/* ── Popup action buttons ── */
.popup-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e8edf0;
}

.popup-btn {
  flex: 1;
  padding: 7px 6px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  touch-action: manipulation;
}

.popup-btn-route {
  background: #f0a030;
  color: #0d1b2e;
}

.popup-btn-route:hover { background: #f5b448; }

.popup-btn-trip {
  background: #0d1b2e;
  color: #f0a030;
  border: 1px solid #f0a030;
}

.popup-btn-trip:hover { background: #162b45; }

/* ── Trip Builder ── */
.trip-count-badge {
  font-size: 0.68rem;
  background: #f0a030;
  color: #0d1b2e;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 6px;
  text-transform: none;
  letter-spacing: 0;
}

.trip-empty {
  text-align: center;
  padding: 24px 16px;
  color: #7a90b0;
  font-size: 0.8rem;
  line-height: 1.7;
}

.trip-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
  opacity: 0.4;
}

.trip-stop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #1e3a5a;
}

.trip-stop:last-child { border-bottom: none; }

.trip-stop-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.trip-stop-info {
  flex: 1;
  min-width: 0;
}

.trip-stop-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e8edf5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-stop-addr {
  font-size: 0.7rem;
  color: #7a90b0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-stop-actions {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.trip-stop-actions button {
  background: #162b45;
  border: 1px solid #1e3a5a;
  color: #7a90b0;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.trip-stop-actions button:hover { background: #1e3a5a; color: #e8edf5; }
.trip-remove:hover { background: #4a1515 !important; color: #ff6b6b !important; border-color: #ff6b6b !important; }

.trip-actions { padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }

.export-row {
  display: flex;
  gap: 8px;
}

.btn-export {
  flex: 1;
  background: #162b45;
  color: #f0a030;
  border: 1px solid #f0a030;
  padding: 9px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  touch-action: manipulation;
  transition: all 0.2s;
}

.btn-export:hover { background: #f0a030; color: #0d1b2e; }

/* Saved trips */
.saved-trip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #1e3a5a;
}

.saved-trip-item:last-child { border-bottom: none; }

.saved-trip-info { flex: 1; min-width: 0; }

.saved-trip-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e8edf5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-trip-meta { font-size: 0.7rem; color: #7a90b0; margin-top: 2px; }

.saved-trip-btns { display: flex; gap: 4px; flex-shrink: 0; }

.btn-xs {
  background: #162b45;
  border: 1px solid #1e3a5a;
  color: #c0d0e0;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  touch-action: manipulation;
  transition: all 0.2s;
}

.btn-xs:hover { background: #1e3a5a; }
.btn-xs.btn-primary { background: #f0a030; color: #0d1b2e; border-color: #f0a030; }
.btn-xs.btn-primary:hover { background: #f5b448; }
.btn-xs.btn-danger { color: #ff6b6b; border-color: #4a1515; }
.btn-xs.btn-danger:hover { background: #4a1515; }

/* ── Via points list (route stops between From and To) ── */
#via-points-list {
  margin: 4px 0 8px;
}

.via-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #162b45;
  border: 1px solid #1e3a5a;
  border-radius: 6px;
  margin-bottom: 4px;
}

.via-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.via-info {
  flex: 1;
  min-width: 0;
}

.via-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e8edf5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.via-addr {
  font-size: 0.68rem;
  color: #7a90b0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.via-btns {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.via-btns button {
  background: #1e3a5a;
  border: 1px solid #2a4a6a;
  color: #7a90b0;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  transition: all 0.15s;
}

.via-btns button:hover:not(:disabled) { background: #2a4a6a; color: #e8edf5; }
.via-btns button:disabled { opacity: 0.28; cursor: default; }
.via-remove:hover { background: #4a1515 !important; color: #ff6b6b !important; border-color: #ff6b6b !important; }

/* ── Popup council / operator link ── */
.popup-council {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid #e8edf0;
}

.popup-council a {
  color: #1a7a5e;
  font-size: 11px;
  text-decoration: none;
  font-weight: 600;
}

.popup-council a:hover { text-decoration: underline; }

/* ── Locate me button ── */
#locate-btn {
  position: absolute;
  bottom: 92px;
  right: 12px;
  z-index: 1000;
  width: 42px;
  height: 42px;
  background: rgba(13,27,46,0.95);
  border: 1px solid #1e3a5a;
  border-radius: 8px;
  color: #f0a030;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  touch-action: manipulation;
  transition: background 0.2s;
}

#locate-btn:hover { background: #162b45; }

/* ── Satellite toggle button ── */
#satellite-btn {
  position: absolute;
  bottom: 148px;
  right: 12px;
  z-index: 1000;
  width: 42px;
  height: 42px;
  background: rgba(13,27,46,0.95);
  border: 1px solid #1e3a5a;
  border-radius: 8px;
  color: #f0a030;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  touch-action: manipulation;
  transition: background 0.2s, border-color 0.2s;
}

#satellite-btn:hover { background: #162b45; }
#satellite-btn.active { background: #f0a030; color: #0d1b2e; border-color: #f0a030; }

/* ── Start Navigation button (in route panel) ── */
.btn-nav {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, #1a7a5e, #0d5c45);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  touch-action: manipulation;
  transition: opacity 0.2s;
  letter-spacing: 0.5px;
}

.btn-nav:hover { opacity: 0.88; }

/* ── Navigation overlay ── */
#nav-overlay {
  position: absolute;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#nav-overlay.hidden { display: none !important; }

/* Top instruction bar */
#nav-top {
  pointer-events: all;
  background: linear-gradient(135deg, #0d1b2e, #162b45);
  border-bottom: 2px solid #f0a030;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#nav-turn-icon {
  font-size: 2.4rem;
  color: #f0a030;
  min-width: 48px;
  text-align: center;
  line-height: 1;
}

#nav-instruction-wrap { flex: 1; min-width: 0; }

#nav-instruction {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

#nav-then {
  font-size: 0.72rem;
  color: #7a90b0;
  margin-top: 3px;
}

#nav-dist-to-turn {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f0a030;
  min-width: 70px;
  text-align: right;
  white-space: nowrap;
}

/* Bottom stats bar */
#nav-bottom {
  pointer-events: all;
  background: rgba(13,27,46,0.97);
  border-top: 1px solid #1e3a5a;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.nav-stat { text-align: center; }

.nav-stat > div:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f0a030;
}

.nav-stat-label {
  font-size: 0.65rem;
  color: #7a90b0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

#nav-end-btn {
  background: #c62828;
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(198,40,40,0.4);
  transition: background 0.2s;
}

#nav-end-btn:hover { background: #e53935; }

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #0d1b2e;
  color: #e8edf5;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #1e3a5a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: opacity 0.4s;
  pointer-events: none;
  white-space: nowrap;
}

.toast-error {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* ══════════════════════════════════════════════════════════
   MOBILE STYLES  (≤ 768px)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  #app { flex-direction: column; }

  /* Map fills entire screen */
  #map-container {
    position: fixed;
    inset: 0;
    z-index: 0;
  }

  /* Top bar */
  #mobile-topbar {
    display: flex;
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 1001;
    background: rgba(255,255,255,0.97);
    padding: 8px 12px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #f0a030;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  #mobile-logo {
    height: 36px;
    width: auto;
  }

  #menu-btn {
    background: #f0a030;
    border: none;
    color: #0d1b2e;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }

  /* Layer controls — tucked below topbar */
  #map-controls {
    top: 62px;
    right: 8px;
    padding: 10px 12px;
    min-width: 140px;
  }

  /* Floating route button */
  #mobile-route-btn {
    display: flex;
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    white-space: nowrap;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  }

  /* Panel becomes a bottom sheet */
  #panel {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    min-width: unset;
    height: 55vh;
    border-left: none;
    border-top: 2px solid #f0a030;
    border-radius: 16px 16px 0 0;
    z-index: 1002;
    order: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
  }

  #panel.open {
    transform: translateY(0);
  }

  /* Hide desktop header inside panel */
  #sidebar-header { display: none; }

  /* Show drag handle */
  #panel-handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px;
    cursor: pointer;
    position: sticky;
    top: 0;
    background: #112240;
    z-index: 1;
  }

  .handle-bar {
    width: 40px;
    height: 4px;
    background: #1e3a5a;
    border-radius: 2px;
  }

  /* Tabs */
  #panel-tabs {
    display: flex;
    background: #0d1b2e;
    border-bottom: 1px solid #1e3a5a;
    position: sticky;
    top: 28px;
    z-index: 1;
  }

  .tab-btn {
    flex: 1;
    padding: 10px 4px;
    background: none;
    border: none;
    color: #7a90b0;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    touch-action: manipulation;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  .tab-btn i { font-size: 1rem; }

  .tab-btn.active {
    color: #f0a030;
    border-bottom-color: #f0a030;
  }

  /* Directions list taller on mobile */
  #directions-list { max-height: none; }

  /* Hide the floating layer controls on mobile (moved to Info tab) */
  #map-controls { display: none; }
}
