/* Guia Comercial Geolocalizado - Estilos FASE B */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg-light: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 8px));
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* Header Fixo */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

/* Slider Principal de Banners Destaque (Seção 10 do PDF) */
.hero-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 12px;
  padding-bottom: 4px;
}

.hero-slider::-webkit-scrollbar {
  display: none;
}

.hero-slide-item {
  flex: 0 0 90%;
  scroll-snap-align: center;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Card de Empresa (Seção 13 do PDF) */
.company-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.company-card:active {
  transform: scale(0.98);
}

/* Badges Status & Destaque (Seção 13 do PDF) */
.badge-open {
  background-color: #dcfce7;
  color: #15803d;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.badge-sponsored {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-featured {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}

/* Botões de Ação Rápida Mobile (Seção 15 do PDF) */
.action-btn-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.15s ease;
}

.action-btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
}

.action-btn-phone {
  background-color: #eff6ff;
  color: #2563eb;
}

.action-btn-route {
  background-color: #f1f5f9;
  color: #475569;
}

/* Bottom Navigation Bar Fixa */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding-top: 5px;
  padding-bottom: max(5px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  padding: 2px 0;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-item i, .nav-item svg {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Modal Bottom Sheet */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-bottom-sheet {
  background: var(--surface);
  width: 100%;
  max-width: 500px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 20px 16px max(20px, env(safe-area-inset-bottom)) 16px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-handle {
  width: 36px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin: 0 auto 14px auto;
}
