/* =========================================================
   TQP FILTERS ACF - STYLE.CSS
   Versión unificada final
   ========================================================= */

/* =========================================================
   BASE
   ========================================================= */

body.tqp-modal-open {
    overflow: hidden;
}

body.tqp-modal-open:not(:has(.tqp-filters-modal.is-open)) {
    overflow: auto;
}

.tqp-filters-full-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 24px 0 40px;
}

.tqp-filters-sidebar,
.tqp-results-sidebar,
.tqp-tours-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.tqp-results-sidebar {
    display: block;
    width: 100%;
    flex: 1 1 100%;
}

.tqp-filters-sidebar {
    width: 100%;
    margin-bottom: 18px;
}

.tqp-filters-wrapper {
    background: transparent;
    border: 0;
    padding: 0;
}

.tqp-filters-form {
    margin: 0;
    padding: 0;
}

/* =========================================================
   TOOLBAR SUPERIOR
   ========================================================= */

.tqp-filters-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0 18px;
    border-bottom: 1px solid #e8e8e8;
    flex-wrap: wrap;
    background: #ffffff;
    z-index: 1;
}

.tqp-filters-toolbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 14px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.04) 45%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0.22;
    filter: blur(6px);
    pointer-events: none;
}

.tqp-filters-toolbar__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}

.tqp-filters-toolbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.tqp-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #d9d9d9;
    border-radius: 7px;
    background: #f5f5f5;
    color: #4d4d4d;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.tqp-toolbar-btn:hover {
    background: #efefef;
    border-color: #cfcfcf;
    color: #2f2f2f;
}

.tqp-toolbar-btn:focus-visible {
    outline: none;
    border-color: #bdbdbd;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.tqp-toolbar-btn--primary {
    min-width: auto;
}

.tqp-toolbar-btn--section {
    min-width: 136px;
}

.tqp-toolbar-btn__icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5a5a5a;
}

.tqp-toolbar-btn__icon svg,
.tqp-toolbar-btn__icon i {
    display: block;
    width: auto;
    height: auto;
    line-height: 1;
}

.tqp-toolbar-btn__icon .fa-solid,
.tqp-toolbar-btn__icon .fa {
    font-size: 14px;
    color: currentColor;
}

.tqp-toolbar-btn__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.tqp-toolbar-btn__chevron,
.tqp-toolbar-btn--section .fa-angle-down,
.tqp-toolbar-btn--section .fa,
.tqp-toolbar-btn--section .fa-solid.fa-angle-down {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1;
    color: #666666;
}

.tqp-toolbar-order-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 34px;
    padding: 0 2px 0 0;
    border: 0;
    background: transparent;
    color: #222222;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.tqp-toolbar-order-trigger:hover {
    color: #000000;
}

.tqp-toolbar-order-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    border-radius: 6px;
}

.tqp-toolbar-order-trigger__label {
    white-space: nowrap;
}

.tqp-toolbar-order-trigger__icon {
    font-size: 15px;
    line-height: 1;
    color: inherit;
}

.tqp-toolbar-sort-select--hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =========================================================
   MODAL LATERAL
   ========================================================= */

.tqp-filters-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.tqp-filters-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tqp-filters-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
}

.tqp-filters-modal__dialog {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(420px, 92vw);
    background: #ffffff;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.18);
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
}

.tqp-filters-modal.is-open .tqp-filters-modal__dialog {
    transform: translateX(0);
}

.tqp-filters-modal__views {
    position: relative;
    width: 100%;
    height: 100%;
}

.tqp-filters-modal__view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(20px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.tqp-filters-modal__view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.tqp-filters-modal__header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 8px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #ebebeb;
    background: #ffffff;
}

.tqp-filters-modal__header--root {
    grid-template-columns: 1fr 40px;
}

