/* 
 * BENETRIP - CSS CONSOLIDADO PARA PÁGINA DE VOOS
 * Este arquivo combina e otimiza os estilos necessários para a página de voos,
 * removendo duplicações e conflitos dos arquivos anteriores
 */

/* Cores da identidade visual Benetrip */
:root {
  --benetrip-orange: #E87722;
  --benetrip-blue: #00A3E0;
  --benetrip-dark: #21272A;
  --benetrip-light-gray: #F5F5F5;
  --benetrip-medium-gray: #E0E0E0;
  --benetrip-white: #FFFFFF;
}

/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* REGRAS CRÍTICAS: Impedir visualização de modais no carregamento da página */
.modal-backdrop,
#modal-confirmacao,
#modal-detalhes-voo {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Permitir visualização apenas quando explicitamente habilitado via JS */
.modal-backdrop.modal-active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* Container principal */
#voos-container {
  background-color: var(--benetrip-light-gray);
  font-family: 'Poppins', sans-serif;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 100px; /* Aumentado para dar espaço ao botão fixo */
  position: relative;
  overflow-x: hidden;
  overflow-y: auto; /* Permitir scroll vertical */
}

/* Header da página */
.app-header {
  background-color: var(--benetrip-white);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--benetrip-medium-gray);
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-header h1 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.btn-voltar {
  background: none;
  border: none;
  color: var(--benetrip-dark);
  cursor: pointer;
  padding: 0.25rem;
}

/* Botão de customização da busca */
.customize-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--benetrip-blue);
  cursor: pointer;
  transition: background-color 0.2s;
}

.customize-search-button:hover {
  background-color: #f8f9fa;
}

.customize-search-button svg {
  margin-right: 6px;
}

/* Mensagem da Tripinha */
.tripinha-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  margin: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tripinha-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.tripinha-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tripinha-bubble {
  background-color: white;
  border-radius: 12px;
  border-top-left-radius: 0;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  flex: 1;
}

.tripinha-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid white;
  border-left: 8px solid transparent;
}

/* Resumo de voos encontrados */
.flights-summary {
  background-color: white;
  border-radius: 8px;
  margin: 16px;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.flights-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flights-count {
  font-weight: 600;
  color: var(--benetrip-orange);
}

.flights-sort {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Container de voos - MODIFICADO PARA LAYOUT VERTICAL */
.voos-swipe-container {
  display: flex;
  flex-direction: column; /* Alterado de row para column */
  gap: 16px;
  overflow-y: auto; /* Alterado de overflow-x para overflow-y */
  overflow-x: hidden; /* Esconder overflow horizontal */
  scroll-snap-type: y mandatory; /* Alterado de x para y */
  padding: 8px 16px 80px; /* Aumentado o padding inferior para dar espaço */
  margin-bottom: 16px;
  max-height: calc(100vh - 240px); /* Altura máxima para garantir scroll */
  scrollbar-width: thin; /* Para Firefox */
  
  /* Remove gradiente horizontal */
  background: none;
}

.voos-swipe-container::-webkit-scrollbar {
  width: 6px; /* Alterado de height para width para scroll vertical */
}

.voos-swipe-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.voos-swipe-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.voos-swipe-container::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Cards de voo - MODIFICADO PARA LAYOUT VERTICAL */
.voo-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex: 0 0 auto; /* Remover constraint de largura */
  width: 100%; /* Fazer o card ocupar a largura completa */
  scroll-snap-align: start; /* Alterado de center para start */
  overflow: hidden;
  border: 1px solid var(--benetrip-medium-gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  min-width: 0; /* Remover a largura mínima */
  max-width: none; /* Remover limitação de largura máxima */
  margin: 0 0 12px 0; /* Ajustar margens para empilhamento vertical */
}

.voo-card.voo-card-ativo {
  box-shadow: 0 0 0 2px var(--benetrip-orange), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  z-index: 2; /* Garante que o card ativo fique visualmente acima dos outros */
}

.voo-card.voo-direto {
  border-left: 3px solid var(--benetrip-blue);
}

/* Melhoria na interatividade dos cards */
.voo-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  cursor: pointer;
}

/* Garantir que os botões dentro dos cards não propagam a interatividade */
.voo-card button {
  position: relative;
  z-index: 3;
}

/* Tags do card de voo - Versão atualizada */
.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-left: 8px;
}

.card-tag.melhor-preco {
  background-color: #d1fae5;
  color: #065f46;
}

.card-tag.voo-direto {
  background-color: #dbeafe;
  color: #1e40af;
}

/* Cabeçalho do card de voo - MODIFICADO */
.voo-card-header {
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Container para preço e tags */
.voo-price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.voo-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--benetrip-orange);
}

