/* ============================================================
   Kamionski Odmorišta – Semafor UI
   Mobile-first | Bottom sheet / Sidebar | 3-sekundni unos
   ============================================================ */

:root {
  --bg: #0f1419;
  --bg-elevated: #1a2332;
  --bg-panel: #1e2a3a;
  --bg-chip: #243447;
  --border: #2c3e50;
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #e8edf2;
  --text-muted: #8b9aab;
  --text-dim: #6b7c8f;
  --accent: #3d9b6e;
  --accent-hover: #48b37f;
  --accent-soft: rgba(61, 155, 110, 0.18);
  --green: #22c55e;
  --green-bg: #14532d;
  --yellow: #eab308;
  --yellow-bg: #713f12;
  --red: #ef4444;
  --red-bg: #7f1d1d;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --tap: 48px;
  --topbar-h: 56px;
  --sheet-peek: 38%;
  --font: "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
  --transition: 0.22s ease;
  --z-map: 1;
  --z-panel: 20;
  --z-top: 30;
  --z-modal: 100;
  --z-toast: 200;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
}

/* ---------- Top bar ---------- */

.top-bar {
  flex: 0 0 var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.75rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-soft);
  z-index: var(--z-top);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.top-bar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.top-bar__icon { display: flex; color: var(--accent); flex-shrink: 0; }

.top-bar__title {
  font-size: clamp(0.85rem, 3.2vw, 1.05rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: var(--tap);
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background var(--transition), transform 0.12s ease, opacity var(--transition);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn--ghost:hover { background: var(--border-soft); color: var(--text); }

.btn--icon { width: var(--tap); padding: 0; }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 1.05rem; }
.btn__label { display: none; }

.btn-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  min-height: 36px;
}
.btn-link:hover { color: var(--accent); }

/* ---------- Main / Map ---------- */

.main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.map {
  position: absolute;
  inset: 0;
  z-index: var(--z-map);
  background: #1a2533;
}

.leaflet-container { font: inherit; background: #1a2533; }

.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(15, 20, 25, 0.75) !important;
  color: var(--text-dim) !important;
}
.leaflet-control-attribution a { color: var(--text-muted) !important; }

.leaflet-control-zoom a {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  font-size: 18px !important;
}

.leaflet-popup-content-wrapper {
  background: var(--bg-panel);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  padding: 0;
}

.leaflet-popup-content {
  margin: 0;
  min-width: 220px;
  max-width: min(300px, 85vw);
}

.leaflet-popup-tip { background: var(--bg-panel); }
.leaflet-popup-close-button {
  color: var(--text-muted) !important;
  font-size: 22px !important;
  padding: 8px 10px 0 0 !important;
  width: 36px !important;
  height: 36px !important;
}

.truck-marker { background: transparent; border: none; }
.truck-marker svg {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

/* ---------- Side panel / Bottom sheet ---------- */

.side-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-panel);
  height: var(--sheet-peek);
  max-height: 85dvh;
  background: var(--bg-panel);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: height var(--transition), transform var(--transition);
  transform: translateY(calc(100% - var(--sheet-peek)));
}

.side-panel.is-open {
  height: 72%;
  transform: translateY(0);
}

.sheet-handle {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 0.65rem 0 0.35rem;
  cursor: grab;
}

.sheet-handle__bar {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--text-dim);
  opacity: 0.55;
}

.side-panel__inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 1rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.panel-section { margin-bottom: 1.1rem; }

.panel-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.panel-section__head h2 {
  font-size: 0.95rem;
  font-weight: 700;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

/* ---------- Filter chips ---------- */

.filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: var(--bg-chip);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-chip:has(input:checked),
.filter-chip.is-active {
  color: #fff;
}

.filter-chip--green:has(input:checked),
.filter-chip--green.is-active {
  background: var(--green-bg);
  border-color: var(--green);
}

.filter-chip--yellow:has(input:checked),
.filter-chip--yellow.is-active {
  background: var(--yellow-bg);
  border-color: var(--yellow);
}

.filter-chip--red:has(input:checked),
.filter-chip--red.is-active {
  background: var(--red-bg);
  border-color: var(--red);
}

/* ---------- Location list ---------- */

.location-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.location-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.95rem;
  background: var(--bg-chip);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--text-dim);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), background var(--transition);
  min-height: var(--tap);
}

