.booking-page {
    background: #eef3fb;
}

.booking-page.sptb,
.booking-page .sptb {
    padding-top: 28px;
}

.booking-cabin-search-card.card,
.booking-cabin-controls.card,
.booking-cabin-option.card {
    background: #ffffff;
    border: none;
    border-radius: 10px;
    box-shadow: none;
}

.booking-cabin-search-card .card-header,
.booking-cabin-controls .card-header {
    align-items: center;
    background: transparent;
    border-bottom: 0;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 16px 18px 0;
}

.booking-cabin-search-card .card-title,
.booking-cabin-controls .card-title {
    color: #246484;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}

.booking-cabin-search-card .card-body,
.booking-cabin-controls .card-body {
    padding: 14px 18px 18px;
}

.booking-cabin-search-card .row {
    align-items: flex-end;
    padding-top: 0 !important;
}

.booking-cabin-search-card label {
    color: #5f7189;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.booking-cabin-search-card .select2-container {
    width: 100% !important;
}

.booking-cabin-search-card .select2-container--default .select2-selection--single {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d7e1ee;
    border-radius: 6px !important;
    box-shadow: none;
    display: flex;
    min-height: 48px;
    padding: 0 42px 0 14px;
}

.booking-cabin-search-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #243842;
    font-weight: 600;
    line-height: 1.3;
    padding: 0;
}

.booking-cabin-search-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

.booking-cabin-controls .card-options {
    color: #7f9aa7;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.booking-cabin-filter__scroll {
    overflow-x: auto;
}

.booking-cabin-filter__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.booking-cabin-filter__tabs li {
    margin: 0;
}

.booking-cabin-filter__tabs a {
    align-items: center;
    background: #f3f7fc;
    border: 1px solid #d4deec;
    border-radius: 6px;
    color: #0b6f97;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    min-width: 150px;
    padding: 10px 16px;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.booking-cabin-filter__tabs a:hover,
.booking-cabin-filter__tabs a:focus {
    border-color: #0b6f97;
    color: #0b6f97;
    text-decoration: none;
}

.booking-cabin-filter__tabs a.active {
    background: #0b6f97;
    border-color: #0b6f97;
    color: #ffffff;
}

.booking-cabin-filter__tabs--promotions a {
    justify-content: flex-start;
    min-width: 0;
}

.booking-cabin-filter__check {
    background: #ffffff;
    border: 1px solid #7fb2c8;
    border-radius: 2px;
    flex: 0 0 auto;
    height: 14px;
    position: relative;
    width: 14px;
}

.booking-cabin-filter__tabs a.active .booking-cabin-filter__check::after {
    border: solid #0b6f97;
    border-width: 0 2px 2px 0;
    content: "";
    height: 8px;
    left: 4px;
    position: absolute;
    top: 1px;
    transform: rotate(45deg);
    width: 4px;
}

.booking-cabin-filter__help {
    align-items: center;
    background: #ffffff;
    border: 1px solid #b7c7dd;
    border-radius: 999px;
    color: #246484;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    height: 18px;
    justify-content: center;
    line-height: 1;
    margin-left: 6px;
    position: relative;
    user-select: none;
    width: 18px;
}

.booking-cabin-filter__tabs a.active .booking-cabin-filter__help {
    background: #ffffff;
    border-color: #ffffff;
    color: #0b6f97;
}

.booking-cabin-filter__help:hover {
    border-color: #0b6f97;
    color: #0b6f97;
}

.booking-cabin-filter__tip {
    background: #ffffff;
    border: 1px solid #dbeaf3;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(20, 60, 80, 0.16);
    color: #31576a;
    display: none;
    font-size: 12.5px;
    font-weight: 400;
    left: 0;
    line-height: 1.5;
    max-height: 340px;
    overflow-y: auto;
    padding: 14px 16px;
    position: fixed;
    text-align: left;
    top: 0;
    white-space: normal;
    width: 320px;
    z-index: 2000;
}

.booking-cabin-filter__tip strong,
.booking-cabin-filter__tip b {
    color: #246484;
}

.booking-cabin-filter__tip p {
    margin: 0 0 8px;
}

.booking-cabin-filter__tip p:last-child,
.booking-cabin-filter__tip ul:last-child {
    margin-bottom: 0;
}

.booking-cabin-filter__tip ul {
    margin: 0 0 8px;
    padding-left: 18px;
}

.booking-cabin-filter__help.is-open .booking-cabin-filter__tip {
    display: block;
}

/* --- Passenger form: keep every field's input on the same baseline even when a label
   wraps to two lines (e.g. "Дата рождения (ДД-ММ-ГГГГ)"), and make the select2 dropdowns
   (Гражданство) match the height/arrow of the native selects. --- */
.booking-passenger-form .form-group > label {
    align-items: flex-start;
    color: #33586a;
    display: flex;
    line-height: 1.3;
    margin-bottom: 6px;
    min-height: 2.6em;
}

/* Blue-tinted fields (the theme's defaults are violet: #e4ecf5 border / #33475e text) */
.booking-passenger-form input.form-control,
.booking-passenger-form select.form-control,
.booking-passenger-form textarea.form-control {
    background: #f8fbfe;
    border: 1px solid #d7e1ee;
    border-radius: 6px;
    color: #0d2742;
}

.booking-passenger-form .form-control::placeholder {
    color: #8fa1b8;
}

.booking-passenger-form input.form-control:focus,
.booking-passenger-form select.form-control:focus,
.booking-passenger-form textarea.form-control:focus {
    background: #ffffff;
    border-color: #006f9d;
    box-shadow: 0 0 0 3px rgba(0, 111, 157, 0.12);
    color: #0d2742;
}

.booking-passenger-form .select2-container {
    width: 100% !important;
}

.booking-passenger-form .select2-container--default .select2-selection--single {
    align-items: center;
    background: #f8fbfe;
    border: 1px solid #d7e1ee;
    border-radius: 6px !important;
    box-shadow: none;
    display: flex;
    min-height: 48px;
    padding: 0 42px 0 14px;
}

.booking-passenger-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0d2742;
    font-weight: 600;
    line-height: 1.3;
    padding: 0;
}

