/**
 * ============================================================================
 * GO! VERMELHINHOS - App Shell & Mobile Navigation Drawer (Fase 8.5)
 * Cabeçalho mobile unificado com hambúrguer ☰, título central e logo GO!
 * Menu lateral (drawer) moderno, responsivo e com foco em alta usabilidade.
 * Elimina a barra inferior mobile (.bottom-nav) para ampliar a área útil.
 * ============================================================================
 */

:root {
  --app-bar-height: 64px;
  --drawer-width: 82%;
  --drawer-max-width: 340px;
  --color-navy: #0B132B;
  --color-navy-dark: #070D1E;
  --color-blue-action: #0284C7;
  --color-blue-action-hover: #0369A1;
  --color-red-primary: #D3131E;
  --color-text-drawer: #334155;
  --color-drawer-hover: #F8FAFC;
  --color-drawer-active-bg: #E0F2FE;
  --color-drawer-active-text: #0284C7;
}

/* ============================================================================
   1. APP BAR FIXO (CABECALHO SUPERIOR)
   ============================================================================ */
.go-app-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--app-bar-height);
  background: var(--color-navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  user-select: none;
}

/* Botão Hambúrguer ☰ */
.go-app-bar-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.1s ease;
  touch-action: manipulation;
  flex-shrink: 0;
}

.go-app-bar-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.go-app-bar-menu-btn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.2);
}

.go-app-bar-menu-icon {
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  pointer-events: none;
}

.go-app-bar-menu-icon span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Título Centralizado do App Bar */
.go-app-bar-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}

/* Logo GO! à Direita */
.go-app-bar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 44px;
  flex-shrink: 0;
  text-decoration: none;
}

.go-app-bar-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

/* ============================================================================
   2. NAVIGATION DRAWER (MENU LATERAL)
   ============================================================================ */
/* Backdrop / Overlay translúcido */
.go-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 43, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.26s;
}

.go-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Drawer Container */
.go-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--drawer-width);
  max-width: var(--drawer-max-width);
  background: #FFFFFF;
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  user-select: none;
}

.go-drawer.is-open {
  transform: translateX(0);
}

