/* Scoped Tour browse + detail. Do not style Home/Auth. */

body.has-app-shell.is-tour-shell .bc_wrap {
    background: #f4f6fb;
}

body.has-app-shell.is-tour-detail-shell .bc_wrap {
    padding-bottom: calc(var(--app-bottom-offset) + 72px);
}

.tour-browse,
.tour-detail,
.tour-filter-sheet {
    font-family: Poppins, system-ui, sans-serif;
    color: var(--color-text-primary);
}

.tour-browse {
    padding: 12px 16px 24px;
}

.tour-browse__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.tour-browse__back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.tour-browse__kicker {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.tour-browse__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.tour-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: var(--radius-pill);
    padding: 6px 6px 6px 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.tour-search__icon {
    color: var(--color-text-muted);
}

.tour-search__input {
    flex: 1;
    border: 0;
    outline: none;
    height: 36px;
    font-size: 14px;
    background: transparent;
    min-width: 0;
}

.tour-search__submit {
    border: 0;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-pill);
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
}

.tour-chips {
    margin-top: 14px;
}

.tour-chips__label,
.tour-filter__group h3 {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 700;
}

.tour-chips__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tour-chip {
    border: 0;
    background: #eef2f7;
    color: var(--color-text-primary);
    border-radius: var(--radius-pill);
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tour-chip input {
    display: none;
}

.tour-chip.is-active {
    background: var(--color-primary);
    color: #fff;
}

.tour-browse__toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 12px;
}

.tour-browse__filter-btn,
.tour-browse__sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
}

.tour-browse__filter-btn {
    border: 0;
    background: #16357a;
    color: #fff;
}

.tour-browse__sort {
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    position: relative;
}

.tour-browse__sort-icon {
    color: #eab308;
}

.tour-browse__sort-select {
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    max-width: 118px;
    outline: none;
}

.tour-browse__count {
    margin: 0 0 0 auto;
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.tour-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tour-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.tour-card__media {
    display: block;
    position: relative;
    height: 180px;
    background: #dbe3ef;
}

.tour-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tour-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tour-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    width: fit-content;
}

.tour-badge--hot {
    background: #e11d48;
}

.tour-badge--sale {
    background: #f59e0b;
}

.tour-card__rating-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 4px 8px;
    font-size: 11px;
}

.tour-card__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.tour-card__dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    display: block;
}

.tour-card__dots i.is-active {
    background: #fff;
}

.tour-card__media .service-wishlist {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e11d48;
    z-index: 2;
}

.tour-card__body {
    padding: 12px 14px 14px;
}

.tour-card__title {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.3;
}

.tour-card__title a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.tour-card__loc {
    margin: 0 0 8px;
    color: var(--color-text-secondary);
    font-size: 13px;
}

.tour-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.tour-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tour-card__price s {
    display: block;
    color: var(--color-text-muted);
    font-size: 12px;
}

.tour-card__price strong {
    color: var(--color-primary);
    font-size: 20px;
}

.tour-card__cta {
    background: var(--color-primary);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.tour-empty {
    padding: 24px 8px;
    text-align: center;
    color: var(--color-text-secondary);
}

.tour-pagination {
    padding: 8px 0 16px;
    overflow-x: auto;
}

.tour-filter-sheet[hidden] {
    display: none !important;
}

.tour-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.tour-filter-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
}

.tour-filter-sheet__panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    bottom: var(--app-bottom-offset);
    max-height: min(78vh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 16px 16px 20px;
    box-shadow: var(--shadow-modal);
}

.tour-filter-sheet__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tour-filter-sheet__close {
    border: 0;
    background: #f1f5f9;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.tour-filter__group {
    margin-bottom: 16px;
}

.tour-filter__actions {
    display: flex;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 8px;
}

.tour-filter__reset,
.tour-filter__apply {
    flex: 1;
    height: 44px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: 0;
}

.tour-filter__reset {
    background: #eef2f7;
}

.tour-filter__apply {
    background: var(--color-primary);
    color: #fff;
}

.tour-detail {
    padding-bottom: 8px;
}

.tour-hero {
    position: relative;
    height: 260px;
    background: #0f172a;
    overflow: hidden;
}

.tour-hero img,
.tour-hero__empty {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tour-hero__back,
.tour-hero__wish {
    position: absolute;
    top: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #0f172a;
}

.tour-hero__back {
    left: 14px;
}

.tour-hero__wish {
    right: 14px;
    cursor: pointer;
}

.tour-hero__count {
    position: absolute;
    right: 14px;
    bottom: 72px;
    border: 0;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 4px 8px;
    font-size: 12px;
    z-index: 2;
}

.tour-hero__copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 16px 16px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.78));
    color: #fff;
}

.tour-hero__copy h1 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.25;
}

.tour-hero__copy p {
    margin: 0;
    font-size: 12px;
    opacity: 0.92;
}

.tour-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px 12px 4px;
}

.tour-meta > div {
    background: #fff;
    border-radius: 12px;
    padding: 8px 6px;
    text-align: center;
}

.tour-meta span {
    display: block;
    font-size: 10px;
    color: var(--color-text-muted);
}

.tour-meta strong {
    font-size: 12px;
}

.tour-tabs {
    display: flex;
    gap: 8px;
    padding: 8px 16px 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--color-border);
}

.tour-tabs button {
    border: 0;
    background: transparent;
    padding: 10px 4px 12px;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.tour-tabs button.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tour-panel {
    padding: 14px 16px;
}

.tour-panel[hidden] {
    display: none !important;
}

.tour-panel__card,
.tour-includes,
.tour-itinerary__item,
.tour-book {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
}

.tour-panel__card,
.tour-panel__card p {
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}

.tour-includes h4,
.tour-itinerary__item h4 {
    font-size: 15px;
    margin: 0 0 8px;
}

.tour-includes__item {
    padding: 6px 0;
    font-size: 14px;
}

.tour-includes__item.is-in::before {
    content: "✓ ";
    color: var(--color-success);
}

.tour-includes__item.is-out::before {
    content: "✕ ";
    color: var(--color-danger);
}

.tour-itinerary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tour-book-wrap {
    padding: 0 16px 16px;
}

body.has-app-shell.is-tour-detail-shell .tour-book.bc_single_book_wrap,
body.has-app-shell.is-tour-detail-shell .tour-detail .bc_single_book_wrap {
    display: block !important;
    position: static !important;
    height: auto !important;
    overflow: visible !important;
    margin-top: 0;
    z-index: auto;
}

.tour-book .form-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.tour-book__date-field {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.tour-book .submit-group .btn,
.tour-book__submit-inline .btn {
    width: 100%;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #fff;
}

.tour-sticky-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    bottom: var(--app-bottom-offset);
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
}

.tour-sticky-bar__price strong {
    color: var(--color-primary);
    font-size: 18px;
}

.tour-sticky-bar__chat {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-left: auto;
}

.tour-sticky-bar__book {
    background: var(--color-primary);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: var(--radius-pill);
    padding: 11px 18px;
    font-weight: 700;
    white-space: nowrap;
}

body.has-app-shell.is-tour-shell .bc_search_tour,
body.has-app-shell.is-tour-shell .bc_banner,
body.has-app-shell.is-tour-detail-shell .bc-more-book-mobile,
body.has-app-shell.is-tour-detail-shell .bravo-more-book-mobile {
    display: none !important;
}

@media (min-width: 431px) {
    .tour-browse,
    .tour-detail {
        max-width: var(--app-max-width);
        margin: 0 auto;
    }
}
