/* TravelBroker search results – Destinology-style layout */

.tb-search-page {
    --tb-bg: #f5f5f5;
    --tb-border: #e5e0d8;
    --tb-text: #6c757d;
    --tb-text-dark: #333333;
    --tb-green: #153B3C;
    --tb-green-hover: #1e5254;
    --tb-brown: #8b6914;
    --tb-brown-bar: #6d5a3d;
    --tb-radius: 18px;
    --tb-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --tb-sidebar-width: 280px;
    font-family: inherit;
    background: var(--tb-bg);
    padding: 1.5rem 0 2rem;
    min-height: 60vh;
    position: relative;
}
.tb-load-more-btn {
    width: 100%;
    text-align: center;
    padding: 1rem;
    background: #fff;
    color: var(--tb-green);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 30px;
    transition: background 0.3s ease;
}
.tb-load-more-btn:hover {
    background: #e0e0e0;
}
.tb-search-filter-bar {
    max-width: 1080px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.tb-search-filter-bar .travelbroker-filters__results {
    display: none;
}

/* Loading overlay – logo + spinner */
.tb-search-loading {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 28, 0.78);
    backdrop-filter: blur(3px);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.tb-search-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tb-search-loading__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    transform: translateY(-2vh);
}

.tb-search-loading__logo {
    max-width: 220px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
    animation: tb-loading-logo 1.6s ease-in-out infinite;
}

.tb-search-loading__placeholder {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tb-text);
    animation: tb-loading-pulse 1.2s ease-in-out infinite;
}

.tb-search-loading__spinner {
    display: block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--tb-border);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: tb-loading-spin 0.8s linear infinite;
}

@keyframes tb-loading-logo {
    0%, 100% { opacity: 1; transform: translateY(0) scale(1); }
    50% { opacity: 0.88; transform: translateY(-3px) scale(1.03); }
}

@keyframes tb-loading-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

@keyframes tb-loading-spin {
    to { transform: rotate(360deg); }
}

.tb-search-layout {
    display: flex;
    gap: 1.5rem;
    max-width: 1110px;
    margin: 0 auto;
    padding: 0 1rem;
    align-items: flex-start;
}

/* Burger menu for filters - visible only on mobile */
.tb-search-filters-toggle {
    display: none;
}
.tb-search-filters-backdrop {
    display: none;
}
.tb-search-filters-close {
    display: none;
}

/* Search page: mobile optimization - sidebar as drawer, no layout space */
@media (max-width: 992px) {
    .tb-search-main__actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }
    .tb-search-filters-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--tb-text-dark);
        background: #fff;
        border: 1px solid var(--tb-border);
        border-radius: 8px;
        cursor: pointer;
        box-shadow: var(--tb-shadow);
    }
    .tb-search-filters-toggle:hover {
        background: #f9f9f9;
        border-color: var(--tb-green);
    }
    .tb-search-filters-toggle__icon {
        display: block;
        width: 20px;
        height: 2px;
        margin-bottom: 11px;
        background: currentColor;
        border-radius: 1px;
        box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
    }
    .tb-search-sidebar {
        display: none;
        flex: 0 0 0;
        position: relative !important;
        top: 0;
        left: 0;
        right: auto;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        z-index: 1001;
        width: min(320px, 85vw);
        max-width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
        background: #fff;
    }
    .tb-search-page.tb-search-filters-open .tb-search-sidebar {
        display: block;
        top: 0 !important;
        z-index: 99999;
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
        overflow-y: scroll !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }
    .tb-search-filters-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .tb-search-page.tb-search-filters-open .tb-search-filters-backdrop {
        opacity: 1;
        visibility: visible;
    }
    .tb-search-filters-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        line-height: 1;
        color: var(--tb-text);
        background: #f5f5f5;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
    }
    .tb-search-filters-close:hover {
        background: var(--tb-border);
        color: var(--tb-text-dark);
    }
    .tb-sidebar-inner {
        padding-top: 3rem;
        padding-bottom: 2rem;
        overflow: visible !important;
        border-radius: 0;
        box-shadow: none;
        border: none;
        min-height: min-content;
    }
    .tb-search-page {
        padding: 1rem 0 1.5rem;
    }
    .tb-search-filter-bar {
        padding: 0 0.75rem;
    }
    .tb-search-filter-bar .travelbroker-filters__bar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }
    .tb-search-filter-bar .travelbroker-filters__field {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 0;
    }
    .tb-search-filter-bar .travelbroker-filters__field--destination {
        flex: 1 1 calc(50% - 0.375rem);
    }
    .tb-search-filter-bar .travelbroker-filters__action {
        flex: 1 1 100%;
        width: 100%;
        display: flex;
        justify-content: stretch;
    }
    .tb-search-filter-bar .travelbroker-filters__submit {
        width: 100%;
        height: 52px;
        border-radius: 26px;
        min-width: 0;
    }
    .tb-search-layout {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.75rem;
    }
    .tb-search-main {
        width: 100%;
    }
    .tb-search-main__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .tb-package-card {
        flex-direction: column;
    }
    .tb-package__upper__blc {
        flex-direction: column;
    }
    .tb-package-card__gallery {
        max-width: 100%;
        width: 100%;
    }
    .tb-package-card__carousel {
        aspect-ratio: 16/10;
        min-height: 200px;
    }
    .tb-package-info_blc {
        padding: 1rem 1rem;
    }
    .tb-package-card__title {
        font-size: 1.1rem;
    }
    .tb-package-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .tb-search-page .tb-package-card__footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem;
        padding: 10px;
    }
    .tb-package-card__action-blc {
        flex-direction: column;
    }
    .tb-package-card__action-blc .tb-package-card__btn,
    .tb-package-card__action-blc .tb-package-card-add__btn {
        width: 100%;
        text-align: center;
    }
    .tb-sidebar-inner {
        padding-bottom: 0.5rem;
    }
    .tb-filter-block--collapsible .tb-filter-block__header {
        padding: 0.85rem 1rem;
    }
    .tb-filter-block--collapsible .tb-filter-block__body {
        padding: 0 1rem 1rem;
    }
    .tb-price-slider__inputs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Search filter: column layout on very small screens (< 500px) */
