/* Mapa público Mesaup — full-bleed Leaflet + painel detalhe */

/*
 * iPhone Safari / PWA:
 * - 100vh clássico > visual viewport (barra de URL) → documento faz scroll
 * - rubber-band + backdrop-filter → faixa frosted a ofuscar search/filtros
 * Lock: html.mapa-html + body fixed; chrome fixed ao visual viewport + safe-area.
 */
html.mapa-html,
html:has(body.mapa-page) {
  height: 100%;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

.mapa-page {
  margin: 0;
  position: fixed;
  inset: 0;
  width: 100%;
  /* svh = viewport “pequeno” (URL bar visível) — evita overflow/scroll no iOS */
  height: 100%;
  height: 100svh;
  height: 100dvh;
  max-height: 100%;
  max-height: 100svh;
  max-height: 100dvh;
  background: #0a0b0f;
  color: #f0f2f6;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-overflow-scrolling: auto;
}

/* Isolar chrome global (theme FAB flutuante colide com topbar do mapa) */
.mapa-page .mesaup-theme-fab {
  display: none !important;
}

/* Noite só no raster OSM legado — OpenFreeMap (.mapa-map--ofm) já traz estilo dark. */
html[data-theme="dark"] .mapa-map:not(.mapa-map--ofm) .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.9);
}

/* Basemap vector OpenFreeMap: canvas no tilePane; pins Leaflet ficam por cima. */
.mapa-map.mapa-map--ofm .leaflet-tile-pane .maplibregl-map,
.mapa-map.mapa-map--ofm .leaflet-tile-pane .maplibregl-canvas {
  background: transparent;
}

.mapa-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  /* isolation cria stacking; NÃO usar backdrop-filter no shell — Safari iOS smears blur */
}

.mapa-chrome {
  /* fixed = visual viewport iOS (não sobe/desce com rubber-band do documento) */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding:
    max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.85rem, env(safe-area-inset-right, 0px))
    0.15rem
    max(0.85rem, env(safe-area-inset-left, 0px));
  pointer-events: none;
  /* Sem frosted strip — controlos com fundo opaco (legíveis sem scroll). */
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translateZ(0);
}

.mapa-chrome > * {
  pointer-events: auto;
}

.mapa-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
}

.mapa-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #fff;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.mapa-brand-mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f97316, #ea580c);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.04em;
}

.mapa-brand-text {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  padding-right: 0.2rem;
}

.mapa-search-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
  z-index: 2;
}

.mapa-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 1100;
  max-height: min(52dvh, 22rem);
  overflow-y: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 17, 23, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  padding: 0.35rem;
}

.mapa-suggest[hidden] {
  display: none !important;
}

.mapa-suggest-group {
  padding: 0.35rem 0.55rem 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.mapa-suggest-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  text-align: left;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.mapa-suggest-item:hover,
.mapa-suggest-item.is-active {
  background: rgba(249, 115, 22, 0.14);
}

.mapa-suggest-ico {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.mapa-suggest-ico--mesaup {
  background: #f97316;
  color: #fff;
}

.mapa-suggest-ico--disc {
  background: #14b8a6;
  color: #fff;
}

.mapa-suggest-ico--place {
  background: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

.mapa-suggest-title {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
}

.mapa-suggest-sub {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.3;
}

.mapa-search-ico {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.mapa-search {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 2.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d1117;
  color: #f8fafc;
  padding: 0 2.6rem 0 2.55rem;
  font-size: 0.95rem;
  outline: none;
  /* Fundo opaco — sem backdrop-filter (iOS criava faixa frosted a ofuscar o topo) */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.mapa-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.mapa-search-clear {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.mapa-search-clear[hidden] {
  display: none !important;
}

.mapa-search::placeholder {
  color: #64748b;
}

.mapa-search:focus {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18), 0 4px 14px rgba(0, 0, 0, 0.22);
}

.mapa-top-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.mapa-icon-btn {
  position: relative;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d1117;
  color: #e2e8f0;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.mapa-icon-btn .theme-ico {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.25s ease, opacity 0.2s;
  pointer-events: none;
}

html[data-theme="dark"] .mapa-icon-btn .theme-ico-light { opacity: 0; transform: scale(0.85); }
html[data-theme="dark"] .mapa-icon-btn .theme-ico-dark  { opacity: 1; transform: none; }
html[data-theme="light"] .mapa-icon-btn .theme-ico-dark  { opacity: 0; transform: scale(0.85); }
html[data-theme="light"] .mapa-icon-btn .theme-ico-light { opacity: 1; transform: none; }

.mapa-link-lista {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.65rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  text-decoration: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  flex-shrink: 0;
}

.mapa-link-lista:active {
  transform: scale(0.97);
}

.mapa-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.65rem;
  min-width: 2.65rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  text-decoration: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

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

.mapa-account-btn.is-logged {
  padding: 0;
  width: 2.65rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(244, 63, 94, 0.9));
  border-color: rgba(249, 115, 22, 0.55);
  color: #fff;
}

.mapa-account-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mapa-account-label {
  white-space: nowrap;
}

/* CTA instalar app — desktop only (estilo ViaLog: chip discreto no header) */
.mapa-install-btn {
  display: none;
  align-items: center;
  justify-content: center;
  height: 2.65rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 0;
  background: #22c55e;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  transition: transform 0.12s ease, filter 0.15s ease, background 0.15s ease;
}

.mapa-install-btn:hover {
  filter: brightness(1.05);
}

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

.mapa-install-btn[hidden] {
  display: none !important;
}

@media (min-width: 861px) {
  .mapa-install-btn:not([hidden]) {
    display: inline-flex;
  }
}

@media (max-width: 860px) {
  .mapa-install-btn {
    display: none !important;
  }
}

.mapa-recenter {
  position: absolute;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: calc(5.6rem + env(safe-area-inset-bottom));
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 17, 23, 0.94);
  color: #f8fafc;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, width 0.15s ease;
}

.mapa-recenter:hover {
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(20, 24, 32, 0.96);
}

.mapa-recenter:active {
  transform: scale(0.97);
}

.mapa-recenter.is-loading {
  color: #f97316;
  animation: mapa-pulse 1.1s ease-in-out infinite;
}

.mapa-recenter-label {
  display: none;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 859px) {
  .mapa-shell.has-panel .mapa-recenter,
  .mapa-shell.has-panel .mapa-status {
    bottom: calc(min(58vh, 34rem) + 1rem + env(safe-area-inset-bottom));
  }
}

/* Telemóvel: tema | busca | Entrar/perfil na mesma linha */
@media (max-width: 640px) {
  .mapa-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
  }

  .mapa-search-wrap {
    width: 100%;
    min-width: 0;
  }

  .mapa-search {
    font-size: 16px; /* evita zoom automático no iOS ao focar */
    height: 2.55rem;
    padding-left: 2.35rem;
    padding-right: 2.2rem;
  }

  .mapa-top-actions {
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.3rem;
  }

  .mapa-account-btn:not(.is-logged) {
    padding: 0 0.65rem;
    gap: 0.28rem;
  }

  .mapa-account-btn .ph {
    font-size: 0.95rem;
  }

  .mapa-toolbar {
    gap: 0.35rem;
  }

  .mapa-toolbar-group {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .mapa-account-btn:not(.is-logged) {
    padding: 0 0.62rem;
    font-size: 0.76rem;
  }

  .mapa-toolbar-label {
    font-size: 0.68rem;
  }

  .mapa-chip {
    padding: 0.4rem 0.75rem;
    font-size: 0.76rem;
  }
}

@media (min-width: 860px) {
  .mapa-shell.has-panel .mapa-recenter {
    right: calc(min(24.5rem, calc(100vw - 2rem)) + 1.5rem);
  }
}

.mapa-filters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.15rem;
  max-width: 100%;
}

/* Filtros + Listas — chips alinhados com labels claras */
.mapa-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding-bottom: 0.2rem;
  max-width: 100%;
  min-width: 0;
}

.mapa-toolbar-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  min-width: 0;
  max-width: 100%;
}

.mapa-toolbar-label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e2e8f0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  padding: 0 0.1rem;
  line-height: 1;
  user-select: none;
}

.mapa-toolbar-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.mapa-chip--lista {
  color: #e2e8f0;
}

.mapa-chip--lista.mapa-link-lista--favs {
  color: #fda4af;
}

.mapa-chip--fav-filter.is-active {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}

/* Progresso fino ao carregar viewport / OSM / enrich — sob os filtros */
.mapa-chrome > .mapa-load-progress,
.mapa-load-progress {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
  width: 100%;
  max-width: min(100%, 22rem);
  margin: 0 0 0.1rem;
  pointer-events: none;
}

.mapa-load-progress[hidden] {
  display: none !important;
}

.mapa-load-progress-track {
  position: relative;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}

.mapa-load-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb923c, #f97316 45%, #ea580c);
  transform-origin: left center;
  animation: mapa-load-indeterminate 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform;
}