.location-card--GREEN { border-left-color: var(--green); }
.location-card--YELLOW { border-left-color: var(--yellow); }
.location-card--RED { border-left-color: var(--red); }

.location-card:hover,
.location-card:focus-visible {
  border-color: var(--accent);
  background: #2a3d52;
  outline: none;
}

.location-card__title {
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.3;
}

.location-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.location-card__comment {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1rem 0.25rem;
  text-align: center;
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.badge--GREEN { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.badge--YELLOW { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.badge--RED { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.score {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.score--good { color: #86efac; }
.score--bad { color: #fca5a5; }
.score--mixed { color: #fde047; }

/* ---------- Popup ---------- */

.popup { padding: 0.9rem 1rem 1rem; }

.popup__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.45rem;
  padding-right: 1.5rem;
}

.popup__status {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  padding-right: 0;
}

.popup__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.popup__comments {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.7rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}

.popup__comments-head {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #93c5fd;
  margin-bottom: 0.45rem;
}

.popup__comments-empty {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
}

.popup__comment-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 160px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.popup__comment-item {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.popup__comment-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.popup__comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.popup__comment-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.popup__comment-text {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.popup__score {
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
}

.popup__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.popup__actions .btn {
  min-height: 44px;
  font-size: 0.78rem;
  padding: 0 0.5rem;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}

.btn--confirm {
  background: var(--accent-soft);
  color: #86efac;
  border: 1px solid rgba(61, 155, 110, 0.35);
}
.btn--confirm:hover { background: rgba(61, 155, 110, 0.3); }

.btn--deny {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.btn--deny:hover { background: rgba(239, 68, 68, 0.3); }

/* ---------- Semafor modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(8, 12, 18, 0.88);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.modal-overlay[hidden] { display: none !important; }

.modal--semafor {
  width: 100%;
  max-width: 520px;
  height: 100%;
  max-height: 100dvh;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  border: none;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.85rem 0.5rem 1.1rem;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.modal__header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.gps-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.4;
  min-height: 1.4em;
}

.gps-status.is-ok { color: #86efac; }
.gps-status.is-error { color: #fca5a5; }
.gps-status.is-loading { color: #fde047; }

.smart-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #93c5fd;
  margin: -0.35rem 0 0.85rem;
  line-height: 1.35;
  min-height: 1.35em;
}

.smart-title.is-loading {
  color: var(--text-muted);
  font-weight: 500;
}

.gps-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.gps-actions .btn {
  min-height: 48px;
  font-size: 0.82rem;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
  padding: 0.5rem 0.6rem;
}

.btn--secondary {
  background: var(--bg-chip);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--secondary:hover { background: #2c4058; }

.semafor-hint {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.step-color {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.semafor-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  min-height: 96px;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-align: left;
  transition: transform 0.12s ease, filter var(--transition), border-color var(--transition);
  position: relative;
}

.semafor-btn:active { transform: scale(0.985); }

.semafor-btn__dot {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.semafor-btn__label {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.semafor-btn__desc {
  font-size: 0.88rem;
  line-height: 1.35;
  opacity: 0.92;
  max-width: 92%;
  font-weight: 500;
}

.semafor-btn--green {
  background: linear-gradient(135deg, #166534, #15803d);
  color: #fff;
  border-color: #4ade80;
}
.semafor-btn--green .semafor-btn__dot { background: #4ade80; }

.semafor-btn--yellow {
  background: linear-gradient(135deg, #a16207, #ca8a04);
  color: #fff;
  border-color: #facc15;
}
.semafor-btn--yellow .semafor-btn__dot { background: #facc15; }

.semafor-btn--red {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  color: #fff;
  border-color: #f87171;
}
.semafor-btn--red .semafor-btn__dot { background: #f87171; }

.semafor-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Step 2 – comment */
.step-comment { display: block; }

.selected-color-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.selected-color-badge--GREEN { background: var(--green-bg); color: #86efac; }
.selected-color-badge--YELLOW { background: var(--yellow-bg); color: #fde047; }
.selected-color-badge--RED { background: var(--red-bg); color: #fca5a5; }

.comment-label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.comment-label textarea {
  width: 100%;
  min-height: 110px;
  padding: 0.85rem 1rem;
  background: var(--bg-chip);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  resize: vertical;
  line-height: 1.45;
}

.comment-label textarea:focus { border-color: var(--accent); }

.modal__footer--stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* ---------- Toast ---------- */

.toast-container {
  position: fixed;
  left: 50%;
  bottom: calc(var(--sheet-peek) + 12px);
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(92vw, 400px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  line-height: 1.4;
  animation: toastIn 0.25s ease;
}

.toast--ok { border-color: rgba(61, 155, 110, 0.45); background: #152820; }
.toast--error { border-color: rgba(239, 68, 68, 0.45); background: #2a1818; }
.toast--info { border-color: rgba(100, 140, 180, 0.4); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.modal-open .toast-container { bottom: 1.25rem; }

/* ---------- Desktop notice / locate / manual pick / user dot ---------- */

.desktop-add-notice {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.55rem 0.85rem;
  background: #1e3a5f;
  color: #bfdbfe;
  font-size: 0.82rem;
  line-height: 1.35;
  border-bottom: 1px solid rgba(59, 130, 246, 0.35);
  text-align: center;
  z-index: var(--z-top);
}

.btn-locate {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 15;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-elevated);
  color: #3b82f6;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-locate:active { transform: scale(0.96); }

/* Fiksni centar-pin: mapa se pomera ispod njega */
.center-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 16;
  width: 44px;
  height: 56px;
  margin-left: -22px;
  margin-top: -56px; /* vrh pina u centru = tačka na mapi */
  pointer-events: none;
  transition: transform 0.12s ease;
}

.center-pin[hidden] { display: none !important; }

.center-pin__icon {
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  position: relative;
  z-index: 1;
}

.center-pin__shadow {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 6px;
  margin-left: -9px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  filter: blur(1px);
}

body.manual-pick-active .center-pin.is-moving {
  transform: translateY(-8px);
}

body.manual-pick-active .center-pin.is-moving .center-pin__shadow {
  opacity: 0.25;
  transform: scale(0.7);
}

.manual-pick-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.manual-pick-bar[hidden] { display: none !important; }

.manual-pick-bar__text {
  font-size: 0.92rem;
  font-weight: 650;
  text-align: center;
}

.manual-pick-bar__actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.5rem;
}

body.manual-pick-active .side-panel {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.user-location-dot {
  animation: userPulse 2s ease-in-out infinite;
}

@keyframes userPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.leaflet-tooltip.user-location-tooltip {
  background: #1e3a5f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.leaflet-tooltip.user-location-tooltip::before {
  border-top-color: #1e3a5f;
}

/* ---------- Desktop ---------- */

@media (min-width: 768px) {
  .btn__label { display: inline; }

  .btn--icon {
    width: auto;
    padding: 0 0.85rem;
    gap: 0.4rem;
  }

  .main { flex-direction: row; }

  .map {
    position: relative;
    flex: 1;
    inset: auto;
  }

  .side-panel {
    position: relative;
    width: 360px;
    max-width: 38vw;
    height: 100% !important;
    max-height: none;
    transform: none !important;
    border-radius: 0;
    border-top: none;
    border-left: 1px solid var(--border-soft);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    order: 2;
  }

  .sheet-handle { display: none; }

  .side-panel__inner { padding: 1.1rem 1.15rem 1.5rem; }

  .modal-overlay {
    align-items: center;
    padding: 1.5rem;
    background: rgba(8, 12, 18, 0.75);
  }

  .modal--semafor {
    height: auto;
    max-height: min(90vh, 720px);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
  }

  .toast-container {
    bottom: 1.5rem;
    right: 1.5rem;
    left: auto;
    transform: none;
    width: 360px;
  }

  .side-panel.is-hidden-desktop { display: none; }

  .btn-locate {
    top: 16px;
    left: 16px;
  }

  body.is-desktop-view #btn-add-location {
    display: none !important;
  }
}

@media (min-width: 1100px) {
  .side-panel { width: 400px; }
}

@supports (padding: env(safe-area-inset-bottom)) {
  .side-panel__inner {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
}