@media (max-width: 500px) {
    .tb-search-filter-bar .travelbroker-filters__bar {
        flex-direction: column;
    }
    .tb-search-filter-bar .travelbroker-filters__field,
    .tb-search-filter-bar .travelbroker-filters__field--destination {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* Package card: vertical stack on tablets and phones (900px and below) */
@media (max-width: 900px) {
    .tb-search-page .tb-package-card {
        flex-direction: column !important;
    }
    .tb-search-page .tb-package__upper__blc {
        flex-direction: column !important;
    }
    .tb-search-page .tb-package-card__gallery {
        max-width: 100% !important;
        width: 100% !important;
        flex: none !important;
    }
    .tb-search-page .tb-package-card__carousel {
        aspect-ratio: 16/9;
        min-height: 140px;
        height: auto !important;
    }
    .tb-search-page .tb-package-info_blc {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    .tb-search-page .tb-package-card__desc {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }
    .tb-search-page .tb-package-card__desc .tb-package-card__detail-value {
        display: block;
    }
    .tb-search-page .tb-package-card__detail-row {
        flex-direction: column;
        gap: 0.35rem;
    }
    .tb-search-page .tb-package-card__detail-row .tb-package-card__detail-value {
        display: block;
    }
    .tb-search-page .tb-package-card__content {
        flex-direction: column;
    }
    .tb-search-page .tb-package-card__footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem;
    }
    .tb-search-page .tb-package-card__action-blc {
        flex-direction: column !important;
    }
    .tb-search-page .tb-package-card__action-blc .tb-package-card__btn,
    .tb-search-page .tb-package-card__action-blc .tb-package-card-add__btn {
        width: 100% !important;
        text-align: center;
    }
}

/* Package card: even smaller image on phones */
@media (max-width: 700px) {
    .tb-search-page .tb-package-card__carousel {
        aspect-ratio: 2/1;
        min-height: 100px;
    }
     .tb-search-page .tb-package-card__footer {
        padding:20px 40px 40px !important;
    }
}

/* Sidebar */
.tb-search-sidebar {
    flex: 0 0 var(--tb-sidebar-width);
    position: relative;
    top: 1rem;
}

.tb-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .05);
    overflow: hidden;
}

.tb-filter-block {
    border-bottom: 1px solid var(--tb-border);
}

.tb-filter-block:last-child {
    border-bottom: none;
}

/* Price toggle */
.tb-filter-toggle-block {
    padding: 1rem 1.25rem;
}

.tb-price-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tb-price-toggle__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tb-text-dark);
}

.tb-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.tb-toggle__input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tb-toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.tb-toggle__slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.tb-toggle__input:checked + .tb-toggle__slider {
    background: var(--tb-green);
}

.tb-toggle__input:checked + .tb-toggle__slider::before {
    transform: translateX(22px);
}

/* Collapsible filter blocks */
.tb-filter-block--collapsible .tb-filter-block__header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tb-text-dark);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.tb-filter-block--collapsible .tb-filter-block__header:hover {
    background: #f9f9f9;
}

.tb-filter-block--collapsible .tb-filter-block__header_small {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0px 10px 10px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--tb-text-dark);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}



.tb-filter-block__title {
    flex: 1;
}

.tb-filter-block__chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--tb-text);
    border-bottom: 2px solid var(--tb-text);
    transform: rotate(-135deg);
    transition: transform 0.2s;
}

.tb-filter-block--collapsible.is-open .tb-filter-block__chevron {
    transform: rotate(-45deg);
}

.tb-filter-block__chevron_small {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--tb-text);
    border-bottom: 2px solid var(--tb-text);
    transform: rotate(-135deg);
    transition: transform 0.2s;
}

.tb-filter-block--collapsible.is-open .tb-filter-block__chevron_small {
    transform: rotate(-45deg);
}


