/* =========================================================
   JACK TRAVEL — CATÁLOGO DE TOURS & HEADER DA PÁGINA /TOURS
   ========================================================= */

/* Header Legível em Fundo Claro para a Página de Tours */
.jt-catalog-page .jt-header,
body.jt-canvas-body:has(.jt-catalog) .jt-header {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(21, 51, 79, 0.08) !important;
  box-shadow: 0 4px 20px rgba(15, 39, 68, 0.04) !important;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.jt-catalog-page .jt-header.is-scrolled,
body.jt-canvas-body:has(.jt-catalog) .jt-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(21, 51, 79, 0.12) !important;
  box-shadow: 0 6px 24px rgba(15, 39, 68, 0.08) !important;
}

/* Logo */
.jt-catalog-page .jt-header__logo img,
body.jt-canvas-body:has(.jt-catalog) .jt-header__logo img {
  filter: none !important;
}

/* Links de Navegação Desktop */
.jt-catalog-page .jt-header__nav a,
body.jt-canvas-body:has(.jt-catalog) .jt-header__nav a {
  color: #15334f !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.jt-catalog-page .jt-header__nav a::after,
body.jt-canvas-body:has(.jt-catalog) .jt-header__nav a::after {
  background: #0755c8 !important;
  height: 2px;
  bottom: 3px;
}

.jt-catalog-page .jt-header__nav a:hover,
.jt-catalog-page .jt-header__nav a.is-active,
body.jt-canvas-body:has(.jt-catalog) .jt-header__nav a:hover,
body.jt-canvas-body:has(.jt-catalog) .jt-header__nav a.is-active {
  color: #0755c8 !important;
}

/* Destaque para link da página de Caravanas e Grupos */
.jt-catalog-page .jt-header__nav a[href*="tours"],
body.jt-canvas-body:has(.jt-catalog) .jt-header__nav a[href*="tours"] {
  color: #0755c8 !important;
  font-weight: 700 !important;
}

.jt-catalog-page .jt-header__nav a[href*="tours"]::after,
body.jt-canvas-body:has(.jt-catalog) .jt-header__nav a[href*="tours"]::after {
  transform: scaleX(1) !important;
}

/* Botão CTA Principal na Header */
.jt-catalog-page .jt-header__cta,
body.jt-canvas-body:has(.jt-catalog) .jt-header__cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: #0755c8 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  padding: 10px 22px !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(7, 85, 200, 0.25) !important;
  transition: all 0.25s ease !important;
}

.jt-catalog-page .jt-header__cta::after,
body.jt-canvas-body:has(.jt-catalog) .jt-header__cta::after {
  display: none !important;
}

.jt-catalog-page .jt-header__cta-arrow,
body.jt-canvas-body:has(.jt-catalog) .jt-header__cta-arrow {
  color: #ffffff !important;
  font-size: 14px !important;
  transition: transform 0.25s ease;
}

.jt-catalog-page .jt-header__cta:hover,
body.jt-canvas-body:has(.jt-catalog) .jt-header__cta:hover {
  background: #0043a8 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(7, 85, 200, 0.35) !important;
}

.jt-catalog-page .jt-header__cta:hover .jt-header__cta-arrow,
body.jt-canvas-body:has(.jt-catalog) .jt-header__cta:hover .jt-header__cta-arrow {
  transform: translate(2px, -2px);
}

/* Botão de Menu Mobile (Hambúrguer) */
.jt-catalog-page .jt-header__menu-button span,
body.jt-canvas-body:has(.jt-catalog) .jt-header__menu-button span {
  background: #15334f !important;
}

/* =========================================================
   LAYOUT DO CATÁLOGO DE CARAVANAS (COMPACTO & CLEAN)
   ========================================================= */

.jt-catalog {
  max-width: 1240px;
  margin: auto;
  padding: 104px 24px 70px;
  color: #15334f;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.jt-catalog-heading {
  max-width: 680px;
  margin-bottom: 22px;
}

.jt-catalog-heading > span {
  color: #0755c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.jt-catalog-heading h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.18;
  margin: 6px 0 8px;
  font-weight: 700;
  color: #15334f;
  letter-spacing: -0.02em;
}

.jt-catalog-heading p {
  font-size: 15px;
  line-height: 1.5;
  color: #596c80;
  margin: 0;
}

/* =========================================================
   BARRA DE BUSCA COMPACTA & INTELIGENTE (1ª DOBRA)
   ========================================================= */

.jt-catalog-filters {
  margin-bottom: 20px;
}

.jt-filter-bar {
  background: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 39, 68, 0.06);
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 5px 8px 5px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.jt-filter-bar:focus-within {
  border-color: #0755c8;
  box-shadow: 0 6px 24px rgba(7, 85, 200, 0.12);
}

.jt-filter-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.jt-filter-icon {
  color: #0755c8;
  flex-shrink: 0;
}

.jt-filter-search input[type="search"] {
  width: 100%;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 14px;
  font-family: inherit;
  color: #15334f;
  padding: 8px 0;
  box-shadow: none !important;
}

.jt-filter-search input[type="search"]::placeholder {
  color: #8fa0b2;
}

.jt-filter-sep {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
  margin: 0 10px;
  flex-shrink: 0;
}

.jt-filter-select-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 130px;
  max-width: 190px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.jt-filter-select-label {
  font-size: 10px;
  font-weight: 700;
  color: #8fa0b2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 2px;
  white-space: nowrap;
}