/* Cabeçalho do Drawer */
.go-drawer-header {
  background: linear-gradient(135deg, var(--color-navy) 0%, #172554 100%);
  color: #FFFFFF;
  padding: 24px 20px 20px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.go-drawer-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.go-drawer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: #FFFFFF;
  padding: 2px;
}

.go-drawer-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.go-drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.go-drawer-brand-group {
  display: flex;
  flex-direction: column;
}

.go-drawer-brand-name {
  font-family: var(--font-display, sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.go-drawer-brand-subtitle {
  font-size: 0.82rem;
  color: #94A3B8;
  font-weight: 500;
}

/* Lista de Navegação do Drawer */
.go-drawer-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.go-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  font-family: var(--font-body, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-drawer);
  text-decoration: none;
  min-height: 48px;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.go-drawer-item:hover {
  background: var(--color-drawer-hover);
  color: var(--color-navy);
}

.go-drawer-item:active {
  transform: scale(0.98);
}

.go-drawer-item.active {
  background: var(--color-drawer-active-bg);
  color: var(--color-drawer-active-text);
  font-weight: 700;
}

.go-drawer-item-icon {
  font-size: 1.2rem;
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.go-drawer-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 10px 8px;
}

/* Rodapé do Drawer */
.go-drawer-footer {
  padding: 16px 20px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  font-size: 0.76rem;
  color: #64748B;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Bloqueio de rolagem quando o menu estiver aberto */
body.drawer-open {
  overflow: hidden !important;
  touch-action: none !important;
}

/* ============================================================================
   3. DESATIVAÇÃO DA BARRA INFERIOR MOBILE (.bottom-nav)
   ============================================================================ */
.bottom-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  opacity: 0 !important;
}

/* ============================================================================
   4. AJUSTE DE ALTURA E ÁREA ÚTIL DO MAPA E SEÇÕES
   ============================================================================ */
.map-page-body {
  padding-top: var(--app-bar-height) !important;
  overflow: hidden;
}

.map-wrapper {
  position: absolute !important;
  top: var(--app-bar-height) !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: calc(100vh - var(--app-bar-height)) !important;
  padding-bottom: 0 !important;
}

#map {
  width: 100% !important;
  height: 100% !important;
}

/* Posicionamento do Seletor de Linha logo abaixo do App Bar */
.map-top-bar {
  top: 10px !important;
}

/* View Destino / Viagem ocupando a tela cheia abaixo do App Bar */
.trip-view-container {
  position: absolute !important;
  top: var(--app-bar-height) !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: calc(100vh - var(--app-bar-height)) !important;
  padding-bottom: 30px !important;
  overflow-y: auto !important;
}

/* Container de Horários */
.horarios-container {
  padding-top: calc(var(--app-bar-height) + 16px) !important;
  padding-bottom: 40px !important;
}

/* Container de Linha */
.linha-page-container {
  padding-top: calc(var(--app-bar-height) + 16px) !important;
  padding-bottom: 40px !important;
}

/* ============================================================================
   5. TELA PRINCIPAL (HOME) — REDESIGN FUNCIONAL GLASSMORPHISM (FASE 10.3.1)
   ============================================================================ */
.home-page-body {
  background-color: #070D1E;
  background-image: 
    linear-gradient(180deg, 
      rgba(7, 13, 30, 0.62) 0%, 
      rgba(7, 13, 30, 0.74) 45%, 
      rgba(7, 13, 30, 0.90) 100%
    ),
    url('../images/bg-onibus.webp');
  background-size: cover;
  background-position: center 72%;
  background-repeat: no-repeat;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--app-bar-height, 54px);
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  box-sizing: border-box;
  margin: 0;
}

@supports not (background-attachment: fixed) {
  .home-page-body {
    background-attachment: scroll;
  }
}

.home-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 16px 36px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Card Glass do Hero (Logo Centralizado) */
.home-hero-glass {
  background: rgba(7, 13, 30, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 24px;
  padding: 20px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
}

.home-hero-logo-box {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  flex-shrink: 0;
  margin: 0 auto;
}

.home-hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.home-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.home-hero-brand-name {
  font-family: var(--font-display, sans-serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.home-hero-tagline {
  font-size: 0.88rem;
  color: #E2E8F0;
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  max-width: 320px;
}

/* Badge Informativo Tarifa Zero com Glassmorphism */
.home-tariff-badge-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(2, 132, 199, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #BAE6FD;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-top: 2px;
}

/* Grid de Ações */
.home-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Base Glassmorphism para Cards */
.home-card-glass {
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  touch-action: manipulation;
  box-sizing: border-box;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

/* Card 1: Destaque Principal (Planejar Viagem) */
.home-card-primary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(7, 13, 30, 0.78);
  border: 1px solid rgba(2, 132, 199, 0.35);
  border-radius: 24px;
  padding: 20px 18px 18px 18px;
  color: #FFFFFF;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 180ms cubic-bezier(0.4, 0, 0.2, 1), border-color 180ms ease;
  min-height: 80px;
}

.home-card-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border-color: rgba(56, 189, 248, 0.60);
}

.home-card-primary:active {
  transform: scale(0.985);
}

.home-primary-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.home-primary-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.home-primary-pill {
  display: none !important; /* Removido para eliminar duplicidade */
}

.home-primary-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-primary-title {
  font-family: var(--font-display, sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.home-primary-desc {
  font-size: 0.88rem;
  color: #BAE6FD;
  margin: 0;
  line-height: 1.35;
  font-weight: 500;
}

.home-primary-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #D3131E;
  color: #FFFFFF;
  font-family: var(--font-display, sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 14px;
  min-height: 52px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(211, 19, 30, 0.45);
  margin-top: 4px;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.home-card-primary:hover .home-primary-cta {
  background: #E01924;
  box-shadow: 0 6px 20px rgba(211, 19, 30, 0.60);
}

.home-cta-arrow {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 150ms ease;
}

.home-card-primary:hover .home-cta-arrow {
  transform: translateX(4px);
}

/* Cards Secundários (Mapa e Horários) com Glassmorphism */
.home-card-secondary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(7, 13, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 18px 18px 16px 18px;
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 180ms cubic-bezier(0.4, 0, 0.2, 1), border-color 180ms ease;
  min-height: 80px;
}

.home-card-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.30);
}

.home-card-secondary:active {
  transform: scale(0.985);
}

.home-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-card-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-sizing: border-box;
}

.home-card-icon-box.map {
  background: rgba(2, 132, 199, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.home-card-icon-box.schedule {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.home-card-texts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.home-card-title {
  font-family: var(--font-display, sans-serif);
  font-size: 1.12rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.home-card-desc {
  font-size: 0.84rem;
  color: #E2E8F0;
  margin: 0;
  line-height: 1.35;
  font-weight: 500;
}

.home-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
  margin-top: 2px;
}

.home-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  line-height: 1;
}

.home-status-badge.live {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.home-status-badge.live .live-dot {
  font-size: 0.65rem;
  color: #10B981;
  line-height: 1;
}

.home-status-badge.scheduled {
  background: rgba(2, 132, 199, 0.18);
  color: #38BDF8;
  border: 1px solid rgba(2, 132, 199, 0.35);
}

.home-card-arrow {
  font-size: 1.25rem;
  color: #94A3B8;
  font-weight: 600;
  line-height: 1;
  transition: transform 150ms ease, color 150ms ease;
}

.home-card-secondary:hover .home-card-arrow {
  transform: translateX(3px);
  color: #38BDF8;
}

/* Rodapé Discreto da Home (Crédito & Identidade) */
.home-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 4px 12px max(18px, env(safe-area-inset-bottom, 18px)) 12px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  z-index: 1;
}

.home-footer-divider {
  width: 100%;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.20), transparent);
  border: 0;
  margin: 0 auto;
}

.home-footer-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 6px 16px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #94A3B8;
  background: rgba(7, 13, 30, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.home-footer-label {
  color: #94A3B8;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.home-footer-author {
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 150ms ease, text-shadow 150ms ease;
  display: inline-block;
  padding: 2px 4px;
  border-radius: 6px;
}

.home-footer-author:hover {
  color: #38BDF8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.home-footer-author:focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 2px;
}

.home-footer-brand {
  text-align: center;
  font-size: 0.80rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 8px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Acessibilidade de Movimento Reduzido */
@media (prefers-reduced-motion: reduce) {
  .home-card-primary,
  .home-card-secondary,
  .home-primary-cta,
  .home-card-arrow,
  .home-cta-arrow {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================================
   6. MODAL "SOBRE O APLICATIVO"
   ============================================================================ */
.go-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 43, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s ease;
}

.go-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.go-modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  animation: goModalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes goModalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.go-modal-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.go-modal-title {
  font-family: var(--font-display, sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0;
}

.go-modal-version {
  font-size: 0.8rem;
  color: #64748B;
  background: #F1F5F9;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.go-modal-body {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.go-modal-close-btn {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background: var(--color-navy);
  color: #FFFFFF;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 8px;
}

.go-modal-close-btn:hover {
  background: #172554;
}

/* ============================================================================
   7. ACESSIBILIDADE E PREFERS-REDUCED-MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  .go-drawer,
  .go-drawer-backdrop,
  .go-app-bar-menu-btn,
  .home-action-card,
  .go-modal-card,
  .go-splash-screen,
  .go-splash-spinner {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================================
   8. TELA DE ABERTURA CINEMATOGRÁFICA (SPLASH SCREEN - FASE 10.3)
   Fotografia real do ônibus Vermelhinho, overlay azul-marinho, logo GO!,
   slogan oficial e spinner discreto vermelho/branco. Sem atraso artificial.
   ============================================================================ */
.go-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #070D1E; /* Fallback resiliente */
  background:
    linear-gradient(
      180deg,
      rgba(7, 13, 30, 0.25) 0%,
      rgba(7, 13, 30, 0.08) 40%,
      rgba(7, 13, 30, 0.45) 75%,
      rgba(7, 13, 30, 0.90) 100%
    ),
    url('../images/splash-go-vermelhinhos.webp') center center / cover no-repeat;
  padding-top: max(32px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  user-select: none;
}

.go-splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Região Superior/Central: Slogan Elegante (Sem logo central - Fase 10.3.3) */
.go-splash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: min(20vh, 160px);
  margin-bottom: auto;
  padding: 0 20px;
  box-sizing: border-box;
  animation: goSplashFadeIn 0.5s ease-out;
}

.go-splash-logo {
  display: none !important;
}

.go-splash-slogan {
  margin: 0;
  padding: 8px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.15rem, 4.4vw, 1.45rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 4px 20px rgba(7, 13, 30, 0.95);
  text-align: center;
  max-width: 90vw;
  box-sizing: border-box;
}

/* Região Inferior: Loading Discreto */
.go-splash-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.go-splash-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #D3131E; /* Vermelho GO! */
  border-right-color: #FFFFFF;
  animation: goSplashSpin 0.75s linear infinite;
}

.go-splash-loading-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

@keyframes goSplashSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes goSplashFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================================================
   9. CORREÇÃO VISUAL PRÉ-PRODUÇÃO: LINK "TABELA ➔" SEM QUEBRA DE LINHA
   Garante que o link de tabela de horários nunca quebre em duas linhas.
   ============================================================================ */
.trip-schedule-table-link,
.trip-bus-sched-row a,
.trip-schedule-card-row a,
a[href*="linha.html"].trip-schedule-link {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-block;
}

