/* ===============================================
   TOURS CLÁSICOS - CSS ESPECÍFICO
   Safe Travel Perú
=============================================== */

.tours-clasicos-page {
  background: #ffffffd1;
}

/* ===============================================
   HERO TOURS CLÁSICOS - CON MISMAS MEDIDAS DEL HERO PRINCIPAL
=============================================== */
.hero-tours-clasicos {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: 0 20px;
}


.hero-tours-clasicos .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero-tours-clasicos .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(210, 201, 201, 0.156), rgba(0, 0, 0, 0.367));
}

.hero-tours-clasicos .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInUp 1s ease;
}

.hero-tours-clasicos .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(243, 156, 18, 0.95);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-tours-clasicos h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
  font-weight: 800;
  line-height: 1.2;
}

.hero-tours-clasicos .hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  opacity: 0.95;
  font-weight: 300;
}

.hero-tours-clasicos .hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-tours-clasicos .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  min-width: 120px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.hero-tours-clasicos .stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-tours-clasicos .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-tours-clasicos .stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.hero-tours-clasicos .hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-indicator i {
  font-size: 2rem;
}

.scroll-indicator span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* ===============================================
   INTRODUCCIÓN
=============================================== */
.intro-section {
  padding: 80px 20px;
  background: var(--white);
}

.intro-section .section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.intro-section .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.intro-section h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 800;
}

.intro-section .section-description {
  font-size: 1.15rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ===============================================
   GRID DE TOURS CLÁSICOS
=============================================== */
.tours-clasicos-grid-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.tours-clasicos-grid-section .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ===============================================
   LABELS DE TOURS — CORREGIDOS
=============================================== */

.tour-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
}

/* NUEVO */
.tour-label.new {
  background: #b07cf7;
}

/* AVENTURA */
.tour-label.adventure {
  background: #0078ff;
}

/* ICÓNICO */
.tour-label.iconic {
  background: linear-gradient(135deg, #f5d76e, #d4aa00);
}

/* ÉPICO */
.tour-label.epic {
  background: #e63946;
}

/* EMOCIÓN */
.tour-label.fun {
  background: #42c5f5;
}

/* AÉREO */
.tour-label.sky {
  background: #5edfff;
}

/* CULTURAL */
.tour-label.cultural {
  background: #2bbf34;
}

/* EXCLUSIVO */
.tour-label.luxury {
  background: #7b2ff7;
}

/* RECOMENDADO */
.tour-label.recommended {
  background: #12c8a0;
}

/* IMPERDIBLE */
.tour-label.trending {
  background: #ff5e2a;
}

/* MÁS POPULAR */
.tour-label.bestseller {
  background: #0054d1;
}


/* Las tarjetas heredan los estilos del main.css */
/* Solo agregamos ajustes específicos si es necesario */

/* ===============================================
   WHY CLÁSICOS
=============================================== */
.why-clasicos-section {
  padding: 100px 20px;
  background: var(--white);
}

.why-clasicos-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.why-clasicos-section h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 15px;
  font-weight: 800;
}

.why-clasicos-section .section-header p {
  font-size: 1.15rem;
  color: var(--gray);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  transition: var(--transition);
  border: 2px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

.benefit-card h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 15px;
  font-weight: 700;
}

.benefit-card p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ===============================================
   CTA CLÁSICOS
=============================================== */
.cta-clasicos {
  padding: 80px 20px;
  background: var(--gradient-primary);
  color: var(--white);
}

.cta-clasicos .container {
  max-width: 1200px;
  margin: 0 auto;
}

.cta-content {
  text-align: center;
}

.cta-text h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.cta-text p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-whatsapp,
.btn-secondary-outline {
  padding: 18px 35px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: var(--transition);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border: 3px solid #25D366;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.btn-secondary-outline {
  background: transparent;
  color: var(--white);
  border: 3px solid var(--white);
}

.btn-secondary-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

/* ===============================================
   SECCIÓN DE INFORMACIÓN - INFO CARDS
=============================================== */

/* Sección general */
.info-section {
  padding: 80px 20px;
  background: var(--white);
}