.booking-passenger-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 12px;
    top: 0;
}

.booking-cabin-filter__descriptions {
    color: #527384;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 10px;
}

.booking-cabin-results {
    display: grid;
    gap: 10px;
}

.booking-cabin-option.card {
    margin-bottom: 0;
    overflow: hidden;
}

.booking-cabin-option__summary {
    align-items: stretch;
    display: grid;
    grid-template-columns: 78px minmax(260px, 1fr) minmax(190px, 0.8fr) minmax(128px, 0.45fr) minmax(240px, 0.75fr);
    min-height: 66px;
}

.booking-cabin-option__summary > div {
    align-items: center;
    border-right: 1px solid #d9e6f0;
    display: flex;
    padding: 12px 16px;
}

.booking-cabin-option__summary > div:last-child {
    border-right: 0;
}

.booking-cabin-option__code {
    justify-content: center;
}

.booking-cabin-option__code span {
    color: #246484;
    font-size: 15px;
    font-weight: 600;
}

.booking-cabin-option__name {
    align-items: flex-start !important;
    flex-direction: column;
    justify-content: center;
}

.booking-cabin-option__name a {
    color: #0b6f97;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: underline;
}

.booking-cabin-option__name small,
.booking-cabin-option__promo span {
    color: #7f9aa7;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.booking-cabin-option__promo {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    text-align: center;
}

.booking-cabin-option__promo:not(:has(*)) {
    display: none;
}

.booking-cabin-option__promo .booking-cabin-option__promo-caption {
    color: #9ab5c2;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
}

.booking-cabin-option__promo .booking-cabin-option__promo-badge {
    background: #eef4fb;
    border: 1px solid #d7e4f4;
    border-radius: 999px;
    color: #006f9d;
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    max-width: 100%;
    padding: 4px 12px;
}

.booking-cabin-option__promo .booking-cabin-option__promo-badge--all {
    background: #f1f3f7;
    border-color: #e2ebef;
    color: #667f8c;
}

/* Clean "show price details" toggle (replaces the stray btn-outline-info that read as crooked) */
.btn.booking-price-details-btn {
    align-items: center;
    background: #eef6fc;
    border: 1px solid #9fc3df;
    border-radius: 6px;
    color: #006f9d;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    height: auto;
    justify-content: center;
    line-height: 1.35 !important;
    max-width: 100%;
    min-height: 38px;
    padding: 8px 14px;
    text-align: center;
    white-space: normal;
}

.btn.booking-price-details-btn:hover,
.btn.booking-price-details-btn:focus {
    background: #dceefa;
    border-color: #006f9d;
    color: #006f9d;
    text-decoration: none;
}

.booking-cabin-option__price {
    justify-content: center;
}