.jt-filter-select-group select {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 13px;
  font-weight: 600;
  color: #15334f;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-family: inherit;
  width: 100%;
  box-shadow: none !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.jt-filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}

.jt-filter-btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f3f7fb;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: #15334f;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.jt-filter-btn-toggle:hover {
  background: #e7f0fa;
  color: #0755c8;
  border-color: #c4d7ec;
}

.jt-filter-btn-toggle[aria-expanded="true"] {
  background: #0755c8;
  color: #ffffff;
  border-color: #0755c8;
}

.jt-filter-btn-reset {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: #8fa0b2;
  cursor: pointer;
  transition: color 0.2s ease;
}

.jt-filter-btn-reset:hover {
  color: #e53e3e;
}

/* Pílulas Rápidas de Destinos */
.jt-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.jt-filter-chips::-webkit-scrollbar {
  display: none;
}

.jt-filter-chip {
  padding: 5px 14px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #dce5ee;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: #4a5568;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 39, 68, 0.04);
}

.jt-filter-chip:hover {
  border-color: #0755c8;
  color: #0755c8;
  background: #f0f6ff;
}

.jt-filter-chip.is-active {
  background: #0755c8;
  color: #ffffff;
  border-color: #0755c8;
  box-shadow: 0 2px 8px rgba(7, 85, 200, 0.22);
}

/* Painel de Filtros Avançados Recolhível */
.jt-filter-advanced {
  background: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 16px;
  margin-top: 12px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.05);
  animation: jtFadeDown 0.22s ease-out;
}

@keyframes jtFadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jt-filter-advanced-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.jt-filter-adv-field label {
  font-size: 11px;
  font-weight: 700;
  color: #596c80;
  margin-bottom: 5px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.jt-filter-adv-field input,
.jt-filter-adv-field select {
  height: 38px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  color: #15334f;
  background: #f8fafc;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.jt-filter-adv-field input:focus,
.jt-filter-adv-field select:focus {
  border-color: #0755c8;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(7, 85, 200, 0.12);
}

/* Contagem de Resultados */
.jt-catalog-count {
  margin: 18px 0 16px;
  color: #596c80;
  font-size: 14px;
  font-weight: 500;
}

.jt-catalog-count span {
  font-weight: 700;
  color: #15334f;
}

.jt-catalog-error {
  color: #c53030;
  font-size: 14px;
  margin-bottom: 16px;
}

/* =========================================================
   GRID & CARDS DAS CARAVANAS
   ========================================================= */

.jt-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.jt-catalog-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 39, 68, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.jt-catalog-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.1);
}

.jt-catalog-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.jt-catalog-card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e2e8f0;
}

.jt-catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.jt-catalog-card:hover .jt-catalog-card-media img {
  transform: scale(1.03);
}

.jt-catalog-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 39, 68, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.jt-catalog-card-copy {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jt-catalog-card h2 {
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 6px;
  font-weight: 700;
  color: #15334f;
  letter-spacing: -0.01em;
}

.jt-catalog-card-dest {
  font-size: 13px;
  font-weight: 600;
  color: #0755c8;
  margin: 0 0 6px;
}

.jt-catalog-card-meta {
  font-size: 13px;
  line-height: 1.5;
  color: #596c80;
  margin: 0 0 4px;
}

.jt-catalog-card-city {
  font-size: 12px;
  color: #8fa0b2;
  margin: 0 0 16px;
}

.jt-card-city-tours{display:flex;align-items:flex-start;gap:10px;min-width:0;margin:0 0 16px;color:#424952;font-family:'DM Sans',sans-serif;font-size:13.5px;line-height:1.5;font-weight:500}
.jt-card-city-tours>svg{flex:none;color:#004cc9;margin-top:1px}
.jt-card-city-tours>div{min-width:0}
.jt-card-city-tour{display:block;white-space:normal;overflow-wrap:anywhere}
.jt-card-city-tour__status{color:#596c80;font-weight:400}

.jt-catalog-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin-top: auto;
}

.jt-catalog-card-price small {
  display: block;
  font-size: 10px;
  color: #8fa0b2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 2px;
}

.jt-catalog-card-price strong {
  font-size: 19px;
  font-weight: 700;
  color: #15334f;
}

.jt-catalog-card-cta {
  font-size: 12px;
  font-weight: 700;
  color: #0755c8;
  background: #f0f6ff;
  padding: 6px 12px;
  border-radius: 9999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.jt-catalog-card:hover .jt-catalog-card-cta {
  background: #0755c8;
  color: #ffffff;
}

.jt-catalog [hidden] {
  display: none !important;
}

.jt-catalog-empty {
  padding: 50px 0;
  font-size: 17px;
  color: #596c80;
  text-align: center;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 1080px) {
  .jt-filter-advanced-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {
  .jt-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jt-filter-bar {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
  }
  .jt-filter-sep {
    display: none;
  }
  .jt-filter-search {
    flex: 1 1 100%;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
  }
  .jt-filter-select-group {
    flex: 1 1 45%;
    max-width: none;
  }
  .jt-filter-controls {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .jt-catalog {
    padding-top: 96px;
  }
  .jt-catalog-grid {
    grid-template-columns: 1fr;
  }
  .jt-filter-advanced-grid {
    grid-template-columns: 1fr;
  }
  .jt-filter-select-group {
    flex: 1 1 100%;
  }
}