.tb-filter-block--collapsible .tb-filter-block__body {
    padding: 0 1.25rem 1rem;
}

.tb-filter-block--collapsible:not(.is-open) .tb-filter-block__body {
    display: none;
}

.tb-filter-block__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.tb-filter-block__icon--dining::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
/*     background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M3 2v7h4v12h2V9h4V2H3zm14 4v16h2V6h-2zm4-4v20h2V2h-2z'/%3E%3C/svg%3E") center/contain no-repeat;
 */}

.tb-filter-block__icon--list::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E") center/contain no-repeat;
}

.tb-filter-block__icon--building::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M9 21v-6h6v6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.tb-filter-block__icon--star::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
/*     background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e6b422' stroke='%23333' stroke-width='1.5'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") center/contain no-repeat;
 */
}

.tb-filter-block__icon--price::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
/*     background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E") center/contain no-repeat;
 */}

/* Beach filter nested categories */
.tb-filter-beach {
    padding-top: 0;
}

.tb-filter-beach__category {
    border: none;
    margin: 0 -1.25rem;
    padding: 0 1.25rem;
}

.tb-filter-beach__category:last-child {
    border-bottom: none;
}

.tb-filter-beach__category-header {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 0;
}

.tb-filter-beach__category .tb-filter-block__body {
    padding: 0 0 0.75rem;
}

.tb-filter-beach__options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tb-filter-block__icon--beach::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
/*     background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M3 18c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zM21 18c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4zM12 2v20M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
 */}

.tb-filter-block__icon--water::before,
.tb-filter-block__icon--pool::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
/*     background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M2 12c2-4 6-4 8 0s6 4 8 0 4-4 4-4'/%3E%3Cpath d='M2 17c2-4 6-4 8 0s6 4 8 0 4-4 4-4'/%3E%3Cpath d='M2 7c2-4 6-4 8 0s6 4 8 0 4-4 4-4'/%3E%3C/svg%3E") center/contain no-repeat;
 */}

.tb-filter-block__icon--adult::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
/*     background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E") center/contain no-repeat;
 */}

/* Price range filter – dual-handle slider */
.tb-price-slider {
    --tb-slider-min: 0;
    --tb-slider-max: 100;
    padding: 0.5rem 0;
}

.tb-price-slider__track {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

.tb-price-slider__fill {
    position: absolute;
    left: calc(var(--tb-slider-min, 0) * 1%);
    width: calc((var(--tb-slider-max, 100) - var(--tb-slider-min, 0)) * 1%);
    top: 50%;
    margin-top: -3px;
    height: 6px;
    border-radius: 3px;
    background: var(--tb-green);
    pointer-events: none;
    z-index: 1;
}

.tb-price-slider__input {
    position: absolute;
    left: 0;
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    pointer-events: none;
    z-index: 2;
}

.tb-price-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--tb-green);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: auto;
    margin-top: -7px;
}

.tb-price-slider__input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--tb-green);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: auto;
}

.tb-price-slider__input::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
    border-radius: 3px;
}

.tb-price-slider__input::-moz-range-track {
    height: 6px;
    background: var(--tb-border);
    border-radius: 3px;
}

.tb-price-slider__input--min {
    z-index: 3;
}

.tb-price-slider__input--max::-webkit-slider-thumb {
    position: relative;
}

.tb-price-slider__track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    margin-top: -3px;
    height: 6px;
    background: var(--tb-border);
    border-radius: 3px;
    z-index: 0;
}

.tb-price-slider__inputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tb-price-slider__num-input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tb-text-dark);
    border: 1px solid var(--tb-border);
    border-radius: 4px;
    -moz-appearance: textfield;
}

.tb-price-slider__num-input::-webkit-outer-spin-button,
.tb-price-slider__num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tb-price-slider__num-input:focus {
    outline: none;
    border-color: var(--tb-green);
}
.tb-package-card__ratings-blc {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}
/* Search by name */
.tb-search-by-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tb-search-by-name__input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid var(--tb-border);
    border-radius: 6px;
    color: var(--tb-text-dark);
}

.tb-search-by-name__input::placeholder {
    color: var(--tb-text);
}

.tb-search-by-name__icon {
    display: none;
}

.tb-search-by-name__btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--tb-brown);
    color: #fff;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.tb-search-by-name__btn:hover {
    background: #7a5d12;
}

.tb-search-by-name__btn::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: translate(-40%, -50%) rotate(45deg);
}

.tb-filter-block__body .tb-search-by-name {
    position: relative;
}

/* Filter checkboxes */
.tb-filter-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--tb-text-dark);
}

.tb-filter-check_small {
    padding: 0.3rem 10px;
    font-weight: 500;
    color: var(--tb-text-dark);
    display: flex;
    gap: 8px;
}

.tb-filter-check__input {
    width: 18px;
    height: 18px;
    accent-color: var(--tb-green);
    cursor: pointer;
}

