﻿/* Tour booking page styles */
.tour-booking-banner-background {
    background-image: var(--tour-booking-banner-image, url("/assets/images/bg/04.jpg"));
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.tour-month-picker {
    position: relative;
}

.tour-month-trigger {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--bs-body-color, #687080);
    font: inherit;
    text-align: left;
}

.tour-month-trigger-value {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: #747b88;
}

.tour-month-trigger-value > i {
    color: #4f5867;
    font-size: 1.3rem;
}

.tour-month-trigger-chevron {
    flex: 0 0 auto;
    color: #7c8390;
    font-size: .85rem;
    transition: transform .18s ease;
}

.tour-month-picker.show .tour-month-trigger-chevron {
    transform: rotate(180deg);
}

.tour-month-trigger:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 3px;
}

.tour-month-dropdown {
    width: min(360px, calc(100vw - 2rem));
    margin-top: 10px;
    padding: 15px;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 14px 34px rgba(29, 36, 52, .16);
}

.tour-month-picker-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    margin-bottom: 13px;
    color: #303848;
    text-align: center;
}

.tour-month-picker-header strong {
    font-size: 1rem;
    font-weight: 700;
}

.tour-month-year-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #697382;
    font-size: 1.1rem;
    transition: background-color .16s ease, color .16s ease;
}

.tour-month-year-button:hover {
    background: rgba(var(--bs-primary-rgb), .08);
    color: var(--bs-primary);
}

.tour-month-year-button:disabled {
    background: transparent;
    color: #aeb4bf;
    cursor: not-allowed;
    opacity: .6;
}

