/* ==========================================================
   NatalGo - Design System Mobile (Clone Uber Minimalista)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --color-bg: #F6F6F6;
  --color-card: #FFFFFF;
  --color-text-main: #000000;
  --color-text-muted: #545454;
  --color-brand-green: #0E8345;
  --color-brand-blue: #276EF1;
  --color-brand-red: #E11900;
  --color-border: #EEEEEE;
}

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: #121212; /* Fundo escuro em volta no desktop para simular tela mobile */
  color: var(--color-text-main);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* Moldura do App Mobile no Desktop (Max 480px) */
.mobile-viewport {
  width: 100%;
  max-width: 480px;
  height: 100%;
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  background-color: var(--color-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 481px) {
  .mobile-viewport {
    height: 94dvh;
    margin-top: 3dvh;
    border-radius: 42px;
    border: 8px solid #222222;
  }
}

/* Estilos de Mapa Leaflet */
#map {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Remove controles poluídos do Leaflet */
.leaflet-control-zoom {
  display: none !important;
}
.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  padding: 2px 5px !important;
}

/* Marcador do Usuário com Pulso Uber */
.user-marker-container {
  position: relative;
  width: 28px;
  height: 28px;
}
.user-marker-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(39, 110, 241, 0.25);
  animation: pulse-ring 2s infinite ease-out;
}
.user-marker-dot {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background-color: #000000;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Marcador do Motorista (Carro Uber Clean) */
.car-marker {
  width: 38px;
  height: 38px;
  background-color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  border: 2px solid #FFFFFF;
  transition: transform 0.3s ease-out;
}

/* Marcador de Destino */
.dest-marker {
  width: 24px;
  height: 24px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  border: 2px solid #FFFFFF;
}

/* Bottom Sheet Estilo Uber */
.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #FFFFFF;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.35s ease;
  max-height: 85%;
  display: flex;
  flex-direction: column;
}

.bottom-sheet-handle {
  width: 44px;
  height: 5px;
  background: #E0E0E0;
  border-radius: 10px;
  margin: 10px auto 4px auto;
  cursor: grab;
}

/* Botão Flutuante de Voltar / Menu */
.floating-btn {
  position: absolute;
  top: 18px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.floating-btn:active {
  transform: scale(0.92);
  background-color: #F0F0F0;
}

/* Barra de Navegação Inferior (Bottom Nav) */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #FFFFFF;
  border-top: 1px solid #EEEEEE;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 25;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Barra de progresso circular/linha para contagem regressiva */
.countdown-progress {
  transition: stroke-dashoffset 1s linear;
}

/* Esconder barra de rolagem */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

