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

:root {
  --ink: #0a0f1a;
  --paper: #f6f5f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #dbeafe;
  --muted: #64748b;
  --border: #e2e0d8;
  --pin-red: #ef4444;
  --pin-blue: #3b82f6;
  --pin-green: #22c55e;
  --pin-amber: #f59e0b;
  --pin-purple: #8b5cf6;
  --pin-pink: #ec4899;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; }

/* ── AUTH SCREENS ── */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: var(--paper);
}

.auth-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}

.auth-logo .pin-icon {
  width: 24px; height: 24px;
  background: var(--pin-red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: inline-block;
  position: relative;
}

.auth-logo .pin-icon::after {
  content: '';
  width: 10px; height: 10px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  width: 100%;
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--accent-soft); }

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover { background: #dc2626; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 0.5rem;
}

.btn-ghost:hover { color: var(--ink); background: rgba(0,0,0,0.04); }

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.auth-toggle {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-toggle a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.auth-toggle a:hover { text-decoration: underline; }

.auth-error {
  background: #fef2f2;
  color: var(--danger);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

/* ── APP LAYOUT ── */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 360px;
  min-width: 360px;
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
}

.sidebar-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
}

.sidebar-logo .pin-icon {
  width: 18px; height: 18px;
  background: var(--pin-red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: inline-block;
  position: relative;
}

.sidebar-logo .pin-icon::after {
  content: '';
  width: 7px; height: 7px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.sidebar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-controls {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.search-box {
  position: relative;
  margin-bottom: 0.75rem;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  background: var(--paper);
  color: var(--ink);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.85rem;
}

.filter-row {
  display: flex;
  gap: 0.5rem;
}

.filter-row select {
  flex: 1;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  background: var(--paper);
  color: var(--ink);
}

.pin-count {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.5rem 1.25rem 0;
}

.pin-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.pin-list::-webkit-scrollbar {
  width: 4px;
}

.pin-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.pin-item {
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.pin-item:hover { background: rgba(0,0,0,0.02); }

.pin-item.active { background: var(--accent-soft); }

.pin-item-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.pin-item-content {
  flex: 1;
  min-width: 0;
}

.pin-item-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pin-item-meta {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pin-item-category {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.empty-state p {
  font-size: 0.85rem;
  max-width: 260px;
}

/* ── MAP AREA ── */
.map-area {
  flex: 1;
  position: relative;
  height: 100vh;
}

#map {
  width: 100%;
  height: 100%;
}

/* Custom Leaflet marker styles */
.custom-pin {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% 50% 50% 0 !important;
  transform: rotate(-45deg);
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-pin::after {
  content: '';
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  transform: rotate(45deg);
}

.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: var(--shadow-md) !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  min-width: 200px;
}

.popup-content {
  padding: 1rem 1.2rem;
}

.popup-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.popup-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.popup-category {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

.popup-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.popup-actions button {
  flex: 1;
  padding: 0.35rem;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 500;
}

.popup-btn-edit {
  background: var(--accent-soft);
  color: var(--accent);
}

.popup-btn-edit:hover { background: #bfdbfe; }

.popup-btn-delete {
  background: #fef2f2;
  color: var(--danger);
}

.popup-btn-delete:hover { background: #fecaca; }

/* ── MAP OVERLAY BUTTONS ── */
.map-overlay-btn {
  position: absolute;
  z-index: 1000;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 0.6rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  color: var(--ink);
}

.map-overlay-btn:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.add-pin-btn {
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.add-pin-btn:hover { background: var(--accent-hover); }

.add-pin-btn.active {
  background: var(--pin-red);
  animation: pulse-btn 1.5s infinite;
}

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
}

.export-btn {
  bottom: 2rem;
  right: 14rem;
}

.locate-btn {
  bottom: 2rem;
  left: 1rem;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,26,0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.2s;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.2rem;
}

.modal-close {
  width: 32px; height: 32px;
  border: none;
  background: var(--paper);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.15s;
}

.modal-close:hover { background: var(--border); color: var(--ink); }

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.modal-actions .btn { flex: 1; }

.coords-display {
  background: var(--paper);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  margin-bottom: 1rem;
  text-align: center;
}

/* Category color chips */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.category-chip {
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  transition: all 0.15s;
  font-family: inherit;
}

.category-chip:hover { border-color: var(--accent); }

.category-chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 3000;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── MOBILE RESPONSIVE ── */
.mobile-toggle {
  display: none;
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  background: white;
  border: 1px solid var(--border);
  width: 40px; height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    left: -360px;
    top: 0;
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    left: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .add-pin-btn {
    bottom: 2rem;
    right: 1rem;
  }

  .export-btn {
    bottom: 2rem;
    right: 10rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
  }

  .locate-btn {
    bottom: 5.5rem;
    left: 1rem;
  }
}

/* ── LEAFLET OVERRIDES ── */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: 10px !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 16px !important;
  color: var(--ink) !important;
  background: white !important;
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
}

.leaflet-control-zoom a:last-child {
  border-bottom: none !important;
}

.leaflet-control-zoom a:hover {
  background: var(--paper) !important;
}

/* ── CROSSHAIR CURSOR ── */
.map-placing-pin {
  cursor: crosshair !important;
}

.map-placing-pin .leaflet-interactive {
  cursor: crosshair !important;
}

/* User menu */
.user-menu {
  position: relative;
}

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.user-avatar:hover { background: #bfdbfe; }

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 0.4rem;
  display: none;
  z-index: 100;
}

.user-dropdown.show { display: block; }

.user-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}

.user-dropdown-item:hover { background: var(--paper); }

.user-dropdown-item.danger { color: var(--danger); }

.user-dropdown-email {
  padding: 0.4rem 0.8rem 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
}

/* Stats bar */
.stats-bar {
  padding: 0.6rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  background: var(--paper);
}

.stat-item {
  font-size: 0.7rem;
  color: var(--muted);
}

.stat-item strong {
  color: var(--ink);
  font-weight: 600;
}

/* Placing pin banner */
.placing-banner {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--ink);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.placing-banner.show {
  display: flex;
}

.placing-banner button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  margin-left: 0.5rem;
}

.placing-banner button:hover { background: rgba(255,255,255,0.3); }

/* ── VIEW TABS ── */
.view-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.view-tab {
  flex: 1;
  padding: 0.65rem 0.5rem;
  border: none;
  background: transparent;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  border-bottom: 2px solid transparent;
  text-align: center;
}

.view-tab:hover { background: rgba(0,0,0,0.02); color: var(--ink); }

.view-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
}

/* ── VIEW PANELS ── */
.view-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.view-panel.active {
  display: flex;
}

/* ── TIMELINE ── */
.timeline-summary {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.timeline-stat {
  font-size: 0.72rem;
  color: var(--muted);
}

.timeline-stat strong {
  color: var(--accent);
  font-weight: 600;
}

.timeline-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.timeline-list::-webkit-scrollbar { width: 4px; }
.timeline-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.timeline-event {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: background 0.15s;
  align-items: flex-start;
  position: relative;
}

.timeline-event:hover { background: rgba(0,0,0,0.02); }

.timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: white;
}

.timeline-icon-movement {
  background: #94a3b8;
  color: white;
}

.timeline-icon-gap {
  background: #e2e0d8;
  color: var(--muted);
}

.timeline-body {
  flex: 1;
  min-width: 0;
}

.timeline-event-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

.timeline-event-time {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.timeline-event-detail {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.timeline-edit-btn {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.timeline-event:hover .timeline-edit-btn { opacity: 1; }
.timeline-edit-btn:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ── MAP LAYER TOGGLE ── */
.map-layer-toggle {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.toggle-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.toggle-text { user-select: none; }

/* ── VISIT MODAL META ── */
.visit-modal-meta {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .map-layer-toggle {
    top: 4rem;
    left: 0.5rem;
    padding: 0.4rem 0.6rem;
  }
  .map-layer-toggle .toggle-text { font-size: 0.65rem; }
}