.tour-month-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tour-month-option {
    min-height: 56px;
    padding: 8px;
    border: 1px solid #e6e8ef;
    border-radius: 11px;
    background: var(--bs-body-bg, #fff);
    color: #353d4b;
    font-size: .95rem;
    font-weight: 500;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.tour-month-option:hover {
    border-color: rgba(var(--bs-primary-rgb), .55);
    background: rgba(var(--bs-primary-rgb), .05);
    color: var(--bs-primary);
}

.tour-month-option.is-selected {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
    color: #fff;
    box-shadow: 0 3px 8px rgba(var(--bs-primary-rgb), .2);
}

.tour-month-option:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.tour-month-picker-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.tour-month-clear {
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: var(--bs-primary);
    font-size: .82rem;
    font-weight: 600;
}

.tour-month-clear:hover {
    text-decoration: underline;
}

.tour-booking-list {
    display: grid;
    gap: 12px;
}

.tour-result-item {
    min-width: 0;
    width: 100%;
    background: var(--bs-body-bg, #fff);
    border: 1px solid #e7e9f0;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}

    .tour-result-item:hover {
        border-color: #d9d7f4;
        box-shadow: 0 8px 24px rgba(28, 31, 46, .08);
    }

.tour-booking-row {
    display: grid;
    grid-template-columns: 88px minmax(170px, 2.75fr) minmax(64px, .85fr) minmax(68px, .75fr) minmax(82px, 1fr) minmax(82px, 1fr) minmax(96px, 1.1fr) minmax(78px, .9fr) 190px;
    grid-template-areas: "image title destination duration start end price seats actions";
    align-items: stretch;
    padding: 10px 12px;
}

.tour-booking-image {
    grid-area: image;
    display: block;
    align-self: center;
    width: 76px;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
    background: #f2f3f8;
}

    .tour-booking-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.tour-booking-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #9296a5;
    font-size: 1.4rem;
}

.tour-booking-title {
    grid-area: title;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 14px;
}

.tour-booking-code {
    align-self: flex-start;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(var(--bs-primary-rgb), .09);
    color: var(--bs-primary);
    font-size: .69rem;
    font-weight: 700;
    line-height: 1.4;
}

.tour-booking-name {
    color: var(--bs-heading-color, #202334);
    font-size: .93rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

    .tour-booking-name:hover {
        color: var(--bs-primary);
    }

.tour-booking-route {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    color: #74798a;
    font-size: .73rem;
    line-height: 1.4;
}

.tour-booking-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 8px 10px;
    border-left: 1px solid #eef0f4;
    color: #565c6e;
    font-size: .76rem;
    line-height: 1.35;
}

    .tour-booking-field strong {
        color: #303548;
        font-size: .77rem;
        font-weight: 650;
        overflow-wrap: anywhere;
    }

    .tour-booking-field > span:not(.tour-booking-label) {
        color: #7d8290;
        font-size: .7rem;
    }

.tour-booking-label {
    color: #858a98;
    font-size: .62rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .025em;
}

.tour-booking-destination {
    grid-area: destination;
}

.tour-booking-duration {
    grid-area: duration;
}

.tour-booking-start-date {
    grid-area: start;
}

.tour-booking-end-date {
    grid-area: end;
}

.tour-booking-price {
    grid-area: price;
}

.tour-booking-rating-field {
    grid-area: seats;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

    .tour-booking-rating-field i {
        color: #e7a51a;
        font-size: .85rem;
    }

    .tour-booking-rating-field strong {
        color: #303548;
        font-size: .8rem;
    }

.tour-booking-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    align-self: center;
    gap: 8px;
}

.tour-booking-book {
    flex: 1;
    min-width: 0;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 650;
    white-space: nowrap;
}

.tour-booking-detail-toggle {
    flex: 1;
    display: inline-flex;
    min-width: 0;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 9px;
    border: 1px solid rgba(var(--bs-primary-rgb), .2);
    border-radius: 8px;
    background: rgba(var(--bs-primary-rgb), .06);
    color: var(--bs-primary);
    font-size: .72rem;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

    .tour-booking-detail-toggle:hover:not(:disabled) {
        border-color: var(--bs-primary);
        background: var(--bs-primary);
        color: #fff;
    }

    .tour-booking-detail-toggle:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

    .tour-booking-detail-toggle i {
        transition: transform .2s ease;
    }

    .tour-booking-detail-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

.tour-booking-expanded {
    border-top: 1px solid #eef0f4;
    background: #f7f8fc;
}

.tour-booking-expanded-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
}

.tour-booking-expanded [hidden] {
    display: none !important;
}

.tour-details-loading {
    display: flex;
    min-height: 104px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #e7e9f0;
    border-radius: 12px;
    background: var(--bs-body-bg, #fff);
    color: #626879;
    font-size: .86rem;
}

.tour-details-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid #f2c9c5;
    border-radius: 12px;
    background: #fff;
    color: #b42318;
    font-size: .86rem;
}

.tour-details-tabs {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px;
    border: 0;
    border-radius: 12px;
    background: #eeedf6;
}

.tour-details-tabs .nav-item {
    flex: 0 0 auto;
}

.tour-details-tabs .nav-link {
    display: inline-flex;
    min-width: 132px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 9px;
    color: #626879;
    font-size: .88rem;
    font-weight: 600;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.tour-details-tabs .nav-link i {
    font-size: 1rem;
}

.tour-details-tabs .nav-link:hover:not(.active) {
    background: rgba(var(--bs-primary-rgb), .08);
    color: var(--bs-primary);
}

.tour-details-tabs .nav-link.active {
    background: var(--bs-primary);
    color: #fff;
    box-shadow: 0 3px 9px rgba(var(--bs-primary-rgb), .24);
}

.tour-details-tabs .nav-link:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.tour-details-tab-content {
    margin-top: 13px;
    padding: 6px 18px;
    border: 1px solid #e7e9f0;
    border-radius: 12px;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 3px 12px rgba(28, 31, 46, .045);
}

.tour-booking-prices {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.tour-booking-price-option {
    display: flex;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 12px 3px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e7e9f0;
    font-size: .85rem;
    overflow-wrap: anywhere;
}

.tour-booking-price-option dt {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    gap: 9px;
    color: #3f4655;
    font-size: .86rem;
    font-weight: 550;
}

.tour-booking-price-name > i {
    flex: 0 0 auto;
    color: var(--bs-primary);
    font-size: .9rem;
}

.tour-booking-price-name > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-booking-price-option dd {
    flex: 0 0 auto;
    margin: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb), .08);
    color: var(--bs-primary);
    font-size: .82rem;
    font-weight: 700;
}

.tour-booking-expanded-inner p {
    margin: 5px 0 0;
    color: #626879;
    font-size: .85rem;
    line-height: 1.6;
}

.tour-booking-empty-detail {
    margin: 0;
    padding: 16px;
    border: 1px dashed #d9dce5;
    border-radius: 8px;
    color: #74798a;
    font-size: .86rem;
    text-align: center;
}

.tour-detail-row-list,
.tour-itinerary-list {
    display: flex;
    flex-direction: column;
}

.tour-detail-row {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 9px 3px;
    border-bottom: 1px solid #e7e9f0;
    color: #454c5b;
    font-size: .84rem;
    line-height: 1.4;
}

.tour-detail-row:last-child,
.tour-booking-price-option:last-child {
    border-bottom: 0;
}

.tour-detail-row > i {
    flex: 0 0 17px;
    color: var(--bs-primary);
    font-size: .92rem;
    text-align: center;
}

.tour-detail-row-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-detail-row-label {
    min-width: 0;
    max-width: 42%;
    flex: 0 1 auto;
    overflow: hidden;
    color: #303548;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-itinerary-description {
    color: #626879;
    font-size: .8rem;
}

.tour-booking-empty {
    padding: 28px 18px;
    border: 1px solid #e7e9f0;
    border-radius: 14px;
    color: #74798a;
    text-align: center;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .tour-booking-row {
        grid-template-columns: 84px minmax(150px, 2fr) minmax(74px, .9fr) minmax(74px, .8fr) minmax(86px, .9fr) 184px;
        grid-template-areas:
            "image title destination duration start actions"
            "image end end price seats actions";
    }
}

@media (max-width: 767.98px) {
    .tour-booking-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-areas:
            "image title title"
            "destination destination destination"
            "duration start end"
            "price price seats"
            "actions actions actions";
        padding: 10px;
    }

    .tour-booking-image {
        width: 66px;
        height: 62px;
    }

    .tour-booking-title {
        padding: 0 8px;
    }

    .tour-booking-name {
        font-size: .9rem;
    }

    .tour-booking-field {
        padding: 10px 8px;
        border-top: 1px solid #eef0f4;
        border-left: 0;
    }

    .tour-booking-destination {
        margin-top: 8px;
    }

    .tour-booking-start-date,
    .tour-booking-end-date {
        text-align: left;
    }

    .tour-booking-actions {
        margin-top: 10px;
    }

    .tour-booking-expanded-inner {
        gap: 12px;
        padding: 14px 12px;
    }

    .tour-details-tabs {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tour-details-tabs .nav-link {
        width: 100%;
        min-width: 0;
        gap: 6px;
        padding: 10px 8px;
        font-size: .82rem;
    }

    .tour-details-tabs .nav-item {
        min-width: 0;
    }

    .tour-details-tab-content {
        margin-top: 10px;
        padding: 4px 12px;
    }

    .tour-booking-price-option {
        gap: 8px;
        padding: 11px 0;
    }

    .tour-detail-row {
        gap: 8px;
        padding: 9px 0;
        font-size: .8rem;
    }

    .tour-detail-row-label {
        max-width: 45%;
    }
}

/* Filter range slider styles */
.noUi-connect {
    background: var(--bs-primary);
}

.noUi-target {
    background: rgba(var(--bs-primary-rgb), 0.1);
    border: 0;
    border-radius: 4px;
    box-shadow: none;
}

.noUi-horizontal {
    height: 5px;
}

    .noUi-horizontal .noUi-handle {
        top: -7px;
        right: -17px;
        width: 20px;
        height: 20px;
        cursor: e-resize;
        border: 5px solid #fff;
        border-radius: 50%;
        background: var(--bs-primary);
        box-shadow: 0 0 0 1px rgb(var(--bs-primary-rgb));
    }

        .noUi-horizontal .noUi-handle::before,
        .noUi-horizontal .noUi-handle::after {
            display: none;
        }

.noui-wrapper input[class*='input-with-'] {
    width: 100px;
    border: 0;
    background-color: transparent;
    color: var(--bs-primary);
}

.input-with-range-max {
    text-align: right;
}