.tb-filter-departure-select {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--tb-text-dark);
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    cursor: pointer;
}

.tb-filter-departure-select:focus {
    outline: none;
    border-color: var(--tb-green);
}

.tb-filter-check__text {
    flex: 1;
}



.tb-filter-check__count {
    font-size: 0.85rem;
    color: var(--tb-text);
}

/* Hotel stars filter – visual star icons (Font Awesome style) */
.tb-filter-check--stars .tb-filter-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.1em;
    flex: 1;
}

.tb-filter-check--stars .tb-star.fa-star,
.tb-package-card__stars .tb-star.fa-star {
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
    line-height: 1;
}

.tb-filter-check--stars .tb-star.fa-star::before,
.tb-package-card__stars .tb-star.fa-star::before {
    content: "\f005";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.tb-filter-check--stars .tb-star--filled {
    color: #C9A582;
}

.tb-filter-check--stars .tb-star--empty {
    color: #d1d5db;
}

.tb-package-card__stars .tb-star--filled {
    color: #C9A582;
}

.tb-package-card__stars .tb-star--empty {
    color: #d1d5db;
}

/* Main results */
.tb-search-main {
    flex: 1;
    min-width: 0;
}

.tb-search-main__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tb-search-main__count {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tb-text-dark);
    margin: 0;
}

.tb-search-main__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tb-sort__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tb-text-dark);
}

.tb-sort__select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tb-text-dark);
    border: 1px solid var(--tb-border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    appearance: auto;
}

.tb-results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tb-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--tb-text);
    background: #fff;
    border-radius: var(--tb-radius);
    border: 1px solid var(--tb-border);
}

/* Package card */
.tb-package-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: 18px;
    box-shadow: var(--tb-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.tb-package__upper__blc {
    display: flex;
    flex-direction: row;
}

.tb-package-info_blc {
    padding: 20px;
}

.tb-package-card__gallery {
    max-width: 45%;
}

@media (max-width: 768px) {
    .tb-package-card__gallery {
       
    }
}

.tb-package-card__carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
}

@media (min-width: 768px) {
    .tb-package-card__carousel {
        height: 100%;
        min-height: 280px;
        aspect-ratio: auto;
    }
}

.tb-package-card__slide {
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.tb-package-card__slide.is-active {
    opacity: 1;
    position: relative;
}

.tb-package-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tb-package-card__carousel-prev,
.tb-package-card__carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #00000080;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.tb-package-card__carousel-prev:hover,
.tb-package-card__carousel-next:hover {
    background: #fff;
}

.tb-package-card__carousel-prev {
    left: 12px;
}

.tb-package-card__carousel-prev::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-30%, -50%) rotate(45deg);
}

.tb-package-card__carousel-next {
    right: 12px;
}

.tb-package-card__carousel-next::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: translate(-70%, -50%) rotate(45deg);
}

.tb-package-card__carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.tb-package-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.tb-package-card__dot.is-active {
    background: #fff;
}

.tb-package-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tb-package-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tb-text-dark);
    margin: 0;
    padding: 0 0 5px 0;
    line-height: 1.3;
}

.tb-package-card__title_small {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--tb-text-dark);
    margin: 0;
    padding: 0 0 5px 0;
    line-height: 1.3;
}

.tb-package-card__location {
    font-size: 0.9rem;
    color: var(--tb-text);
    margin: 0;
    padding: 0 0 10px;
}

.tb-package-card__ratings {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tb-package-card__stars-row {
    margin: 0.25rem 0 0;
    line-height: 1;
}

.tb-package-card__stars {
    font-size: 0.95rem;
    display: flex;
    letter-spacing: 0.05em;
}


.tb-package-card__reviews {
    font-size: 0.85rem;
    color: var(--tb-text);
}

.tb-package-card__tripadvisor.trip-advisor-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tb-package-card__tripadvisor-icon {
    flex-shrink: 0;
}

.tb-package-card__tripadvisor-icon img {
    display: block;
    height: 14px;
    width: auto;
}

.tb-package-card__tripadvisor-bubbles {
    display: flex;
    align-items: center;
}

.tb-package-card__tripadvisor-bubble {
    display: inline-flex;
}

.tb-package-card__tripadvisor-bubble img {
    display: block;
    width: 14px;
    height: 14px;
}

.tb-package-card__links {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.tb-package-card__link {
    color: var(--tb-green);
    cursor: pointer;
    text-decoration: underline;
}

.tb-package-card__desc {
    font-size: 0.9rem;
    color: var(--tb-text-dark);
    line-height: 1.5;
    margin: 0.75rem 0;
}

.tb-package-card__read-more {
    color: var(--tb-green);
    font-weight: 600;
    text-decoration: none;
}

.tb-package-card__read-more:hover {
    text-decoration: underline;
}

/* Booking bar (brown) */
.tb-package-card__booking-bar {
    display: flex;
    justify-content: center;
    background: var(--tb-brown-bar);
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .tb-package-card__booking-bar {
        margin-left: 0;
    }
}

/* Details table */
.tb-package-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--tb-border);
}