.booking-cabin-option__price strong {
    color: #152a34;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.booking-cabin-option__actions {
    gap: 8px;
    justify-content: flex-end;
}

.booking-cabin-option__actions .btn {
    align-items: center;
    border-radius: 6px;
    box-shadow: none;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

.booking-cabin-option__info {
    background: #f3f7fc;
    border: 1px solid #d4deec;
    color: #0b6f97;
}

.booking-cabin-option__info:hover,
.booking-cabin-option__info:focus {
    border-color: #0b6f97;
    color: #0b6f97;
}

.booking-cabin-option__select.btn-secondary {
    background: #0b6f97 !important;
    border: 0;
    color: #ffffff !important;
    min-width: 118px;
}

.booking-cabin-option__select.btn-secondary:hover,
.booking-cabin-option__select.btn-secondary:focus {
    background: #095f82 !important;
    color: #ffffff !important;
    text-decoration: none;
}

.booking-cabin-option__details {
    border-top: 1px solid #d9e6f0;
}

.booking-cabin-option__details-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.4fr);
    padding: 18px;
}

.booking-cabin-option__gallery {
    background: #f6f9fe;
    border: 1px solid #d9e6f0;
    border-radius: 6px;
    overflow: hidden;
}

.booking-cabin-option__gallery .carousel,
.booking-cabin-option__gallery .carousel-inner,
.booking-cabin-option__gallery .carousel-item,
.booking-cabin-option__gallery img {
    height: 270px;
}

.booking-cabin-option__gallery img {
    object-fit: cover;
    width: 100%;
}

.booking-cabin-option__gallery .carousel-control-prev,
.booking-cabin-option__gallery .carousel-control-next {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    color: #0b6f97;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    margin-top: -18px;
    top: 50%;
    width: 36px;
}

.booking-cabin-option__gallery .carousel-control-prev {
    left: 10px;
}

.booking-cabin-option__gallery .carousel-control-next {
    right: 10px;
}

.booking-cabin-option__content h3 {
    color: #246484;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 10px;
}

.booking-cabin-option__description {
    color: #44697b;
    font-size: 14px;
    line-height: 1.65;
}

.booking-cabin-option__description p:last-child {
    margin-bottom: 0;
}

.booking-cabin-option__features {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.booking-cabin-option__feature {
    align-items: center;
    background: #f6f9fe;
    border: 1px solid #d9e6f0;
    border-radius: 6px;
    color: #243842;
    display: flex;
    gap: 9px;
    min-height: 42px;
    padding: 9px 12px;
}

.booking-cabin-option__feature i {
    flex: 0 0 auto;
}

.booking-cabin-option__feature span {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.booking-cabin-option__details-block {
    margin-top: 12px;
}

.booking-cabin-option__details-block .btn-outline-info {
    border-color: #d4deec;
    border-radius: 6px;
    color: #0b6f97;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    .booking-cabin-option__summary {
        grid-template-columns: 72px minmax(220px, 1fr) minmax(150px, 0.7fr) minmax(118px, 0.45fr);
    }

    .booking-cabin-option__actions {
        border-top: 1px solid #d9e6f0;
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 991.98px) {
    .booking-cabin-option__details-grid {
        grid-template-columns: 1fr;
    }

    .booking-cabin-option__gallery .carousel,
    .booking-cabin-option__gallery .carousel-inner,
    .booking-cabin-option__gallery .carousel-item,
    .booking-cabin-option__gallery img {
        height: 240px;
    }
}

@media (max-width: 767.98px) {
    .booking-page.sptb,
    .booking-page .sptb {
        padding-top: 16px;
    }

    .booking-cabin-search-card .card-header,
    .booking-cabin-controls .card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .booking-cabin-filter__tabs {
        flex-wrap: nowrap;
    }

    .booking-cabin-option__summary {
        grid-template-columns: 1fr;
    }

    .booking-cabin-option__summary > div {
        border-right: 0;
        border-top: 1px solid #d9e6f0;
        justify-content: flex-start;
    }

    .booking-cabin-option__summary > div:first-child {
        border-top: 0;
    }

    .booking-cabin-option__code {
        justify-content: flex-start;
    }

    .booking-cabin-option__promo,
    .booking-cabin-option__price {
        justify-content: flex-start;
        text-align: left;
    }

    .booking-cabin-option__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .booking-cabin-option__actions .btn {
        width: 100%;
    }

    .booking-cabin-option__details-grid {
        padding: 14px;
    }

    .booking-cabin-option__features {
        grid-template-columns: 1fr;
    }
}
