.roteiros-hero {
  min-height: 320px;
  height: 400px;
  margin-top: 70px;
}

.roteiros-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.65)
  );
}

.roteiros-hero-content {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 2;
  padding-top: 60px;
}

.roteiros-hero-title {
  font-size: 3rem;
  margin-top: -100px;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.roteiros-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* --- Filtros --- */
.roteiros-filtros-section {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: -50px;
  position: relative;
  z-index: 10;
  padding: 0;
}

.roteiros-filtros {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: flex-end;
  gap: 16px;
  padding: 28px 0;
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .roteiros-filtros {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .roteiros-filtros {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .roteiros-filtros {
    grid-template-columns: 1fr;
  }
}

.filtro-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.filtro-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.filtro-group select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 38px 12px 14px;
  font-size: 0.95rem;
  color: #555;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filtro-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.roteiros-btn-buscar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
  flex-shrink: 0;
}

.roteiros-btn-buscar:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

/* --- Barra de Busca --- */
.roteiros-busca-section {
  padding: 24px 0;
  background: var(--bg-light);
}

.roteiros-busca {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.roteiros-busca input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: transparent;
}

.roteiros-busca input::placeholder {
  color: #999;
}

.roteiros-busca input:focus {
  outline: none;
}

.roteiros-busca-btn {
  background: #fff;
  border: none;
  padding: 16px 20px;
  cursor: pointer;
  color: var(--primary-color);
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roteiros-busca-btn:hover {
  background: var(--bg-light);
}

/* --- Cards Section --- */
.roteiros-cards-section {
  padding: 50px 0 80px;
  background: #fff;
}

.roteiros-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Sem resultados */
.roteiros-sem-resultados {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ===========================
   RESPONSIVO
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
  .roteiros-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .roteiros-filtros {
    flex-wrap: wrap;
  }

  .filtro-group {
    flex: 1 1 calc(50% - 16px);
  }

  .roteiros-btn-buscar {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .roteiros-hero {
    height: 38vh;
    min-height: 260px;
  }

  .roteiros-hero-title {
    font-size: 2rem;
  }

  .roteiros-hero-subtitle {
    font-size: 1rem;
  }

  .roteiros-filtros-section {
    margin-top: -30px;
  }

  .roteiros-filtros {
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px;
  }

  .filtro-group {
    flex: 1 1 100%;
    width: 100%;
  }

  .roteiros-cards-grid {
    grid-template-columns: 1fr;
  }
}