.mapa-load-progress-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #e2e8f0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  padding: 0 0.15rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes mapa-load-indeterminate {
  0% {
    transform: translateX(-120%) scaleX(0.55);
  }
  45% {
    transform: translateX(80%) scaleX(1);
  }
  100% {
    transform: translateX(280%) scaleX(0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mapa-load-progress-bar {
    width: 100%;
    animation: none;
    opacity: 0.85;
  }
}

.mapa-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d1117;
  color: #cbd5e1;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.mapa-chip.is-active,
.mapa-chip--more.is-active {
  background: #f97316;
  border-color: #f97316;
  border-style: solid;
  color: #fff;
}

.mapa-chip--more {
  border-style: dashed;
  color: #fdba74;
  max-width: min(92vw, 18rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapa-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0d1117;
}

/* Zoom Leaflet: canto inferior direito, acima do recenter / coords / cart */
.mapa-map .leaflet-bottom.leaflet-right {
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(0.35rem, env(safe-area-inset-bottom));
  z-index: 1000;
  margin: 0;
}

.mapa-map .leaflet-control-zoom {
  /* Empilha acima do recenter (bottom ~5.6rem) e coords/cart */
  margin: 0 0 calc(8.7rem + env(safe-area-inset-bottom)) 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  background: rgba(13, 17, 23, 0.94) !important;
  backdrop-filter: blur(12px);
}

.mapa-map .leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  background: transparent !important;
  color: #e2e8f0 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  font-size: 1.15rem !important;
  font-weight: 600;
}

.mapa-map .leaflet-control-zoom a:hover,
.mapa-map .leaflet-control-zoom a:focus {
  background: rgba(249, 115, 22, 0.18) !important;
  color: #fdba74 !important;
}

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

.mapa-map .leaflet-control-attribution,
.mapa-nav-map .leaflet-control-attribution,
.leaflet-control-attribution {
  display: none !important;
}

/* Em condução o zoom nativo Leaflet fica escondido (usa .mapa-nav-zoom) */
.mapa-shell.is-nav .mapa-map .leaflet-control-zoom {
  display: none !important;
}

@media (max-width: 859px) {
  .mapa-shell.has-panel .mapa-map .leaflet-control-zoom {
    margin-bottom: calc(min(58vh, 34rem) + 4.2rem + env(safe-area-inset-bottom)) !important;
  }
}

@media (min-width: 860px) {
  .mapa-shell.has-panel .mapa-map .leaflet-bottom.leaflet-right {
    right: calc(min(24.5rem, calc(100vw - 2rem)) + 1.5rem);
  }
}

html[data-theme="light"] .mapa-map .leaflet-control-zoom {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .mapa-map .leaflet-control-zoom a {
  color: #0f172a !important;
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .mapa-map .leaflet-control-zoom a:hover,
html[data-theme="light"] .mapa-map .leaflet-control-zoom a:focus {
  background: rgba(249, 115, 22, 0.12) !important;
  color: #c2410c !important;
}

/* Overlay MapLibre — só visível em modo condução (is-nav-ml) */
.mapa-nav-map {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #0d1117;
  display: none;
}

.mapa-shell.is-nav-ml .mapa-nav-map {
  display: block;
}

.mapa-shell.is-nav-ml .mapa-map {
  visibility: hidden;
  pointer-events: none;
}

.mapa-nav-map .maplibregl-map,
.mapa-nav-map .maplibregl-canvas-container,
.mapa-nav-map .maplibregl-canvas {
  width: 100% !important;
  height: 100% !important;
}

.mapa-nav-map .maplibregl-ctrl-bottom-left,
.mapa-nav-map .maplibregl-ctrl-bottom-right {
  bottom: calc(3.4rem + env(safe-area-inset-bottom));
}

/* Attribution MapLibre oculto no overlay de condução (pedido UI) */
.mapa-nav-map .maplibregl-ctrl-attrib {
  display: none !important;
}

.mapa-nav-map .maplibregl-ctrl-top-left {
  top: 6.2rem;
  left: max(0.55rem, env(safe-area-inset-left));
}

.mapa-nav-map .maplibregl-ctrl-group {
  border: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden;
  border-radius: 12px !important;
  background: rgba(13, 17, 23, 0.94) !important;
}

.mapa-nav-map .maplibregl-ctrl-group button {
  width: 34px !important;
  height: 34px !important;
  background-color: transparent !important;
}

.mapa-nav-map .maplibregl-ctrl-group button + button {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.mapa-ml-marker {
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
  margin: 0 !important;
  /* MapLibre controla a posição via transform no próprio elemento — sem translate CSS extra. */
  will-change: auto;
}

/* Zoom baixo: nomes escondidos em clusters; hover / pin activo revelam.
   Leaflet (exploração) + MapLibre (condução) — ambos usam a mesma classe. */
.mapa-ml-marker.mapa-pin-wrap--name-collapsed .mapa-pin-name,
.leaflet-marker-icon.mapa-pin-wrap--name-collapsed .mapa-pin-name {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  transform: none;
}

.mapa-ml-marker.mapa-pin-wrap--name-collapsed:hover .mapa-pin-name,
.mapa-ml-marker.mapa-pin-wrap--name-collapsed:focus-within .mapa-pin-name,
.mapa-ml-marker.mapa-pin-wrap--name-collapsed.is-active-pin .mapa-pin-name,
.leaflet-marker-icon.mapa-pin-wrap--name-collapsed:hover .mapa-pin-name,
.leaflet-marker-icon.mapa-pin-wrap--name-collapsed:focus-within .mapa-pin-name,
.leaflet-marker-icon.mapa-pin-wrap--name-collapsed.is-active-pin .mapa-pin-name {
  opacity: 1;
  max-height: 4.5rem;
  padding: 0.05rem 0.22rem;
  overflow: visible;
  pointer-events: none;
}

.mapa-status {
  position: absolute;
  left: 50%;
  /* Mesma faixa vertical do botão recenter — acima da legenda no telemóvel */
  bottom: calc(5.6rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1001;
  max-width: min(72vw, 22rem);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.82rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.mapa-coords {
  position: absolute;
  right: max(0.75rem, env(safe-area-inset-right));
  /* Acima da legenda flutuante — não fica tapado */
  bottom: calc(3.55rem + env(safe-area-inset-bottom));
  z-index: 1000;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.01em;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  user-select: none;
}

.mapa-legend {
  position: absolute;
  left: max(0.85rem, env(safe-area-inset-left));
  bottom: calc(0.85rem + env(safe-area-inset-bottom));
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  max-width: min(70vw, 22rem);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: #94a3b8;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.mapa-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mapa-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  display: inline-block;
}

.mapa-dot--mesaup {
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.mapa-dot--osm {
  background: #64748b;
}

.mapa-dot--disc {
  background: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.22);
}

/* Markers — nome acima + pill com distância */
.mapa-pin-wrap,
.mapa-ml-marker.mapa-pin-wrap,
.mapa-ml-marker.mapa-pin-wrap,
.leaflet-div-icon.mapa-pin-wrap,
.leaflet-marker-icon.mapa-pin-wrap {
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}

.mapa-pin-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  transform: translateZ(0);
  will-change: transform;
  overflow: visible;
}

.mapa-pin-stack--mesaup {
  gap: 0.1rem;
}

.mapa-pin-name {
  display: block;
  max-width: 8.6rem;
  padding: 0.05rem 0.22rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  text-align: center;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  color: #0f172a;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 1),
    0 1px 2px rgba(255, 255, 255, 0.95),
    0 0 1px #fff,
    1px 0 0 #fff,
    -1px 0 0 #fff;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.mapa-pin-name--sm {
  font-size: 0.6rem;
  max-width: 9.6rem;
  line-height: 1.18;
}

.mapa-pin-name--xs {
  font-size: 0.54rem;
  max-width: 10.5rem;
  line-height: 1.15;
  font-weight: 700;
}

/* Restaurantes Mesaup — pill escura + texto dourado (compacto, ~altura pin normal) */
.mapa-pin-name--mesaup {
  max-width: 9.2rem;
  padding: 0.12rem 0.42rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffb800;
  -webkit-text-stroke: 0;
  paint-order: normal;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  border: 0;
  border-radius: 999px;
  background: #1a1d23;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.mapa-pin-name--mesaup.mapa-pin-name--sm {
  font-size: 0.56rem;
  max-width: 9.8rem;
  padding: 0.1rem 0.38rem;
}

.mapa-pin-name--mesaup.mapa-pin-name--xs {
  font-size: 0.52rem;
  max-width: 10.4rem;
  font-weight: 750;
  padding: 0.08rem 0.34rem;
}

/* Pin activo por cima dos vizinhos (além do zIndexOffset Leaflet) */
.mapa-ml-marker.mapa-pin-wrap.is-active-pin,
.leaflet-marker-icon.mapa-pin-wrap.is-active-pin {
  z-index: 1200 !important;
}

.mapa-ml-marker.mapa-pin-wrap,
.leaflet-marker-icon.mapa-pin-wrap {
  cursor: pointer;
}

/* Hover/focus: hit-test fiável quando pins estão lado a lado (margin offset) */
.mapa-ml-marker.mapa-pin-wrap:hover,
.mapa-ml-marker.mapa-pin-wrap:focus-within,
.leaflet-marker-icon.mapa-pin-wrap:hover,
.leaflet-marker-icon.mapa-pin-wrap:focus-within {
  z-index: 1300 !important;
}

/* Sem transition de margin: ao clicar/setIcon os vizinhos não "deslizam". */
.mapa-ml-marker.mapa-pin-wrap.mapa-pin-wrap--spread,
.leaflet-marker-icon.mapa-pin-wrap.mapa-pin-wrap--spread {
  transition: none;
}

/* Em pins afastados (spread): sem bob no hover — animar os dois fazia miss-click */
.mapa-ml-marker.mapa-pin-wrap--spread:hover .mapa-pin-stack,
.mapa-ml-marker.mapa-pin-wrap--spread:focus-within .mapa-pin-stack,
.leaflet-marker-icon.mapa-pin-wrap--spread:hover .mapa-pin-stack,
.leaflet-marker-icon.mapa-pin-wrap--spread:focus-within .mapa-pin-stack {
  animation: none;
}

.mapa-pin {
  min-width: 2.4rem;
  height: 1.7rem;
  padding: 0 0.45rem 0 0.4rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  pointer-events: auto;
}

.mapa-pin-cuisine {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28));
  pointer-events: none;
  user-select: none;
}

.mapa-pin-dist {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.mapa-pin--mesaup {
  background: #ff6b00;
  border: 0;
  min-width: 2.4rem;
  min-height: 0;
  height: 1.7rem;
  padding: 0 0.45rem 0 0.38rem;
  gap: 0.16rem;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.mapa-pin--mesaup .mapa-pin-loc {
  font-size: 0.72rem;
  color: #1a1d23;
  line-height: 1;
}

.mapa-pin--mesaup .mapa-pin-dist {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: none;
}

.mapa-pin--osm {
  background: linear-gradient(145deg, #64748b, #475569);
}

.mapa-pin--discovered {
  background: linear-gradient(145deg, #2dd4bf, #0f766e);
  border-color: rgba(204, 251, 241, 0.95);
}

.mapa-pin--active {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.38), 0 6px 16px rgba(0, 0, 0, 0.38);
}

.mapa-pin--dest {
  background: linear-gradient(145deg, #fb923c, #c2410c);
  border-color: rgba(255, 247, 237, 0.95);
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.45);
}

/* Agregados por zoom: bubble com quantidade (zona / distrito / país / continente) */
.mapa-agg-wrap,
.leaflet-div-icon.mapa-agg-wrap,
.leaflet-marker-icon.mapa-agg-wrap {
  background: transparent !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
}

.mapa-agg {
  --mapa-agg-bg: #0d1117;
  --mapa-agg-fg: #e2e8f0;
  --mapa-agg-border: rgba(249, 115, 22, 0.55);
  --mapa-agg-ring: rgba(249, 115, 22, 0.22);
  appearance: none;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--mapa-agg-border);
  border-radius: 999px;
  background: var(--mapa-agg-bg);
  color: var(--mapa-agg-fg);
  box-shadow:
    0 0 0 4px var(--mapa-agg-ring),
    0 6px 18px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  font-family: inherit;
  line-height: 1;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.55rem;
}

.mapa-agg:hover,
.mapa-agg:focus-visible {
  transform: scale(1.08);
  border-color: #f97316;
  box-shadow:
    0 0 0 5px rgba(249, 115, 22, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.4);
  outline: none;
}

.mapa-agg-count {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f97316;
}

.mapa-agg-label {
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #94a3b8;
  max-width: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.mapa-agg--sm {
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.3rem 0.45rem;
}
.mapa-agg--sm .mapa-agg-count { font-size: 0.82rem; }

.mapa-agg--md {
  min-width: 2.65rem;
  min-height: 2.65rem;
  padding: 0.38rem 0.55rem;
}
.mapa-agg--md .mapa-agg-count { font-size: 0.98rem; }

.mapa-agg--lg {
  min-width: 3.1rem;
  min-height: 3.1rem;
  padding: 0.42rem 0.62rem;
}
.mapa-agg--lg .mapa-agg-count { font-size: 1.08rem; }

.mapa-agg--xl {
  min-width: 3.55rem;
  min-height: 3.55rem;
  padding: 0.48rem 0.7rem;
}
.mapa-agg--xl .mapa-agg-count { font-size: 1.2rem; }

.mapa-agg--district,
.mapa-agg--country,
.mapa-agg--continent {
  min-width: 3.2rem;
  padding: 0.42rem 0.7rem 0.38rem;
}

.mapa-agg--country {
  --mapa-agg-border: rgba(20, 184, 166, 0.55);
  --mapa-agg-ring: rgba(20, 184, 166, 0.18);
}
.mapa-agg--country .mapa-agg-count { color: #14b8a6; }

.mapa-agg--continent {
  --mapa-agg-border: rgba(59, 130, 246, 0.5);
  --mapa-agg-ring: rgba(59, 130, 246, 0.16);
}
.mapa-agg--continent .mapa-agg-count { color: #3b82f6; }

html[data-theme="light"] .mapa-agg {
  --mapa-agg-bg: #ffffff;
  --mapa-agg-fg: #0f172a;
  --mapa-agg-border: rgba(234, 88, 12, 0.5);
  --mapa-agg-ring: rgba(249, 115, 22, 0.14);
  box-shadow:
    0 0 0 4px var(--mapa-agg-ring),
    0 6px 16px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .mapa-agg-label { color: #64748b; }
html[data-theme="light"] .mapa-agg--country {
  --mapa-agg-border: rgba(13, 148, 136, 0.45);
  --mapa-agg-ring: rgba(20, 184, 166, 0.12);
}
html[data-theme="light"] .mapa-agg--continent {
  --mapa-agg-border: rgba(37, 99, 235, 0.4);
  --mapa-agg-ring: rgba(59, 130, 246, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .mapa-agg,
  .mapa-agg:hover,
  .mapa-agg:focus-visible {
    transition: none;
    transform: none;
  }
}

/* Modo noite: borda preta + letra branca nos pins/labels */
html[data-theme="dark"] .mapa-pin-name {
  color: #fff;
  text-shadow:
    0 0 5px rgba(0, 0, 0, 1),
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 1px #000,
    1px 0 0 #000,
    -1px 0 0 #000,
    0 1px 0 #000,
    0 -1px 0 #000;
}

/* Mesaup pins: mesmo design dia/noite (referência). Outros pins mantêm borda no dark. */
html[data-theme="dark"] .mapa-pin-name--mesaup {
  color: #ffb800;
  background: #1a1d23;
  border: 0;
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .mapa-pin--mesaup {
  background: #ff6b00;
  border: 0;
}

html[data-theme="dark"] .mapa-pin:not(.mapa-pin--mesaup),
html[data-theme="dark"] .mapa-pin--osm,
html[data-theme="dark"] .mapa-pin--discovered,
html[data-theme="dark"] .mapa-pin--dest,
html[data-theme="dark"] .mapa-pin--stop {
  border-color: #000;
}

html[data-theme="dark"] .mapa-pin-dist {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .mapa-pin--mesaup .mapa-pin-dist {
  text-shadow: none;
}

/* Bob só em hover / activo — evita animar dezenas de pins em idle */
.mapa-ml-marker:hover .mapa-pin-stack,
.mapa-ml-marker:focus-within .mapa-pin-stack,
.leaflet-marker-icon:hover .mapa-pin-stack,
.leaflet-marker-icon:focus-within .mapa-pin-stack,
.mapa-pin-stack--active {
  animation: mapa-pin-bob 0.75s ease-in-out infinite;
}

@keyframes mapa-pin-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .mapa-ml-marker:hover .mapa-pin-stack,
  .mapa-ml-marker:focus-within .mapa-pin-stack,
  .leaflet-marker-icon:hover .mapa-pin-stack,
  .leaflet-marker-icon:focus-within .mapa-pin-stack,
  .mapa-pin-stack--active,
  .mapa-user-pulse,
  .mapa-user-aura {
    animation: none !important;
  }
}

/* GPS: ponto fixo; aura/sombra é que pulsa e sobe/desce */
.mapa-user-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.mapa-user-dot {
  position: relative;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #22c55e;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.mapa-user-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.28);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
  animation: mapa-user-aura 1.55s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.mapa-user-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.42);
  animation: mapa-user-pulse 1.55s ease-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes mapa-user-aura {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50% { transform: translateY(-4px) scale(1.12); opacity: 1; }
}

@keyframes mapa-user-pulse {
  0% { transform: translateY(0) scale(1); opacity: 0.55; }
  70% { transform: translateY(-3px) scale(2.6); opacity: 0; }
  100% { transform: translateY(-3px) scale(2.6); opacity: 0; }
}

.mapa-user-marker {
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}

.mapa-user-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
  transform-origin: 50% 58%;
  will-change: transform;
}

.mapa-user-arrow--3d {
  /* direcção = marker.setRotation / inline style; aqui só fallback de volume */
  transform: perspective(200px) rotateX(42deg) scale(1.12);
}

.mapa-user-arrow svg {
  display: block;
  overflow: visible;
}

/* Velocímetro + placa de limite (modo Seguir / navegação) */
.mapa-nav-speed {
  position: absolute;
  left: max(0.75rem, env(safe-area-inset-left));
  bottom: calc(7.2rem + env(safe-area-inset-bottom));
  z-index: 1055;
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  pointer-events: none;
}

.mapa-nav-speed[hidden] {
  display: none !important;
}

.mapa-nav-speedo {
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mapa-nav-speed.is-over-limit .mapa-nav-speedo {
  border-color: rgba(248, 113, 113, 0.85);
  background: rgba(80, 10, 10, 0.82);
}

.mapa-nav-speedo-val {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mapa-nav-speedo-unit {
  margin-top: 0.12rem;
  font-size: 0.62rem;
  font-weight: 650;
  opacity: 0.8;
  text-transform: lowercase;
}

.mapa-nav-limit {
  width: 2.55rem;
  height: 2.55rem;
  margin-bottom: 0.15rem;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #e11d48;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

.mapa-nav-limit[hidden] {
  display: none !important;
}

/* Modo condução: limpar chrome — só mapa + nav UI */
.mapa-shell.is-nav .mapa-chrome,
.mapa-shell.is-nav .mapa-legend,
.mapa-shell.is-nav .mapa-coords {
  display: none !important;
}

/* Em nav: esconder zoom nativo MapLibre (ficava sob o banner) e usar .mapa-nav-zoom */
.mapa-shell.is-nav .maplibregl-ctrl-top-left {
  display: none !important;
}

.mapa-nav-zoom {
  position: absolute;
  top: calc(7.75rem + env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  z-index: 1110;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(12px);
}

.mapa-shell.is-nav .mapa-nav-zoom {
  display: flex;
}

.mapa-nav-zoom[hidden] {
  display: none !important;
}

.mapa-nav-zoom-btn {
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #e2e8f0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 34px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mapa-nav-zoom-btn:last-child {
  border-bottom: 0;
}

.mapa-nav-zoom-btn:active {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
}

.mapa-shell.is-nav:not(.is-nav-paused) .mapa-recenter {
  display: none;
}

.mapa-shell.is-nav.is-nav-paused .mapa-recenter {
  display: inline-flex;
  width: auto;
  min-width: 2.85rem;
  height: 2.85rem;
  padding: 0 0.85rem 0 0.65rem;
  bottom: calc(7.4rem + env(safe-area-inset-bottom));
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(13, 17, 23, 0.96);
  color: #fdba74;
}

.mapa-shell.is-nav.is-nav-paused .mapa-recenter-label {
  display: inline;
}

.mapa-shell.is-nav .mapa-route-hud-btn:not(.mapa-route-hud-btn--stop) {
  display: none;
}

.mapa-shell.is-nav .mapa-nav-speed {
  bottom: calc(7.6rem + env(safe-area-inset-bottom));
}

/* Painel de instruções estilo Waze */
.mapa-nav-instr {
  position: absolute;
  top: max(0.55rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1105;
  width: min(94vw, 26rem);
  padding: 0.7rem 0.85rem 0.65rem;
  border-radius: 1rem;
  background: #0a0c10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  color: #f8fafc;
  pointer-events: none;
}

.mapa-nav-instr[hidden] {
  display: none !important;
}

.mapa-nav-instr-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mapa-nav-instr-icon {
  flex-shrink: 0;
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  color: #fff;
}

.mapa-nav-instr-icon svg {
  width: 2.55rem;
  height: 2.55rem;
  display: block;
}

.mapa-nav-instr-copy {
  min-width: 0;
  flex: 1;
}

.mapa-nav-instr-dist {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.mapa-nav-instr-street {
  margin-top: 0.12rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #7dd3fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapa-nav-instr-next {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 650;
}

.mapa-nav-instr-next[hidden] {
  display: none !important;
}

.mapa-nav-instr-next-label {
  flex-shrink: 0;
  opacity: 0.85;
}

.mapa-nav-instr-next-icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  color: #fff;
}

.mapa-nav-instr-next-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.mapa-nav-instr-next-street {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapa-pin--dest .mapa-pin-dist {
  letter-spacing: 0;
}

.mapa-route-line-border {
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.mapa-route-line {
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

/* Nav: pitch MapLibre nativo no overlay (sem CSS trapezoid / céu preto) */
.mapa-shell.is-nav .mapa-map,
.mapa-shell.is-nav .mapa-nav-map {
  background: #0d1117;
  overflow: hidden;
  transform: none !important;
}

html[data-theme="light"] .mapa-shell.is-nav .mapa-map,
html[data-theme="light"] .mapa-shell.is-nav .mapa-nav-map {
  background: #e8eaed;
}

/* Legado: classe is-nav-tilt já não inclina o DOM */
.mapa-shell.is-nav-tilt .mapa-map,
.mapa-shell.is-nav-tilt .mapa-nav-map {
  transform: none !important;
}

.mapa-shell.is-nav .mapa-cart-bar {
  display: none !important;
}

.mapa-shell.is-adding-stop {
  cursor: crosshair;
}

.mapa-shell.is-adding-stop .mapa-pin {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.55), 0 4px 14px rgba(0, 0, 0, 0.32);
}

/* Raio de busca — não interceptar cliques nos pins */
.mapa-search-radius {
  pointer-events: none !important;
}

/* Panel */
.mapa-panel {
  position: absolute;
  z-index: 1100;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mapa-panel-handle {
  display: none;
}

.mapa-panel-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.mapa-panel-close:active {
  transform: scale(0.96);
}

.mapa-panel-body {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1rem 1rem 1.25rem;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.mapa-panel-body::-webkit-scrollbar,
.mapa-cuisine-list::-webkit-scrollbar,
.mapa-cuisine-drawer-panel::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.mapa-panel-body::-webkit-scrollbar-track,
.mapa-cuisine-list::-webkit-scrollbar-track,
.mapa-cuisine-drawer-panel::-webkit-scrollbar-track {
  background: transparent;
}

.mapa-panel-body::-webkit-scrollbar-thumb,
.mapa-cuisine-list::-webkit-scrollbar-thumb,
.mapa-cuisine-drawer-panel::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.32);
  border-radius: 999px;
}

.mapa-panel-body::-webkit-scrollbar-button,
.mapa-cuisine-list::-webkit-scrollbar-button,
.mapa-cuisine-drawer-panel::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.mapa-cuisine-list,
.mapa-cuisine-drawer-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.mapa-panel-hero {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding-right: 2.2rem;
  margin-bottom: 1rem;
}

.mapa-panel-hero-text {
  min-width: 0;
}

.mapa-fav-btn {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mapa-fav-btn:active {
  transform: scale(0.94);
}

.mapa-fav-btn.is-fav {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
}

.mapa-lista-fav {
  display: inline-block;
  margin-left: 0.35rem;
  color: #ef4444;
  font-size: 0.85em;
  vertical-align: baseline;
}

.mapa-panel-logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  object-fit: cover;
  background: #1c1f2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mapa-panel-logo.is-placeholder {
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #f97316;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0.05));
}

.mapa-panel-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.mapa-panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  color: #cbd5e1;
  font-size: 0.85rem;
}

.mapa-panel-rating {
  color: #fbbf24;
  font-weight: 700;
}

.mapa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mapa-badge--mesaup {
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.28);
}

.mapa-badge--osm {
  background: rgba(100, 116, 139, 0.18);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.mapa-badge--disc {
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.mapa-badge--open {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.mapa-badge--closed {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.mapa-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1rem;
  overflow: visible;
}

.mapa-actions > .mapa-btn,
.mapa-actions > .mapa-routes {
  width: 100%;
  min-width: 0;
}

.mapa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  text-decoration: none;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.mapa-btn:active {
  transform: scale(0.98);
}

.mapa-btn--primary {
  background: linear-gradient(145deg, #f97316, #ea580c);
  border-color: transparent;
  color: #fff;
  flex: 1 1 auto;
  min-width: 8rem;
}

.mapa-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

.mapa-btn--tripadvisor {
  background: #34e0a1;
  border-color: #2bc48f;
  color: #0b1f17;
  font-weight: 700;
}

.mapa-btn--tripadvisor:hover {
  background: #2fd496;
}

.mapa-btn--google {
  background: #4285f4;
  border-color: #3367d6;
  color: #fff;
  font-weight: 700;
}

.mapa-btn--google:hover {
  background: #3367d6;
}

.mapa-btn--tripadvisor .mapa-ta-ico,
.mapa-btn--google .mapa-ta-ico {
  flex-shrink: 0;
}

.mapa-review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: stretch;
}

.mapa-review-actions .mapa-btn {
  width: 100%;
  margin-top: 0 !important;
  min-height: 2.65rem;
  height: 2.65rem;
  box-sizing: border-box;
  padding: 0 0.75rem;
  font-size: 0.84rem;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .mapa-review-actions {
    grid-template-columns: 1fr;
  }
}

/* Phosphor icons — presença e alinhamento */
.mapa-page .ph,
.mapa-page .ph-fill {
  font-size: 1.15em;
  line-height: 1;
  speak: never;
}

.mapa-icon-btn .ph,
.mapa-icon-btn .ph-fill,
.mapa-panel-close .ph,
.mapa-lb-close .ph,
.mapa-fav-btn .ph,
.mapa-fav-btn .ph-fill,
.mapa-recenter .ph,
.mapa-search-clear .ph {
  font-size: 1.15rem;
}

.mapa-icon-btn,
.mapa-panel-close,
.mapa-lb-close,
.mapa-fav-btn,
.mapa-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mapa-chip .ph,
.mapa-chip .ph-fill,
.mapa-account-action .ph {
  font-size: 0.95rem;
  margin-right: 0.2rem;
  vertical-align: -0.1em;
}

.mapa-chip.is-active,
.mapa-chip[aria-pressed="true"] {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74;
}

.mapa-google-search {
  margin-top: 0.65rem;
  display: inline-flex;
}

.mapa-search-ico {
  font-size: 1.05rem;
  z-index: 1;
}

.mapa-routes {
  position: relative;
  display: flex;
  width: 100%;
  z-index: 6;
}

.mapa-routes > .mapa-btn {
  width: 100%;
}

.mapa-routes-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 30;
  min-width: 100%;
  padding: 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f172a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.2rem;
}

.mapa-routes-menu[hidden] {
  display: none !important;
}

.mapa-routes-menu a,
.mapa-routes-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  color: #e2e8f0;
  text-decoration: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.mapa-routes-menu a:hover,
.mapa-routes-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mapa-routes-menu .mapa-routes-primary {
  color: #fdba74;
}

.mapa-routes-menu .mapa-routes-primary.is-loading,
.mapa-routes-menu .mapa-routes-primary:disabled {
  opacity: 0.7;
  cursor: wait;
  color: #fdba74;
}

.mapa-route-hud {
  position: absolute;
  left: 50%;
  bottom: calc(4.6rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(94vw, 26rem);
  padding: 0.55rem 0.65rem 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.94);
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
}

.mapa-route-hud[hidden] {
  display: none !important;
}

.mapa-route-hud.is-loading .mapa-route-hud-meta {
  color: #fdba74;
}

.mapa-route-hud-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapa-route-hud-meta strong {
  color: #fdba74;
  font-weight: 750;
}

.mapa-route-hud-actions {
  display: inline-flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.mapa-route-hud-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.mapa-route-hud-btn.is-active {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}

.mapa-route-hud-btn--close {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.mapa-route-hud-btn--stop {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
  font-weight: 750;
  padding: 0.4rem 0.95rem;
  min-width: 4.4rem;
}

.mapa-route-hud-btn--stop:hover {
  background: #c2410c;
  border-color: #c2410c;
}

.mapa-shell.is-nav .mapa-route-hud {
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  max-width: min(94vw, 28rem);
  border-radius: 1.15rem;
  padding: 0.7rem 0.75rem 0.7rem 1rem;
}

.mapa-route-picker {
  position: absolute;
  left: 50%;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1200;
  width: min(94vw, 26rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}

.mapa-route-picker[hidden] {
  display: none !important;
}

.mapa-route-picker > * {
  pointer-events: auto;
}

.mapa-route-picker-tabs {
  align-self: center;
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.mapa-route-picker-tab {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.mapa-route-picker-tab.is-active {
  background: #f97316;
  color: #fff;
}

.mapa-route-picker-list {
  display: grid;
  gap: 0.45rem;
  max-height: min(42dvh, 22rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.1rem;
}

.mapa-route-picker.is-map-view .mapa-route-picker-list {
  max-height: none;
  overflow: visible;
}

.mapa-route-picker.is-map-view .mapa-route-card:not(.is-selected) {
  display: none;
}

.mapa-route-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  background: rgba(13, 17, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  color: #e2e8f0;
}

.mapa-route-card.is-selected {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.28), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.mapa-route-card-time {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.mapa-route-card-meta {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

.mapa-route-card-via {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapa-route-card-go {
  justify-self: end;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
}

.mapa-route-card:not(.is-selected) .mapa-route-card-go {
  width: 2.55rem;
  min-height: 2.55rem;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
}

.mapa-route-card:not(.is-selected) .mapa-route-card-go-label {
  display: none;
}

.mapa-route-picker-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.9rem;
  background: rgba(13, 17, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mapa-route-stop-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
  font-size: 0.75rem;
  font-weight: 650;
}

.mapa-route-stop-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0 0.1rem;
  line-height: 1;
}

.mapa-route-picker-hint {
  margin: 0;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(249, 115, 22, 0.92);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.mapa-pin--stop {
  background: linear-gradient(145deg, #38bdf8, #0284c7);
  border-color: rgba(224, 242, 254, 0.95);
}

.mapa-route-line--alt {
  opacity: 0.55;
}

html[data-theme="light"] .mapa-route-picker-tabs,
html[data-theme="light"] .mapa-route-card,
html[data-theme="light"] .mapa-route-picker-stops {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .mapa-route-picker-tab {
  color: #64748b;
}

html[data-theme="light"] .mapa-route-card-meta {
  color: #64748b;
}

html[data-theme="light"] .mapa-route-card-via {
  color: #334155;
}

.mapa-info-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mapa-info-list li {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.4;
}

.mapa-info-list svg {
  margin-top: 0.15rem;
  color: #64748b;
}

.mapa-info-list a {
  color: #fb923c;
  text-decoration: none;
}

/* Horário de atendimento — lista vertical expansível (estilo Google, tokens Mesaup) */
.mapa-hours {
  align-items: start;
}

.mapa-hours > svg,
.mapa-hours > .ph,
.mapa-hours > .ph-fill {
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.mapa-hours-chevron.ph {
  font-size: 1rem;
  color: #64748b;
  transition: transform 0.18s ease;
}

.mapa-hours-block {
  min-width: 0;
  flex: 1;
}

.mapa-hours-fallback {
  color: #cbd5e1;
  line-height: 1.45;
}

.mapa-hours-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 0.35rem;
}

.mapa-hours-toggle:hover {
  color: #f8fafc;
}

.mapa-hours-toggle:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.55);
  outline-offset: 2px;
}

.mapa-hours-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  min-width: 0;
  line-height: 1.35;
}

.mapa-hours-status {
  font-weight: 650;
  color: #e2e8f0;
}

.mapa-hours-status.is-open {
  color: #fb923c;
}

.mapa-hours-status.is-closed {
  color: #f87171;
  font-weight: 600;
}

.mapa-hours-until {
  color: #94a3b8;
  font-weight: 450;
}

.mapa-hours-chevron {
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.18s ease;
}

.mapa-hours-toggle.is-expanded .mapa-hours-chevron {
  transform: rotate(180deg);
}

.mapa-hours-list {
  display: grid;
  gap: 0.28rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

/* display:grid acima sobrescrevia o [hidden] do UA — toggle deixava de colapsar */
.mapa-hours-list[hidden] {
  display: none !important;
}

.mapa-hours-row {
  display: grid;
  grid-template-columns: minmax(4.5rem, auto) 1fr;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #94a3b8;
}

.mapa-hours-day {
  font-weight: 450;
}

.mapa-hours-time {
  text-align: right;
  font-variant-numeric: tabular-nums;
  justify-self: end;
}

.mapa-hours-time.is-closed {
  color: #f87171;
  opacity: 0.85;
}

.mapa-hours-row.is-today {
  color: #f1f5f9;
}

.mapa-hours-row.is-today .mapa-hours-day,
.mapa-hours-row.is-today .mapa-hours-time {
  font-weight: 700;
  color: #f8fafc;
}

.mapa-hours-row.is-today .mapa-hours-time.is-closed {
  color: #f87171;
}

.mapa-desc {
  margin: 0.9rem 0 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.mapa-desc--nomatch {
  color: #e2e8f0;
}

.mapa-google-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.65rem;
  height: 2.45rem;
  padding: 0 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mapa-google-search:hover {
  background: rgba(66, 133, 244, 0.16);
  border-color: rgba(66, 133, 244, 0.45);
  color: #fff;
}

.mapa-cta-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.14), rgba(249, 115, 22, 0.04));
  border: 1px solid rgba(249, 115, 22, 0.22);
  box-sizing: border-box;
}

.mapa-cta-box p {
  margin: 0;
  font-size: 0.88rem;
  color: #fdba74;
  line-height: 1.4;
}

.mapa-cta-box .mapa-btn,
.mapa-cta-box .mapa-btn--primary {
  display: flex;
  width: 100%;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
}

/* Cardápio / avaliações inline no painel do mapa */
.mapa-inline-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  padding-right: 2.2rem;
}

.mapa-inline-back {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.65rem 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  flex-shrink: 0;
}

.mapa-inline-heading {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.mapa-inline-heading strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapa-inline-heading span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.mapa-inline-loading {
  padding: 1.5rem 0.25rem;
  color: #94a3b8;
  font-size: 0.9rem;
  animation: mapa-pulse 1.2s ease-in-out infinite;
}

.mapa-menu {
  display: grid;
  gap: 1.15rem;
}

.mapa-menu-sec-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.mapa-menu-items {
  display: grid;
  gap: 0.45rem;
}

.mapa-menu-item {
  display: grid;
  grid-template-columns: 3.35rem 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mapa-menu-thumb {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 0.7rem;
  object-fit: cover;
  background: #1c1f2c;
}

.mapa-menu-thumb.is-emoji {
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mapa-menu-name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #f1f5f9;
}

.mapa-menu-desc {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mapa-menu-price {
  font-size: 0.85rem;
  font-weight: 750;
  color: #fdba74;
  white-space: nowrap;
  padding-top: 0.1rem;
}

.mapa-menu-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.mapa-menu-note {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.22);
  color: #fecaca;
  font-size: 0.8rem;
  line-height: 1.35;
}

.mapa-menu-embed {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mapa-menu-embed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mapa-menu-embed-title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.mapa-menu-embed-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
}

.mapa-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mapa-qty.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.mapa-qty-btn {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.mapa-qty-btn--add {
  background: rgba(249, 115, 22, 0.9);
  color: #fff;
}

.mapa-qty-btn:active {
  transform: scale(0.94);
}

.mapa-qty-num {
  min-width: 1.1rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 750;
  color: #f1f5f9;
}

.mapa-cart-bag {
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mapa-cart-bag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.mapa-cart-bag-head strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.mapa-cart-bag-head span {
  font-size: 0.85rem;
  font-weight: 750;
  color: #fdba74;
}

.mapa-cart-bag-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.mapa-cart-list {
  display: grid;
  gap: 0.55rem;
}

.mapa-cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.mapa-cart-line-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.mapa-cart-line-copy strong {
  font-size: 0.88rem;
  color: #f1f5f9;
}

.mapa-cart-line-copy span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.mapa-cart-summary {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.mapa-cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.mapa-cart-summary > div strong {
  color: #fdba74;
}

.mapa-cart-summary > [data-mapa-checkout-all] {
  width: 100%;
  min-height: 2.75rem;
  font-weight: 750;
}

.mapa-checkout-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.65rem 0 0.85rem;
}

.mapa-checkout-modes--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mapa-checkout-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mapa-checkout-mode strong {
  font-size: 0.78rem;
  color: #f8fafc;
}

.mapa-checkout-mode.is-active {
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(249, 115, 22, 0.14);
  color: #fdba74;
}

.mapa-checkout-mode:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.mapa-checkout-fields {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.mapa-checkout-label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: #94a3b8;
}

.mapa-checkout-fields input,
.mapa-checkout-fields textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font: inherit;
  font-size: 0.9rem;
}

.mapa-checkout-fields input::placeholder,
.mapa-checkout-fields textarea::placeholder {
  color: #64748b;
}

.mapa-checkout-dine-note {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
}

.mapa-linkish {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #fb923c;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

html[data-theme="light"] .mapa-checkout-label {
  color: #475569;
}

html[data-theme="light"] .mapa-checkout-fields input,
html[data-theme="light"] .mapa-checkout-fields textarea,
html[data-theme="light"] .mapa-checkout-notes textarea {
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #0f172a;
}

html[data-theme="light"] .mapa-checkout-fields input::placeholder,
html[data-theme="light"] .mapa-checkout-fields textarea::placeholder,
html[data-theme="light"] .mapa-checkout-notes textarea::placeholder {
  color: #94a3b8;
}

html[data-theme="light"] .mapa-checkout-hint {
  color: #64748b;
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(254, 243, 199, 0.65);
}

html[data-theme="light"] .mapa-checkout-hint strong {
  color: #a16207;
}

html[data-theme="light"] .mapa-checkout-hint.is-ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(220, 252, 231, 0.7);
}

html[data-theme="light"] .mapa-checkout-hint.is-ok strong {
  color: #15803d;
}

html[data-theme="light"] .mapa-checkout-mode {
  border-color: rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  color: #475569;
}

html[data-theme="light"] .mapa-checkout-mode strong {
  color: #0f172a;
}

html[data-theme="light"] .mapa-checkout-mode.is-active {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(255, 237, 213, 0.9);
  color: #c2410c;
}

html[data-theme="light"] .mapa-checkout-dine-note {
  color: #64748b;
}

.mapa-menu-note--ok {
  color: #86efac !important;
}

.mapa-checkout-hint {
  margin: 0.75rem 0 0.9rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.07);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
}

.mapa-checkout-hint strong {
  color: #fbbf24;
}

.mapa-checkout-hint.is-ok {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.mapa-checkout-hint.is-ok strong {
  color: #4ade80;
}

.mapa-checkout-table {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.mapa-checkout-table-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mapa-checkout-table-copy strong {
  font-size: 0.9rem;
  color: #f1f5f9;
}

.mapa-checkout-table-copy span {
  font-size: 0.72rem;
  color: #94a3b8;
}

.mapa-checkout-table-edit {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.mapa-checkout-table-input {
  width: 5rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #f8fafc;
  font: inherit;
  font-size: 0.95rem;
}

.mapa-checkout-notes {
  display: grid;
  gap: 0.35rem;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.mapa-checkout-notes textarea {
  width: 100%;
  min-height: 4rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  resize: vertical;
}

.mapa-checkout-success {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
}

.mapa-checkout-success-ico {
  font-size: 2.5rem;
  line-height: 1;
}

.mapa-checkout-success strong {
  font-size: 1.1rem;
  color: #f8fafc;
}

.mapa-checkout-success p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.mapa-checkout-ref {
  width: 100%;
  margin: 0.35rem 0 0.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 650;
}

.mapa-checkout-actions {
  width: 100%;
  display: grid;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.mapa-qr-scan {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(1rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mapa-qr-scan[hidden] {
  display: none !important;
}

.mapa-qr-scan-card {
  width: min(100%, 26rem);
  max-height: min(92dvh, 40rem);
  overflow: auto;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
  transform: translateZ(0);
}

.mapa-qr-scan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.mapa-qr-scan-head strong {
  font-size: 1rem;
  color: #f8fafc;
}

.mapa-qr-scan-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.mapa-qr-scan-hint {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #94a3b8;
}

.mapa-qr-video {
  width: 100%;
  aspect-ratio: 1;
  max-height: 16rem;
  object-fit: cover;
  border-radius: 0.85rem;
  background: #020617;
  margin-bottom: 0.75rem;
}

.mapa-qr-scan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.mapa-qr-scan-desktop[hidden],
.mapa-qr-scan-mobile[hidden] {
  display: none !important;
}

.mapa-qr-token-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.mapa-qr-token-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  background: #020617;
  color: #f8fafc;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.65rem;
}

.mapa-qr-token-input:focus {
  outline: 2px solid rgba(249, 115, 22, 0.55);
  outline-offset: 1px;
  border-color: rgba(249, 115, 22, 0.55);
}

.mapa-qr-token-submit {
  width: 100%;
}

.mapa-qr-scan-status {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: #86efac;
}

.mapa-qr-scan-status.is-err {
  color: #fca5a5;
}

html[data-theme="light"] .mapa-qr-scan-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

html[data-theme="light"] .mapa-qr-token-input {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

html[data-theme="light"] .mapa-qr-token-label {
  color: #64748b;
}

html[data-theme="light"] .mapa-qr-scan-head strong {
  color: #0f172a;
}

html[data-theme="light"] .mapa-qr-scan-hint {
  color: #64748b;
}

html[data-theme="light"] .mapa-qr-scan-close {
  background: #f1f5f9;
  color: #0f172a;
}

/* Barra do carrinho — mobile: topo esquerdo, abaixo de Filtros/Listas (não cobre o sheet) */
.mapa-cart-bar {
  position: absolute;
  left: max(0.75rem, env(safe-area-inset-left));
  right: auto;
  top: calc(7.15rem + env(safe-area-inset-top, 0px));
  bottom: auto;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: max-content;
  max-width: min(52vw, 14rem);
  min-height: 0;
  padding: 0.4rem 0.55rem 0.4rem 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(249, 115, 22, 0.4);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(194, 65, 12, 0.96));
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.mapa-cart-bar[hidden] {
  display: none !important;
}

.mapa-cart-bar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  line-height: 1.15;
}

.mapa-cart-count {
  font-size: 0.68rem;
  font-weight: 650;
  opacity: 0.92;
}

.mapa-cart-total {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mapa-cart-cta {
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
  padding: 0.32rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.18);
}

/* Com sheet aberto no telemóvel: manter no chrome, nunca a meio do drawer */
.mapa-shell.has-panel .mapa-cart-bar,
.mapa-shell.has-panel.has-menu .mapa-cart-bar {
  top: calc(7.15rem + env(safe-area-inset-top, 0px));
  bottom: auto;
  left: max(0.75rem, env(safe-area-inset-left));
  right: auto;
}

.mapa-shell.has-cart .mapa-legend {
  max-width: min(48vw, 16rem);
}

.mapa-btn--danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}

.mapa-btn--danger:hover {
  background: rgba(239, 68, 68, 0.14);
}

.mapa-cart-toast {
  position: absolute;
  left: max(0.75rem, env(safe-area-inset-left));
  right: auto;
  top: calc(9.55rem + env(safe-area-inset-top, 0px));
  bottom: auto;
  z-index: 1250;
  transform: none;
  max-width: min(88vw, 16rem);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.mapa-cart-toast[hidden] {
  display: none !important;
}

.mapa-shell.has-cart .mapa-panel-body {
  padding-bottom: 4.75rem;
}

.mapa-attr a {
  color: #fdba74;
}

.mapa-attr {
  margin-top: 0.85rem;
  margin-bottom: 0;
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.35;
}

.mapa-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.85rem 0 0.55rem;
}

.mapa-photo {
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111827;
  cursor: zoom-in;
}

.mapa-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.mapa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  padding: 1rem;
}

.mapa-lightbox[hidden] {
  display: none !important;
}

body.mapa-lb-open {
  overflow: hidden;
}

.mapa-lb-img {
  max-width: min(92vw, 960px);
  max-height: min(82dvh, 860px);
  border-radius: 0.75rem;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  user-select: none;
}

.mapa-lb-close {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.85rem, env(safe-area-inset-right));
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 17, 23, 0.85);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.mapa-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(13, 17, 23, 0.82);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.mapa-lb-prev {
  left: max(0.6rem, env(safe-area-inset-left));
}

.mapa-lb-next {
  right: max(0.6rem, env(safe-area-inset-right));
}

.mapa-lb-counter {
  position: absolute;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.85);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
}

.mapa-visit-lb {
  position: fixed;
  inset: 0;
  z-index: 4100;
  display: flex;
  flex-direction: column;
  background: #05070b;
}

.mapa-visit-lb[hidden] {
  display: none !important;
}

body.mapa-visit-open {
  overflow: hidden;
}

.mapa-visit-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-shrink: 0;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1117;
}

.mapa-visit-heading {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.1rem;
}

.mapa-visit-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f97316;
}

.mapa-visit-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapa-visit-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.mapa-visit-ext {
  display: inline-flex;
  align-items: center;
  height: 2.35rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.04);
}

.mapa-visit-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  min-height: 2.35rem;
  padding: 0 0.9rem 0 0.7rem;
  border-radius: 999px;
  border: 1px solid #ea580c;
  background: linear-gradient(145deg, #f97316, #ea580c);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.mapa-visit-close:hover,
.mapa-visit-close:focus-visible {
  filter: brightness(1.06);
  outline: none;
}

.mapa-visit-close-x {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}

.mapa-visit-close-label {
  white-space: nowrap;
}

.mapa-visit-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  background: #0a0b0f;
}

@media (max-width: 520px) {
  .mapa-visit-ext {
    display: none;
  }

  .mapa-visit-close {
    padding: 0 0.75rem 0 0.55rem;
    font-size: 0.78rem;
  }
}

/* Marcação temporária — sugerir restaurante inexistente
   O ponto (0,0) do icon = centro do .mapa-suggest-pin-dot = latlng do clique.
   O card flutua acima do ponto. */
.mapa-suggest-pin-wrap,
.leaflet-div-icon.mapa-suggest-pin-wrap {
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}

.mapa-suggest-pin {
  position: relative;
  width: 0;
  height: 0;
  pointer-events: auto;
}

.mapa-suggest-pin-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  border-radius: 999px;
  background: #f97316;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.45);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.mapa-suggest-pin-card {
  position: absolute;
  left: 0;
  bottom: 0.85rem;
  min-width: 11.5rem;
  max-width: 14rem;
  padding: 0.65rem 0.75rem 0.7rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  color: #0f172a;
  text-align: center;
  transform: translateX(-50%);
  z-index: 1;
}

.mapa-suggest-pin-card strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}

.mapa-suggest-pin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  min-height: 2.35rem;
  border: 0;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.mapa-suggest-pin-dismiss {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

html[data-theme="dark"] .mapa-suggest-pin-card {
  background: #0d1117;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

html[data-theme="dark"] .mapa-suggest-pin-dismiss {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.mapa-suggest-panel {
  width: min(100%, 26rem);
  max-height: min(92dvh, 42rem);
  overflow: hidden;
}

.mapa-suggest-panel .mapa-auth-form {
  overflow-y: auto;
  max-height: calc(min(92dvh, 42rem) - 5.5rem);
  padding-bottom: 0.5rem;
}

.mapa-suggest-role {
  margin: 0;
  padding: 0;
  border: 0;
}

.mapa-suggest-role-legend {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.mapa-suggest-role-seg {
  margin: 0;
}

.mapa-suggest-hint {
  font-weight: 500;
  color: #64748b;
}

.mapa-suggest-hours {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mapa-suggest-hours-head {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.mapa-suggest-hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mapa-suggest-hours-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1fr) auto auto auto;
  gap: 0.35rem;
  align-items: center;
}

.mapa-suggest-hours-row.is-closed {
  opacity: 0.55;
}

.mapa-suggest-hours-day {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
}

.mapa-suggest-hours-from,
.mapa-suggest-hours-to {
  height: 2.1rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  padding: 0 0.4rem;
  font: inherit;
  font-size: 0.78rem;
}

.mapa-suggest-hours-sep {
  color: #64748b;
  font-size: 0.75rem;
}

.mapa-suggest-file {
  height: auto !important;
  min-height: 2.55rem;
  padding: 0.45rem 0.55rem !important;
  font-size: 0.78rem;
}

html[data-theme="light"] .mapa-suggest-hours-day,
html[data-theme="light"] .mapa-suggest-hours-head,
html[data-theme="light"] .mapa-suggest-role-legend {
  color: #0f172a;
}

html[data-theme="light"] .mapa-suggest-hours-from,
html[data-theme="light"] .mapa-suggest-hours-to {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.mapa-suggest-notes {
  height: auto !important;
  min-height: 4.5rem;
  padding: 0.65rem 0.85rem !important;
  resize: vertical;
  line-height: 1.4;
}

.mapa-suggest-coords {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.mapa-visit-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #111827;
}

.mapa-visit-hint {
  position: absolute;
  left: 50%;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.75rem;
  pointer-events: none;
  white-space: nowrap;
}

.mapa-ta-rating {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: #fbbf24;
}

.mapa-reviews {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.mapa-review {
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.mapa-review-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

.mapa-review-title {
  font-size: 0.84rem;
  font-weight: 650;
  margin-bottom: 0.2rem;
}

.mapa-review p {
  margin: 0;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.45;
}

@keyframes mapa-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Mobile: bottom sheet */
@media (max-width: 859px) {
  .mapa-panel {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(72dvh, 560px);
    border-radius: 1.25rem 1.25rem 0 0;
    border-bottom: none;
    transform: translateY(110%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.28s ease;
  }

  .mapa-panel.is-open {
    transform: translateY(0);
  }

  .mapa-panel.is-open.is-menu,
  .mapa-panel.is-open.is-reviews,
  .mapa-panel.is-open.is-cart {
    max-height: min(92dvh, 820px);
  }

  .mapa-panel-handle {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0.55rem auto 0.15rem;
  }

  .mapa-legend {
    bottom: calc(0.85rem + env(safe-area-inset-bottom));
  }

  .mapa-shell.has-panel .mapa-legend,
  .mapa-shell.has-panel .mapa-status,
  .mapa-shell.has-panel .mapa-coords,
  .mapa-shell.has-panel .mapa-route-hud {
    opacity: 0;
    pointer-events: none;
  }
}

/* Desktop: side panel */
.mapa-cuisine-drawer,
.mapa-auth-drawer {
  position: absolute;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  padding: 0.85rem;
}

.mapa-cuisine-drawer[hidden],
.mapa-auth-drawer[hidden] {
  display: none !important;
}

.mapa-auth-drawer {
  z-index: 1400;
  align-items: center;
}

.mapa-auth-panel {
  position: relative;
  width: min(100%, 22.5rem);
  display: flex;
  flex-direction: column;
  border-radius: 1.15rem;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  padding: 0 0 1rem;
}

.mapa-auth-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.35rem;
}

/* X dos drawers/modais (auth, indicar, conta) — não herdar absolute do painel do pin */
.mapa-auth-head .mapa-panel-close,
.mapa-cuisine-drawer-head .mapa-panel-close {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
}

.mapa-auth-head h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.mapa-auth-sub {
  margin: 0 1rem 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.45;
}

.mapa-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0 1rem 0.85rem;
  padding: 0.25rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.mapa-auth-tab {
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 0.5rem;
  cursor: pointer;
}

.mapa-auth-tab.is-active {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
}

.mapa-auth-err {
  margin: 0 1rem 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  font-size: 0.82rem;
}

.mapa-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0 1rem;
}

.mapa-auth-form[hidden] {
  display: none !important;
}

.mapa-auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.mapa-auth-input {
  height: 2.55rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  padding: 0 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}

.mapa-auth-input:focus {
  border-color: rgba(249, 115, 22, 0.55);
}

.mapa-auth-submit {
  margin-top: 0.25rem;
  height: 2.65rem;
  border: 0;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.mapa-auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.mapa-auth-foot {
  margin: 0.9rem 1rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.mapa-auth-foot a {
  color: #fb923c;
  font-weight: 700;
  text-decoration: none;
}

.mapa-account-summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 1rem 1rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mapa-account-summary-avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.mapa-account-summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mapa-account-summary-text strong {
  font-size: 0.98rem;
  color: #f8fafc;
}

.mapa-account-summary-text span {
  font-size: 0.8rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mapa-account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 1rem 0.25rem;
}

.mapa-account-action,
.mapa-account-logout {
  height: 2.55rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.mapa-account-action:active,
.mapa-account-logout:active {
  transform: scale(0.98);
}

.mapa-account-logout {
  margin-top: 0.35rem;
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}

.mapa-account-vendor-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0.15rem 0 0.1rem;
}

.mapa-account-vendor-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9a3412;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.mapa-account-vendor-link {
  font-size: 0.8rem;
  font-weight: 650;
  color: #fb923c;
  text-decoration: none;
}

.mapa-account-vendor-link:hover {
  text-decoration: underline;
}

.mapa-account-credits {
  margin: 0;
  font-size: 0.82rem;
  color: #fdba74;
  font-weight: 700;
}

.mapa-indicate-panel {
  width: min(100%, 26rem);
}

.mapa-indicate-body {
  padding: 0 0 0.35rem;
  max-height: min(78vh, 40rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mapa-indicate-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.15rem 0 0.35rem;
}

.mapa-indicate-lead {
  margin-bottom: 0 !important;
}

.mapa-indicate-body .mapa-auth-label,
.mapa-indicate-msg-label {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.mapa-indicate-card {
  margin: 0 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.mapa-indicate-card-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.mapa-indicate-card-sub {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #94a3b8;
}

.mapa-indicate-card-sub strong {
  color: #e2e8f0;
  font-weight: 700;
}

.mapa-indicate-contacts {
  gap: 0.55rem;
}

.mapa-indicate-msg {
  height: auto !important;
  min-height: 8rem;
  padding: 0.75rem 0.85rem !important;
  resize: vertical;
  line-height: 1.5;
  border-radius: 0.8rem !important;
  font-size: 0.86rem !important;
}

.mapa-indicate-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0 1rem;
  margin: 0;
}

.mapa-indicate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  transition:
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1),
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.mapa-indicate-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.28);
}

.mapa-indicate-btn:hover,
.mapa-indicate-btn:focus-visible {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74;
  outline: none;
}

.mapa-indicate-btn--primary:hover,
.mapa-indicate-btn--primary:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #fff;
}

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

.mapa-indicate-link,
.mapa-indicate-linkchip {
  margin: 0 1rem;
}

.mapa-indicate-link {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
  word-break: break-all;
}

.mapa-indicate-link a {
  color: #fb923c;
  font-weight: 600;
  text-decoration: none;
}

.mapa-indicate-link a:hover {
  text-decoration: underline;
}

.mapa-indicate-linkchip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.mapa-indicate-linkchip-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.mapa-indicate-linkchip-url {
  color: #fb923c;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-all;
  text-decoration: none;
}

.mapa-indicate-linkchip-url:hover {
  text-decoration: underline;
}

.mapa-indicate-hint-card {
  margin: 0 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(249, 115, 22, 0.22);
  background: rgba(249, 115, 22, 0.08);
}

.mapa-indicate-hint-card .mapa-indicate-hint {
  margin: 0;
}

.mapa-indicate-hint-card .mapa-indicate-hint + .mapa-indicate-hint {
  margin-top: 0.55rem;
}

.mapa-indicate-mode-info {
  min-height: 4.5rem;
}

.mapa-indicate-body .mapa-claim-linkish {
  margin: 0.15rem 1rem 0;
  align-self: flex-start;
}

.mapa-link-lista--favs {
  color: #fda4af;
}

.mapa-rate-form {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mapa-rate-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mapa-rate-star {
  font-size: 0.82rem;
  color: #fdba74;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.mapa-ref-item {
  cursor: default;
}

html[data-theme="light"] .mapa-account-summary {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .mapa-account-summary-text strong {
  color: #0f172a;
}

html[data-theme="light"] .mapa-account-action {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

html[data-theme="light"] .mapa-account-vendor-badge {
  color: #9a3412;
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.28);
}

html[data-theme="light"] .mapa-account-vendor-link {
  color: #ea580c;
}

html[data-theme="light"] .mapa-rate-form {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .mapa-auth-panel {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  color: #000;
}

/* Tema claro: texto SEMPRE preto legível (nunca cinza/lavanda em fundo branco) */
html[data-theme="light"] .mapa-auth-sub,
html[data-theme="light"] .mapa-auth-label,
html[data-theme="light"] .mapa-auth-foot,
html[data-theme="light"] .mapa-account-summary-text span,
html[data-theme="light"] .mapa-account-vendor-status,
html[data-theme="light"] .mapa-account-vendor,
html[data-theme="light"] .mapa-indicate-hint,
html[data-theme="light"] .mapa-indicate-vendor-list,
html[data-theme="light"] .mapa-indicate-link,
html[data-theme="light"] .mapa-indicate-linkchip-label,
html[data-theme="light"] .mapa-indicate-card-title,
html[data-theme="light"] .mapa-indicate-card-sub,
html[data-theme="light"] .mapa-indicate-card-sub strong,
html[data-theme="light"] .mapa-indicate-contacts li,
html[data-theme="light"] .mapa-indicate-msg-label,
html[data-theme="light"] .mapa-indicate-seg-btn,
html[data-theme="light"] .mapa-claim-sub,
html[data-theme="light"] .mapa-claim-linkish,
html[data-theme="light"] .mapa-claim-note,
html[data-theme="light"] .mapa-claim-success {
  color: #0f172a;
}

html[data-theme="light"] .mapa-auth-sub strong,
html[data-theme="light"] .mapa-indicate-hint strong,
html[data-theme="light"] .mapa-indicate-vendor-list strong {
  color: #000;
  font-weight: 800;
}

html[data-theme="light"] .mapa-auth-tabs {
  background: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .mapa-auth-tab {
  color: #000;
}

html[data-theme="light"] .mapa-auth-tab.is-active {
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
}

html[data-theme="light"] .mapa-auth-input {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
  color: #000;
}

html[data-theme="light"] .mapa-auth-foot a {
  color: #c2410c;
}

html[data-theme="light"] .mapa-indicate-seg {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .mapa-indicate-seg-btn {
  background: transparent;
  border-color: transparent;
  color: #0f172a;
}

html[data-theme="light"] .mapa-indicate-seg-btn:hover:not(.is-active),
html[data-theme="light"] .mapa-indicate-seg-btn:focus-visible:not(.is-active) {
  background: rgba(249, 115, 22, 0.1);
  color: #0f172a;
}

html[data-theme="light"] .mapa-indicate-seg-btn.is-active {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.28);
}

html[data-theme="light"] .mapa-indicate-seg-btn.is-active:hover,
html[data-theme="light"] .mapa-indicate-seg-btn.is-active:focus-visible {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
}

html[data-theme="light"] .mapa-indicate-hint--banner,
html[data-theme="light"] .mapa-indicate-hint-card {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(194, 65, 12, 0.28);
  color: #0f172a;
}

html[data-theme="light"] .mapa-indicate-hint--muted {
  color: #0f172a;
  opacity: 0.72;
}

html[data-theme="light"] .mapa-indicate-vendor-box,
html[data-theme="light"] .mapa-indicate-card,
html[data-theme="light"] .mapa-indicate-linkchip {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .mapa-indicate-btn {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.16);
  color: #0f172a;
}

html[data-theme="light"] .mapa-indicate-btn:hover,
html[data-theme="light"] .mapa-indicate-btn:focus-visible {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(194, 65, 12, 0.35);
  color: #0f172a;
}

html[data-theme="light"] .mapa-indicate-btn--primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-color: transparent;
  color: #fff;
}

html[data-theme="light"] .mapa-indicate-btn--primary:hover,
html[data-theme="light"] .mapa-indicate-btn--primary:focus-visible {
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #fff;
}

html[data-theme="light"] .mapa-indicate-link a,
html[data-theme="light"] .mapa-indicate-linkchip-url {
  color: #c2410c;
}

html[data-theme="light"] .mapa-indicate-contacts a {
  color: #c2410c;
  font-weight: 700;
}

html[data-theme="light"] .mapa-link-lista--favs {
  color: #e11d48;
}

.mapa-cuisine-drawer-panel {
  position: relative;
  width: min(100%, 26rem);
  max-height: min(72dvh, 34rem);
  display: flex;
  flex-direction: column;
  border-radius: 1.15rem;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.mapa-cuisine-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.55rem;
}

.mapa-cuisine-drawer-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.mapa-cuisine-search {
  margin: 0 1rem 0.65rem;
  height: 2.45rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  padding: 0 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.mapa-cuisine-list {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 0.55rem 0.85rem;
  display: grid;
  gap: 0.25rem;
}

.mapa-cuisine-option {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #e2e8f0;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.mapa-cuisine-option:hover,
.mapa-cuisine-option.is-active {
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
}

.mapa-lista-sort {
  display: flex;
  gap: 0.4rem;
  padding: 0 1rem 0.55rem;
}

.mapa-lista-sort-btn {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.mapa-lista-sort-btn.is-active {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.45);
  color: #fdba74;
}

.mapa-lista-hint {
  margin: 0 1rem 0.55rem;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}

.mapa-lista-list {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 0.55rem 0.85rem;
  display: grid;
  gap: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.mapa-lista-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.28rem 0.75rem;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  padding: 0.75rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.mapa-lista-item:hover,
.mapa-lista-item:focus-visible {
  background: rgba(249, 115, 22, 0.14);
  outline: none;
}

.mapa-lista-item-name {
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.mapa-lista-item-rating {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.1rem;
}

.mapa-lista-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  font-size: 0.78rem;
  line-height: 1;
  color: #fbbf24;
}

.mapa-lista-stars-score {
  font-weight: 750;
  color: #f8fafc;
  margin-right: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.mapa-star.is-empty {
  color: rgba(148, 163, 184, 0.35);
}

.mapa-star.is-half {
  opacity: 0.65;
}

.mapa-lista-stars--empty {
  color: #64748b;
  font-weight: 600;
}

.mapa-lista-item-reviews {
  font-size: 0.72rem;
  color: #94a3b8;
}

.mapa-lista-item-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.mapa-lista-item-cuisine {
  color: #fdba74;
  font-weight: 600;
}

.mapa-lista-item-dist {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
}

.mapa-lista-empty {
  margin: 0.5rem 0.75rem 1rem;
  padding: 1rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.mapa-lista-drawer-panel {
  max-height: min(78dvh, 38rem);
}

@media (min-width: 860px) {
  .mapa-cuisine-drawer {
    align-items: center;
  }

  .mapa-panel {
    top: calc(7.2rem + env(safe-area-inset-top));
    right: 0.85rem;
    bottom: 0.85rem;
    width: min(24.5rem, calc(100vw - 2rem));
    border-radius: 1.25rem;
    transform: translateX(110%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mapa-panel.is-open {
    transform: translateX(0);
  }

  .mapa-panel-body {
    padding-top: 1.15rem;
  }

  /* Desktop: pill compacta à direita (painel lateral) */
  .mapa-cart-bar {
    left: auto;
    right: 0.85rem;
    top: auto;
    bottom: calc(0.85rem + env(safe-area-inset-bottom));
    padding: 0.38rem 0.5rem 0.38rem 0.6rem;
  }

  .mapa-shell.has-panel .mapa-cart-bar,
  .mapa-shell.has-panel.has-menu .mapa-cart-bar {
    left: auto;
    right: calc(min(24.5rem, calc(100vw - 2rem)) + 1.1rem);
    top: auto;
    width: max-content;
    max-width: min(16rem, calc(100vw - 28rem));
    bottom: calc(0.85rem + env(safe-area-inset-bottom));
  }

  .mapa-cart-toast {
    left: auto;
    right: 0.85rem;
    top: auto;
    bottom: calc(3.35rem + env(safe-area-inset-bottom));
  }

  .mapa-nav-map .maplibregl-ctrl-top-left {
    right: 1rem;
  }
}

html[data-theme="light"] .mapa-page {
  background: #f4f5f7;
  color: #0f172a;
}

html[data-theme="light"] .mapa-brand,
html[data-theme="light"] .mapa-search,
html[data-theme="light"] .mapa-suggest,
html[data-theme="light"] .mapa-recenter,
html[data-theme="light"] .mapa-chip,
html[data-theme="light"] .mapa-link-lista,
html[data-theme="light"] .mapa-account-btn,
html[data-theme="light"] .mapa-status,
html[data-theme="light"] .mapa-legend,
html[data-theme="light"] .mapa-coords,
html[data-theme="light"] .mapa-icon-btn,
html[data-theme="light"] .mapa-cuisine-drawer-panel,
html[data-theme="light"] .mapa-cuisine-search {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.1);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="light"] .mapa-account-btn.is-logged {
  background: linear-gradient(135deg, #f97316, #f43f5e);
  color: #fff;
  border-color: rgba(249, 115, 22, 0.45);
}

html[data-theme="light"] .mapa-fav-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #64748b;
}

html[data-theme="light"] .mapa-fav-btn.is-fav {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.28);
}

html[data-theme="light"] .mapa-lista-hint,
html[data-theme="light"] .mapa-lista-item-meta,
html[data-theme="light"] .mapa-lista-item-reviews {
  color: #1e293b;
}

html[data-theme="light"] .mapa-lista-sort-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #64748b;
}

html[data-theme="light"] .mapa-lista-sort-btn.is-active {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.4);
  color: #c2410c;
}

html[data-theme="light"] .mapa-lista-item {
  background: rgba(15, 23, 42, 0.03);
  color: #0f172a;
}

html[data-theme="light"] .mapa-lista-item:hover,
html[data-theme="light"] .mapa-lista-item:focus-visible {
  background: rgba(249, 115, 22, 0.12);
}

html[data-theme="light"] .mapa-lista-item-dist,
html[data-theme="light"] .mapa-lista-stars-score {
  color: #0f172a;
}

html[data-theme="light"] .mapa-lista-empty {
  background: rgba(15, 23, 42, 0.04);
  color: #64748b;
}

html[data-theme="light"] .mapa-coords {
  color: #64748b;
}

html[data-theme="light"] .mapa-search-clear {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

html[data-theme="light"] .mapa-cuisine-option {
  color: #0f172a;
}

html[data-theme="light"] .mapa-nav-map .maplibregl-ctrl-attrib {
  display: none !important;
}

html[data-theme="light"] .mapa-nav-map .maplibregl-ctrl-group {
  background: rgba(255, 255, 255, 0.94) !important;
}

html[data-theme="light"] .mapa-brand {
  color: #0f172a;
}

html[data-theme="light"] .mapa-search {
  color: #0f172a;
}

html[data-theme="light"] .mapa-search-ico {
  color: #64748b;
}

/* Sugestões: no light o item tinha color claro (#e2e8f0) herdado do dark — ilegível no peach/branco */
html[data-theme="light"] .mapa-suggest {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .mapa-suggest-group {
  color: #64748b;
}

html[data-theme="light"] .mapa-suggest-item {
  color: #0f172a;
  background: transparent;
}

html[data-theme="light"] .mapa-suggest-item:hover,
html[data-theme="light"] .mapa-suggest-item.is-active {
  background: rgba(249, 115, 22, 0.12);
  color: #0f172a;
}

html[data-theme="light"] .mapa-suggest-title {
  color: #0f172a;
}

html[data-theme="light"] .mapa-suggest-sub {
  color: #475569;
}

html[data-theme="light"] .mapa-suggest-ico--place {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

html[data-theme="light"] .mapa-chip {
  color: #1e293b;
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="light"] .mapa-chip--more {
  color: #c2410c;
}

html[data-theme="light"] .mapa-chip.is-active {
  background: #f97316;
  color: #fff;
  border-color: #f97316;
}

html[data-theme="light"] .mapa-legend {
  color: #334155;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .mapa-status {
  color: #334155;
}

html[data-theme="light"] .mapa-load-progress-track {
  background: rgba(15, 23, 42, 0.1);
  box-shadow: none;
}

html[data-theme="light"] .mapa-load-progress-label {
  color: #334155;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .mapa-panel {
  background: #fff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .mapa-panel-body,
html[data-theme="light"] .mapa-cuisine-list,
html[data-theme="light"] .mapa-cuisine-drawer-panel {
  scrollbar-color: rgba(100, 116, 139, 0.4) transparent;
}

html[data-theme="light"] .mapa-panel-body::-webkit-scrollbar-thumb,
html[data-theme="light"] .mapa-cuisine-list::-webkit-scrollbar-thumb,
html[data-theme="light"] .mapa-cuisine-drawer-panel::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.38);
}

html[data-theme="light"] .mapa-menu-embed-title,
html[data-theme="light"] .mapa-menu-sec-title,
html[data-theme="light"] .mapa-qty-num,
html[data-theme="light"] .mapa-cart-line-copy strong {
  color: #0f172a;
}

/* Dia: fundo preto + texto dourado (sombra alinhada ao pin compacto) */
html[data-theme="light"] .mapa-pin-name--mesaup {
  color: #ffb800;
  -webkit-text-stroke: 0;
  paint-order: normal;
  border: 0;
  background: #1a1d23;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

html[data-theme="light"] .mapa-qty {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .mapa-qty-btn {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

html[data-theme="light"] .mapa-cart-toast {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .mapa-inline-back {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

html[data-theme="light"] .mapa-inline-heading span,
html[data-theme="light"] .mapa-menu-desc,
html[data-theme="light"] .mapa-inline-loading {
  color: #64748b;
}

html[data-theme="light"] .mapa-menu-item {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .mapa-menu-name {
  color: #0f172a;
}

html[data-theme="light"] .mapa-menu-thumb {
  background: #f1f5f9;
}

html[data-theme="light"] .mapa-menu-price {
  color: #ea580c;
}

html[data-theme="light"] .mapa-panel-meta,
html[data-theme="light"] .mapa-desc,
html[data-theme="light"] .mapa-attr {
  color: #475569;
}

html[data-theme="light"] .mapa-desc--nomatch {
  color: #334155;
}

html[data-theme="light"] .mapa-toolbar-label {
  color: #0f172a;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.65);
}

html[data-theme="light"] .mapa-google-search {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #1e293b;
}

html[data-theme="light"] .mapa-google-search:hover {
  background: rgba(66, 133, 244, 0.1);
  border-color: rgba(66, 133, 244, 0.4);
  color: #1e293b;
}

html[data-theme="light"] .mapa-chip--lista.mapa-link-lista--favs {
  color: #e11d48;
}

html[data-theme="light"] .mapa-info-list li {
  color: #334155;
}

html[data-theme="light"] .mapa-hours-fallback {
  color: #334155;
}

html[data-theme="light"] .mapa-hours-toggle:hover {
  color: #0f172a;
}

html[data-theme="light"] .mapa-hours-status {
  color: #0f172a;
}

html[data-theme="light"] .mapa-hours-status.is-open {
  color: #ea580c;
}

html[data-theme="light"] .mapa-hours-status.is-closed {
  color: #dc2626;
}

html[data-theme="light"] .mapa-hours-until {
  color: #64748b;
}

html[data-theme="light"] .mapa-hours-chevron {
  color: #94a3b8;
}

html[data-theme="light"] .mapa-hours-row {
  color: #64748b;
}

html[data-theme="light"] .mapa-hours-time.is-closed {
  color: #dc2626;
}

html[data-theme="light"] .mapa-hours-row.is-today {
  color: #0f172a;
}

html[data-theme="light"] .mapa-hours-row.is-today .mapa-hours-day,
html[data-theme="light"] .mapa-hours-row.is-today .mapa-hours-time {
  color: #0f172a;
}

html[data-theme="light"] .mapa-hours-row.is-today .mapa-hours-time.is-closed {
  color: #dc2626;
}

html[data-theme="light"] .mapa-btn {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .mapa-btn--primary {
  background: linear-gradient(145deg, #f97316, #ea580c);
  color: #fff;
  border-color: transparent;
}

html[data-theme="light"] .mapa-btn--google {
  background: #4285f4;
  border-color: #3367d6;
  color: #fff;
}

html[data-theme="light"] .mapa-btn--tripadvisor {
  background: #34e0a1;
  border-color: #2bc48f;
  color: #0b1f17;
}

html[data-theme="light"] .mapa-routes-menu {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .mapa-routes-menu a,
html[data-theme="light"] .mapa-routes-menu button {
  color: #0f172a;
}

html[data-theme="light"] .mapa-routes-menu a:hover,
html[data-theme="light"] .mapa-routes-menu button:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

html[data-theme="light"] .mapa-routes-menu .mapa-routes-primary {
  color: #c2410c;
}

html[data-theme="light"] .mapa-route-hud {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(249, 115, 22, 0.4);
  color: #0f172a;
}

html[data-theme="light"] .mapa-route-hud-btn {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

html[data-theme="light"] .mapa-route-hud-btn--stop {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}

html[data-theme="light"] .mapa-nav-instr {
  background: #0a0c10;
  color: #f8fafc;
}

html[data-theme="light"] .mapa-panel-close {
  background: #f1f5f9;
  color: #0f172a;
}

/* Claim modal (reivindicar pré-cadastro) */
.mapa-claim-drawer {
  position: absolute;
  inset: 0;
  z-index: 1450;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  padding: 0.85rem;
}

.mapa-claim-drawer[hidden] {
  display: none !important;
}

.mapa-claim-panel {
  width: min(100%, 24rem);
  max-height: min(92vh, 40rem);
  display: flex;
  flex-direction: column;
  border-radius: 1.15rem;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  padding: 0 0 1rem;
}

.mapa-claim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.35rem;
}

.mapa-claim-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.mapa-claim-referrer {
  margin: 0 0 .35rem;
  padding: .45rem .65rem;
  border-radius: .55rem;
  background: rgba(249, 115, 22, .12);
  border: 1px solid rgba(249, 115, 22, .28);
  color: #fdba74;
  font-size: .86rem;
  font-weight: 600;
}
.mapa-claim-referrer strong {
  color: #fff;
  font-weight: 800;
}
.mapa-claim-fast {
  margin: 0 0 .65rem;
  padding: .45rem .65rem;
  border-radius: .55rem;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .28);
  color: #86efac;
  font-size: .82rem;
  line-height: 1.4;
}
.mapa-indicate-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin: 0 1rem;
  padding: 0.25rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}
.mapa-indicate-seg-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  border-radius: 0.7rem;
  padding: 0.72rem 0.55rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1),
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}
.mapa-indicate-seg-btn:hover:not(.is-active),
.mapa-indicate-seg-btn:focus-visible:not(.is-active) {
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74;
  outline: none;
}
.mapa-indicate-seg-btn.is-active {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.32);
}
.mapa-indicate-seg-btn.is-active:hover,
.mapa-indicate-seg-btn.is-active:focus-visible {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  outline: none;
}
.mapa-indicate-seg-btn:active {
  transform: scale(0.97);
}
.mapa-indicate-hint {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
}
.mapa-indicate-hint--muted {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}
.mapa-indicate-hint--banner {
  margin: 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.95rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.24);
  color: #fdba74;
}
.mapa-indicate-vendor-box {
  margin: 0 1rem;
  padding: 0.9rem 0.95rem;
  border-radius: 0.95rem;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.mapa-indicate-vendor-box .mapa-indicate-hint {
  margin: 0;
}
.mapa-indicate-vendor-box .mapa-indicate-btn {
  margin-top: 0.25rem;
}
.mapa-indicate-vendor-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #e2e8f0;
  font-size: 0.84rem;
  line-height: 1.5;
}
.mapa-indicate-vendor-list li + li {
  margin-top: 0.35rem;
}
.mapa-claim-sub {
  margin: 0 1rem 0.65rem;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.45;
}

.mapa-claim-err {
  margin: 0 1rem 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  font-size: 0.82rem;
}

.mapa-claim-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0 1rem;
  overflow: auto;
}

.mapa-claim-step {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mapa-claim-step[hidden] {
  display: none !important;
}

.mapa-claim-note {
  margin: 0;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.mapa-claim-channels {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mapa-claim-channel-btn {
  margin-top: 0;
}

.mapa-claim-linkish {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.35rem 0;
  text-align: left;
}

.mapa-claim-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  border-radius: 0.75rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
}

.mapa-claim-file {
  height: auto;
  padding: 0.55rem 0.65rem;
}

.mapa-claim-success {
  margin: 0;
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.5;
}

#mapaClaimDoneLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

html[data-theme="light"] .mapa-claim-panel {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  color: #000;
}

html[data-theme="light"] .mapa-claim-fast {
  color: #166534;
}

body.mapa-claim-open {
  overflow: hidden;
}

/* ── Reservas / planta pública ───────────────────────── */
.mapa-cuisine-drawer-panel.mapa-reservas-panel,
.mapa-reservas-panel {
  width: min(100%, 26rem);
  max-width: min(100vw - 1.2rem, 26rem);
  max-height: min(94dvh, 44rem);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto; /* mobile: sheet pode precisar de scroll para o form */
}

@media (min-width: 720px) {
  .mapa-cuisine-drawer-panel.mapa-reservas-panel,
  .mapa-reservas-panel {
    width: min(90vw, 52rem);
    max-width: min(90vw, 52rem);
    max-height: min(88dvh, 42rem);
    overflow-y: hidden; /* desktop: cabe sem scrollbar artificial */
  }
}

@media (min-width: 1100px) {
  .mapa-cuisine-drawer-panel.mapa-reservas-panel,
  .mapa-reservas-panel {
    width: min(88vw, 56rem);
    max-width: min(88vw, 56rem);
    max-height: min(86dvh, 44rem);
  }
}

.mapa-reservas-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0 1rem 0.55rem;
  font-size: 0.72rem;
  color: #94a3b8;
}

.mapa-reservas-leg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mapa-reservas-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
  background: #64748b;
}
.mapa-reservas-dot.is-free { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.45); }
.mapa-reservas-dot.is-reserved { background: #3b82f6; box-shadow: 0 0 6px rgba(59, 130, 246, 0.45); }
.mapa-reservas-dot.is-busy { background: #f97316; box-shadow: 0 0 6px rgba(249, 115, 22, 0.45); }

.mapa-reservas-floors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1rem 0.55rem;
}

.mapa-reservas-stage-wrap {
  flex: 1 1 auto;
  min-height: 11rem;
  height: min(40vh, 18rem);
  max-height: min(44vh, 20rem);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.75rem 0.55rem;
  padding: 0.45rem;
  box-sizing: border-box;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(249, 115, 22, 0.1), transparent 55%),
    #0a0e14;
}

@media (min-width: 720px) {
  .mapa-reservas-stage-wrap {
    min-height: 14rem;
    height: min(38vh, 24rem);
    max-height: min(40vh, 26rem);
    padding: 0.55rem;
  }
}

.mapa-reservas-stage {
  position: relative;
  margin: 0 auto;
  flex-shrink: 0;
  overflow: visible;
  border-radius: 0.55rem;
  max-width: 100%;
  max-height: 100%;
}
.mapa-reservas-stage.has-plant {
  box-shadow:
    inset 0 0 0 2px #b77d59,
    inset 0 0 0 4px #dfa878,
    0 6px 18px rgba(0, 0, 0, 0.28);
}

.mapa-reservas-floor-base,
.mapa-reservas-floor-patch {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  box-sizing: border-box;
}
.mapa-reservas-floor-patch {
  inset: auto;
  border: 1px solid rgba(120, 70, 40, 0.18);
}
.mapa-reservas-floor-base.pattern-wood,
.mapa-reservas-floor-patch.pattern-wood {
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(120, 70, 40, 0.14) 0,
      rgba(120, 70, 40, 0.14) 1px,
      transparent 1px,
      transparent 14px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 40%, rgba(140, 80, 40, 0.08));
}
.mapa-reservas-floor-base.pattern-tile,
.mapa-reservas-floor-patch.pattern-tile {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 14px 14px;
}
.mapa-reservas-floor-base.pattern-concrete,
.mapa-reservas-floor-patch.pattern-concrete {
  background-image: radial-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 7px 7px;
}
.mapa-reservas-floor-base.pattern-solid,
.mapa-reservas-floor-patch.pattern-solid {
  background-image:
    linear-gradient(rgba(120, 70, 40, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 70, 40, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
  background-size: 16px 16px, 16px 16px, 100% 100%;
}

.mapa-reservas-zone {
  position: absolute;
  z-index: 1;
  border-radius: 10px;
  border: 1.5px dashed rgba(255, 255, 255, 0.45);
  box-sizing: border-box;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mapa-reservas-zone-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  line-height: 1;
}
.mapa-reservas-zone-ph {
  font-size: 1em;
  line-height: 1;
}

.mapa-reservas-wall {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  pointer-events: none;
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 5px rgba(60, 30, 15, 0.28);
}
.mapa-reservas-wall.orient-h {
  min-height: 6px;
  background-image: linear-gradient(180deg, #dfa878 0 30%, #b77d59 30% 100%);
}
.mapa-reservas-wall.orient-v {
  min-width: 6px;
  background-image: linear-gradient(90deg, #dfa878 0 30%, #b77d59 30% 100%);
}

.mapa-reservas-door {
  position: absolute;
  z-index: 3;
  box-sizing: border-box;
  pointer-events: none;
  border-radius: 4px;
  background: linear-gradient(180deg, #f5efe6, #e8d4b0);
  border: 1.5px solid #8b5e3c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b4423;
  box-shadow: 0 1px 4px rgba(60, 30, 15, 0.25);
}
.mapa-reservas-door-ph {
  font-size: 0.85em;
  line-height: 1;
}

.mapa-reservas-table {
  position: absolute;
  appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  box-sizing: border-box;
  transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
  font: inherit;
  line-height: 1;
  overflow: visible;
  z-index: 4;
  min-width: 32px;
  min-height: 32px;
  touch-action: manipulation;
}
@media (min-width: 720px) {
  .mapa-reservas-table {
    min-width: 37px;
    min-height: 37px;
  }
}
.mapa-reservas-table:hover:not(.is-blocked) {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.55);
}
.mapa-reservas-table.is-free:not(.is-cap-blocked) {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.1);
}
.mapa-reservas-table.is-cap-blocked {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  cursor: default;
  opacity: 0.72;
}
.mapa-reservas-table.is-reserved {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.12);
  cursor: default;
  opacity: 0.92;
}
.mapa-reservas-table.is-busy,
.mapa-reservas-table.is-entry {
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.12);
  cursor: default;
  opacity: 0.92;
}
.mapa-reservas-table.is-selected {
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.85), 0 8px 20px rgba(0, 0, 0, 0.35);
  border-color: #f97316;
  z-index: 5;
}
.mapa-reservas-table-n {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}
.mapa-reservas-table-cap {
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
  display: block;
}
.mapa-reservas-table-waiter {
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  transform: translateX(-50%);
  white-space: nowrap;
  max-width: 4.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 999px;
  padding: 0.12rem 0.35rem;
  line-height: 1.1;
  pointer-events: none;
  z-index: 6;
}
.mapa-reservas-waiter,
.mapa-reservas-slot {
  display: block;
  font-size: 0.78rem;
  color: #fbbf24;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 0.15rem;
}
.mapa-reservas-slot {
  color: #94a3b8;
  font-weight: 500;
}
.mapa-reservas-mine {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.28);
}
.mapa-reservas-mine-text {
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.4;
}
.mapa-reservas-checkin {
  width: 100%;
  justify-content: center;
  gap: 0.35rem;
}
.mapa-reservas-fields {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.55rem;
}

.mapa-reservas-detail {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(13, 17, 23, 0.96);
  flex: 0 0 auto;
  overflow: visible;
  max-height: none;
}
@media (max-width: 719px) {
  .mapa-reservas-detail {
    overflow: auto;
    max-height: min(36vh, 15rem);
  }
}
.mapa-reservas-detail-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mapa-reservas-detail-main strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.mapa-reservas-detail-main span {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}
.mapa-reservas-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}
.mapa-reservas-field input {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  font: 600 0.9rem/1.2 inherit;
}
.mapa-reservas-field input:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
}
.mapa-reservas-confirm {
  width: 100%;
  justify-content: center;
  gap: 0.4rem;
}
.mapa-reservas-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mapa-reservas-err {
  margin: 0;
  font-size: 0.78rem;
  color: #f87171;
  line-height: 1.35;
}

html[data-theme="light"] .mapa-reservas-stage-wrap {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(249, 115, 22, 0.08), transparent 55%),
    #f1ebe3;
  border-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .mapa-reservas-stage.has-plant {
  box-shadow:
    inset 0 0 0 2px #b77d59,
    inset 0 0 0 4px #dfa878,
    0 4px 14px rgba(80, 40, 20, 0.12);
}
html[data-theme="light"] .mapa-reservas-zone-ico {
  color: #fff;
}
html[data-theme="light"] .mapa-reservas-door {
  background: linear-gradient(180deg, #fff8ee, #e8d4b0);
  color: #6b4423;
}
html[data-theme="light"] .mapa-reservas-table {
  color: #0f172a;
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .mapa-reservas-table.is-free:not(.is-cap-blocked) {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(22, 163, 74, 0.4);
}
html[data-theme="light"] .mapa-reservas-table.is-cap-blocked {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(100, 116, 139, 0.35);
  color: #64748b;
}
html[data-theme="light"] .mapa-reservas-table.is-reserved {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(37, 99, 235, 0.4);
}
html[data-theme="light"] .mapa-reservas-table-cap,
html[data-theme="light"] .mapa-reservas-detail-main span,
html[data-theme="light"] .mapa-reservas-field {
  color: #64748b;
}
html[data-theme="light"] .mapa-reservas-table-waiter {
  color: #0f172a;
  background: #fff7ed;
  border-color: rgba(249, 115, 22, 0.4);
}
html[data-theme="light"] .mapa-reservas-waiter {
  color: #c2410c;
}
html[data-theme="light"] .mapa-reservas-mine {
  background: rgba(249, 115, 22, 0.08);
}
html[data-theme="light"] .mapa-reservas-mine-text {
  color: #0f172a;
}
html[data-theme="light"] .mapa-reservas-detail {
  background: #fff;
  border-top-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .mapa-reservas-field input {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}
html[data-theme="light"] .mapa-reservas-legend {
  color: #64748b;
}