.tb-package-card__detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.tb-package-card__detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tb-text);
    letter-spacing: 0.05em;
    flex: 0 0 120px;
}

.tb-package-card__detail-value {
    font-size: 0.9rem;
    color: var(--tb-text-dark);
}

.tb-package-card__tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #f0ebe6;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.tb-package-card__tag-tickets {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border: 1px solid #8b6914;
    color: #8b6914;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.tb-package-card__flight-info {
    color: var(--tb-green);
    text-decoration: none;
    font-weight: 600;
}

.tb-package-card__flight-info:hover {
    text-decoration: underline;
}

/* Footer: price + continue (green) */
.tb-package-card__footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    background: #f0ebe6f2;
    color: #fff;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: -1.25rem;
    padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
    .tb-package-card__footer {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
    }
}

.tb-package-card__action-blc {
    display: flex;
    flex-direction: row;
    gap: 20px;
}


@media (max-width: 768px) {
    .tb-package-card__action-blc{
        flex-direction: column;
    }
}

.tb-package-card__price-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    color: #333333;
}
.tb-package-card__price-blocks  {
    
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        color: #333333;

}
.tb-package-card__price-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.tb-package-card__price-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.tb-package-card__price-value--total {
    font-size: 0.8rem;
    opacity: 0.9;
}

.tb-package-card__btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #fff;
    color: var(--tb-green);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.tb-package-card__btn:hover {
    background: #f0f0f0;
    color: var(--tb-green-hover);
}

.tb-package-card-add__btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #8b6914;;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.tb-package-card-add__btn:hover {
    background: #6d5210;
}

/* Hidden by filter */
.tb-package-card.is-hidden {
    display: none;
}

/* ========== Package / Hotel detail page (Tuusik-style, our styling) ========== */
.tb-detail-page {
    --tb-bg: #f5f5f5;
    --tb-border: #e5e0d8;
    --tb-text: #6c757d;
    --tb-text-dark: #333333;
    --tb-green: #153B3C;
    --tb-green-hover: #1e5254;
    --tb-brown-bar: #6d5a3d;
    --tb-tag-nights: #2563eb;
    --tb-tag-price: #b91c1c;
    --tb-radius: 12px;
    --tb-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-family: inherit;
    background: var(--tb-bg);
    padding: 1.5rem 0 2rem;
    min-height: 60vh;
}

.travelbroker-filters {
    margin: 0 0 20px 0 !important;
}
.tb-detail-filter-bar .travelbroker-filters__results {
    display: none;
}

.tb-detail-wrap {
    max-width: 1110px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.tb-detail-back {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tb-green);
    text-decoration: none;
}

.tb-detail-back:hover {
    color: var(--tb-green-hover);
    text-decoration: underline;
}

.tb-detail-page .tb-cart-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-weight: 600;
    color: var(--tb-green);
    text-decoration: none;
}

/* Header row: title + stars, tags, badge (like first screenshot) */
.tb-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.tb-detail-header__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.tb-detail-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tb-text-dark);
    margin: 0;
    line-height: 1.3;
}

.tb-detail-header__stars {
    color: #e6b422;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.tb-detail-header__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.tb-detail-hero__tag {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    color: var(--tb-text-dark);
    background: #e5e7eb;
}

.tb-detail-hero__tag--nights {
    background: var(--tb-green);
    color: #fff;
}

.tb-detail-hero__tag--price {
    background: #8b6914;
    color: #fff;
}

.tb-detail-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--tb-tag-nights);
    color: #fff;
    border-radius: 999px;
}

.tb-detail-header__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

/* Gallery: main left, 4 small right (2x2) */
.tb-detail-gallery-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--tb-radius);
}

@media (max-width: 768px) {
    .tb-detail-gallery-block {
        grid-template-columns: 1fr;
    }
}

.tb-detail-gallery-block__main {
    position: relative;
    aspect-ratio: 3/3;
    min-height: 280px;
}

.tb-detail-gallery-block__main-img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    display: block;
}

.tb-detail-gallery-block__main-img--clickable {
    cursor: pointer;
}

.tb-detail-gallery-block__main .tb-detail-gallery__nav {
    top: 50%;
    transform: translateY(-50%);
}

.tb-detail-gallery-block__main .tb-detail-gallery__nav--prev { left: 12px; }
.tb-detail-gallery-block__main .tb-detail-gallery__nav--next { right: 12px; }

.tb-detail-gallery-block__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
}

.tb-detail-gallery-block__cell {
    position: relative;
    aspect-ratio: 1;
    border: none;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    padding: 0;
}

.tb-detail-gallery-block__cell.is-active {
    box-shadow: 0 0 0 3px var(--tb-green);
}

.tb-detail-gallery-block__all {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.9);
    color: var(--tb-text-dark);
    border-radius: 6px;
}

.tb-detail-gallery__nav {
    position: absolute;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 2;
}

