﻿/* ===== OFERTAS AÉREAS - LAYOUT MODERNO E MINIMALISTA ===== */

/*
  SISTEMA DE GRADIENTE DINÂMICO PARA HERO SECTION
  ================================================
  
  O hero section agora utiliza as cores do parceiro definidas em --primary-background-color
  e --secondary-background-color para criar efeitos de gradiente dinâmicos.
  
  Funcionalidades:
  - Gradiente principal usando var(--primary-background-color)
  - Gradiente secundário com var(--secondary-background-color) como fallback
  - Efeito de pulse animado para criar profundidade visual
  - Fallback automático para navegadores sem suporte a color-mix()
  - Responsividade otimizada para mobile
  
  Classes disponíveis:
  - .hero-section: Versão completa com animações
  - .hero-section.simple-gradient: Versão simplificada para fallback
  
  O JavaScript detecta automaticamente o suporte do navegador e aplica
  a classe .simple-gradient quando necessário.
*/

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(
    120deg,
    var(--primary-background-color) 0%,
    var(--secondary-background-color, var(--primary-background-color)) 100%
  );
  padding: 40px 0;
  text-align: center;
  color: var(--primary-contrast-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Fallback para navegadores sem suporte a color-mix */
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  /* Versão moderna com color-mix */
  background: linear-gradient(
    120deg,
    transparent 0%,
    color-mix(in srgb, var(--primary-contrast-color) 10%, transparent) 50%,
    transparent 100%
  );
  z-index: 1;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -10%;
  width: 30%;
  height: 80%;
  /* Fallback para navegadores sem suporte a color-mix */
  background: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 100%
  );
  /* Versão moderna com color-mix */
  background: linear-gradient(
    -45deg,
    color-mix(in srgb, var(--primary-contrast-color) 8%, transparent) 0%,
    transparent 100%
  );
  transform: skewX(-15deg);
  z-index: 1;
  clip-path: inset(0);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
  color: var(--primary-contrast-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 32px;
  opacity: 0.9;
  line-height: 1.5;
  color: var(--primary-contrast-color);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin: 48px auto 32px auto;
  max-width: 800px;
  padding: 0 20px;
  position: relative;
}

.section-header.margin-top-section {
  margin-top: 40px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 12px 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-background-color),
    var(--secondary-background-color, var(--primary-background-color))
  );
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== LOADING CONTAINER ===== */
.loading-container {
  padding: 40px 20px;
}

.loading-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SKELETON STYLES ===== */
.filters-skeleton {
  background: white;
  border-radius: 12px;
  margin: -40px 0 32px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.offers-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.offer-skeleton-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ebeef5;
}

.offer-skeleton-image {
  height: 120px;
  background: #f5f7fa;
}

.offer-skeleton-content {
  padding: 12px;
}

.offer-skeleton-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

