/**
 * UNIFOR NEP — Mapa de Mobilidade e Acessibilidade
 * Design System adaptado do @fuse (Angular → HTML/CSS puro)
 * Slate palette · Inter · rounded-2xl · sombras Tailwind
 */

/* ─── Tokens Fuse ─────────────────────────────────────────── */
:root {
  /* Fuse Background */
  --bg-app:     #F1F5F9; /* slate.100 */
  --bg-surface: #FFFFFF;
  --bg-subtle:  #F8FAFC; /* slate.50  */
  --bg-card:    #FFFFFF;

  /* Fuse Borders */
  --border-subtle: #E2E8F0; /* slate.200 */
  --border-strong: #CBD5E1; /* slate.300 */

  /* Fuse Text — Slate */
  --text-primary:   #1E293B; /* slate.800 */
  --text-secondary: #64748B; /* slate.500 */
  --text-muted:     #94A3B8; /* slate.400 */
  --text-disabled:  #94A3B8; /* slate.400 */
  --text-inverse:   #FFFFFF;

  /* Fuse Primary — Blue (tema default) */
  --color-primary:       #2563EB; /* blue.600 */
  --color-primary-hover: #1D4ED8; /* blue.700 */
  --color-primary-dark:  #1E40AF; /* blue.800 */
  --color-primary-light: #DBEAFE; /* blue.100 */

  /* Status */
  --color-accessible: #059669; /* emerald.600 */
  --color-danger:     #DC2626; /* red.600     */
  --color-warn:       #D97706; /* amber.600   */

  /* Fuse Dimensions */
  --navbar-height:  64px;
  --sidebar-width:  340px;

  /* Fuse Border-Radius */
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-2xl:  16px; /* fuse-card: rounded-2xl */
  --radius-full: 9999px;

  /* Fuse Shadows (Tailwind shadow scale) */
  --shadow-subtle: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-card:   0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
  --shadow-float:  0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-modal:  0 25px 50px -12px rgba(0,0,0,.25);

  /* Fuse Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-main: 400ms cubic-bezier(0.25, 0.8, 0.25, 1); /* timing canônico Fuse */

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-feature-settings: 'salt'; /* Inter stylistic alternates — Fuse */
  color: var(--text-primary);
  background-color: var(--bg-app);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ─── Scrollbar (Fuse custom) ─────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: transparent;
}
::-webkit-scrollbar:hover {
  background-color: rgba(0,0,0,.06);
}
::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 20px;
  box-shadow: inset 0 0 0 20px rgba(0,0,0,.24);
}
::-webkit-scrollbar-thumb:active {
  border-radius: 20px;
  box-shadow: inset 0 0 0 20px rgba(0,0,0,.37);
}

/* ─── Utilitários ─────────────────────────────────────────── */
.icon    { width: 18px; height: 18px; flex-shrink: 0; }
.icon-sm { width: 15px; height: 15px; flex-shrink: 0; }
.icon-xs { width: 13px; height: 13px; flex-shrink: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ─── Navbar (Fuse: white app-bar + border-bottom) ────────── */
.navbar {
  height: var(--navbar-height);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  z-index: 50;
  position: relative;
  flex-shrink: 0;
}

.navbar-start, .navbar-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Toggle sidebar button */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.btn-icon:hover {
  background: rgba(100,116,139,.08); /* slate.500 + opacity — Fuse hover */
  color: var(--text-primary);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}

.brand-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
}

.brand-divider {
  color: var(--border-strong);
  font-size: 1rem;
  font-weight: 300;
}

.brand-nep {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
}

.brand-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.15rem;
  font-weight: 400;
}

/* Provider badge */
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.provider-badge:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.provider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}
.provider-dot.warning { background: #F59E0B; }

/* Nav buttons */
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-nav:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* ─── Layout Principal ────────────────────────────────────── */
.app-layout {
  height: calc(100vh - var(--navbar-height));
  display: flex;
  position: relative;
  overflow: hidden;
}

/* ─── Sidebar (Fuse: vertical nav wrapper) ────────────────── */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  height: 100%;
  background-color: var(--bg-surface);
  box-shadow: inset -1px 0 0 var(--border-subtle); /* Fuse: inset border */
  display: flex;
  flex-direction: column;
  z-index: 30;
  flex-shrink: 0;
  transition:
    margin-left var(--transition-main),
    min-width   var(--transition-main),
    max-width   var(--transition-main),
    visibility  var(--transition-main);
}

.sidebar.collapsed {
  margin-left: calc(-1 * var(--sidebar-width)); /* Fuse side mode */
  visibility: hidden;
}

/* ─── Abas — estilo Fuse nav group ───────────────────────── */
.sidebar-nav {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 8px;
  gap: 2px;
  flex-shrink: 0;
}

.nav-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  opacity: 0.8; /* Fuse icon/title opacity padrão */
}

.nav-tab .icon-sm {
  opacity: 0.6; /* Fuse nav icon: 60% por padrão */
  transition: opacity var(--transition-fast);
}

.nav-tab:hover {
  color: var(--text-primary);
  opacity: 1;
}
.nav-tab:hover .icon-sm { opacity: 1; }

.nav-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
  opacity: 1;
}
.nav-tab.active .icon-sm { opacity: 1; }