.tb-detail-gallery__nav--prev::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-left: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: translate(-40%, -50%) rotate(45deg);
}

.tb-detail-gallery__nav--next::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #333;
    border-top: 2px solid #333;
    transform: translate(-60%, -50%) rotate(45deg);
}

/* Gallery lightbox modal */
.tb-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-gallery-lightbox[hidden] {
    display: none !important;
}

.tb-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.tb-gallery-lightbox__content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-gallery-lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.tb-gallery-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.tb-gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tb-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.tb-gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tb-gallery-lightbox__nav--prev {
    left: 20px;
    padding-bottom: 6px;
    padding-left: 2px;
}

.tb-gallery-lightbox__nav--next {
    right: 20px;
    padding-bottom: 6px;
    padding-left: 2px;
}

.tb-gallery-lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
}

/* Two columns: main + sidebar */
.tb-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .tb-detail-layout {
        grid-template-columns: 1fr;
    }
    .tb-hotel-detail-page .tb-detail-sidebar {
        position: relative;
        order: -1;
    }
    .tb-hotel-detail-page .tb-detail-main {
        order: 0;
    }
}

.tb-detail-main {
    min-width: 0;
}

.tb-detail-read-more {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tb-green);
    text-decoration: none;
}

.tb-detail-read-more:hover {
    text-decoration: underline;
}

.tb-detail-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tb-detail-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: opacity 0.2s;
}

.tb-detail-share__btn:hover {
    opacity: 0.9;
}

.tb-detail-share__btn--gift {
    background: #ea580c;
    color: #fff;
}

.tb-detail-share__btn--fb {
    background: #1877f2;
    color: #fff;
}

.tb-detail-share__btn--email {
    background: #fff;
    color: var(--tb-text-dark);
    border: 1px solid var(--tb-border);
}

.tb-detail-section {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.tb-detail-section__title {
    font-size: 23px;
    font-weight: 700;
    color: var(--tb-text-dark);
    margin: 0 0 0.75rem;
}

.tb-detail-section__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--tb-text-dark);
    margin: 0 0 0.75rem;
}

.tb-detail-section__text--small {
    font-size: 0.875rem;
    color: var(--tb-text);
}

/* Hotel overview block (Üldine, Asukoht, Hotellis, Basseinid, Rand) */
.tb-hotel-overview__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}
@media (max-width: 768px) {
    .tb-hotel-overview__content {
        grid-template-columns: 1fr;
    }
}
.tb-hotel-overview__block {
    break-inside: avoid;
}
.tb-hotel-overview__block-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tb-text-dark);
    margin: 0 0 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--tb-border);
}
.tb-hotel-overview__table {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.tb-hotel-overview__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
}
.tb-hotel-overview__label {
    color: var(--tb-text);
}
.tb-hotel-overview__value {
    color: var(--tb-text-dark);
    font-weight: 500;
}

.tb-detail-included {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tb-detail-included li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--tb-text-dark);
    margin-bottom: 0.4rem;
}

.tb-detail-included__check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    background: var(--tb-green);
    border-radius: 50%;
    position: relative;
}

.tb-detail-included__check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tb-detail-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tb-green);
    text-decoration: none;
}

.tb-detail-link:hover {
    text-decoration: underline;
}

.tb-detail-actions {
    margin-top: 1rem;
}

.tb-detail-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.tb-detail-btn--primary {
    background: var(--tb-green);
    color: #fff;
}

.tb-detail-btn--primary:hover {
    background: var(--tb-green-hover);
    color: #fff;
}

/* Sidebar: calendar widget */
.tb-detail-sidebar {
    position: sticky;
    top: 1rem;
}

.tb-detail-calendar-widget {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    padding: 1rem 1.25rem;
}

.tb-detail-calendar-widget__title {
    font-size: 23px;
    font-weight: 700;
    color: var(--tb-text-dark);
    margin: 0 0 1rem;
}

.tb-detail-calendar-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.tb-detail-calendar-widget__month {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tb-text-dark);
}

.tb-detail-calendar-widget__nav {
    width: 32px;
    height: 32px;
    border: 1px solid var(--tb-border);
    border-radius: 6px;
    background: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--tb-text-dark);
}

.tb-detail-calendar-widget__nav:hover {
    background: var(--tb-bg);
}

.tb-detail-calendar-widget__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--tb-text);
    text-align: center;
}

.tb-detail-calendar-widget__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.tb-detail-calendar-widget__day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tb-text-dark);
    border-radius: 6px;
    border: none;
}

.tb-detail-calendar-widget__day--empty {
    visibility: hidden;
}

.tb-detail-calendar-widget__day--selected {
    background: var(--tb-green);
    color: #fff;
    border-radius: 100%;
}

/* Hotel detail page only: selected day square (not round) */
.tb-hotel-detail-page .tb-detail-calendar-widget__day--selected {
    border-radius: 5px;
    border: none;
}