.info-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.info-section .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.info-section h2 {
  font-size: 2.5rem;
  color: var(--dark);
  font-weight: 800;
}

/* Contenedor de tarjetas */
.info-cards-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

/* Tarjeta individual */
.info-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border-left: 5px solid var(--primary);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.info-card:last-child {
  margin-bottom: 0;
}

/* Título de la tarjeta */
.info-card-title {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-card-title i {
  font-size: 1.5rem;
}

/* Texto de la tarjeta */
.info-card-text {
  color: var(--gray);
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 0;
}

.info-card-text strong {
  color: var(--dark);
  font-weight: 700;
}

/* Variantes de color (opcional) */
.info-card.warning {
  border-left-color: var(--accent);
}

.info-card.warning .info-card-title {
  color: var(--accent);
}

.info-card.success {
  border-left-color: var(--primary);
}

.info-card.info {
  border-left-color: #3498db;
}

.info-card.info .info-card-title {
  color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
  .info-section {
    padding: 60px 20px;
  }

  .info-section h2 {
    font-size: 2rem;
  }

  .info-card {
    padding: 25px 20px;
  }

  .info-card-title {
    font-size: 1.2rem;
  }

  .info-card-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .info-card {
    padding: 20px 18px;
  }

  .info-card-title {
    font-size: 1.1rem;
    gap: 10px;
  }

  .info-card-title i {
    font-size: 1.3rem;
  }

  .info-card-text {
    font-size: 0.95rem;
  }
}


/* ===============================================
   RESPONSIVE
=============================================== */
@media (max-width: 1024px) {
  .tours-clasicos-grid-section .container {
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 45px;
    padding: 0 25px;
  }
}

@media (max-width: 768px) {
  .hero-tours-clasicos h1 {
    font-size: 2.5rem;
  }

  .hero-tours-clasicos .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-tours-clasicos .hero-stats {
    gap: 20px;
  }

  .hero-tours-clasicos .stat {
    min-width: 110px;
    padding: 15px 18px;
  }

  .hero-tours-clasicos .stat-number {
    font-size: 1.8rem;
  }

  .hero-tours-clasicos .hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }

  .tours-clasicos-grid-section .container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .btn-whatsapp,
  .btn-secondary-outline {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-tours-clasicos h1 {
    font-size: 2rem;
  }

  .hero-tours-clasicos .hero-stats .stat {
    min-width: 100px;
    padding: 12px 15px;
  }

  .hero-tours-clasicos .stat-number {
    font-size: 1.6rem;
  }

  .tours-clasicos-grid-section .container {
    gap: 30px;
    padding: 0 10px;
  }
}

/* ===============================================
   NUEVO LAYOUT ESTILO REFERENCE (SIDEBAR + GRID)
=============================================== */

.tours-layout-section {
  padding: 40px 20px;
  background-color: #fff;
}

.layout-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

/* --- SIDEBAR FILTROS --- */
.filters-sidebar {
  background: #fff;
  padding-right: 20px;
  border-radius: 15px;
}

.filter-group {
  border-bottom: 1px solid var(--light);
  padding: 15px 0;
}

.filter-group:first-child {
  padding-top: 0;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.filter-header:hover {
  background: rgba(46, 204, 113, 0.05);
}

.filter-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.filter-header i {
  font-size: 0.8rem;
  color: var(--gray);
  transition: transform 0.3s;
}

.filter-content {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.filter-group.expanded .filter-content {
  display: flex;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: var(--transition);
}

.filter-option:hover {
  color: var(--primary-dark);
  background: rgba(46, 204, 113, 0.05);
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--gray-light);
  cursor: pointer;
  accent-color: var(--primary);
  transition: var(--transition);
  background: var(--white);
}

.filter-option input[type="checkbox"]:checked {
  border-color: var(--primary);
}

/* --- TOP BAR (SEARCH & SORT) --- */
.listings-header {
  margin-bottom: 25px;
}

.listings-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 15px;
}

.search-sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
  transition: var(--transition);
  background: var(--white);
}

.search-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.search-input-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-dropdown span {
  font-size: 0.95rem;
  color: #666;
}