.tqp-filters-modal__title {
    margin: 0;
    color: #1f1f1f;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.tqp-modal-back,
.tqp-filters-modal__close {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #2d2d2d;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
}

.tqp-modal-back:hover,
.tqp-filters-modal__close:hover {
    background: #f3f3f3;
}

.tqp-modal-back:focus-visible,
.tqp-filters-modal__close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.tqp-filters-modal__view-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 16px 18px 22px;
    background: #ffffff;
}

.tqp-filters-modal__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 12px;
    padding: 14px;
    border-top: 1px solid #ebebeb;
    background: #ffffff;
}

/* =========================================================
   MENÚ PRINCIPAL DEL MODAL
   ========================================================= */

.tqp-modal-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tqp-modal-menu-item {
    width: 100%;
    min-height: 56px;
    border: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px;
    cursor: pointer;
    color: #232323;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.tqp-modal-menu-item:hover {
    background: #fafafa;
}

.tqp-modal-menu-item__label {
    min-width: 0;
}

.tqp-modal-menu-item__icon {
    font-size: 22px;
    line-height: 1;
    color: #5a5a5a;
}

/* =========================================================
   PANEL INTERNO
   ========================================================= */

.tqp-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* =========================================================
   BUSCADOR INTERNO
   ========================================================= */

.tqp-filter-search {
    margin-bottom: 14px;
}

.tqp-filter-search-input {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    background: #ffffff;
    color: #333333;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    box-sizing: border-box;
}

.tqp-filter-search-input::placeholder {
    color: #9a9a9a;
}

.tqp-filter-search-input:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.12);
}

/* =========================================================
   LISTA DE OPCIONES
   ========================================================= */

.tqp-filter-options.tqp-filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tqp-checkbox-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 2px;
    cursor: pointer;
    color: #222222;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.tqp-checkbox-row__control {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tqp-checkbox-row__control input[type="checkbox"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.tqp-checkbox-row__fake {
    width: 22px;
    height: 22px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    position: relative;
}

.tqp-checkbox-row__control input[type="checkbox"]:checked + .tqp-checkbox-row__fake {
    background: #1e88e5;
    border-color: #1e88e5;
}

.tqp-checkbox-row__control input[type="checkbox"]:checked + .tqp-checkbox-row__fake::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tqp-checkbox-row__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tqp-checkbox-row__count {
    color: #757575;
    font-size: 13px;
    font-weight: 500;
}

.tqp-order-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tqp-radio-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 2px;
    cursor: pointer;
    color: #222222;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.tqp-radio-row__control {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tqp-radio-row__control input[type="radio"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.tqp-radio-row__fake {
    width: 20px;
    height: 20px;
    border: 1px solid #cfcfcf;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    position: relative;
}

.tqp-radio-row__control input[type="radio"]:checked + .tqp-radio-row__fake {
    border-color: #1e88e5;
}

.tqp-radio-row__control input[type="radio"]:checked + .tqp-radio-row__fake::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #1e88e5;
}

.tqp-radio-row__text {
    min-width: 0;
}

.tqp-filter-empty-state {
    margin: 8px 0 0;
    color: #787878;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
}

/* =========================================================
   RANGOS / SLIDERS
   ========================================================= */

.tqp-price-slider-container,
.tqp-duracion-slider-container {
    margin: 6px 4px 8px;
}

.tqp-price-values,
.tqp-duracion-values {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.tqp-price-min-label,
.tqp-price-max-label,
.tqp-duracion-min-label,
.tqp-duracion-max-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 0 12px;
    background: #f4f4f4;
    border-radius: 999px;
    color: #1f1f1f;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    box-sizing: border-box;
}

