/* Scoped Visa browse / detail / apply. Do not restyle Home/Tour/Hotel. */

body.has-app-shell.is-visa-shell .bc_wrap {
    background: #f4f6fb;
}

body.has-app-shell.is-visa-detail-shell .bc_wrap {
    padding-bottom: calc(var(--app-bottom-offset) + 72px);
}

body.has-app-shell.is-visa-apply-shell .bc_wrap {
    padding-bottom: 24px;
    background: #f4f6fb;
}

.visa-browse,
.visa-detail,
.visa-apply,
.visa-filter-sheet,
.visa-user-detail {
    font-family: Poppins, system-ui, sans-serif;
    color: var(--color-text-primary);
}

.visa-browse,
.visa-apply,
.visa-user-detail {
    padding: 12px 16px 24px;
}

.visa-browse__head,
.visa-apply__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.visa-browse__back,
.visa-apply__back,
.visa-hero__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;
}

.visa-browse__kicker,
.visa-apply__kicker {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.visa-browse__title,
.visa-apply__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.visa-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    padding: 6px 8px 6px 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.visa-search__icon {
    color: #94a3b8;
    display: flex;
}

.visa-search__input {
    flex: 1;
    border: 0;
    background: transparent;
    min-width: 0;
    font-size: 14px;
}

.visa-search__input:focus {
    outline: none;
}

.visa-search__submit {
    border: 0;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13px;
}

.visa-chips {
    margin-top: 14px;
}

.visa-chips__label,
.visa-filter__group h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
}

.visa-chips__row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.visa-chip {
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--color-text-primary);
    text-decoration: none;
}

.visa-chip.is-active,
.visa-chip.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.visa-chip input {
    display: none;
}

.visa-browse__toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 12px;
}

.visa-browse__filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
}

.visa-browse__sort {
    margin-left: auto;
}

.visa-browse__sort-select {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 12px;
    max-width: 140px;
}

.visa-browse__count {
    font-size: 12px;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.visa-browse__results.is-loading,
.visa-browse__count.is-loading {
    opacity: 0.55;
}

.visa-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.visa-card__media {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
    position: relative;
}

.visa-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visa-card__sale {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    border-radius: 999px;
    padding: 2px 6px;
}

.visa-card__body {
    min-width: 0;
    flex: 1;
}

.visa-card__meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.visa-card__title {
    margin: 4px 0;
    font-size: 16px;
}

.visa-card__title a {
    color: inherit;
    text-decoration: none;
}

.visa-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.visa-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.visa-card__price strong {
    color: var(--color-primary);
}

.visa-card__price s {
    color: #94a3b8;
    margin-right: 6px;
    font-size: 12px;
}

.visa-card__cta {
    background: var(--color-primary);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

.visa-empty {
    background: #fff;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    color: #64748b;
}

.visa-pagination {
    padding: 8px 0 16px;
    overflow-x: auto;
}

.visa-filter-sheet[hidden] {
    display: none !important;
}

.visa-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.visa-filter-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
}

.visa-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);
}

.visa-filter-sheet__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.visa-filter-sheet__close {
    border: 0;
    background: #f1f5f9;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.visa-filter__group {
    margin-bottom: 16px;
}

.visa-filter__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.visa-filter__reset,
.visa-filter__apply {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 12px;
    font-weight: 600;
}

.visa-filter__reset {
    background: #f1f5f9;
}

.visa-filter__apply {
    background: var(--color-primary);
    color: #fff;
}

.visa-hero {
    position: relative;
    min-height: 220px;
    background: #0f172a;
}

.visa-hero img,
.visa-hero__empty {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.visa-hero__empty {
    background: linear-gradient(180deg, #1e293b, #0f172a);
}

.visa-hero__back {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.visa-hero__copy {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: #fff;
}

.visa-hero__copy p {
    margin: 0 0 4px;
    font-size: 13px;
    opacity: 0.9;
}

.visa-hero__copy h1 {
    margin: 0;
    font-size: 22px;
}

.visa-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 16px;
}

.visa-meta div {
    background: #fff;
    border-radius: 14px;
    padding: 10px 12px;
}

.visa-meta span {
    display: block;
    font-size: 11px;
    color: #64748b;
}

.visa-price-row {
    padding: 0 16px 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.visa-price-row strong {
    font-size: 22px;
    color: var(--color-primary);
}

.visa-tabs {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    overflow-x: auto;
}

.visa-tabs button {
    border: 0;
    background: transparent;
    padding: 8px 4px;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.visa-tabs button.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.visa-panel {
    padding: 0 16px 16px;
}

.visa-panel[hidden] {
    display: none !important;
}

.visa-panel__card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
}

.visa-notes {
    margin: 0;
    padding-left: 18px;
}

.visa-book {
    padding: 0 16px 16px;
}

.visa-book__form {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
}

.visa-book__head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.visa-book__guests {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.visa-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visa-stepper button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.visa-stepper input {
    width: 48px;
    text-align: center;
    border: 0;
}

.visa-book__total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
}

.visa-book__submit {
    width: 100%;
    border: 0;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    padding: 12px;
    font-weight: 700;
}

.visa-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;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
}

.visa-sticky-bar__price {
    flex: 1;
}

.visa-sticky-bar__price strong {
    color: var(--color-primary);
    font-size: 18px;
}

.visa-sticky-bar__book {
    background: var(--color-primary);
    color: #fff;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 11px 18px;
    font-weight: 700;
}

.visa-apply__nav {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.visa-apply__nav-btn {
    border: 0;
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.visa-simple-form__pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.visa-simple-form__body {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
}

.visa-simple-form__body .form-control,
.visa-simple-form__body select,
.visa-simple-form__body textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
}

.visa-simple-form__body .btn-primary {
    width: 100%;
    border-radius: 999px;
    margin-top: 8px;
    background: var(--color-primary);
    border: 0;
    padding: 12px;
}

.visa-simple-form .invalid-feedback {
    color: #dc2626;
    font-size: 12px;
}

.visa-user-detail__meta {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}

.visa-user-detail__meta p {
    margin: 0 0 6px;
    font-size: 13px;
}

.visa-user-detail__tabs {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    overflow-x: auto;
}

.visa-applicant-view__steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 12px;
}

body.has-app-shell.is-visa-shell .bc_search_tour,
body.has-app-shell.is-visa-shell .bc_banner,
body.has-app-shell.is-visa-detail-shell .bc-more-book-mobile {
    display: none !important;
}

@media (min-width: 431px) {
    .visa-browse,
    .visa-detail,
    .visa-apply,
    .visa-user-detail {
        max-width: var(--app-max-width);
        margin: 0 auto;
    }
}