.sort-dropdown select {
  padding: 10px 15px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.95rem;
  color: var(--dark);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.sort-dropdown select:focus,
.sort-dropdown select:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* --- GRID DE TOURS NUEVO --- */
.new-tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* --- TARJETA REDISEÑADA (ESTILO CONSISTENTE CON INDEX.PHP) --- */
.tour-card-new {
  background: var(--white);
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.tour-card-new:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(-10px);
}

/* Imagen y Badges */
.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tour-card-new:hover .card-image img {
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.badge-accent {
  background-color: var(--accent);
  /* Naranja/Dorado del tema */
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


/* Contenido de la tarjeta */
.card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Detalles (Duración, Includes style list) */
.card-details-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
}

.detail-item i {
  width: 16px;
  text-align: center;
  color: #777;
}

/* Footer / Precio */
.card-footer {
  margin-top: auto;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-label {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 2px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #333;
}

.price-main .currency {
  font-size: 0.85rem;
  font-weight: 700;
}

.price-main .amount {
  font-size: 1.4rem;
  font-weight: 800;
}

.price-per-person {
  font-size: 0.75rem;
  color: #888;
}

.price-secondary {
  font-size: 0.8rem;
  color: #333;
  font-weight: 600;
  margin-top: 2px;
}

/* Responsive para el nuevo layout */
@media (max-width: 992px) {
  .layout-container {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 768px) {
  .layout-container {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    display: none;
    /* Ocultar sidebar en móvil por ahora, o hacerlo collapsible */
  }

  .search-sort-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-dropdown {
    justify-content: space-between;
  }

  /* FIX PARA TARJETAS EN GRID (Sobrescribir estilos de carrusel) */
  .new-tours-grid .tour-card-wrapper {
    display: block;
    width: 100%;
  }

  .new-tours-grid .tour-card {
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    /* Permitir crecer/encoger libremente */
    margin: 0 !important;
    height: 100%;
    /* Asegurar altura completa */
    display: flex;
    flex-direction: column;
    box-sizing: border-box !important;
  }

  .new-tours-grid .tour-card .tour-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .new-tours-grid .tour-actions {
    margin-top: auto;
  }
}

/* --- ESTILOS DE NUEVAS FUNCIONALIDADES UX --- */

/* 1. Botón Favoritos (Corazón) */
.tour-overlay .btn-favorite {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  color: var(--gray);
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tour-overlay .btn-favorite:hover {
  transform: scale(1.1);
  background: var(--white);
  color: var(--accent);
}

.tour-overlay .btn-favorite.active {
  color: #e74c3c;
  /* Rojo corazón */
  background: var(--white);
}

.tour-overlay .btn-favorite.active i {
  font-weight: 900;
  /* FontAwesome Solid */
}

/* 2. Estado "Sin Resultados" */
.no-results-container {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
  border-radius: 12px;
  margin-top: 20px;
  border: 2px dashed #e0e0e0;
}

.no-results-content i {
  font-size: 4rem;
  color: var(--gray-light);
  margin-bottom: 20px;
}

.no-results-content h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.no-results-content p {
  color: var(--gray);
  margin-bottom: 25px;
}

/* 3. Filtros Móviles (Off-Canvas) */
.mobile-filter-toggle {
  display: none !important;
  /* Oculto en desktop */
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.sidebar-close-btn {
  display: none !important;
  /* Solo visible en móvil dentro del sidebar */
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

.sidebar-title-mobile {
  display: none !important;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light);
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

@media (max-width: 992px) {
  .listings-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .mobile-filter-toggle {
    display: inline-flex !important;
  }

  /* Sidebar Off-Canvas Style para Móvil */
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    /* Oculto a la izquierda */
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 10000;
    padding: 25px;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    overflow-y: auto;
    display: block !important;
    /* Forzar display block para que JS lo maneje */
  }

  .filters-sidebar.active {
    left: 0;
    /* Mostrar */
  }

  .sidebar-close-btn {
    display: block !important;
  }

  .sidebar-title-mobile {
    display: block !important;
  }

  /* Overlay oscuro cuando el menú está abierto */
  .body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .body-overlay.active {
    display: block;
    opacity: 1;
  }
}