.tqp-price-separator,
.tqp-duracion-separator {
    color: #808080;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   PRECIO MANUAL
   ========================================================= */

.tqp-price-manual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tqp-price-manual__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.tqp-price-manual__label {
    color: #4d4d4d;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.tqp-price-manual__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tqp-price-manual__prefix {
    position: absolute;
    left: 12px;
    z-index: 1;
    color: #666666;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
}

.tqp-price-manual-input {
    width: 100%;
    min-height: 42px;
    padding: 0 14px 0 34px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    background: #ffffff;
    color: #333333;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.tqp-price-manual-input:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.12);
}

.tqp-price-manual-input::-webkit-outer-spin-button,
.tqp-price-manual-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tqp-price-manual-input[type="number"] {
    -moz-appearance: textfield;
}

/* =========================================================
   ACCIONES
   ========================================================= */

.tqp-filter-actions {
    display: none;
}

.tqp-filter-submit,
.tqp-filter-reset,
.tqp-load-more-btn,
.tqp-filter-reset-modal,
.tqp-filter-close {
    min-height: 42px;
    border-radius: 10px;
    padding: 0 18px;
    cursor: pointer;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tqp-filter-submit,
.tqp-load-more-btn {
    border: 1px solid #0474b2;
    background: #ffffff;
    color: #0474b2;
}

.tqp-filter-submit:hover,
.tqp-load-more-btn:hover {
    background: #03669d;
    border-color: #03669d;
    color: #ffffff;
}

.tqp-filter-reset,
.tqp-filter-reset-modal,
.tqp-filter-close {
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: #4d4d4d;
}

.tqp-filter-reset:hover,
.tqp-filter-reset-modal:hover,
.tqp-filter-close:hover {
    background: #f3f3f3;
}

/* =========================================================
   HEADER DE RESULTADOS / CHIPS ACTIVAS
   ========================================================= */

.tqp-results-header {
    padding: 18px 0 20px;
    border-bottom: 1px solid #ececec;
    margin-bottom: 22px;
}

.tqp-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.tqp-results-header__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tqp-results-count {
    color: #7a7a7a;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
}

.tqp-results-text {
    color: #000000;
    font-weight: 500;
}

.tqp-results-number {
    color: #6b6b6b;
}

/* =========================================================
   CHIPS ACTIVOS
   ========================================================= */

.tqp-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #cfcfcf;
    border-radius: 7px;
    background: #ffffff;
    color: #2d2d2d;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: 100%;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tqp-filter-chip.is-removable {
    cursor: pointer;
}

.tqp-filter-chip.is-removable:hover {
    background: #f7f7f7;
    border-color: #bfbfbf;
}

.tqp-filter-chip span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tqp-filter-chip__remove {
    font-size: 14px;
    line-height: 1;
    flex: 0 0 auto;
    color: #6c6c6c;
}

.tqp-filter-chip.is-locked {
    background: #ffffff;
    border-color: #d3d3d3;
    color: #2d2d2d;
}

.tqp-clear-all-link {
    background: transparent;
    border: none;
    padding: 4px 0;
    color: #6f6f6f;
    text-decoration: underline;
    cursor: pointer;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    margin-left: 14px;
}

/* =========================================================
   GRID DE TOURS
   ========================================================= */

.tqp-tours-grid {
    width: 100%;
}

/* =========================================================
   GRID DE TARJETAS
   ========================================================= */

.tqp-tours-list {
    display: flex;
    /* grid-template-columns: repeat(auto-fill,minmax(265px,265px)); */
    gap: 22px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

/* =========================================================
   TARJETA
   ========================================================= */

.tqp-tour-card {
    width: 265px;
    height: 410px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.tqp-tour-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   IMAGEN
   ========================================================= */

.tour-thumbnail {
    display: block;
    width: 265px;
    height: 200px;
    flex: 0 0 200px;
    overflow: hidden;
    background: #f4f4f4;
}

.tour-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* =========================================================
   CONTENIDO DE LA TARJETA
   ========================================================= */

.tour-card-content {
    position: relative;
    width: 100%;
    height: 210px;
    padding: 15px;
    padding-bottom: 68px;
    box-sizing: border-box;
    overflow: hidden;
}

/* =========================================================
   BLOQUE DESTINOS
   ========================================================= */

.tour-destinos-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 10px;
    min-height: 24px;
}

.tour-destinos-icon {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    color: #808080;
    margin-top: 2px;
}

.tour-destinos-icon svg,
.tour-destinos-icon i {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.tour-destinos-line .fa-solid,
.tour-destinos-line .fa {
    font-size: 11px;
    color: #808080;
}

.tour-destinos-text {
    color: #808080;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.02em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
}

/* =========================================================
   TÍTULO
   ========================================================= */

.tour-title {
    margin: 0 0 12px;
    min-height: 44px;
    max-height: 44px;
    overflow: hidden;
    color: #1f1f1f;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.01em;
}

.tour-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* =========================================================
   TAGS
   ========================================================= */

.tour-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    min-height: 24px;
    max-height: 52px;
    overflow: hidden;
    align-content: flex-start;
}

.tour-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

.tour-tag--1-dia {
    background: #f16059;
    color: #ffffff;
}

.tour-tag--vacaciones-en-peru,
.tour-tag--vacations-in-peru,
.tour-tag--vacazoes-no-peru {
    background: #f16059;
    color: #ffffff;
}


.tour-tag--cusco {
    background: #e3ba3c;
    color: #3a2f00;
}

.tour-tag--info {
    background: #3cd4e3;
    color: #ffffff;
}

.tour-tag--adventure,
.tour-tag--aventura {
    background: #3cd4e3;
    color: #ffffff;
}

.tour-tag--ninos,
.tour-tag--ni-os,
.tour-tag--ninos-y-familia {
    background: #97cf90;
    color: #ffffff;
}

.tour-tag--walk {
    background: #7f9ccf;
    color: #ffffff;
}

.tour-tag--caminata,
.tour-tag--hikes,
.tour-tag--caminhadas{
    background: #97cf90;
    color: #ffffff;
}

.tour-tag--trekking {
    background: #5c8f6a;
    color: #ffffff;
}

.tour-tag--full-day {
    background: #5f8dd3;
    color: #ffffff;
}

/* =========================================================
   LÍNEA DIVISORA FIJA
   ========================================================= */

.tour-card-divider {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 49px;
    height: 1px;
    background: #dcdcdc;
    margin: 0;
}

/* =========================================================
   BLOQUE INFERIOR
   ========================================================= */

.tour-meta {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 15px;
    min-height: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 12px;
    margin: 0;
    padding: 0;
}

.tour-duration-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.tour-duration-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 4px;
    color: #808080;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 10.67px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: lowercase;
}

.tour-duration-label::before {
    content: "";
    width: 12px;
    height: 12px;
    display: inline-block;
    flex: 0 0 12px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.tour-duration-value {
    margin: 0;
    color: #808080;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0.01em;
}

.tour-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    min-width: max-content;
    margin: 0;
    padding: 0;
}

.tour-price-value {
    margin: 0;
    color: #1f1f1f;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.tour-price-note {
    margin: 2px 0 0;
    color: #808080;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

/* =========================================================
   ESTADOS
   ========================================================= */

.tqp-load-more-container {
    text-align: center;
    margin-top: 26px;
}

.tqp-no-results {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 18px;
    color: #666666;
    font-family: "Roboto", Arial, sans-serif;
}

.tqp-loading {
    opacity: 0.55;
    pointer-events: none;
}

/* =========================================================
   NOUISLIDER
   ========================================================= */

.noUi-connect {
    background: #3ec0be;
}

.noUi-target {
    background: #e3e3e3;
    border-radius: 999px;
    border: none;
    box-shadow: none;
    height: 8px;
}

.noUi-handle {
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e3e3e3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    width: 18px !important;
    height: 18px !important;
    right: -9px !important;
    top: -5px !important;
    cursor: pointer;
}

.noUi-handle:before,
.noUi-handle:after {
    display: none;
}

.tqp-slider-static {
    opacity: 0.65;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    .tqp-tours-list {
        grid-template-columns: repeat(auto-fill, minmax(265px, 265px));
    }
}

@media (max-width: 768px) {
    .tqp-filters-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .tqp-filters-toolbar__left,
    .tqp-filters-toolbar__right {
        width: 100%;
    }

    .tqp-filters-toolbar__right {
        justify-content: flex-start;
        margin-left: 0;
    }

    .tqp-filters-modal__dialog {
        width: min(100vw, 100%);
        border-radius: 0;
    }

    .tqp-results-count {
        font-size: 16px;
    }

    .tqp-tours-list {
        grid-template-columns: repeat(auto-fill, minmax(265px, 265px));
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tqp-toolbar-btn {
        width: 100%;
    }

    .tqp-filters-toolbar__left {
        gap: 8px;
    }

    .tqp-filters-modal__header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tqp-filters-modal__view-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tqp-filters-modal__footer {
        grid-template-columns: 1fr;
        padding-left: 14px;
        padding-right: 14px;
    }

    .tqp-price-manual {
        grid-template-columns: 1fr;
    }

    .tqp-tours-list {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .tqp-tour-card {
        width: 100%;
        max-width: 265px;
        height: 410px;
    }

    .tour-thumbnail {
        width: 100%;
        max-width: 265px;
        height: 200px;
    }

    .tqp-filter-chip {
        width: auto;
        max-width: 100%;
    }

    .tour-meta {
        gap: 10px;
    }

    .tour-price-value {
        font-size: 13px;
    }
}

.tqp-tour-card {
    position: relative;
}

.tqp-tour-card--featured {
    border-color: #e0c36a;
}

.tqp-tour-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background-color: #ffffff61;
    border: 1px solid rgb(191, 154, 45);
    box-shadow: 0 4px 10px rgba(191, 0, 0, 0.12);
    color: #c79a1b;
    pointer-events: none;
}

.tqp-tour-featured-badge .fa-solid,
.tqp-tour-featured-badge .fa {
    font-size: 14px;
    line-height: 1;
    color: currentColor;
}


/**============================================================================/

/* =========================================================
   DURACIÓN - CHIPS EN TOOLBAR
   ========================================================= */

.tqp-duration-presets-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.tqp-duration-toolbar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #b0b0b0;
    border-radius: 4px;
    background: #ffffff;
    color: #4d4d4d;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.tqp-duration-toolbar-chip:hover {
    background: #b1b0b0;
    border-color: #8d8d8d;
    color: #ffffff;
}

.tqp-duration-toolbar-chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 75, 75, 0.15);
}

.tqp-duration-toolbar-chip.is-active {
    background: #9e9b9b;
    border-color: #8b8989;
    color: #ffffff;
}

.tqp-duration-toolbar-chip__range,
.tqp-duration-toolbar-chip__suffix {
    display: inline-block;
    line-height: 1;
}

.tqp-duration-toolbar-chip__suffix {
    opacity: 0.95;
}

/* =========================================================
   DURACIÓN - PRESETS DENTRO DEL MODAL
   ========================================================= */

.tqp-duration-presets {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tqp-duration-presets__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tqp-duration-preset-row .tqp-radio-row__text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* =========================================================
   AJUSTE VISUAL CUANDO EXISTEN CHIPS DE DURACIÓN
   ========================================================= */

.tqp-filters-toolbar__left .tqp-duration-presets-toolbar {
    flex: 0 1 auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .tqp-duration-presets-toolbar {
        width: 100%;
        gap: 8px;
    }

    .tqp-duration-toolbar-chip {
        min-height: 32px;
        padding: 0 10px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .tqp-duration-presets-toolbar {
        width: 100%;
    }

    .tqp-duration-toolbar-chip {
        font-size: 10px;
        padding: 0 10px;
    }
}