/* =============================================
   TURISMO - Hoteles con tarifa convenida
   ============================================= */

.tur-section { padding: 40px 0 50px; }

.tur-header { text-align: center; margin-bottom: 36px; }
.tur-header-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: #f0faf2; border-radius: 50%; margin-bottom: 14px; }
.tur-header-icon i { font-size: 28px; color: #0B5C21; }
.tur-header h1 { font-family: 'Lato', sans-serif; font-size: 30px; font-weight: 700; color: #1a1a1a; margin: 0 0 8px 0; }
.tur-header p { font-size: 15px; color: #666; margin: 0 auto; max-width: 600px; }

/* =====================
   SIDEBAR DE FILTROS
   ===================== */

.tur-filters { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 20px; position: sticky; top: 20px; }
.tur-filters h3 { font-family: 'Lato', sans-serif; font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 0 0 12px; }
.tur-filters .tur-group-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: #999; font-weight: 700; margin: 18px 0 8px; }
.tur-filters .tur-group-title:first-of-type { margin-top: 10px; }

.tur-filter-btn {
    display: block; width: 100%; text-align: left;
    padding: 8px 12px; margin-bottom: 4px;
    border: 1px solid transparent; border-radius: 8px;
    background: transparent; font-size: 13.5px; color: #444;
    cursor: pointer; transition: all 0.15s;
}
.tur-filter-btn:hover { background: #f0faf2; color: #0B5C21; }
.tur-filter-btn.active { background: #0B5C21; color: #fff; font-weight: 600; }
.tur-filter-btn .tur-count { float: right; opacity: 0.7; }

/* Botón para colapsar/expandir los filtros (solo mobile/tablet) */
.tur-filter-toggle {
    display: none; width: 100%; align-items: center; justify-content: space-between;
    padding: 12px 16px; margin-bottom: 12px;
    background: #fff; border: 1px solid #eee; border-radius: 12px;
    font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 700; color: #0B5C21;
    cursor: pointer;
}
.tur-filter-toggle i.fa-filter { margin-right: 8px; }
.tur-filter-toggle i.fa-chevron-down { transition: transform 0.2s; color: #999; }
.tur-filter-toggle.active i.fa-chevron-down { transform: rotate(180deg); }

/* =====================
   CARDS DE HOTEL
   ===================== */

.tur-hotel-card {
    background: #fff; border: 1px solid #eee; border-radius: 16px;
    padding: 26px 28px; margin-bottom: 26px;
}

.tur-hotel-card.tur-hidden { display: none; }

.tur-hotel-title { font-family: 'Lato', sans-serif; font-size: 21px; font-weight: 700; color: #0B5C21; margin: 0 0 6px; text-align: center; }
.tur-hotel-sub { text-align: center; font-size: 12.5px; color: #999; margin-bottom: 18px; }
.tur-hotel-sub .tur-chip { display: inline-block; padding: 2px 10px; background: #f0faf2; color: #0B5C21; border-radius: 20px; font-weight: 600; margin: 0 4px; }

.tur-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 20px; }
.tur-photo-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: #f0f0f0; cursor: pointer; }
.tur-photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tur-photo-item:hover img { transform: scale(1.08); }
.tur-photo-item::after {
    content: "\f00e"; font-family: FontAwesome; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; background: rgba(11,92,33,0); opacity: 0; transition: all 0.25s;
}
.tur-photo-item:hover::after { background: rgba(11,92,33,0.45); opacity: 1; }

.tur-hotel-text { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 16px; }

.tur-hotel-servicios { margin: 0 0 18px; padding-left: 20px; font-size: 13.5px; color: #555; line-height: 1.9; }

.tur-precio-block { margin: 0 0 20px; }
.tur-precio-title { font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 0 0 4px; }
.tur-precio-nota { font-size: 12.5px; color: #888; margin: 0 0 10px; font-style: italic; }
.tur-precio-table-wrap { overflow-x: auto; border: 1px solid #eee; border-radius: 10px; }
.tur-precio-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tur-precio-table th { background: #0B5C21; color: #fff; padding: 9px 14px; text-align: left; white-space: nowrap; }
.tur-precio-table td { padding: 9px 14px; border-bottom: 1px solid #f0f0f0; }
.tur-precio-table tr:last-child td { border-bottom: none; }

.tur-hotel-footer { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; border-top: 1px solid #f0f0f0; padding-top: 18px; }
.tur-hotel-direccion { font-size: 13px; color: #555; max-width: 60%; }
.tur-hotel-direccion i { color: #0B5C21; margin-right: 6px; }

.tur-whatsapp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 20px; background: #25D366; color: #fff;
    font-size: 13px; font-weight: 600; border-radius: 8px; text-decoration: none;
    transition: background 0.2s;
}
.tur-whatsapp-btn:hover { background: #1ebe57; color: #fff; }

.tur-pdf-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 20px; background: #f0faf2; color: #0B5C21;
    font-size: 13px; font-weight: 600; border-radius: 8px; text-decoration: none;
    border: 1px solid #d7ecd9; transition: background 0.2s;
}
.tur-pdf-btn:hover { background: #0B5C21; color: #fff; }

.tur-map-wrap { margin-top: 16px; border-radius: 10px; overflow: hidden; border: 1px solid #eee; }
.tur-map-wrap iframe { display: block; width: 100%; height: 260px; border: 0; }

/* Lightbox (compartido por todas las galerías de la página) */
.uom-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; display: none; align-items: center; justify-content: center; flex-direction: column; }
.uom-lightbox.active { display: flex; }
.uom-lightbox-overlay { position: absolute; inset: 0; }
.uom-lightbox-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-width: 90vw; }
.uom-lightbox-img-wrap img { max-width: 88vw; max-height: 70vh; border-radius: 8px; }
.uom-lightbox-close { position: absolute; top: -46px; right: 0; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.uom-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 0; color: #fff; font-size: 20px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.uom-lightbox-prev { left: -60px; }
.uom-lightbox-next { right: -60px; }
.uom-lightbox-footer { display: flex; align-items: center; gap: 14px; margin-top: 14px; color: #fff; font-size: 13px; }
.uom-lightbox-download { color: #fff; text-decoration: none; opacity: 0.85; }
.uom-lightbox-download:hover { opacity: 1; }

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 991px) {
    .tur-filter-toggle { display: flex; }

    .tur-filters {
        position: static; margin-bottom: 24px;
        display: none; /* colapsado por defecto, se abre con .tur-open */
        flex-wrap: wrap; gap: 6px; align-content: flex-start;
    }
    .tur-filters.tur-open { display: flex; }

    .tur-filters h3 { display: none; }
    .tur-filters .tur-group-title { flex-basis: 100%; margin: 10px 0 4px; }
    .tur-filters .tur-group-title:first-of-type { margin-top: 0; }

    .tur-filter-btn { display: inline-block; width: auto; margin-bottom: 0; }
    .tur-filter-btn .tur-count { float: none; margin-left: 4px; }

    .uom-lightbox-prev { left: 6px; }
    .uom-lightbox-next { right: 6px; }
}

@media (max-width: 600px) {
    .tur-section { padding: 24px 0 36px; }
    .tur-header h1 { font-size: 22px; }
    .tur-hotel-card { padding: 18px; }
    .tur-hotel-title { font-size: 18px; }
    .tur-photo-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .tur-hotel-footer { flex-direction: column; }
    .tur-hotel-direccion { max-width: 100%; }
}