/* Hotel calendar: available vs disabled days */
.tb-detail-calendar-widget__day--available {
    cursor: pointer;
    flex-direction: column;
    gap: 2px;
    padding: 2px;
}
.tb-detail-calendar-widget__day--available:hover {
    background: var(--tb-bg);
}
.tb-detail-calendar-widget__day--available.tb-detail-calendar-widget__day--selected:hover {
    background: var(--tb-green-hover, #1e5254);
}
.tb-detail-calendar-widget__day--disabled {
    color: var(--tb-text);
    opacity: 0.5;
}
.tb-cal-day-price {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--tb-green);
}
.tb-detail-calendar-widget__day--selected .tb-cal-day-price {
    color: rgba(255,255,255,0.9);
}

/* Hotel offers section */
.tb-hotel-offers__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}
.tb-hotel-offers__title-date {
    font-weight: 600;
    color: var(--tb-green);
}
.tb-hotel-offers-empty {
    color: var(--tb-text);
    font-style: italic;
}
.tb-hotel-nights-tabs {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;    
    width: 100%;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.tb-hotel-nights-tab {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    color: var(--tb-text);
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tb-hotel-nights-tab:hover {
    background: var(--tb-bg);
    border-color: var(--tb-green);
    color: var(--tb-green);
}
.tb-hotel-nights-tab.is-active {
    background: var(--tb-green);
    border-color: var(--tb-green);
    color: #fff;
}
.tb-hotel-offer-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.75rem;
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
}
.tb-hotel-offer-card__row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: space-between;
}
.tb-hotel-offer-card__room-images {
    width: 40%;
    min-height: 180px;
    min-width: 200px;
    max-width: 200px;
    min-width: 90px;
    border-radius: 10px 0px 0px;
    overflow: hidden;
    background: var(--tb-border, #e5e0d8);
    position: relative;
    align-self: stretch;
}
.tb-hotel-offer-card__room-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tb-hotel-offer-card__room-img[data-tb-room-gallery] {
    cursor: pointer;
}
.tb-hotel-offer-card__room-img-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 1;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 4px;
}
.tb-hotel-offer-card__info {
    margin: 20px 0;
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.tb-hotel-offer-card__room {
    font-weight: 600;
    color: var(--tb-text-dark);
}
.tb-hotel-offer-card__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    width: 100%;
    background: rgba(240, 235, 230, 0.95);
}
.tb-hotel-offer-card__btn,
.tb-hotel-offer-card__cart {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
}
.tb-hotel-offer-card__btn {
    color: var(--tb-green);
    text-decoration: underline;
}
.tb-hotel-offer-card__cart {
    background: var(--tb-green);
    color: #fff;
    border: none;
}
.tb-hotel-offer-card__meal-select {
    display: flex;
    align-items: center;
    width: 100%;
    padding-right: 20px;
    gap: 0.5rem;
}
.tb-hotel-offer-card__meal-label {
    font-size: 0.85rem;
    color: var(--tb-text);
    white-space: nowrap;
}
.tb-hotel-offer-card__meal-input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    border: 1px solid var(--tb-border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.tb-hotel-offer-card__room-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.5rem;
    width: 100%;
    padding-right: 20px;
}

.tb-hotel-offer-card__room-tag {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    color: var(--tb-text-dark);
    background: #e5e7eb;
}

@media (max-width: 700px) {
    .tb-hotel-offer-card {
        flex-direction: column;
        align-items: stretch;
    }
    .tb-hotel-offer-card__row {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .tb-hotel-offer-card__room-images {
        width: 100%;
        min-width: unset;
        max-width: none;
        border-radius: 10px 10px 0 0;
    }
    .tb-hotel-offer-card__info {
        width: 100%;
        margin-top: 0;
        padding: 0 1rem;
        flex-direction: column;
    }
    .tb-hotel-offer-card__meal-select {
        width: 100%;
    }
    .tb-hotel-offer-card__meal-select .tb-hotel-offer-card__meal-input {
        width: 100%;
        box-sizing: border-box;
    }
    .tb-hotel-offer-card__room-tags {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding-right: 1rem;
    }
    .tb-hotel-offer-card__room-tag {
        width: auto;
    }
    .tb-hotel-offer-card__price {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: center;
    }
    .tb-hotel-offer-card__price .tb-package-card-add__btn {
        width: 100%;
    }
}

/* ========== Cart page ========== */
span.tb-hotel-offers__title-text {
    font-size: 23px;
    margin-top: 20px;
}
.tb-cart-page {
    --tb-bg: #f5f5f5;
    --tb-border: #e5e0d8;
    --tb-text: #6c757d;
    --tb-text-dark: #333333;
    --tb-green: #153B3C;
    font-family: inherit;
    background: var(--tb-bg);
    padding: 1.5rem 0 2rem;
    min-height: 60vh;
}

.tb-cart-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tb-cart-page__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tb-text-dark);
    margin: 0 0 1rem;
}

.tb-cart-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tb-cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tb-cart-item__main {
    flex: 1;
    min-width: 0;
}

.tb-cart-item__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tb-text-dark);
    margin: 0 0 0.25rem;
}

