/*
 * Shared compatibility layer for opt-in modern page families only.
 * Keep page-specific styling in the Yacht V2, Catalog V2 and SEO bundles.
 */

/* Minimal Bootstrap reboot and primitives used by the shared shell. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: #fff;
    color: #020027;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    color: #0a58ca;
}

li {
    list-style: none;
}

ol,
ul {
    padding-left: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
}

dt {
    font-weight: 700;
}

dd {
    margin-bottom: .5rem;
    margin-left: 0;
}

.small,
small {
    font-size: .875em;
}

img,
svg {
    vertical-align: middle;
}

label {
    display: inline-block;
    color: #000;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;
}

button,
input,
optgroup,
select,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
select {
    text-transform: none;
}

select {
    word-wrap: normal;
}

[type='button'],
[type='reset'],
[type='submit'],
button {
    -webkit-appearance: button;
}

[type='button']:not(:disabled),
[type='reset']:not(:disabled),
[type='submit']:not(:disabled),
button:not(:disabled),
[role='button'],
summary {
    cursor: pointer;
}

button:focus:not(:focus-visible) {
    outline: 0;
}

::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-year-field {
    padding: 0;
}

[hidden] {
    display: none !important;
}

fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

legend {
    float: left;
    width: 100%;
    padding: 0;
    margin-bottom: .5rem;
    font-size: calc(1.275rem + .3vw);
    line-height: inherit;
}

legend + * {
    clear: left;
}

@media (min-width: 1200px) {
    legend {
        font-size: 1.5rem;
    }
}

.container {
    width: 1257px;
    max-width: 100%;
    margin: 0 auto;
    padding-right: .75rem;
    padding-left: .75rem;
}

@media (max-width: 1199px) {
    .container {
        width: 1099px;
    }
}

@media (max-width: 1024px) {
    .container {
        width: 984px;
    }
}

/* Header and locale selector. */
header {
    top: 0;
    z-index: 999;
    width: 100%;
    background: #fff;
    background-image: linear-gradient(-55deg, #faf9ffe3 28%, #f1f0f033 71%);
}

header .header_flex {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

header .logo,
header .logo img {
    width: 165px;
    height: 31px;
}

header nav {
    display: flex;
    flex-basis: 80%;
    align-items: center;
    justify-content: space-evenly;
}

header nav .nav__link {
    position: relative;
    color: #020027;
    cursor: pointer;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.header_icons {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.header-language {
    position: relative;
}

.header-language__trigger {
    display: block;
    list-style: none;
    cursor: pointer;
}

.header-language__trigger::-webkit-details-marker {
    display: none;
}

.header-language__trigger:focus-visible,
.lang-flex a:focus-visible,
.user_bar a:focus-visible,
.user_bar button:focus-visible {
    outline: 2px solid #0a0639;
    outline-offset: 3px;
}

.lang-block {
    position: absolute;
    top: 51px;
    right: 0;
    z-index: 99999999999;
    display: none;
    height: 180px;
    background: gray;
}

.header-language[open] .lang-block {
    display: block;
}

[dir='rtl'] .header-language .lang-block {
    right: auto;
    left: 0;
}

.lang-flex {
    display: flex;
    width: 200px;
    flex-wrap: wrap;
    grid-auto-rows: 2;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 10px;
    padding: 5px;
    background: #80808036;
}

.lang-flex a {
    margin: 5px;
}

/* Only SupportedLocales flags are retained. */
.flag-icon {
    position: relative;
    display: inline-block;
    width: 1.33333333em;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    line-height: 1em;
}

.flag-icon::before {
    content: '\00a0';
}

.flag-icon-globus {
    width: 31px;
    height: 31px;
    background-image: url('/resource/img/globus.png');
    cursor: pointer;
}

.flag-icon-en { background-image: url('../flags/4x3/us.svg'); }
.flag-icon-de { background-image: url('../flags/4x3/de.svg'); }
.flag-icon-bg { background-image: url('../flags/4x3/bg.svg'); }
.flag-icon-es { background-image: url('../flags/4x3/es.svg'); }
.flag-icon-fi { background-image: url('../flags/4x3/fi.svg'); }
.flag-icon-fr { background-image: url('../flags/4x3/fr.svg'); }
.flag-icon-it { background-image: url('../flags/4x3/it.svg'); }
.flag-icon-nl { background-image: url('../flags/4x3/nl.svg'); }
.flag-icon-no { background-image: url('../flags/4x3/no.svg'); }
.flag-icon-pl { background-image: url('../flags/4x3/pl.svg'); }
.flag-icon-dk { background-image: url('../flags/4x3/dk.svg'); }
.flag-icon-pt { background-image: url('../flags/4x3/pt.svg'); }
.flag-icon-tr { background-image: url('../flags/4x3/tr.svg'); }
.flag-icon-sl { background-image: url('../flags/4x3/sl.svg'); }
.flag-icon-sk { background-image: url('../flags/4x3/sk.svg'); }
.flag-icon-ru { background-image: url('../flags/4x3/ru.svg'); }
.flag-icon-ee { background-image: url('../flags/4x3/ee.svg'); }
.flag-icon-lt { background-image: url('../flags/4x3/lt.svg'); }
.flag-icon-il { background-image: url('../flags/4x3/il.svg'); }
.flag-icon-cn { background-image: url('../flags/4x3/cn.svg'); }
.flag-icon-cz { background-image: url('../flags/4x3/cz.svg'); }
.flag-icon-ua { background-image: url('../flags/4x3/ua.svg'); }
.flag-icon-se { background-image: url('../flags/4x3/se.svg'); }
.flag-icon-gr { background-image: url('../flags/4x3/gr.svg'); }
.flag-icon-hu { background-image: url('../flags/4x3/hu.svg'); }
.flag-icon-lv { background-image: url('../flags/4x3/lv.svg'); }

/* Footer. */
footer {
    margin-top: 20px;
    padding: 50px 0;
    background-color: #020027;
}

footer .logo {
    width: 100%;
}

footer .logo img {
    width: 165px;
    height: 31px;
}

footer .phone {
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
}

footer .email,
footer .date,
footer a,
footer .nav_two {
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 36px;
}

footer .date,
.nav_one,
.nav_two {
    display: flex;
    flex-direction: column;
}

footer .footer_flex {
    display: flex;
    justify-content: space-between;
}

/* Shared visibility and overlay states. */
.show_767 {
    display: none;
}

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.fon {
    position: fixed;
    z-index: 1;
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
}

.loader-block {
    display: none;
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    background: #0000009e;
}

.loader {
    position: fixed;
    top: 40%;
    left: 50%;
    overflow: hidden;
    width: 11em;
    height: 11em;
    margin: 50px auto;
    border-radius: 50%;
    background: #65abf8;
    background: -webkit-gradient(linear, left top, right top, color-stop(10%, #65abf8), color-stop(42%, rgba(101, 171, 248, 0)));
    background: linear-gradient(to right, #65abf8 10%, rgba(101, 171, 248, 0) 42%);
    font-size: 10px;
    text-indent: -9999em;
    transform: translateZ(0);
    animation: load3 1.4s infinite linear;
}

.loader::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    border-radius: 100% 0 0;
    background: #65abf8;
    content: '';
}

.loader::after {
    position: absolute;
    inset: 0;
    width: 75%;
    height: 75%;
    margin: auto;
    border-radius: 50%;
    background: #fff;
    content: '';
}

@keyframes load3 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Guest and authenticated account controls. */
.user_bar {
    min-width: 105px;
    height: 34px;
    padding-top: 2px;
    padding-right: 20px;
    line-height: 130%;
}

.user_bar button,
.user_bar .account_entry {
    padding: 7px 22px;
    border: 0;
    border-radius: 4px;
    background: #0a0639;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.user_bar .account_entry.hide_767 {
    display: inline-block;
}

.user_bar .account_entry {
    text-decoration: none;
}

.user_bar .user_name {
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
    font-weight: 400;
    text-align: inherit;
}

.user_bar .user_name img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
}

.user_bar .user_menu {
    position: absolute;
    top: 51px;
    right: 0;
    z-index: 3;
    min-width: 313px;
    padding: 10px 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 11px 0 rgba(0, 0, 0, .1);
}

.user_bar .user_menu > a {
    display: block;
    padding: 10px 0 10px 60px;
    background-position: 20px 50%;
    background-repeat: no-repeat;
    color: #0a0639;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
}

.user_bar .user_menu a.account { background-image: url('../img/auth/menu_icon_account.svg'); }
.user_bar .user_menu a.booking { background-image: url('../img/auth/menu_icon_booking.svg'); }
.user_bar .user_menu a.favorites { background-image: url('../img/auth/menu_icon_favorites.svg'); }
.user_bar .user_menu a.logout { background-image: url('../img/auth/menu_icon_logout.svg'); }

.user_bar .user_menu > a:hover {
    background-color: #dfebff;
}

.user_bar .user_menu_caption {
    display: none;
}

.user_bar .user_menu .social_buttons {
    padding: 0 20px;
}

.social_buttons {
    margin: 10px 0;
    color: #0a0639;
    font-size: 16px;
}

.social_buttons .caption {
    margin-bottom: 10px;
    font-weight: 500;
}

.social_buttons .qrs {
    display: flex;
}

.social_buttons .whatsapp_qr {
    padding-right: 5px;
}

.social_buttons .telegram_qr {
    padding-left: 5px;
}

.social_buttons .qrs img {
    width: 100%;
    max-width: 132px;
    height: auto;
}

.social_buttons .buttons {
    display: none;
}

/* Exact Bootstrap modal, validation, spinner and utility subset. */
.fade {
    transition: opacity .15s linear;
}

.fade:not(.show),
.modal-backdrop.fade {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .fade {
        transition: none;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: .5rem;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, .175);
    border-radius: .5rem;
    outline: 0;
    background: #fff;
    background-clip: padding-box;
    pointer-events: auto;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background: #000;
}

.modal-backdrop.show {
    display: flex;
    opacity: .5;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    color: #dc3545;
    font-size: .875em;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

.spinner {
    text-align: center;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: .25em solid currentcolor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -.125em;
    animation: .75s linear infinite spinner-border;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spinner-border {
        animation-duration: 1.5s;
    }
}

.d-flex { display: flex !important; }
.position-relative { position: relative !important; }
.h-100 { height: 100% !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }

/* Legacy main.css followed Bootstrap utilities, so hide wins this tie. */
.hide { display: none !important; }

/* Auth modal content. */
.auth_modal .modal-dialog-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.auth_modal .modal-dialog {
    max-width: 413px;
    color: #000;
}

.auth_modal .modal-body {
    width: 413px;
    height: 479px;
    padding: 30px;
}

.auth_modal .modal-body.auto_height {
    height: auto;
}

.modal .close,
.auth_modal .back {
    position: absolute;
    top: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.modal .close {
    right: 10px;
    background: url('../img/auth/close.svg') 0 0 no-repeat;
}

.auth_modal .back {
    left: 10px;
    background: url('../img/auth/back.svg') 0 0 no-repeat;
}

.auth_modal .form_data {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.auth_modal .form_data_header h3 {
    margin-bottom: 30px;
    color: #0a0639;
    font-size: 19px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    text-align: center;
}

.auth_modal .form_data_header .form_item {
    margin-bottom: 20px;
}

.auth_modal .form_data_header .form_item label {
    margin-bottom: 10px;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.auth_modal .form_data_header .form_item .show_password {
    position: absolute;
    right: 11px;
    bottom: 16px;
    width: 24px;
    height: 16px;
    background: url('../img/auth/show_password.svg') 0 0 no-repeat;
    cursor: pointer;
}

.auth_modal .form_data_header .form_item input {
    width: 100%;
    padding: 13px 10px;
    border: 1px solid #e3e4e7;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.auth_modal .form_data_header .form_item input.is-invalid {
    border: 1px solid #dc3545;
}

.auth_modal .form_data_header .form_item .invalid-feedback {
    margin-top: 5px;
}

.auth_modal .form_data_header button {
    width: 100%;
    padding: 14px 0;
    border: 0;
    border-radius: 4px;
    background: #0a0639;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 130%;
}

.auth_modal .form_data_header p {
    margin-bottom: 10px;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.auth_modal .form_data_header p b {
    font-weight: 500;
}

.auth_modal .forgot_password {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.auth_modal .forgot_password a {
    color: #0a0639;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    text-align: center;
}

.auth_modal p.is-invalid {
    color: #dc3545;
    font-weight: 500;
}

.auth_modal .form_data_footer {
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    text-align: center;
}

.auth_modal .form_data_footer a {
    color: #0a0639;
    text-decoration: underline;
}

.auth_modal .social_login {
    margin-top: 40px;
}

.auth_modal .social_login .s_caption {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.auth_modal .social_login .s_line {
    width: 152px;
    height: .5px;
    flex-grow: 1;
    background: #96a0ad;
}

.auth_modal .social_login .s_text {
    padding: 0 10px;
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    text-align: center;
}

.auth_modal .social_login .s_buttons {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scoped compatibility for accidental legacy rules used by modern families. */
.ce-catalog-v2-applied ul {
    background: #fff;
    border: 1px solid #00000029;
}

.ce-yacht-v2 .air-datepicker.-inline-,
.air-datepicker.ce-yacht-v2-datepicker.-inline-,
.ce-catalog-v2-page .air-datepicker.-inline-,
.air-datepicker.ce-catalog-v2-datepicker.-inline- {
    font-weight: 600;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

@media (max-width: 991px) {
    body {
        margin-top: 109px;
    }

    .container {
        width: 720px;
    }

    header .header_flex {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    header .logo {
        order: 1;
    }

    header nav {
        order: 3;
        justify-content: space-between;
        padding-top: 10px;
    }
}

@media (max-width: 767px) {
    body {
        margin-top: 0;
        padding: 0;
    }

    header {
        position: unset;
    }

    .loader {
        top: 15%;
        left: 35%;
        margin: 25vh auto;
    }

    header .header_flex {
        justify-content: space-between;
    }

    header .logo {
        order: 2;
    }

    header nav {
        flex-basis: 100%;
        margin-top: 10px;
    }

    header .nav__link {
        padding: 5px 10px;
        border-radius: 5px;
        background: #8080802e;
        font-size: 20px;
    }

    footer .footer_flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nav_one,
    .nav_two {
        padding-top: 15px;
    }

    .user_bar {
        min-width: 58px;
        height: 40px;
    }

    .user_bar button,
    .user_bar .account_entry {
        padding: 0;
        background: unset;
    }

    .user_bar .user_menu {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        width: 100%;
        min-width: unset;
        height: 100%;
        padding: 0;
        border-radius: unset;
        background: #fff;
        box-shadow: unset;
    }

    .user_bar .user_menu > a {
        margin-bottom: 30px;
    }

    .user_bar .user_menu_caption {
        position: relative;
        display: block;
        margin-bottom: 30px;
        padding: 70px 20px 30px;
        border-bottom: 1px solid #e3e4e7;
    }

    .user_bar .user_menu_caption .user_data {
        display: flex;
        align-items: center;
        font-size: 19px;
        font-weight: 500;
    }

    .user_bar .user_menu_caption .user_data img {
        width: 60px;
        height: 60px;
        margin-right: 20px;
        border-radius: 50%;
    }

    .user_bar .user_menu_caption .close {
        position: absolute;
        top: 20px;
        right: 16px;
        width: 30px;
        height: 30px;
        background: url('../img/auth/close.svg') 0 0 no-repeat;
        cursor: pointer;
    }

    .social_buttons .qrs {
        display: none;
    }

    .social_buttons .buttons {
        display: flex;
    }

    .social_buttons .buttons a {
        margin-right: 10px;
    }

    .social_buttons .buttons img {
        width: 50px;
        height: 50px;
    }

    .auth_modal .modal-dialog {
        max-width: 358px;
    }

    .auth_modal .modal-body {
        width: 358px;
        height: 435px;
        padding: 20px 30px;
    }

    .auth_modal .form_data_header h3 {
        margin-bottom: 20px;
        font-size: 16px;
    }

    .auth_modal .form_data_footer {
        font-size: 12px;
    }

    .auth_modal .social_login {
        margin-top: 30px;
    }

    .auth_modal .social_login .s_caption {
        margin-bottom: 30px;
    }

    .hide_767 {
        display: none !important;
    }

    .show_767 {
        display: block !important;
    }

    .overflow_767 {
        overflow: hidden;
    }
}