.count-pill {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* ─── Tab Panes ───────────────────────────────────────────── */
.tab-pane {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}
.tab-pane.active {
  display: flex;
  flex-direction: column;
}

/* ─── Formulário ──────────────────────────────────────────── */
.form-header { margin-bottom: 1.1rem; }

.pane-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.pane-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.field label,
.field-label-group {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.field input[type="text"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.field input[type="number"] { font-family: var(--font-mono); }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 2rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ─── Checkboxes ──────────────────────────────────────────── */
.checkbox-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.check-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.check-control:hover { background: rgba(100,116,139,.06); }

.check-control input {
  position: absolute;
  opacity: 0;
}

.check-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.check-control input:checked + .check-box {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.check-control input:checked + .check-box::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* ─── Toggle Switch ───────────────────────────────────────── */
.toggle-control {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.4rem 0 1rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-strong);
  transition: background var(--transition-fast);
  border-radius: var(--radius-full);
}

.slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: transform var(--transition-fast);
  border-radius: 50%;
  box-shadow: var(--shadow-subtle);
}

.switch input:checked + .slider { background-color: var(--color-primary); }
.switch input:checked + .slider::before { transform: translateX(14px); }

.toggle-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ─── Botões ──────────────────────────────────────────────── */
.form-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Primary — Fuse: filled blue */
.btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  font-size: 0.825rem;
  font-weight: 600;
  background-color: var(--color-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 1px 2px rgba(37,99,235,.3);
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 2px 6px rgba(37,99,235,.4);
}

/* Secondary — Fuse: stroked */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  font-size: 0.825rem;
  font-weight: 500;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-secondary:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* ─── Barra de Busca / Filtros ────────────────────────────── */
.list-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.search-input-wrapper { position: relative; }

.search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.5rem 0.65rem 0.5rem 2.1rem;
  font-size: 0.82rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: var(--bg-surface);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.chip {
  padding: 0.22rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.chip:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}
.chip.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

/* ─── Cards (Fuse: rounded-2xl + shadow) ─────────────────── */
.cards-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-right: 0.15rem;
}

.card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl); /* Fuse: rounded-2xl */
  padding: 0.9rem;
  box-shadow: var(--shadow-card);
  transition:
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-item:hover {
  box-shadow: var(--shadow-float);
  border-color: var(--border-strong);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.badge-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.card-coords {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.badge-access {
  font-size: 0.68rem;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.2rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-card {
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-card:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}
.btn-card.danger:hover {
  background: #FEF2F2;
  color: var(--color-danger);
  border-color: #FECACA;
}

/* Rodapé da lista */
.list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-ghost-sm {
  background: none;
  border: none;
  font-size: 0.72rem;
  color: var(--color-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.35rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.btn-ghost-sm:hover { background: var(--color-primary-light); }
.btn-ghost-sm.danger { color: var(--color-danger); }
.btn-ghost-sm.danger:hover { background: #FEF2F2; }

/* ─── Aba Sobre ───────────────────────────────────────────── */
.about-pane {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meta-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 1rem;
  box-shadow: var(--shadow-subtle);
}

.meta-tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.meta-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.meta-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  line-height: 1.6;
}

.data-management {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.subhead {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.action-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.file-button { margin: 0; }

/* ─── Área do Mapa ────────────────────────────────────────── */
.map-stage {
  flex: 1;
  height: 100%;
  position: relative;
  background-color: var(--bg-app);
}

.map-canvas {
  width: 100%;
  height: 100%;
}

/* Pill de hint — vidro escuro */
.map-hint-pill {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(15,23,42,.82);
  color: #FFFFFF;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}

.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38BDF8;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* Floating toolbox */
.floating-toolbox {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 10;
}

.tool-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tool-btn:hover {
  color: var(--text-primary);
  box-shadow: var(--shadow-float);
  border-color: var(--border-strong);
}

/* ─── InfoWindow ──────────────────────────────────────────── */
.info-sheet {
  padding: 0.65rem 0.75rem;
  max-width: 260px;
  font-family: var(--font-sans);
}
.info-sheet-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.info-sheet-coords {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.info-sheet-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.info-sheet-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.4rem;
}

/* ─── Modal (Fuse: rounded-2xl + shadow-2xl) ──────────────── */
.modal-dialog {
  border: none;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-modal);
  margin: auto;
  max-width: 440px;
  width: 90%;
  background: var(--bg-surface);
  padding: 0;
}

.modal-dialog::backdrop {
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(4px);
}

.modal-box { padding: 1.5rem; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.btn-close:hover {
  color: var(--text-primary);
  background: rgba(100,116,139,.08);
}

.modal-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* ─── Toasts ──────────────────────────────────────────────── */
.toast-stack {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  z-index: 100;
  pointer-events: none;
}

.toast-item {
  background: #0F172A; /* slate.900 */
  color: #FFFFFF;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  box-shadow: var(--shadow-modal);
  border-left: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
  max-width: 340px;
  animation: toast-in 200ms cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.toast-item.success { border-left-color: var(--color-accessible); }
.toast-item.warning { border-left-color: #F59E0B; }
.toast-item.error   { border-left-color: var(--color-danger); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Responsivo ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 340px;
    box-shadow: var(--shadow-modal);
  }

  .brand-desc { display: none; }

  .map-hint-pill span:last-child {
    display: none;
  }
}