/* Skeleton Responsividade */
@media (min-width: 1400px) {
  .offers-skeleton-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1399px) {
  .offers-skeleton-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1199px) {
  .offers-skeleton-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

@media (max-width: 991px) {
  .offers-skeleton-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .offers-skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .loading-content {
    padding: 0 16px;
  }

  .filters-skeleton {
    margin: -20px 0 20px 0;
  }
}

@media (max-width: 575px) {
  .offers-skeleton-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .offer-skeleton-image {
    height: 140px;
  }

  .offer-skeleton-content {
    padding: 10px;
  }
}

/* ===== MAIN CONTAINER ===== */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== FILTERS SECTION ===== */
.filters-section {
  background: white;
  border-radius: 12px;
  margin: -40px 0 32px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

.filters-wrapper {
  padding: 0 24px;
}

.filters-grid {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.filter-label {
  font-weight: 600;
  color: #606266;
  font-size: 14px;
  white-space: nowrap;
  margin-bottom: 0;
}

.results-counter {
  margin-left: 0;
  text-align: center;
}

/* Pequeno ajuste para a tag de ofertas encontradas */
.results-counter .el-tag {
  font-weight: 500;
}

.results-counter .el-tag i {
  margin-right: 4px;
  font-size: 13px;
}

/* ===== OFFERS GRID ===== */
.offers-main {
  padding: 0;
  margin-bottom: 40px;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.offer-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  border: 1px solid #ebeef5;
  background: white;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.offer-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.offer-image-container {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.offer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.offer-card:hover .offer-image {
  transform: scale(1.05);
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f5f7fa;
  color: #c0c4cc;
}

.placeholder-icon {
  font-size: 32px;
}

.price-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(64, 158, 255, 0.95);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 11px;
  backdrop-filter: blur(10px);
}

.offer-content {
  padding: 12px;
}

.destination-name {
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  margin: 0 0 6px 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.origin-info {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #909399;
  font-size: 11px;
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.origin-info .el-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.travel-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dates-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #606266;
  flex: 1;
  min-width: 0;
}

.duration-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #409eff;
  font-weight: 600;
  flex-shrink: 0;
}

.dates-info .el-icon,
.duration-info .el-icon {
  font-size: 11px;
  flex-shrink: 0;
}

.dates-info span,
.duration-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  margin: 60px 0;
}

/* ===== LOAD MORE SECTION ===== */
.load-more-section {
  text-align: center;
  margin: 40px 0;
}

/* ===== TABLE SECTION ===== */
.table-section {
  background: white;
  border-radius: 16px;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 32px;
}

.table-header {
  margin-bottom: 24px;
  text-align: center;
}

.table-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #303133;
  margin: 0 0 8px 0;
}

.table-header p {
  color: #909399;
  margin: 0;
  font-size: 14px;
}

.origin-collapse {
  border: none;
}

.collapse-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-right: 20px;
}

.city-name {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}

.price-value {
  font-weight: 700;
  color: #409eff;
  font-size: 16px;
}

/* ===== RESPONSIVIDADE ===== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .offers-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
  .offers-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Tablet Large (992px - 1199px) */
@media (max-width: 1199px) {
  .offers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-header {
    margin: 40px auto 28px auto;
  }
}

/* Tablet Small (768px - 991px) */
@media (max-width: 991px) {
  .offers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .filters-grid {
    gap: 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section-header {
    margin: 36px auto 24px auto;
  }

  .section-header.margin-top-section {
    margin-top: 60px;
  }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
  .hero-section {
    padding: 60px 0;
  }

  .hero-section::after {
    animation-duration: 6s; /* Animação mais lenta em mobile */
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .section-header {
    margin: 32px auto 20px auto;
    padding: 0 16px;
  }

  .section-header.margin-top-section {
    margin-top: 40px;
  }

  .section-title::after {
    width: 40px;
    height: 2px;
  }

  .filters-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .filter-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .results-counter {
    margin-left: 0;
    text-align: center;
  }

  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .table-section {
    padding: 20px;
  }

  .main-container {
    padding: 0 16px;
  }

  .offer-image-container {
    height: 140px;
  }

  .offer-content {
    padding: 10px;
  }
}

/* Mobile Small (até 575px) */
@media (max-width: 575px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.4rem;
    letter-spacing: -0.01em;
  }

  .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .section-header {
    margin: 28px auto 16px auto;
  }

  .section-header.margin-top-section {
    margin-top: 40px;
  }

  .section-title::after {
    width: 30px;
    height: 2px;
  }

  .offer-content {
    padding: 10px;
  }

  .destination-name {
    font-size: 13px;
  }

  .filters-section {
    margin: -20px 0 20px 0;
  }

  .offers-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .offer-image-container {
    height: 140px;
  }
}

/* ===== CUSTOMIZAÇÕES ELEMENT PLUS ===== */

/* Select */
.el-select .el-input__inner {
  border-radius: 8px;
}

/* Buttons */
.el-button {
  border-radius: 8px;
  font-weight: 500;
}

.el-button--primary {
  background: #409eff;
  border-color: #409eff;
}

.el-button--primary:hover {
  background: #66b1ff;
  border-color: #66b1ff;
}

/* Radio Buttons with Icons */
.el-radio-button__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
}

.el-radio-button__inner i {
  font-size: 14px;
  margin-right: 0;
}

/* Cards */
.el-card {
  border-radius: 12px;
}

/* Tags */
.el-tag {
  border-radius: 6px;
}

/* Collapse */
.el-collapse-item__header {
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 16px 20px;
  font-weight: 600;
}

.el-collapse-item__content {
  padding: 0 20px 20px 20px;
}

/* Table */
.el-table {
  border-radius: 8px;
  overflow: hidden;
}

.el-table th.el-table__cell {
  background: #fafafa;
  font-weight: 600;
  color: #606266;
}

/* Empty */
.el-empty__description {
  color: #909399;
}

/* Skeleton */
.el-skeleton__item {
  border-radius: 8px;
}

/* ===== VERSÃO SIMPLIFICADA PARA FALLBACK ===== */
/* Caso o navegador não suporte as animações complexas */
.hero-section.simple-gradient {
  background: linear-gradient(
    120deg,
    var(--primary-background-color) 0%,
    var(--secondary-background-color, var(--primary-background-color)) 100%
  ) !important;
}

.hero-section.simple-gradient::before,
.hero-section.simple-gradient::after {
  display: none !important;
}

/* ===== UTILITÁRIOS ===== */
.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mt-40 {
  margin-top: 40px;
}