.discount-badge {
  font-size: 0.7rem;
  background-color: #d1fae5;
  color: #065f46;
  padding: 2px 6px;
  border-radius: 100px;
  margin-left: 8px;
  font-weight: 600;
}

.voo-price-details {
  font-size: 0.75rem;
  color: #6c757d;
}

.airline-info {
  position: static; /* Reposicionado de absolute */
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.airline-logo {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  object-fit: contain;
}

/* Conteúdo do card de voo */
.voo-card-content {
  padding: 16px;
}

/* Estilização da rota de voo */
.flight-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.route-point {
  text-align: center;
  min-width: 60px;
}

.route-time {
  font-weight: 700;
  font-size: 1.1rem;
}

.route-airport {
  font-size: 0.75rem;
  color: #6c757d;
}

/* Atualizações para a linha de rota */
.route-line {
  flex: 1;
  position: relative;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.route-info-badge {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.route-line-bar {
  width: 100%;
  height: 2px;
  background-color: #e0e0e0;
  position: relative;
}

.route-line-direct {
  background-color: #93c5fd;
  height: 3px;
}

.route-duration {
  font-size: 0.7rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.route-stops {
  font-size: 0.7rem;
  color: #6c757d;
  margin-top: 4px;
}

.route-stops-direct {
  color: var(--benetrip-blue);
  font-weight: 500;
}

/* Stops markers */
.stop-marker {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 50%;
  top: -2px;
}

.stop-marker.start {
  left: 0;
}

.stop-marker.end {
  right: 0;
}

.stop-marker.mid {
  left: 50%;
  transform: translateX(-50%);
}

/* Detalhes adicionais */
.flight-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

/* Rodapé do card de voo */
.voo-card-footer {
  padding: 12px 16px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-detalhes-voo {
  font-size: 0.8rem;
  color: var(--benetrip-blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.remaining-seats {
  font-size: 0.7rem;
  color: #6c757d;
  display: flex;
  align-items: center;
}

.seats-number {
  background-color: #fed7aa;
  color: #9a3412;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Novo botão de escolher voo */
.choose-flight-button {
  width: 100%;
  background-color: var(--benetrip-orange);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  margin-top: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.choose-flight-button:hover {
  background-color: #d06a1c;
}

/* Indicadores de paginação - ESCONDIDOS PARA LAYOUT VERTICAL */
.pagination-indicator {
  display: none; /* Removido para layout vertical */
}

/* Controles de navegação - ESCONDIDOS PARA LAYOUT VERTICAL */
.nav-controls {
  display: none; /* Removido para layout vertical */
}

/* Botão de seleção fixo */
.botao-selecao-fixo {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  padding: 12px 16px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 30;
  max-width: 480px;
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, 0.05); /* Borda sutil */
}

.btn-selecionar-voo {
  width: 100%;
  background-color: var(--benetrip-orange);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-selecionar-voo:hover {
  background-color: #d06a1c;
}

/* Hint de swipe - ESCONDIDO PARA LAYOUT VERTICAL */
.swipe-hint {
  display: none; /* Removido para layout vertical */
}

/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: 100px; /* Ajustado para layout vertical */
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: 90%;
  max-width: 320px;
}

.toast {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background-color: rgba(16, 185, 129, 0.9);
}

.toast-warning {
  background-color: rgba(245, 158, 11, 0.9);
}

.toast-error {
  background-color: rgba(239, 68, 68, 0.9);
}

/* Tela de carregamento */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 24px;
  text-align: center;
}

.loading-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.loading-text {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.progress-bar-container {
  height: 8px;
  background-color: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
  width: 80%;
  max-width: 300px;
}

.progress-bar {
  height: 100%;
  background-color: var(--benetrip-orange);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Animações */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 119, 34, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(232, 119, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 119, 34, 0); }
}

.btn-pulsante {
  animation: button-pulse 1.5s 2;
}

@keyframes button-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Tela de erro */
.erro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 24px;
  text-align: center;
}

.error-message-box {
  max-width: 350px;
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tripinha-error-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.error-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ef4444;
}

.error-description {
  color: #6b7280;
  margin-bottom: 16px;
}

.btn-tentar-novamente {
  background-color: var(--benetrip-orange);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-tentar-novamente:hover {
  background-color: #d06a1c;
}

/* Tela sem resultados */
.sem-resultados-container {
  padding: 16px;
  text-align: center;
}

.no-results-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.btn-secundario {
  flex: 1;
  background-color: #f3f4f6;
  color: #4b5563;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 500;
  cursor: pointer;
}

.btn-principal {
  flex: 1;
  background-color: var(--benetrip-orange);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 500;
  cursor: pointer;
}

/* Modais - Versão aprimorada */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none !important; /* O !important garante prioridade */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Permitir visualização apenas quando JavaScript explicitamente ativa o modal */
.modal-backdrop.modal-active {
  opacity: 1;
  visibility: visible;
  display: flex !important;
  pointer-events: auto !important;
}

.modal-content {
  background-color: white;
  border-radius: 16px;
  width: 90%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

/* Header do modal */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #21272A;
}

.btn-fechar {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.btn-fechar:hover {
  background-color: #f0f0f0;
}

/* Tripinha na confirmação - Versão melhorada */
.confirmacao-tripinha {
  background-color: rgba(232, 119, 34, 0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.confirmacao-avatar {
  width: 36px; /* Reduzido de 60px para 36px */
  height: 36px; /* Reduzido de 60px para 36px */
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #E87722; /* Borda mais fina */
  box-shadow: 0 1px 4px rgba(232, 119, 34, 0.15); /* Sombra mais sutil */
}

.confirmacao-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.confirmacao-content {
  flex: 1;
}

/* Ajuste no texto para equilibrar com o avatar menor */
.confirmacao-titulo {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 6px 0;
  color: #21272A;
}

/* Espaçamento menor entre elementos para ser proporcional */
.confirmacao-resumo {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.resumo-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.resumo-item:last-child {
  margin-bottom: 0;
  padding-top: 6px;
  border-top: 1px dashed #e0e0e0;
}

.resumo-valor.destaque {
  font-weight: 700;
  color: #E87722;
}

/* Checkbox melhorado */
.confirmacao-checkbox {
  display: flex;
  align-items: center;
  margin-top: 14px;
  cursor: pointer;
  background-color: white;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.confirmacao-checkbox input {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: #E87722;
}

.confirmacao-aviso {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 12px;
  line-height: 1.4;
}

.icon-info {
  display: inline-block;
  margin-right: 4px;
}

/* Footer do modal melhorado */
.modal-footer {
  padding: 16px;
  display: flex;
  gap: 12px;
  border-top: 1px solid #f0f0f0;
}

.modal-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.modal-btn-secondary {
  background-color: #f3f4f6;
  color: #4b5563;
}

.modal-btn-secondary:hover {
  background-color: #e5e7eb;
}

.modal-btn-primary {
  background-color: #E87722;
  color: white;
}

.modal-btn-primary:hover:not(:disabled) {
  background-color: #d96a1e;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(232, 119, 34, 0.3);
}

.modal-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Detalhes do voo - Novo */
.modal-detalhes-voo {
  max-width: 400px;
}

.detalhes-content {
  padding: 0 16px;
}

.detalhes-sumario {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detalhes-preco {
  text-align: left;
}

.preco-valor {
  font-size: 1.5rem;
  font-weight: 700;
  color: #E87722;
}

.preco-info {
  font-size: 0.8rem;
  color: #6c757d;
}

.detalhes-companhia {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.companhia-logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 4px;
}

.companhia-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.companhia-nome {
  font-size: 0.8rem;
  font-weight: 600;
}

.detalhes-secao {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.secao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.secao-titulo {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.secao-etiqueta {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
}

.secao-etiqueta.voo-direto {
  background-color: #dbeafe;
  color: #1e40af;
}

.etiqueta-icone {
  margin-right: 4px;
}

/* Timeline de voo */
.timeline-voo {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.timeline-ponto {
  flex: 0 0 auto;
  width: 80px;
  text-align: center;
}

.timeline-tempo {
  font-size: 1.1rem;
  font-weight: 700;
}

.timeline-codigo {
  font-weight: 600;
  font-size: 0.9rem;
}

.timeline-cidade {
  font-size: 0.7rem;
  color: #6c757d;
}

.timeline-linha {
  flex: 1;
  position: relative;
  margin: 0 8px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-linha::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #93c5fd;
  transform: translateY(-50%);
}

.duracao-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1e40af;
  white-space: nowrap;
}

/* Informações do voo */
.voo-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #4b5563;
}

.info-icone {
  margin-right: 4px;
}

/* Serviços */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.servico-item {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.servico-item.incluido {
  background-color: #d1fae5;
  color: #065f46;
}

.servico-item.opcional {
  background-color: #f3f4f6;
  color: #6b7280;
}

.servico-icone {
  margin-right: 8px;
}

/* Política de cancelamento */
.politica-toggle {
  cursor: pointer;
}

.politica-conteudo {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.5;
}

.politica-texto {
  margin: 0;
}

/* Estilo para voo selecionado */
.voo-card.voo-selecionado {
  box-shadow: 0 0 0 2px var(--benetrip-blue), 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--benetrip-blue);
}

/* Estilo para ícone inline de companhia aérea */
.inline-airline-logo {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
  object-fit: contain;
}

/* Spinner para botões de carregamento */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spinner-rotate 0.6s linear infinite;
  margin-right: 8px;
}

@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0.8; }
  to { transform: translateY(0); opacity: 1; }
}

/* Otimização para dispositivos de baixo desempenho */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsividade */
@media (max-width: 480px) {
  .voo-card {
    margin: 0 0 10px 0;
  }
  
  .botao-selecao-fixo {
    max-width: 100%;
  }
  
  .modal-content {
    width: 95%;
  }
  
  .servicos-grid {
    grid-template-columns: 1fr;
  }
}

/* Corrigir exibição para telas muito pequenas */
@media (max-width: 360px) {
  .voo-card {
    margin: 0 0 8px 0;
  }
  
  .flight-route {
    flex-wrap: wrap; /* Permite quebrar em telas muito pequenas */
  }
  
  .route-line {
    min-width: 60px; /* Garante espaço mínimo */
  }
}

/* Substitua o estilo atual do modal-filtros */
.painel-filtros {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 360px;
  background-color: var(--white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15); /* Sombra aprimorada */
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform var(--transition-medium);
}

.modal-filtros {
  max-width: 450px;
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
}

.filtro-expandivel-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  padding: 0 10px;
}

.filtro-subitem {
  margin: 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.filtro-subitem:last-child {
  border-bottom: none;
}

.filtro-sublabel {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #555;
}

.double-slider {
  position: relative;
  height: 24px;
  margin: 10px 0;
}

.double-slider:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  background-color: #d7dcdf;
  border-radius: 5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.entre-voos-valor-container {
  text-align: center;
  margin-top: 5px;
  font-weight: 500;
  color: var(--benetrip-orange);
}

.modal-filtros {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
}

/* Estilos para o seletor de tabs */
.filtro-viagem-tabs {
  margin: 16px 0;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.filtro-tab-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.filtro-tab-header h4 {
  font-size: var(--font-size-sm);
  margin: 0;
  margin-right: 12px;
  color: var(--gray-dark);
}

.filtro-tab-buttons {
  display: flex;
  border: 1px solid var(--gray-medium);
  border-radius: 20px;
  overflow: hidden;
}

.filtro-tab-btn {
  padding: 6px 12px;
  background: var(--white);
  border: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filtro-tab-btn.active {
  background-color: var(--orange-primary);
  color: var(--white);
}

.filtro-tab-content {
  position: relative;
}

.filtro-tab-pane {
  display: none;
}

.filtro-tab-pane.active {
  display: block;
}

/* Adicione ao final do arquivo voos-styles.css */

/* Estilos para os sliders de horário */
.range-slider {
  position: relative;
  margin: 15px 0;
  padding: 10px 0;
}

.range-slider .range-values {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.range-slider-min, .range-slider-max {
  position: absolute;
  width: 100%;
  height: 5px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  top: 50%;
  z-index: 2;
}

.range-slider:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  background-color: #d7dcdf;
  border-radius: 5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.range-slider-min::-webkit-slider-thumb, .range-slider-max::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--benetrip-orange);
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
}

.range-slider-min::-moz-range-thumb, .range-slider-max::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--benetrip-orange);
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
  border: none;
}

/* Remove os expandíveis para os sliders horários diretos */
.filtro-tab-pane .filtro-label {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.filtro-tab-pane .filtro-label .filtro-icone {
  margin-right: 8px;
}

.filtro-tab-pane .filtro-control {
  margin-top: 5px;
}

/* Simplifica o botão principal de customização */
.customize-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  margin: 12px 16px;
  border-radius: 8px;
  transition: background-color 0.2s;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.customize-search-button svg {
  margin-right: 8px;
}

/* Estilos para dual sliders de horário */
.range-slider {
  position: relative;
  height: 40px;
  padding: 0;
  margin: 10px 0;
}

.range-values {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

.slider-track {
  position: absolute;
  width: calc(100% - 10px);
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 3px;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
}

input[type="range"].range-slider-min,
input[type="range"].range-slider-max {
  position: absolute;
  width: 100%;
  height: 0;
  background: none;
  -webkit-appearance: none;
  pointer-events: none;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
}

input[type="range"].range-slider-min::-webkit-slider-thumb,
input[type="range"].range-slider-max::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E87722;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  cursor: pointer;
  pointer-events: auto;
  z-index: 5;
}

input[type="range"].range-slider-min::-moz-range-thumb,
input[type="range"].range-slider-max::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E87722;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  cursor: pointer;
  pointer-events: auto;
  z-index: 5;
}

/* Estilo para tabs de ida/volta */
.filtro-por-tabs {
  display: flex;
  background-color: #f5f5f5;
  border-radius: 20px;
  padding: 4px;
  margin: 15px 0;
}

.filtro-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filtro-tab.active {
  background-color: #E87722;
  color: white;
}