.tb-cart-item__title-sep {
    font-weight: 400;
    color: var(--tb-text);
}

.tb-cart-item__details {
    font-size: 0.9rem;
    font-weight: 400;
    color: #000000;
}

.tb-cart-item__dest,
.tb-cart-item__meta {
    font-size: 0.9rem;
    color: var(--tb-green);
    margin: 0;
}

.tb-cart-item__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tb-green);
}

.tb-cart-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f0ebe6;
    color: var(--tb-text-dark);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.tb-cart-item__remove:hover {
    background: #e5e0d8;
}

.tb-cart-empty {
    padding: 2rem;
    text-align: center;
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: 12px;
}

.tb-cart-empty p {
    margin: 0 0 1rem;
    color: var(--tb-text);
}

.tb-cart-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tb-border);
}

.tb-cart-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tb-text-dark);
    margin: 0 0 0.75rem;
}

/* ========== Checkout page ========== */
.tb-checkout-page {
    --tb-bg: #f5f5f5;
    --tb-border: #e5e0d8;
    --tb-text: #6c757d;
    --tb-text-dark: #333333;
    --tb-green: #153B3C;
    font-family: inherit;
    background: var(--tb-bg);
    padding: 1.5rem 0 2rem;
    min-height: 60vh;
}

.tb-checkout-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tb-checkout-page__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tb-text-dark);
    margin: 0 0 1rem;
}

.tb-checkout-layout {
    display: flex;
    flex-direction: column-reverse;
    align-items: start;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .tb-checkout-layout {
    }
}

.tb-checkout-main {
    min-height: 100%;
    width: 100%;
    background: #f0ebe6f2;
    border-radius: 18px;
    padding: 20px;
}
.tb-checkout-form .tb-form-row {
    min-width: 100%;
    margin-bottom: 1rem;
}

.tb-form-row-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 769px) {
    .tb-form-row-group {
        grid-template-columns: 1fr 1fr;
    }

    .tb-form-row-group .tb-form-row {
        margin-bottom: 0;
    }
}

.tb-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tb-text-dark);
    margin-bottom: 0.35rem;
}

.tb-form-required {
    color: #b91c1c;
}

.tb-form-input {
    padding: 10px 10px !important;
    background-color: #ffffff !important;
    border: none !important;
    text-align: center !important;
    margin-bottom: 5px !important;
    border-radius: 20px !important;
    width: 100% !important;
}

.tb-form-textarea {
    min-height: 80px;
    resize: vertical;
}

.tb-checkout-error {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 0.9rem;
}

.tb-checkout-success {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #166534;
    font-size: 0.9rem;
}

.tb-checkout-success--full {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    margin: 2rem 0;
    padding: 2rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    background: #fff !important;
    color: #166534 !important;
    border: 2px solid #22c55e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tb-checkout-submit {
    margin-top: 0.5rem;
}

.tb-checkout-sidebar {
    background: #fff;
    width: 100%;
    border: 1px solid var(--tb-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1rem 1.25rem;
    position: sticky;
    top: 1rem;
}

.tb-checkout-sidebar__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tb-text-dark);
    margin: 0 0 0.75rem;
}

.tb-checkout-cart-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tb-checkout-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.tb-checkout-cart-item__main {
    flex: 1;
    min-width: 0;
}

.tb-checkout-cart-item__name {
    font-weight: 600;
    color: var(--tb-text-dark);
}

.tb-checkout-cart-item__details {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--tb-text);
    margin-top: 0.15rem;
}

.tb-checkout-cart-item__price {
    font-weight: 700;
    color: var(--tb-green);
    flex-shrink: 0;
}

.tb-checkout-cart-item__remove {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: #f0ebe6;
    color: var(--tb-text-dark);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.tb-checkout-cart-item__remove:hover {
    background: #e5e0d8;
}

.tb-checkout-total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tb-text-dark);
    margin: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--tb-border);
}

.tb-form-input {
    min-width: 100%;
}


button.tb-detail-btn,
button.tb-package-card-add__btn {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* ========== Floating cart button (bottom-right) ========== */
.tb-cart-float {
    --tb-float-bg: #153B3C;
    --tb-float-fg: #fff;
    --tb-float-size: 56px;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    width: var(--tb-float-size);
    height: var(--tb-float-size);
    border-radius: 50%;
    background: var(--tb-float-bg);
    color: var(--tb-float-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tb-cart-float:hover {
    color: var(--tb-float-fg);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.tb-cart-float__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-cart-float__icon svg {
    width: 20px;
    height: 20px;
    padding-right: 1px;
}

.tb-cart-float__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    background: #c53030;
    color: #fff;
    border-radius: 10px;
    border: 2px solid #fff;
}

.tb-cart-float .tb-cart-count {
    display: inline-block;
}

.tb-cart-link--disabled,
.tb-cart-float.tb-cart-link--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: auto;
}

.tb-cart-float.tb-cart-link--disabled:hover {
    transform: none;
}
