/* =====================================================
   Resort Life Theme
   Version: 1.0 Stable
   File: /public/css/customer.css

   Philosophy:
   - Safe override only
   - No JS modifications
   - No Smarty modifications
   - No responsive layout modifications
   ===================================================== */

/* =====================================================
   Architecture Map

   00. Tokens
   01. Layout & Typography
   02. Forms & Buttons
   03. Search Controls
   04. Search Results & Tables
   05. Popups & Modals
   06. Header & Navigation
   07. Login & Authorization
   08. Footer
   09. Domain Pages & Booking Widgets
   10. Weather Widget
   99. Final Overrides & Legacy Fixes

   Refactor rule:
   - Preserve selector specificity and cascade order.
   - Keep historical final-fix layers in their winning order.
   - Do not move non-identical overrides without visual QA.
   ===================================================== */


/* =====================================================
   00. Resort Life Design Tokens
   ===================================================== */

:root {
    --main-panel-bgcolor: #bbe4c1;
    --main-button-bgcolor: #416c46;
    --hover-button-bgcolor: #58885d;
    --link-active-color: #416c46;
    --link-hover-color: #5b8b60;
}


/* =====================================================
   01. Layout & Typography
   ===================================================== */

/* =====================================================
   01. Layout Polish
   ===================================================== */

.samo_container .panel {
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* Єдиний вертикальний ритм між панелями */

.samo_container .panel + .panel,
.samo_container table.panel + table.panel,
.samo_container div.panel + div.panel {
    margin-top: 16px !important;
}

/* Перша панель після вкладок не має верхнього відступу */

.samo_container .searchmodes + .panel,
.samo_container .searchmodes + table.panel,
.samo_container .searchmodes + div.panel {
    margin-top: 0 !important;
}

.samo_container .std.container {
    padding-top: 18px;
}

/* =====================================================
   01.5 Resort Life Typography
   Pilot polish for legacy SAMO labels and text

   Goals:
   - Remove old black system-text feeling
   - Keep readability
   - Do not recolor icons, prices or buttons globally
   ===================================================== */

:root {
    --rl-text: #355b3a;
    --rl-heading: #416c46;
    --rl-muted: #5f7464;
}

/* Base SAMO text tone */

.samo_container {
    color: var(--rl-text);
}

/* Common labels and captions */

.samo_container label,
.samo_container .caption,
.samo_container td.caption,
.samo_container th.caption,
.samo_container .field_caption,
.samo_container .filter_caption {
    color: var(--rl-heading) !important;
    font-weight: inherit !important;
}

/* Small helper labels */

.samo_container .small,
.samo_container .hint,
.samo_container .note,
.samo_container .comment,
.samo_container .description {
    color: var(--rl-muted) !important;
}

/* Form text inside legacy filter areas */

.samo_container .panel td,
.samo_container .panel th,
.samo_container .std td,
.samo_container .std th {
    color: var(--rl-text);
}

/* Checkbox / radio adjacent text */

.samo_container input[type="checkbox"] + label,
.samo_container input[type="radio"] + label {
    color: var(--rl-text) !important;
    font-weight: inherit !important;
}

/* Links inside SAMO content */

.samo_container a {
    color: var(--rl-heading);
}

.samo_container a:hover {
    color: var(--link-hover-color);
}

/* Keep important action and price areas untouched */

.samo_container button,
.samo_container .button,
.samo_container .price_button,
.samo_container .td_price,
.samo_container .type_price {
    color: inherit;
}


/* =====================================================
   02. Forms & Buttons
   ===================================================== */

/* =====================================================
   02. Inputs & Selects Polish
   ===================================================== */

.samo_container select,
.samo_container textarea,
.samo_container .textinput,
.samo_container input.frm-value,
.samo_container input.frm-input {
    border: 1px solid rgba(65,108,70,.35) !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #1f2f22;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.samo_container select:focus,
.samo_container textarea:focus,
.samo_container input.frm-value:focus,
.samo_container input.frm-input:focus {
    border-color: #416c46 !important;
    box-shadow: 0 0 0 2px rgba(65,108,70,.18);
    outline: none;
}


/* =====================================================
   02.1 Resort Life Buttons System
   Pilot polish for legacy SAMO buttons

   Goals:
   - White readable text
   - Premium green buttons
   - No template or JS changes
   - Safe for search/submit actions
   ===================================================== */

.samo_container input[type="submit"],
.samo_container input[type="button"],
.samo_container button.button,
.samo_container .button,
.samo_container .search_button {
    min-height: 36px !important;
    box-sizing: border-box !important;

    background: linear-gradient(180deg, #4d7b52 0%, #416c46 100%) !important;
    color: #ffffff !important;

    border: 1px solid rgba(65,108,70,.35) !important;
    border-radius: 10px !important;

    padding: 8px 18px !important;

    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;

    box-shadow: 0 5px 14px rgba(31,47,34,.16) !important;

    cursor: pointer !important;
}

.samo_container input[type="submit"]:hover,
.samo_container input[type="button"]:hover,
.samo_container button.button:hover,
.samo_container .button:hover,
.samo_container .search_button:hover {
    background: linear-gradient(180deg, #5b8b60 0%, #4d7b52 100%) !important;
    color: #ffffff !important;
    border-color: rgba(65,108,70,.45) !important;
    box-shadow: 0 7px 18px rgba(31,47,34,.22) !important;
}

.samo_container input[type="submit"]:active,
.samo_container input[type="button"]:active,
.samo_container button.button:active,
.samo_container .button:active,
.samo_container .search_button:active {
    background: #416c46 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(31,47,34,.18) !important;
}

/* =====================================================
   02.2 Agency Registration
   ===================================================== */

.samo_container.register_agency {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 32px 24px 48px;
    box-sizing: border-box;
    background: #fbfcfa;
}

.register_agency #register_agency {
    width: 100%;
    min-width: 0;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

#register_agency .searchmodes {
    flex-wrap: wrap;
    margin: 0 0 20px !important;
    padding: 0;
    gap: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

html[lang="uk"] #register_agency_form > .searchmodes {
    --mlt-required-title: "Зверніть увагу";
    --mlt-required-description: "Поля, назви яких виділено жирним, обов’язкові для заповнення.";
}

html[lang="en"] #register_agency_form > .searchmodes {
    --mlt-required-title: "Please note";
    --mlt-required-description: "Fields shown in bold are required.";
}

/* Two adjoining text blocks form one banner after the context indicator. */
#register_agency_form > .searchmodes::before,
#register_agency_form > .searchmodes::after {
    display: block;
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(65,108,70,.16);
    border-left: 3px solid #416c46;
    background: #f5faf6;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

#register_agency_form > .searchmodes::before {
    content: var(--mlt-required-title, none);
    order: 1;
    margin-top: 16px;
    padding: 12px 16px 3px;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    color: #416c46;
    font-size: 14px;
    font-weight: 700;
}

#register_agency_form > .searchmodes::after {
    content: var(--mlt-required-description, none);
    order: 2;
    padding: 0 16px 12px;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    color: #355b3a;
    font-size: 13px;
    font-weight: 400;
}

#register_agency .searchmodes .searchmode_registration {
    display: none;
}

#register_agency .searchmodes .searchmode_register_agency {
    flex: 0 1 auto;
    margin: 0 !important;
    padding: 8px 14px !important;
    border: 1px solid rgba(65,108,70,.16) !important;
    border-radius: 10px !important;
    background: #eaf4ec;
    color: #355b3a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    cursor: default;
    box-shadow: none !important;
}

#register_agency fieldset.panel {
    min-width: 0;
    margin: 0 0 18px;
    margin-top: 0 !important;
    padding: 22px 24px !important;
    border: 1px solid rgba(65,108,70,.16) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 6px 20px rgba(31,47,34,.05) !important;
    box-sizing: border-box;
}

#register_agency fieldset.panel > .legend-tag {
    margin: 0 0 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e7efe8;
    color: #416c46;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
}

#register_agency fieldset.panel > table {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
}

#register_agency fieldset.panel > table > tbody > tr > td {
    padding: 4px 0;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

#register_agency .left_column {
    width: 190px;
    height: auto;
    padding: 4px 16px 4px 0 !important;
    text-align: right;
    box-sizing: border-box;
}

#register_agency .left_column label {
    font-size: 14px;
    line-height: 1.45;
    white-space: normal;
}

.register_agency label.required {
    font-weight: 700 !important;
}

#register_agency :is(input.frm-input, input[type="email"], input[type="tel"], select, textarea, .captcha-input) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(65,108,70,.24) !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    color: #1f2f22;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(31,47,34,.03);
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease;
}

#register_agency select {
    background-image: none;
    padding-right: 28px;
}

#register_agency textarea {
    min-height: 100px;
    resize: vertical;
}

#register_agency input.date {
    padding-right: 36px;
}

#register_agency .chosen-container {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    text-align: left;
    font-size: 14px;
}

#register_agency .chosen-container .chosen-single {
    min-height: 40px;
    height: auto;
    padding: 9px 12px;
    border: 1px solid rgba(65,108,70,.24);
    border-radius: 10px;
    background: #ffffff;
    color: #1f2f22;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(31,47,34,.03);
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease;
}

#register_agency .chosen-single div b {
    height: 20px;
    margin-top: 9px;
}

#register_agency .chosen-single abbr {
    top: 14px;
}

#register_agency .chosen-container .chosen-drop {
    border-color: rgba(65,108,70,.24);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 20px rgba(31,47,34,.08);
}

#register_agency .chosen-results li {
    padding: 8px 10px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#register_agency .chosen-results li.highlighted {
    background: #416c46;
    color: #ffffff;
}

#register_agency :is(input.frm-input, input[type="email"], input[type="tel"], select, textarea, .captcha-input):focus,
#register_agency .chosen-container-active .chosen-single {
    border-color: #416c46 !important;
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(65,108,70,.12);
}

#register_agency :is(input, select, textarea).error,
#register_agency :is(input, select, textarea).error:focus,
#register_agency .chosen-container.error .chosen-single {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}

#register_agency :is(input.frm-input, select, textarea):disabled {
    background-color: #f3f6f3 !important;
    color: #69796c;
    cursor: not-allowed;
}

#register_agency input:is([type="checkbox"], [type="radio"]) {
    width: 22px;
    height: 22px;
    margin: 8px 0;
    accent-color: #416c46;
    cursor: pointer;
}

#register_agency input:is([type="checkbox"], [type="radio"]):focus-visible,
#register_agency input[name="save"]:focus-visible {
    outline: 2px solid #416c46;
    outline-offset: 3px;
}

#register_agency_form > .label {
    margin: 0 0 18px;
    padding: 10px 14px;
    border: 1px solid #e1ebe2;
    border-radius: 9px;
    background: #f3f8f4;
    color: #536957;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

#register_agency #captchaRegistration {
    width: min(100%, 320px);
    padding: 8px 0 0;
    grid-template-columns: 120px minmax(44px, 1fr);
    grid-template-rows: 48px 44px auto 16px;
    gap: 10px;
    background: transparent;
    box-sizing: border-box;
}

#register_agency input[name="save"] {
    width: 100%;
    min-height: 46px !important;
    margin: 0;
    border-radius: 11px !important;
    background: #416c46 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(31,47,34,.10) !important;
}

#register_agency input[name="save"]:hover {
    background: #58885d !important;
}

@media (max-width: 767px) {
    .samo_container.register_agency {
        padding: 24px 12px 32px;
    }

    #register_agency_form > .searchmodes::before {
        padding: 10px 12px 3px;
    }

    #register_agency_form > .searchmodes::after {
        padding: 0 12px 10px;
    }

    #register_agency fieldset.panel {
        padding: 16px 14px !important;
        border-radius: 14px !important;
    }

    #register_agency fieldset.panel > .legend-tag {
        font-size: 18px;
    }

    #register_agency fieldset.panel > table,
    #register_agency fieldset.panel > table > tbody,
    #register_agency fieldset.panel > table > tbody > tr:not(.hidden),
    #register_agency fieldset.panel > table > tbody > tr > td {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    #register_agency fieldset.panel > table > tbody > tr {
        margin-bottom: 14px;
    }

    #register_agency fieldset.panel > table > tbody > tr:last-child {
        margin-bottom: 0;
    }

    #register_agency fieldset.panel > table > tbody > tr > td {
        padding: 0;
    }

    #register_agency .left_column {
        padding: 0 0 6px !important;
        text-align: left;
    }

    #register_agency :is(input.frm-input, input[type="email"], input[type="tel"], select, textarea, .captcha-input),
    #register_agency .chosen-container .chosen-single {
        min-height: 44px;
        font-size: 16px;
    }

    #register_agency .chosen-container .chosen-single {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    #register_agency .chosen-single div b {
        margin-top: 11px;
    }

    #register_agency .chosen-single abbr {
        top: 16px;
    }

    #register_agency input.PARTNER_BIK {
        width: 100% !important;
    }
}

/* Agency Registration - Success State */

#register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) {
    max-width: 820px;
    margin: 48px auto;
    padding: 38px 40px;
    border: 1px solid rgba(65,108,70,.14);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(31,47,34,.08);
    box-sizing: border-box;
    text-align: left;
    color: #355b3a;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

#register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"])::before {
    content: "\f00c";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #f1f7f2;
    color: #416c46;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 23px;
    line-height: 1;
}

#register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) > strong:first-child {
    display: block;
    margin-bottom: 18px;
    color: #416c46;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

/* Block heading/signature spacing replaces only their adjacent legacy breaks. */
#register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) > strong:first-child + br,
#register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) > strong:first-child + br + br,
#register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) > br:has(+ br + strong:last-child),
#register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) > br:has(+ strong:last-child) {
    display: none;
}

#register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) > strong > a[href="mailto:director@marinalife.travel"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 11px;
    background: #416c46;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color .18s ease;
}

#register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) > strong > a[href="mailto:director@marinalife.travel"]::before {
    content: "\f0e0";
    flex: 0 0 auto;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    line-height: 1;
}

#register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) > strong > a[href="mailto:director@marinalife.travel"]:hover {
    background: #58885d;
}

#register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) > strong > a[href="mailto:director@marinalife.travel"]:focus-visible {
    outline: 2px solid #416c46;
    outline-offset: 4px;
}

#register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) > strong:last-child {
    display: block;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(65,108,70,.10);
    color: #416c46;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 767px) {
    #register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) {
        /* The approved canvas already provides 12px side gutters. */
        width: 100%;
        margin: 24px auto;
        padding: 24px 22px;
        border-radius: 16px;
        font-size: 14px;
    }

    #register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) > strong:first-child {
        font-size: 22px;
    }

    #register_agency:not(:has(form, fieldset, table)):has(> strong > a[href="mailto:director@marinalife.travel"]) > strong:last-child {
        font-size: 14px;
    }
}

/* =====================================================
   03. Search Controls
   ===================================================== */

/* =====================================================
   03. Search Modes Polish
   ===================================================== */

.samo_container .searchmodes {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: 10px !important;
}

.samo_container .searchmodes .searchmode,
.samo_container .searchmodes .searchmode-custom {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: none !important;
}

.samo_container .searchmodes .searchmode_selected {
    padding: 11px 16px !important;
    background: var(--main-panel-bgcolor);
    color: #1f2f22;
    font-weight: 700;
}

.samo_container .searchmodes .searchmode_button {
    display: block;
    padding: 11px 16px !important;
    background: #eef5ef !important;
    color: #416c46 !important;
    text-decoration: none;
    box-shadow: none !important;
}

.samo_container .searchmodes .searchmode_button:hover {
    background: #dff2e2 !important;
    color: #416c46 !important;
}

.samo_container .searchmodes .searchmode_favorites .searchmode_button {
    background: #f3f8f4 !important;
}

.samo_container .searchmodes .searchmode_favorites .searchmode_button::before,
.samo_container .searchmodes .searchmode_favorites.searchmode_selected::before {
    content: "\f004";
    display: inline-block;
    margin-right: 7px;
    font-family: "Font Awesome 6 Free";
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #416c46;
}

.samo_container .searchmodes .searchmode_favorites.searchmode_selected::before {
    font-weight: 900;
}

.samo_container .searchmodes .searchmode_favorites .searchmode_button:hover {
    background: #eaf4ec !important;
}

.samo_container .searchmodes .searchmode_favorites .searchmode_button:focus-visible {
    outline: 2px solid #416c46;
    outline-offset: -3px;
}

/* Панель після вкладок завжди повністю округлена */

.samo_container .searchmodes + .panel,
.samo_container .searchmodes + table.panel,
.samo_container .searchmodes + div.panel {
    margin-top: 0 !important;
    border-top-left-radius: 12px !important;
}
/* =====================================================
   04. Premium Calendar
   ===================================================== */

.samo_container .Zebra_DatePicker {
    border: 1px solid rgba(65,108,70,.28) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 28px rgba(31,47,34,.18) !important;
    padding: 8px !important;
    overflow: hidden;
}

.samo_container .Zebra_DatePicker .dp_header td {
    background: #416c46 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 7px 4px !important;
}

.samo_container .Zebra_DatePicker .dp_daypicker th {
    background: #eef5ef !important;
    color: #416c46 !important;
    font-weight: 700 !important;
    padding: 6px 0 !important;
}

.samo_container .Zebra_DatePicker td {
    background: #ffffff !important;
    color: #253827 !important;
    border-radius: 7px !important;
}

.samo_container .Zebra_DatePicker td.dp_hover {
    background: #dff2e2 !important;
    color: #416c46 !important;
}

.samo_container .Zebra_DatePicker td.dp_selected {
    background: #416c46 !important;
    color: #ffffff !important;
    font-weight: 700;
}

.samo_container .Zebra_DatePicker td.dp_current:not(.dp_selected) {
    background: #eef8ef !important;
    color: #416c46 !important;
    font-weight: 700;
}

.samo_container .Zebra_DatePicker td.dp_not_in_month,
.samo_container .Zebra_DatePicker td.dp_disabled,
.samo_container .Zebra_DatePicker td.dp_weekend_disabled {
    color: #b7b7b7 !important;
    background: #ffffff !important;
}

.samo_container .Zebra_DatePicker .dp_footer td {
    background: #f4faf5 !important;
    color: #416c46 !important;
    font-weight: 700 !important;
}


/* =====================================================
   05. Calendar Icon Polish
   ===================================================== */

.samo_container button.Zebra_DatePicker_Icon {
    display: block !important;
    position: absolute !important;

    width: 18px !important;
    height: 18px !important;

    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;

    text-indent: -9999px !important;
    opacity: .85;
}

.samo_container button.Zebra_DatePicker_Icon::before {
    content: "\f073";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;

    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    line-height: 18px;
    color: #416c46;

    text-indent: 0 !important;
    pointer-events: none !important;
}

.samo_container button.Zebra_DatePicker_Icon:hover {
    opacity: 1;
}
/* =====================================================
   04. Search Results & Tables
   ===================================================== */

/* =====================================================
   08. Premium Result Table
   Search results only
   ===================================================== */

.samo_container #scrollto table.res {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(31,47,34,.10);
}

.samo_container #scrollto table.res thead th,
.samo_container #scrollto table.res thead td {
    background: #416c46 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 8px 10px !important;
    border: none !important;
}

.samo_container #scrollto table.res tbody td {
    padding: 9px 10px !important;
    border-bottom: 1px solid rgba(65,108,70,.14) !important;
    background: #ffffff !important;
    color: #1f2f22;
}

.samo_container #scrollto table.res tbody tr:hover td {
    background: #eaf7ec !important;
}

.samo_container #scrollto .price_button {
    background-color: #ffffff !important;
    border: 1px solid rgba(65,108,70,.35) !important;
    border-radius: 8px !important;
    color: #1f2f22 !important;
    box-shadow: none !important;
}

.samo_container #scrollto .price_button:hover {
    border-color: #416c46 !important;
    background-color: #eef8ef !important;
}

/* =====================================================
   08.1 Result Table Polish
   ===================================================== */

.samo_container #scrollto table.res tbody td {
    vertical-align: middle !important;
}

.samo_container #scrollto table.res .transport .name {
    display: inline-block;
    margin-right: 8px;
    color: #1f2f22;
}

.samo_container #scrollto table.res td.transport {
    padding-right: 14px !important;
}

.samo_container #scrollto table.res .td_price {
    white-space: nowrap;
}

.samo_container #scrollto table.res .type_price {
    color: #416c46;
    font-weight: 600;
}

.samo_container #scrollto table.res .tour-nights {
    font-weight: 700;
    color: #416c46;
}

.samo_container #scrollto table.res .link-hotel {
    font-weight: 600;
}

.samo_container #scrollto table.res tbody tr:last-child td {
    border-bottom: none !important;
}

/* =====================================================
   Hotel Monitor - Premium Production
   The calendar's parent fieldset owns the integrated header and body.
   Title and labels remain native text nodes; preserve their reading order.
   ===================================================== */

/* Outer card / legend */
#modalContainer #basicModalContent #search_stat fieldset.panel:has(> #hotel_monitor),
.samo_container fieldset.panel:has(> #hotel_monitor) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 12px 12px !important;
    border: 1px solid rgba(65,108,70,.16) !important;
    border-radius: 16px !important;
    background: #f5fbf6 !important;
    box-shadow: 0 3px 12px rgba(31,47,34,.05) !important;
    display: flow-root;
}

.samo_container fieldset.panel:has(> #hotel_monitor) > legend {
    float: left;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #355b3a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
}

.samo_container fieldset.panel:has(> #hotel_monitor) > legend > :is(.yesplace, .noplace, .yesnoplace, .requestplace) {
    display: inline-block;
    width: 11px;
    height: 11px;
    box-sizing: border-box;
    margin: 0 3px 0 10px;
    padding: 0;
    border: 1px solid rgba(31,47,34,.18);
    border-radius: 3px;
    font-size: 0;
    line-height: 0;
    vertical-align: middle;
}

/* Original SAMO status palette; scoped weight beats important row/hover backgrounds. */
#modalContainer #basicModalContent #search_stat #hotel_monitor td.h_monitor_day.yesplace,
.samo_container #hotel_monitor table.res.hotel_monitor td.h_monitor_day.yesplace,
.samo_container fieldset.panel:has(> #hotel_monitor) > legend > .yesplace {
    background-color: #8EEB84 !important;
}

#modalContainer #basicModalContent #search_stat #hotel_monitor td.h_monitor_day.noplace,
.samo_container #hotel_monitor table.res.hotel_monitor td.h_monitor_day.noplace,
.samo_container fieldset.panel:has(> #hotel_monitor) > legend > .noplace {
    background-color: #FF8080 !important;
}

#modalContainer #basicModalContent #search_stat #hotel_monitor td.h_monitor_day.yesnoplace,
.samo_container #hotel_monitor table.res.hotel_monitor td.h_monitor_day.yesnoplace,
.samo_container fieldset.panel:has(> #hotel_monitor) > legend > .yesnoplace {
    background-color: #FFE874 !important;
}

#modalContainer #basicModalContent #search_stat #hotel_monitor td.h_monitor_day.requestplace,
.samo_container #hotel_monitor table.res.hotel_monitor td.h_monitor_day.requestplace,
.samo_container fieldset.panel:has(> #hotel_monitor) > legend > .requestplace {
    background-color: #AAAAAA !important;
}

/* Calendar surface; scrolling is confined to the calendar, not the page. */
.samo_container #hotel_monitor {
    clear: both;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    border: 1px solid rgba(65,108,70,.16);
    border-radius: 12px;
    background: #fff;
    overflow-x: auto;
}

.samo_container #hotel_monitor table.res.hotel_monitor {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
}

/* Tick-row dimensions and colspan geometry remain controlled by SAMO. */
.samo_container #hotel_monitor th.h_monitor_day_tick {
    background-color: #416c46;
    border-color: rgba(255,255,255,.18);
}

/* Date headers */
.samo_container #hotel_monitor th.h_monitor_day_title {
    padding: 8px 6px;
    border: 1px solid rgba(255,255,255,.18);
    background: #416c46;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

/* Availability cells retain their native title/tooltips. */
.samo_container #hotel_monitor td.h_monitor_day {
    height: 26px;
    padding: 0;
    border: 1px solid rgba(65,108,70,.12);
    vertical-align: middle;
}

/* Inactive state keeps the underlying availability color readable. */
.samo_container #hotel_monitor th.h_monitor_day_title.h_monitor_inactive_day {
    background: #617666;
}

#modalContainer #basicModalContent #search_stat #hotel_monitor td.h_monitor_day.h_monitor_inactive_day,
.samo_container #hotel_monitor table.res.hotel_monitor td.h_monitor_day.h_monitor_inactive_day {
    background-image: linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.3)) !important;
    opacity: 1;
}

/* Mobile: ten dates retain a readable 56px average width. */
@media (max-width: 767px) {
    .samo_container #hotel_monitor table.res.hotel_monitor {
        min-width: 560px;
    }

    .samo_container fieldset.panel:has(> #hotel_monitor) > legend {
        font-size: 12px;
    }

    .samo_container fieldset.panel:has(> #hotel_monitor) > legend::first-line {
        font-size: 15px;
        font-weight: 800;
    }

    .samo_container fieldset.panel:has(> #hotel_monitor) > legend > :is(.yesplace, .noplace, .yesnoplace, .requestplace) {
        margin-left: 6px;
    }

    /* The native title is a text node; break before the first marker without replacing it. */
    .samo_container fieldset.panel:has(> #hotel_monitor) > legend > .yesplace {
        display: contents;
    }

    .samo_container fieldset.panel:has(> #hotel_monitor) > legend > .yesplace::before {
        content: "";
        display: block;
    }

    .samo_container fieldset.panel:has(> #hotel_monitor) > legend > .yesplace::after {
        content: "";
        display: inline-block;
        width: 11px;
        height: 11px;
        box-sizing: border-box;
        margin-right: 3px;
        border: 1px solid rgba(31,47,34,.18);
        border-radius: 3px;
        background-color: inherit;
        vertical-align: middle;
    }
}

/* =====================================================
   08.1.1 Instant Confirmation
   Resort Life Premium Final
   ===================================================== */

/* -----------------------------------------------------
   Legend: replace old green rectangle with modern badge
   ----------------------------------------------------- */

.samo_container td:has(> span.confirm_now_img.green_row) {
    font-size: 0 !important;
    white-space: nowrap !important;
}

.samo_container td > span.confirm_now_img.green_row {
    display: none !important;
}

.samo_container td:has(> span.confirm_now_img.green_row)::after {
    content: "\f058  GARANTY";

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    min-height: 28px !important;

    padding: 0 11px !important;

    background: #d7f0db !important;
    color: #416c46 !important;

    border: 1px solid rgba(65,108,70,.20) !important;
    border-radius: 999px !important;

    font-family: "Font Awesome 6 Free", Tahoma, Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.65),
        0 3px 9px rgba(31,47,34,.07) !important;
}


/* Instant badge near availability bars */

.samo_container #scrollto table.res td.hotel-seats:has(
    span.hotel_availability_Y
)::after {
    content: "\f058  GARANTY";

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 24px !important;

    margin-left: 9px !important;
    padding: 0 8px !important;

    background: #d7f0db !important;
    color: #416c46 !important;

    border: 1px solid rgba(65,108,70,.18) !important;
    border-radius: 999px !important;

    font-family: "Font Awesome 6 Free", Tahoma, Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    vertical-align: middle !important;
    white-space: nowrap !important;

    box-shadow: inset 0 1px 0 rgba(255,255,255,.55) !important;
}

/* -----------------------------------------------------
   Mobile version
   Keep result cards compact
   ----------------------------------------------------- */

@media (max-width: 767px) {

    .samo_container #scrollto table.res td.hotel-seats:has(
        span.hotel_availability_Y
    )::after {
        content: "\f058  GARANTY";

        width: auto !important;
        min-width: 0 !important;
        max-width: 100%;
        height: 24px !important;
        min-height: 24px !important;

        margin-left: 0 !important;
        padding: 0 4px !important;

        border-radius: 999px !important;

        font-size: 11px !important;
    }
}

/* =====================================================
   Stop Sale Legend
   ===================================================== */

.samo_container td:has(> span.stop_sale_img.red_row) {
    font-size: 0 !important;
    white-space: nowrap !important;
}

.samo_container td > span.stop_sale_img.red_row {
    display: none !important;
}

.samo_container td:has(> span.stop_sale_img.red_row)::after {

    content: "\f05e  Stop sale";

    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 28px;

    padding: 0 11px;

    background: #fdeaea;
    color: #b63d3d;

    border: 1px solid rgba(182,61,61,.22);
    border-radius: 999px;

    font-family: "Font Awesome 6 Free",Tahoma,Arial,sans-serif;
    font-size: 11px;
    font-weight: 700;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.7),
        0 3px 9px rgba(0,0,0,.05);
}

/* =====================================================
   Best Price Legend
   ===================================================== */

.samo_container td:has(> span.best_price_img) {
    font-size: 0 !important;
    white-space: nowrap !important;
}

.samo_container td > span.best_price_img {
    display: none !important;
}

.samo_container td:has(> span.best_price_img)::after {

    content: "\f005  Best price";

    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 28px;

    padding: 0 11px;

    background: #fff6d8;
    color: #a36b00;

    border: 1px solid rgba(163,107,0,.20);
    border-radius: 999px;

    font-family: "Font Awesome 6 Free", Tahoma, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.75),
        0 3px 9px rgba(0,0,0,.05);
}

/* =====================================================
   Search Results Legend - Premium Production
   Native SAMO legend and toggle; no changes to availability data.
   ===================================================== */

.samo_container #search_tour td:has(> .price-legend-container) {
    padding: 0 !important;
    border-radius: 16px;
    background: #f5fbf6;
    box-shadow: inset 0 0 0 1px rgba(65,108,70,.16), 0 4px 16px rgba(31,47,34,.05);
}

.samo_container #search_tour .price-legend-container {
    --mlt-legend-title: "Search results legend";
    --mlt-legend-subtitle: "Find out what the icons and labels mean";
    --mlt-legend-seats: "Seat availability";
    --mlt-legend-hotels: "Hotel availability";
    --mlt-legend-garanty: "Booking with guaranteed confirmation";
    --mlt-legend-stop: "Not available";
    --mlt-legend-best: "Our best offer";
    max-width: 100%;
    margin: 0;
    padding: 16px 18px;
    border: 0;
    box-sizing: border-box;
    overflow: visible;
    container-type: inline-size;
    /* Display stays controlled by SAMO's existing show/hide handler. */
}

html[lang="uk"] .samo_container #search_tour .price-legend-container {
    --mlt-legend-title: "Позначення в результатах пошуку";
    --mlt-legend-subtitle: "Що означають позначки та статуси";
    --mlt-legend-seats: "Наявність місць";
    --mlt-legend-hotels: "Наявність у готелі";
    --mlt-legend-garanty: "Бронювання з гарантованим підтвердженням";
    --mlt-legend-stop: "Продаж тимчасово недоступний";
    --mlt-legend-best: "Найкраща доступна пропозиція";
}

.samo_container #search_tour .price-legend-container::before {
    content: var(--mlt-legend-title);
    display: block;
    margin-bottom: 4px;
    color: #355b3a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.samo_container #search_tour .price-legend-container > .price_legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1.4fr)) repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-sizing: border-box;
    overflow: visible;
}

.samo_container #search_tour .price_legend::before {
    content: var(--mlt-legend-subtitle);
    grid-column: 1 / -1;
    text-align: center;
    color: #5f7464;
    font-size: 12px;
    line-height: 1.5;
}

/* Outrank SAMO's mobile .std.container table tbody/tr display rules. */
.samo_container #search_tour .price-legend-container > .price_legend > tbody,
.samo_container #search_tour .price-legend-container > .price_legend > tbody > tr {
    display: contents;
}

.samo_container #search_tour .price_legend td {
    display: block;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5f7464;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal !important;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.samo_container #search_tour .price_legend td:has(> .places) {
    grid-column: 1;
    grid-row: 2 / 4;
}

.samo_container #search_tour .price_legend td:has(> .hotel_availability_img) {
    grid-column: 2;
    grid-row: 2 / 4;
    padding-right: 12px;
    border-right: 1px solid rgba(65,108,70,.16);
}

.samo_container #search_tour .price_legend td:has(> .places)::before,
.samo_container #search_tour .price_legend td:has(> .hotel_availability_img)::before {
    display: block;
    margin-bottom: 6px;
    color: #355b3a;
    font-size: 14px;
    font-weight: 700;
}

.samo_container #search_tour .price_legend td:has(> .places)::before {
    content: var(--mlt-legend-seats);
}

.samo_container #search_tour .price_legend td:has(> .hotel_availability_img)::before {
    content: var(--mlt-legend-hotels);
}

.samo_container #search_tour .price_legend .places,
.samo_container #search_tour .price_legend .hotel_availability_img {
    display: block;
    margin: 0 0 6px;
}

.samo_container #search_tour .price_legend td:has(> .confirm_now_img) {
    grid-column: 3;
    grid-row: 2;
}

.samo_container #search_tour .price_legend td:has(> .stop_sale_img) {
    grid-column: 4;
    grid-row: 2;
}

.samo_container #search_tour .price_legend td:has(> .best_price_img) {
    grid-column: 5;
    grid-row: 2;
}

.samo_container #search_tour .price_legend td:has(> .confirm_now_img),
.samo_container #search_tour .price_legend td:has(> .stop_sale_img),
.samo_container #search_tour .price_legend td:has(> .best_price_img) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.samo_container #search_tour .price_legend td:has(> .confirm_now_img)::after,
.samo_container #search_tour .price_legend td:has(> .stop_sale_img)::after,
.samo_container #search_tour .price_legend td:has(> .best_price_img)::after {
    order: 0;
    max-width: 100%;
    min-height: 28px !important;
    padding: 5px 9px !important;
    box-sizing: border-box;
    font-family: Tahoma, Arial, "Font Awesome 6 Free", sans-serif !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    text-transform: uppercase;
}

.samo_container #search_tour .price_legend td:has(> .confirm_now_img)::before,
.samo_container #search_tour .price_legend td:has(> .stop_sale_img)::before,
.samo_container #search_tour .price_legend td:has(> .best_price_img)::before {
    order: 1;
    color: #5f7464;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.samo_container #search_tour .price_legend td:has(> .confirm_now_img)::before {
    content: var(--mlt-legend-garanty);
}

.samo_container #search_tour .price_legend td:has(> .stop_sale_img)::before {
    content: var(--mlt-legend-stop);
}

.samo_container #search_tour .price_legend td:has(> .best_price_img)::before {
    content: var(--mlt-legend-best);
}

.samo_container #search_tour .price_legend td:has(> .price_stats_img) {
    grid-column: 3 / -1;
    grid-row: 3;
    align-self: center;
}

.samo_container #search_tour .price-legend-container + .information-ear {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    height: auto;
    padding: 8px 12px;
    border: 1px solid rgba(65,108,70,.22);
    border-radius: 12px;
    box-sizing: border-box;
    background: #f7fbf8;
    color: #416c46;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(31,47,34,.08);
    transition: background-color .18s ease, border-color .18s ease,
                box-shadow .18s ease, color .18s ease;
}

.samo_container #search_tour .price-legend-container + .information-ear:hover,
.samo_container #search_tour .price-legend-container + .information-ear:focus-visible,
.samo_container #search_tour .price-legend-container + .information-ear:active {
    background: #eef8ef;
    border-color: rgba(65,108,70,.32);
    color: #355b3a;
    box-shadow: 0 3px 10px rgba(31,47,34,.11);
}

.samo_container #search_tour .price-legend-container + .information-ear:focus-visible {
    outline: 2px solid rgba(65,108,70,.45);
    outline-offset: 2px;
}

/* Native legend cells reflow without a standalone Limited tile. */
@media (max-width: 767px) {
    .samo_container #search_tour .price-legend-container > .price_legend {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
        gap: 8px;
        align-items: start;
    }

    .samo_container #search_tour .price_legend td {
        grid-column: auto !important;
        grid-row: auto !important;
        min-width: 0;
        min-height: 0;
        height: auto;
        align-self: start;
        padding: 12px !important;
        border: 1px solid rgba(65,108,70,.12);
        border-radius: 12px;
        background: #ffffff;
    }

    .samo_container #search_tour .price_legend td:has(> .places) { order: 1; }
    .samo_container #search_tour .price_legend td:has(> .hotel_availability_img) { order: 2; }
    .samo_container #search_tour .price_legend td:has(> .confirm_now_img) {
        order: 3;
        background: #eef8ef;
    }
    .samo_container #search_tour .price_legend td:has(> .stop_sale_img) {
        order: 5;
        background: #fdeaea;
    }
    .samo_container #search_tour .price_legend td:has(> .best_price_img) {
        order: 6;
        background: #fff6d8;
    }
    .samo_container #search_tour .price_legend td:has(> .price_stats_img) {
        order: 7;
        grid-column: 1 / -1 !important;
        background: #eef3f0;
    }

    .samo_container #search_tour .price_legend td:has(> .confirm_now_img)::after,
    .samo_container #search_tour .price_legend td:has(> .stop_sale_img)::after,
    .samo_container #search_tour .price_legend td:has(> .best_price_img)::after {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 12px !important;
    }
    .samo_container #search_tour .price-legend-container {
        padding: 14px 12px;
    }

    .samo_container #search_tour .price-legend-container::before {
        font-size: 18px;
    }
}

/* The green indicator owns ::after when Y is present. Use the free
   ::before in mixed F/Y cells, without changing either availability bar. */
.samo_container #scrollto table.res td.hotel-seats:has(span.hotel_availability_F):not(:has(span.hotel_availability_Y))::after,
.samo_container #scrollto table.res td.hotel-seats:has(span.hotel_availability_F):has(span.hotel_availability_Y)::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    order: 1;
    width: 22px;
    height: 22px;
    margin: 0 4px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid rgba(163,107,0,.24);
    border-radius: 50%;
    background: #fff6d8;
    color: #a36b00;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 4px rgba(163,107,0,.08);
}

@media (min-width: 768px) {
    /* Let a badge wrap inside narrow cells instead of widening the table. */
    .samo_container #scrollto table.res td.hotel-seats:has(span.hotel_availability_F) {
        white-space: normal;
    }

    .samo_container #scrollto table.res td.hotel-seats:has(span.hotel_availability_F):not(:has(span.hotel_availability_Y))::after,
    .samo_container #scrollto table.res td.hotel-seats:has(span.hotel_availability_F):has(span.hotel_availability_Y)::before {
        content: "! LIMITED";
        flex-basis: auto;
        width: auto;
        height: 24px;
        padding: 0 6px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 700;
        white-space: nowrap;
    }
}

/* SAMO uses a narrow flex availability cell up to 882px. */
@media (min-width: 768px) and (max-width: 882px) {
    .samo_container #scrollto table.res td.hotel-seats:has(span.hotel_availability_F):not(:has(span.hotel_availability_Y))::after {
        height: 22px;
    }

    .samo_container #scrollto table.res td.hotel-seats:has(span.hotel_availability_F):has(span.hotel_availability_Y)::before {
        content: "!";
        flex-basis: 22px;
        width: 22px;
        height: 22px;
        padding: 0;
        border-radius: 50%;
        font-size: 14px;
        font-weight: 800;
    }
}

/* =====================================================
   Search Results - Price Dynamics Icon
   Results + Legend
   ===================================================== */

.samo_container #search_tour #scrollto table.res td.statistic > span.stats.helpalt,
.samo_container #search_tour .price_legend .price_stats_img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    vertical-align: middle;
    color: #12392e;
    font-size: 0;
    line-height: 0;
    background: none;
}

.samo_container #search_tour #scrollto table.res td.statistic > span.stats.helpalt::before,
.samo_container #search_tour .price_legend .price_stats_img::before {
    content: "";
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    background:
        linear-gradient(currentColor, currentColor) 1px 8px / 2px 6px no-repeat,
        linear-gradient(currentColor, currentColor) 7px 4px / 2px 10px no-repeat,
        linear-gradient(currentColor, currentColor) 13px 0 / 2px 14px no-repeat,
        linear-gradient(currentColor, currentColor) 0 15px / 16px 1px no-repeat;
}

.samo_container #search_tour #scrollto table.res td.statistic > span.stats.helpalt {
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(18,57,46,.14);
    border-radius: 10px;
    background: rgba(18,57,46,.035);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

.samo_container #search_tour #scrollto table.res td.statistic > span.stats.helpalt:hover {
    background-color: rgba(18,57,46,.08);
    border-color: rgba(18,57,46,.25);
}

.samo_container #search_tour #scrollto table.res td.statistic > span.stats.helpalt:active {
    background-color: rgba(18,57,46,.10);
    border-color: rgba(18,57,46,.30);
}

.samo_container #search_tour .price_legend .price_stats_img {
    width: 22px;
    height: 22px;
    border: 0;
    cursor: default;
}

/* =====================================================
   08.2 Mobile Result Card Polish
   Search results only
   ===================================================== */

@media (max-width: 767px) {

    .samo_container #scrollto table.res {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .samo_container #scrollto table.res tbody tr.price_info {
        display: grid !important;
        grid-template-columns: 40px 40px minmax(0, 1fr) minmax(64px, 26%);
        gap: 6px;
        align-items: center;
        width: calc(100% - 12px);
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        margin: 10px 6px !important;
        padding: 10px;
        border: 1px solid rgba(65,108,70,.14) !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        box-shadow: 0 4px 14px rgba(31,47,34,.07) !important;
        overflow: visible;
    }

    /* Reset cell geometry, not SAMO's visibility rules or status backgrounds. */
    .samo_container #scrollto table.res tbody tr.price_info > td {
        grid-column: 1 / -1;
        order: 9;
        width: auto;
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        font-size: 12px;
        line-height: 1.35;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* SAMO's literal room/meal separator is redundant in the card grid. */
    .samo_container #scrollto table.res tbody tr.price_info > td.forward-slash,
    .samo_container #scrollto table.res tbody tr.price_info > td:not([class]):empty,
    .samo_container #scrollto table.res tbody tr.price_info > td.external-info:empty {
        display: none;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.link-hotel {
        grid-column: 1 / 4;
        order: 0;
        display: block;
        color: #1f2f22 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.3;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.link-hotel .additional {
        width: 16px;
        min-width: 16px;
        margin: 0 4px 0 0;
        background-position: center;
        vertical-align: middle;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.hotel-seats {
        grid-column: 4;
        order: 1;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-content: center;
        align-items: center;
        row-gap: 4px;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.hotel-room {
        grid-column: 1 / 4;
        order: 2;
        display: block;
        color: #1f2f22 !important;
        font-size: 13px;
        font-weight: 600 !important;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.hotel-meals {
        grid-column: 4;
        order: 3;
        justify-content: flex-end;
        text-align: right !important;
        color: #416c46 !important;
        font-weight: 700 !important;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.arrival {
        grid-column: 1 / 4;
        order: 4;
        flex-wrap: wrap;
        align-items: baseline;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.tour-nights {
        grid-column: 4;
        order: 5;
        align-items: baseline;
        justify-content: flex-end;
        text-align: right !important;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.tour {
        order: 6;
        display: block;
        color: #5f7464 !important;
        font-size: 11px;
        font-weight: 400;
    }

    /* Preserve meaningful metadata; an empty commission stays under SAMO control. */
    .samo_container #scrollto table.res tbody tr.price_info > td.attributes {
        grid-column: 3;
        order: 12;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.favorites-cell {
        grid-column: 1;
        order: 10;
        justify-content: center;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.statistic {
        grid-column: 2;
        order: 11;
        justify-content: center;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.favorites-cell .favorites {
        display: inline-block;
        width: 40px;
        height: 40px;
        margin: 0;
        border-radius: 8px;
        background-position: center;
        cursor: pointer;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.favorites-cell .favorites:hover {
        background-color: rgba(65,108,70,.08);
    }

    .samo_container #search_tour #scrollto table.res td.statistic > span.stats.helpalt {
        width: 34px;
        height: 34px;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.type_price {
        grid-column: 4;
        order: 13;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 3px;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.td_price {
        order: 20;
        text-align: center !important;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.td_price .price_button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        min-height: 46px;
        box-sizing: border-box !important;
        padding: 8px 32px !important;
        border: 1px solid rgba(65,108,70,.28) !important;
        border-radius: 10px !important;
        background-color: #ffffff !important;
        background-position: 12px center;
        color: #1f2f22 !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        text-align: center !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.type_price .toggle-text {
        display: inline-block;
        max-width: 100%;
        padding: 3px 8px;
        border-radius: 999px;
        background: #eef8ef;
        color: #416c46;
        font-weight: 700;
        font-size: 11px;
    }

    .samo_container #scrollto table.res tbody tr.price_info > td.transport .name {
        margin-right: 7px;
        color: #1f2f22;
        font-weight: 600;
    }
}

/* =====================================================
   08.3 Stop Sale Price Badge
   ===================================================== */

.samo_container #scrollto table.res tbody tr.price_info td.td_price:not(:has(.price_button))::after,
.samo_container #scrollto table.res tbody tr.price_info td.price:not(:has(.price_button))::after {
    content: "Stop sale";

    display: inline-flex;
    align-items: center;

    margin-left: 8px;
    padding: 3px 8px;

    background: #ffe6e6;
    border: 1px solid rgba(185,45,45,.22);
    border-radius: 999px;

    color: #b92d2d;
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    white-space: nowrap;
}

/* =====================================================
   05. Popups & Modals
   ===================================================== */

/* =====================================================
   09. Premium Packet Content
   ===================================================== */

#basicModalContent fieldset.panel.resultset {
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 0 22px 22px !important;
    box-shadow: none !important;
    padding: 14px 18px 16px !important;
}

#basicModalContent .legend-tag {
    color: #416c46 !important;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 0;
}

#basicModalContent .legend-tag::before {
    content: "\f1b3";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px;
    color: #416c46;
    margin-right: 9px;
}

#basicModalContent table.std.panel {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    margin: 0 !important;
}

#basicModalContent table.std.panel td {
    padding: 8px 10px !important;
    border-bottom: 1px solid rgba(65,108,70,.07);
    vertical-align: middle;
}

#basicModalContent table.std.panel tr:nth-child(odd) td {
    background: #ffffff !important;
}

#basicModalContent table.std.panel tr:nth-child(even) td {
    background: #f7fbf8 !important;
}

#basicModalContent table.std.panel tr:hover td {
    background: #eaf7ec !important;
}

#basicModalContent table.std.panel tr:last-child td {
    border-bottom: none !important;
}

#basicModalContent:not(:has(#e_doc)) td.caption {
    width: 170px;
    color: #5f7464;
    font-weight: 500;
    white-space: nowrap;
}

#basicModalContent:not(:has(#e_doc)) td:last-child {
    color: #243526;
    font-weight: 700;
}

#basicModalContent:not(:has(#e_doc)) td img {
    opacity: .55;
    margin-right: 8px;
    vertical-align: middle;
}
/* =====================================================
   09.1 Modal Container
   ===================================================== */

#modalContainer {
    border: none !important;
    border-radius: 22px !important;
    background: transparent !important;
    box-shadow: 0 22px 60px rgba(31,47,34,.24) !important;
    overflow: visible !important;
}

#modalContainer .modalTitle {
    border: none !important;
    background: #bbe4c1 !important;
    height: 18px !important;
    border-radius: 22px 22px 0 0 !important;
}

#modalContainer #basicModalContent {
    padding: 0 !important;
    background: #ffffff !important;
    border-radius: 0 0 22px 22px !important;
    overflow: visible !important;
}

/* Premium Close Button */

#modalContainer a.modalCloseImg,
#logonContainer a.modalCloseImg {
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    width: 24px !important;
    height: 24px !important;
    background: #416c46 !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(31,47,34,.25) !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    z-index: 9999 !important;
}

#modalContainer a.modalCloseImg::before,
#logonContainer a.modalCloseImg::before {
    content: "×";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: 0 !important;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

#modalContainer a.modalCloseImg:hover,
#logonContainer a.modalCloseImg:hover {
    background: #58885d !important;
}

/* =====================================================
   10. Mobile Header Space Compact
   ===================================================== */

@media (max-width: 767px) {

    #header {
        margin-bottom: 12px !important;
    }

    .samo_container {
        margin-top: 6px !important;
    }

    .samo_container .std.container {
        padding-top: 6px !important;
    }

    .samo_container .searchmodes {
        margin-bottom: 8px !important;
    }

}

/* =====================================================
   09.3 Premium Statistics Popup
   ===================================================== */

#modalContainer #basicModalContent #search_stat {
    background: #ffffff !important;
    padding: 12px !important;
    border-radius: 0 0 22px 22px !important;
}

#modalContainer #basicModalContent #search_stat table.res {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

#modalContainer #basicModalContent #search_stat table.res thead th {
    background: #416c46 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    padding: 8px 10px !important;
    border: none !important;
}

#modalContainer #basicModalContent #search_stat table.res td {
    background: #ffffff !important;
    color: #1f2f22 !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid rgba(65,108,70,.08) !important;
}

#modalContainer #basicModalContent #search_stat fieldset.panel {
    background: #bbe4c1 !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 14px !important;
    margin: 10px 0 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

#modalContainer #basicModalContent #search_stat .legend-tag {
    color: #416c46 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
}

#modalContainer #basicModalContent #search_stat .legend-tag::before {
    content: "\f072" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    color: #416c46 !important;
    margin-right: 9px !important;
}

#modalContainer #basicModalContent #search_stat h3.frplacement {
    color: #1f2f22 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
}

#modalContainer #basicModalContent #search_stat #freights table.res thead th {
    background: #416c46 !important;
    color: #ffffff !important;
}

#modalContainer #basicModalContent #search_stat #freights .transport .name {
    display: inline-block !important;
    min-width: 110px !important;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    background: #bbe4c1 !important;
    color: #1f2f22 !important;
    font-weight: 800 !important;
    text-align: center !important;
}

/* Mobile Statistics Popup: isolated shell, offer summary and chart host. */
@media (max-width: 767px) {
    /* Include the content ID to outrank the later global modal geometry. */
    #modalContainer:has(#basicModalContent #search_stat) {
        position: fixed !important;
        top: 12px !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        width: calc(100% - 24px) !important;
        max-width: 430px !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
        margin: 0 auto !important;
        transform: none !important;
        box-sizing: border-box !important;
        border-radius: 20px !important;
        background: #ffffff !important;
        box-shadow: 0 18px 48px rgba(31,47,34,.24) !important;
    }

    #modalContainer:has(#search_stat) > .modalTitle {
        flex: 0 0 auto;
        position: relative;
        height: auto !important;
        min-height: 60px;
        padding: 14px 60px 14px 16px;
        box-sizing: border-box;
        border-radius: 20px 20px 0 0 !important;
        background: #f5fbf6 !important;
        color: #355b3a;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #modalContainer:has(#search_stat) a.modalCloseImg {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        box-sizing: border-box;
    }

    #modalContainer:has(#search_stat) a.modalCloseImg:focus-visible {
        outline: 3px solid #58885d;
        outline-offset: 2px;
    }

    #modalContainer:has(#basicModalContent #search_stat) #basicModalContent {
        flex: 0 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border-radius: 0 0 20px 20px !important;
    }

    #modalContainer #basicModalContent #search_stat {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        box-sizing: border-box;
        border-radius: 0 0 20px 20px !important;
    }

    #modalContainer #search_stat #chart-info {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        box-sizing: border-box;
    }

    /* Only the offer table changes layout; calendar and chart tables do not. */
    #modalContainer #search_stat #chart-info > table.res,
    #modalContainer #search_stat #chart-info > table.res > tbody {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        box-sizing: border-box;
    }

    #modalContainer #search_stat #chart-info > table.res > tbody > tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 30%);
        gap: 8px;
        padding: 12px;
        border: 1px solid rgba(65,108,70,.16);
        border-radius: 12px;
        background: #f5fbf6;
    }

    #modalContainer #basicModalContent #search_stat #chart-info > table.res > tbody > tr > td {
        display: block;
        grid-column: 1 / -1;
        order: 6;
        width: auto;
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        text-align: left;
        font-size: 13px;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #modalContainer #basicModalContent #search_stat #chart-info > table.res > tbody > tr > td.forward-slash {
        display: none;
    }

    #modalContainer #basicModalContent #search_stat #chart-info > table.res > tbody > tr > td.link-hotel {
        order: 0;
        font-size: 15px;
        font-weight: 700;
    }

    #modalContainer #basicModalContent #search_stat #chart-info > table.res > tbody > tr > td.hotel-room {
        grid-column: 1;
        order: 1;
        font-weight: 600;
    }

    #modalContainer #basicModalContent #search_stat #chart-info > table.res > tbody > tr > td.hotel-meals {
        grid-column: 2;
        order: 2;
        text-align: right;
        font-weight: 700;
    }

    #modalContainer #basicModalContent #search_stat #chart-info > table.res > tbody > tr > td.arrival {
        grid-column: 1;
        order: 3;
    }

    #modalContainer #search_stat #chart-info > table.res td.arrival::before {
        margin-right: 4px;
    }

    #modalContainer #basicModalContent #search_stat #chart-info > table.res > tbody > tr > td.tour-nights {
        grid-column: 2;
        order: 4;
        text-align: right;
    }

    #modalContainer #basicModalContent #search_stat #chart-info > table.res > tbody > tr > td.tour {
        order: 5;
        color: #5f7464 !important;
        font-size: 12px;
    }

    #modalContainer #basicModalContent #search_stat #chart-info > table.res > tbody > tr > td.td_price {
        order: 7;
    }

    #modalContainer #search_stat #chart-info .td_price .price_button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 44px;
        padding: 8px 32px !important;
        box-sizing: border-box;
        border: 1px solid rgba(65,108,70,.3);
        border-radius: 10px;
        background-color: #ffffff;
        background-position: 12px center;
        color: #416c46;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.3;
        white-space: normal;
        text-align: center;
    }

    /* Google measures this host before drawing. Never stretch its pixel SVG.
       A chart drawn before resizing remains scrollable until reopened. */
    #modalContainer #search_stat #googlePriceChart {
        width: 100% !important;
        max-width: 100%;
        min-width: 0 !important;
        height: 220px;
        margin-top: 12px;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
    }

    #modalContainer #search_stat #hotel_monitor {
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
    }
}

/* =====================================================
   09.4 Small Info Popup Polish
   ===================================================== */

#modalContainer:not(:where(.mlt-share-results-popup, :has(#additional_services), :has(#INVOICE_EDITOR), :has(#cancel_claim), :has(.cl_referer_cost), :has(#claiminfo), :has(#agreement_text))):not(:has(#search_stat)):not(:has(fieldset.panel.resultset)):not(:has(.pay_claim)):not(:has(#e_doc)) {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
}

#modalContainer:not(:where(.mlt-share-results-popup, :has(#additional_services), :has(#INVOICE_EDITOR), :has(#cancel_claim), :has(.cl_referer_cost), :has(#claiminfo), :has(#agreement_text))):not(:has(#search_stat)):not(:has(fieldset.panel.resultset)):not(:has(.pay_claim)):not(:has(#e_doc)) .modalTitle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    height: 0 !important;
    min-height: 0 !important;

    padding: 0 !important;
    overflow: visible !important;

    color: transparent !important;
    font-size: 0 !important;
}

#modalContainer:not(:where(.mlt-share-results-popup, :has(#additional_services), :has(#INVOICE_EDITOR), :has(#cancel_claim), :has(.cl_referer_cost), :has(#claiminfo), :has(#agreement_text), :has(.CLAIMRESULT.claim-success-card))):not(:has(#search_stat)):not(:has(fieldset.panel.resultset)):not(:has(.pay_claim)):not(:has(#e_doc)) #basicModalContent {
    display: flex !important;
    align-items: center !important;

    min-height: 38px !important;

    padding: 0 38px 0 16px !important;

    background: #ffffff !important;
    border: 1px solid rgba(65,108,70,.18) !important;
    border-radius: 18px !important;

    box-shadow: 0 10px 26px rgba(31,47,34,.18) !important;

    color: #416c46 !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
}

#modalContainer:not(:where(.mlt-share-results-popup, :has(#additional_services), :has(#INVOICE_EDITOR), :has(#cancel_claim), :has(.cl_referer_cost), :has(#claiminfo), :has(#agreement_text), :has(.CLAIMRESULT.claim-success-card))):not(:has(#search_stat)):not(:has(fieldset.panel.resultset)):not(:has(.pay_claim)):not(:has(#e_doc)) #basicModalContent > * {
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Keep close button visible for small popups */

#modalContainer:not(:where(.mlt-share-results-popup, :has(#additional_services), :has(#INVOICE_EDITOR), :has(#cancel_claim), :has(.cl_referer_cost), :has(#claiminfo), :has(#agreement_text))):not(:has(#search_stat)):not(:has(fieldset.panel.resultset)):not(:has(.pay_claim)):not(:has(#e_doc)) a.modalCloseImg {
    top: -10px !important;
    right: -10px !important;
    z-index: 9999 !important;
}

/* =====================================================
   09.5 Premium Google Price Chart
   Price bars color polish
   ===================================================== */

#googlePriceChart svg rect[fill="#cedfec"] {
    fill: #bbe4c1 !important;
    stroke: rgba(65,108,70,.28) !important;
}

#googlePriceChart svg rect[fill="#00008b"] {
    fill: #416c46 !important;
    stroke: #416c46 !important;
}

/* =====================================================
   06. Header & Navigation
   ===================================================== */

/* =====================================================
   10.1 Resort Life Premium Header Menu
   ===================================================== */

#header .bottom-menu {
    background: #416c46 !important;
    border: none !important;
    box-shadow: 0 8px 22px rgba(31,47,34,.12) !important;
}

#header .bottom-menu .menu,
#header .bottom-menu .nav,
#header .bottom-menu .nav-center {
    background: transparent !important;
}

#header .menu .nav > ul > li.selected > a.menu-register_agency {
    pointer-events: auto;
}

#header .bottom-menu .nav-center > li > a {
    color: #ffffff !important;
    font-weight: 800 !important;
}

#header .bottom-menu .nav-center > li > a:hover,
#header .bottom-menu .nav-center > li.selected > a {
    color: #ffffff !important;
    background: rgba(255,255,255,.12) !important;
}

#header .bottom-menu .nav-center > li > ul {
    background: #ffffff !important;
    border: 1px solid rgba(65,108,70,.16) !important;
    box-shadow: 0 12px 28px rgba(31,47,34,.16) !important;
}

#header .bottom-menu .nav-center > li > ul a {
    color: #416c46 !important;
    font-weight: 700 !important;
}

#header .bottom-menu .nav-center > li > ul a:hover {
    background: #eef8ef !important;
    color: #416c46 !important;
}

/* Hotel Stop Sale: visual menu label; preserve SAMO link text and URL. */
#header .bottom-menu .nav-center > .menu-hotel_stopsale > a,
#header #mobile-menu > .menu-hotel_stopsale > a {
    font-size: 0 !important;
}

#header .menu-hotel_stopsale > a::before {
    content: "\f594";
    display: inline-block;
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-size: 13px;
    line-height: 1;
    color: #f7e47e;
    margin-right: 7px;
    pointer-events: none;
}

#header .menu-hotel_stopsale > a::after {
    content: "Stop Sales";
    font-family: var(--main-font-family);
    font-size: 13px;
    font-weight: inherit;
    line-height: normal;
    color: inherit;
}

@media (max-width: 767px) {
    #header #mobile-menu > .menu-hotel_stopsale > a::after {
        font-size: 15px;
        line-height: 1.3;
    }
}

/* Approved desktop navigation states and account icons. */
@media (min-width: 768px) {
    #header .bottom-menu .nav-center > li:not(.profile),
    #header .bottom-menu .nav-center > li:not(.profile):hover {
        background: transparent;
    }

    #header .bottom-menu .nav-center > li:not(.profile) > a {
        border-radius: 9px;
        transition: background-color .18s ease, box-shadow .18s ease, color .18s ease;
    }

    #header .bottom-menu .nav-center > li:not(.profile, .langs):not(.selected):hover > a,
    #header .bottom-menu .nav-center > li:not(.profile, .langs):not(.selected) > a:focus-visible {
        background: rgba(255,255,255,.10) !important;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    }

    #header .bottom-menu .nav-center > li.selected:not(.profile, .langs) > a {
        background: rgba(255,255,255,.12) !important;
    }

    #header .bottom-menu .nav-center > li.selected:not(.profile, .langs):hover > a,
    #header .bottom-menu .nav-center > li.selected:not(.profile, .langs) > a:focus-visible {
        background: rgba(255,255,255,.14) !important;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    }

    #header .bottom-menu .nav-center > li.nav-registration > a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
    }

    #header .bottom-menu .nav-center > li.nav-registration > a > .fa-user-plus {
        flex: 0 0 auto;
        font-size: 14px;
        line-height: 1;
    }

    #header .bottom-menu .nav-center:has(> .sign-in > .login-action) > .sign-in > .login-action {
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }

    #header .bottom-menu .nav-center:has(> .sign-in > .login-action) > .sign-in > .login-action::before {
        display: block;
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        margin: 0;
        pointer-events: none;
    }

    #header .bottom-menu .nav-center:has(> .sign-in > .login-action) > .nav-registration > a > .fa-user-plus {
        font-size: 16px;
        color: #f7e47e;
        text-shadow: 0 0 3px rgba(243,215,122,.26), 0 0 6px rgba(186,135,43,.10);
        pointer-events: none;
    }
}

/* =====================================================
   10.2 Resort Life Horizontal Dropdown Menus
   ===================================================== */

#header .bottom-menu .nav-center > li {
    position: relative !important;
}

#header .bottom-menu .nav-center > li > ul {
    display: none !important;

    position: absolute !important;
    top: 100% !important;
    right: auto !important;
    left: 0 !important;
    transform: none !important;

    width: max-content !important;
    max-width: 980px !important;

    padding: 10px 12px !important;
    margin: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    z-index: 9999 !important;
    white-space: nowrap !important;
}

#header .bottom-menu .nav-center > li:hover > ul {

    display: flex !important;

    align-items: center !important;

    justify-content: flex-start !important;

    gap: 8px !important;

}

#header .bottom-menu .nav-center > li > ul > li {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

#header .bottom-menu .nav-center > li > ul > li > a {
    display: block !important;

    background: #bbe4c1 !important;
    color: #45714a !important;

    border: 1px solid rgba(69,113,74,.22) !important;
    border-radius: 9px !important;

    padding: 9px 14px !important;

    font-weight: 800 !important;
    white-space: nowrap !important;

    box-shadow: 0 5px 14px rgba(31,47,34,.12) !important;
}

#header .bottom-menu .nav-center > li > ul > li > a:hover,
#header .bottom-menu .nav-center > li > ul > li.selected > a {
    background: #d7f0db !important;
    color: #416c46 !important;
    border-color: rgba(69,113,74,.34) !important;
}
/* =====================================================
   Top Navigation - Search Dropdown
   ===================================================== */

/* Replace the legacy auth key only on the two confirmed Search actions. */
#header :is(.nav-center, #mobile-menu) > li:has(> ul > .menu-search_hotel) > ul > li:is(.menu-search_hotel, .menu-favorites) > a::before {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
    width: 16px;
    height: 14px;
    margin: 0;
    background: none;
    font-family: "Font Awesome 6 Free";
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    color: #416c46;
    pointer-events: none;
}

#header :is(.nav-center, #mobile-menu) > li:has(> ul > .menu-search_hotel) > ul > .menu-search_hotel > a::before {
    content: "\f594";
}

#header :is(.nav-center, #mobile-menu) > li:has(> ul > .menu-search_hotel) > ul > .menu-favorites > a::before {
    content: "\f004";
}

@media (min-width: 768px) {
    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel) > a.menu-caret::after {
        border-top-color: rgba(255,255,255,.85);
        transition: transform .18s ease;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel):hover > a.menu-caret::after,
    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel):focus-within > a.menu-caret::after {
        transform: rotate(180deg);
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel) > a:focus-visible {
        outline: 2px solid rgba(255,255,255,.7);
        outline-offset: -3px;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel) > ul {
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: auto !important;
        min-width: 200px;
        max-width: calc(100vw - 32px) !important;
        padding: 6px !important;
        background: rgba(255,255,255,.97) !important;
        border: 1px solid rgba(65,108,70,.14) !important;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(31,47,34,.16) !important;
        box-sizing: border-box;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel) > ul::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;
        height: 8px;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel):hover > ul,
    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel):focus-within > ul {
        display: block !important;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel) > ul > li > a {
        display: flex !important;
        align-items: center;
        width: 100%;
        min-height: 40px;
        padding: 0 11px !important;
        gap: 10px;
        background: transparent !important;
        border: 0 !important;
        border-radius: 8px !important;
        color: #355b3a !important;
        font-size: 13px;
        font-weight: 700 !important;
        line-height: 1.2;
        text-align: left;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: none !important;
        box-sizing: border-box;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel) > ul > li.selected > a {
        background: #eef6ef !important;
        color: #12392e !important;
        font-weight: 800 !important;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel) > ul > li:not(.selected) > a:hover,
    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel) > ul > li:not(.selected) > a:focus-visible {
        background: #f3f8f4 !important;
        color: #12392e !important;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel) > ul > li.selected:hover > a {
        background: #e7f2e9 !important;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-search_hotel) > ul > li > a:focus-visible {
        outline: 2px solid #58885d;
        outline-offset: -2px;
    }
}

@media (max-width: 767px) {
    #menuToggle #mobile-menu > li:has(> ul > .menu-search_hotel) > ul > li > a {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }

    #menuToggle #mobile-menu > li:has(> ul > .menu-search_hotel) > ul > li.selected > a {
        background: #eef6ef !important;
        color: #12392e !important;
        font-weight: 800;
    }
}

/* =====================================================
   Top Navigation - Claims Dropdown
   ===================================================== */

/* Replace the legacy auth key only on the two confirmed Claims actions. */
#header :is(.nav-center, #mobile-menu) > li:has(> ul > .menu-cl_refer) > ul > li:is(.menu-cl_refer, .menu-claim_unpaid) > a::before {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
    width: 16px;
    height: 14px;
    margin: 0;
    background: none;
    font-family: "Font Awesome 6 Free";
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    color: #416c46;
    pointer-events: none;
}

#header :is(.nav-center, #mobile-menu) > li:has(> ul > .menu-cl_refer) > ul > .menu-cl_refer > a::before {
    content: "\f46d";
}

#header :is(.nav-center, #mobile-menu) > li:has(> ul > .menu-cl_refer) > ul > .menu-claim_unpaid > a::before {
    content: "\f09d";
}

@media (min-width: 768px) {
    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer) > a.menu-caret::after {
        border-top-color: rgba(255,255,255,.85);
        transition: transform .18s ease;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer):hover > a.menu-caret::after,
    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer):focus-within > a.menu-caret::after {
        transform: rotate(180deg);
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer) > a:focus-visible {
        outline: 2px solid rgba(255,255,255,.7);
        outline-offset: -3px;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer) > ul {
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: auto !important;
        min-width: 220px;
        max-width: calc(100vw - 32px) !important;
        padding: 6px !important;
        background: rgba(255,255,255,.97) !important;
        border: 1px solid rgba(65,108,70,.14) !important;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(31,47,34,.16) !important;
        box-sizing: border-box;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer) > ul::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;
        height: 8px;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer):hover > ul,
    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer):focus-within > ul {
        display: block !important;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer) > ul > li > a {
        display: flex !important;
        align-items: center;
        width: 100%;
        min-height: 40px;
        padding: 0 11px !important;
        gap: 10px;
        background: transparent !important;
        border: 0 !important;
        border-radius: 8px !important;
        color: #355b3a !important;
        font-size: 13px;
        font-weight: 700 !important;
        line-height: 1.2;
        text-align: left;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: none !important;
        box-sizing: border-box;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer) > ul > li.selected > a {
        background: #eef6ef !important;
        color: #12392e !important;
        font-weight: 800 !important;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer) > ul > li:not(.selected) > a:hover,
    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer) > ul > li:not(.selected) > a:focus-visible {
        background: #f3f8f4 !important;
        color: #12392e !important;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer) > ul > li.selected:hover > a {
        background: #e7f2e9 !important;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-cl_refer) > ul > li > a:focus-visible {
        outline: 2px solid #58885d;
        outline-offset: -2px;
    }
}

@media (max-width: 767px) {
    #menuToggle #mobile-menu > li:has(> ul > .menu-cl_refer) > ul > li > a {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }

    #menuToggle #mobile-menu > li:has(> ul > .menu-cl_refer) > ul > li.selected > a {
        background: #eef6ef !important;
        color: #12392e !important;
        font-weight: 800;
    }
}

/* =====================================================
   Top Navigation - Agency Dropdown
   ===================================================== */

/* Legacy auth keys occupy ::before; keep the new icons on the free ::after. */
#header :is(.nav-center, #mobile-menu) > li:has(> ul > .menu-edit_agency) > ul > li:is(.menu-edit_agency, .menu-agreement, .menu-bonus_manager, .menu-partner_discount, .menu-employees) > a::before {
    content: none;
    display: none !important;
}

#header :is(.nav-center, #mobile-menu) > li:has(> ul > .menu-edit_agency) > ul > li:is(.menu-edit_agency, .menu-agreement, .menu-bonus_manager, .menu-partner_discount, .menu-employees) > a::after {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    order: -1;
    flex: 0 0 16px;
    width: 16px;
    height: 14px;
    margin: 0;
    background: none;
    font-family: "Font Awesome 6 Free";
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    color: #416c46;
    pointer-events: none;
}

#header :is(.nav-center, #mobile-menu) > li:has(> ul > .menu-edit_agency) > ul > .menu-edit_agency > a::after {
    content: "\f1ad";
}

#header :is(.nav-center, #mobile-menu) > li:has(> ul > .menu-edit_agency) > ul > .menu-agreement > a::after {
    content: "\f56c";
}

#header :is(.nav-center, #mobile-menu) > li:has(> ul > .menu-edit_agency) > ul > .menu-bonus_manager > a::after {
    content: "\f06b";
}

#header :is(.nav-center, #mobile-menu) > li:has(> ul > .menu-edit_agency) > ul > .menu-partner_discount > a::after {
    content: "\25";
}

#header :is(.nav-center, #mobile-menu) > li:has(> ul > .menu-edit_agency) > ul > .menu-employees > a::after {
    content: "\f0c0";
}

@media (min-width: 768px) {
    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency) > a.menu-caret::after {
        border-top-color: rgba(255,255,255,.85);
        transition: transform .18s ease;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency):hover > a.menu-caret::after,
    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency):focus-within > a.menu-caret::after {
        transform: rotate(180deg);
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency) > a:focus-visible {
        outline: 2px solid rgba(255,255,255,.7);
        outline-offset: -3px;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency) > ul {
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: auto !important;
        min-width: 230px;
        max-width: calc(100vw - 32px) !important;
        padding: 6px !important;
        background: rgba(255,255,255,.97) !important;
        border: 1px solid rgba(65,108,70,.14) !important;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(31,47,34,.16) !important;
        box-sizing: border-box;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency) > ul::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;
        height: 8px;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency):hover > ul,
    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency):focus-within > ul {
        display: block !important;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency) > ul > li > a {
        display: flex !important;
        align-items: center;
        width: 100%;
        min-height: 40px;
        padding: 0 11px !important;
        gap: 10px;
        background: transparent !important;
        border: 0 !important;
        border-radius: 8px !important;
        color: #355b3a !important;
        font-size: 13px;
        font-weight: 700 !important;
        line-height: 1.2;
        text-align: left;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: none !important;
        box-sizing: border-box;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency) > ul > li.selected > a {
        background: #eef6ef !important;
        color: #12392e !important;
        font-weight: 800 !important;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency) > ul > li:not(.selected) > a:hover,
    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency) > ul > li:not(.selected) > a:focus-visible {
        background: #f3f8f4 !important;
        color: #12392e !important;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency) > ul > li.selected:hover > a {
        background: #e7f2e9 !important;
    }

    #header .bottom-menu .nav-center > li:has(> ul > .menu-edit_agency) > ul > li > a:focus-visible {
        outline: 2px solid #58885d;
        outline-offset: -2px;
    }
}

@media (max-width: 767px) {
    #menuToggle #mobile-menu > li:has(> ul > .menu-edit_agency) > ul > li > a {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }

    #menuToggle #mobile-menu > li:has(> ul > .menu-edit_agency) > ul > li.selected > a {
        background: #eef6ef !important;
        color: #12392e !important;
        font-weight: 800;
    }
}

/* =====================================================
   Top Navigation - Language Selector
   ===================================================== */

@media (min-width: 768px) {
    #header .bottom-menu .nav-center > li.langs {
        display: flex;
        align-items: center;
        align-self: stretch;
        width: auto;
        margin-inline-start: 0;
    }

    #header .bottom-menu .nav-center > li.langs > a.samo_lang {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        margin: 0;
        padding: 0 11px 0 38px !important;
        gap: 7px;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 10px;
        background-color: rgba(255,255,255,.08) !important;
        background-position: 11px center !important;
        background-size: 20px auto !important;
        background-repeat: no-repeat !important;
        color: #ffffff !important;
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
        white-space: nowrap;
        box-sizing: border-box;
        transition: background-color .18s ease, border-color .18s ease;
    }

    /* Explicit images survive the shared menu background shorthands. */
    #header .bottom-menu .nav-center > li.langs .samo_lang.ukr {
        background-image: url('/public/pict/flags/ua.gif') !important;
    }

    #header .bottom-menu .nav-center > li.langs .samo_lang.eng {
        background-image: url('/public/pict/flags/gb.gif') !important;
    }

    #header .bottom-menu .nav-center > li.langs > a.samo_lang.ukr::before {
        content: "UA";
    }

    #header .bottom-menu .nav-center > li.langs > a.samo_lang.eng::before {
        content: "EN";
    }

    #header .bottom-menu .nav-center > li.langs > a.menu-caret::after {
        content: "";
        flex: 0 0 auto;
        width: 0;
        height: 0;
        margin: 0;
        border-top: 3px solid rgba(255,255,255,.85);
        border-right: 3px solid transparent;
        border-bottom: 0;
        border-left: 3px solid transparent;
        transition: transform .18s ease;
    }

    #header .bottom-menu .nav-center > li.langs:hover > a.samo_lang,
    #header .bottom-menu .nav-center > li.langs:focus-within > a.samo_lang {
        background-color: rgba(255,255,255,.14) !important;
        border-color: rgba(255,255,255,.24);
    }

    #header .bottom-menu .nav-center > li.langs:hover > a.menu-caret::after,
    #header .bottom-menu .nav-center > li.langs:focus-within > a.menu-caret::after {
        transform: rotate(180deg);
    }

    #header .bottom-menu .nav-center > li.langs > a.samo_lang:focus-visible {
        outline: 2px solid rgba(255,255,255,.7);
        outline-offset: 3px;
    }

    #header .bottom-menu .nav-center > li.langs > ul {
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: auto !important;
        width: max-content !important;
        min-width: 150px;
        max-width: calc(100vw - 32px) !important;
        padding: 6px !important;
        background: rgba(255,255,255,.97) !important;
        border: 1px solid rgba(65,108,70,.14) !important;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(31,47,34,.16) !important;
        box-sizing: border-box;
    }

    /* Keep the hover path connected across the visual eight-pixel gap. */
    #header .bottom-menu .nav-center > li.langs > ul::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;
        height: 8px;
    }

    #header .bottom-menu .nav-center > li.langs:hover > ul,
    #header .bottom-menu .nav-center > li.langs:focus-within > ul {
        display: block !important;
    }

    #header .bottom-menu .nav-center > li.langs > ul > li > a.samo_lang {
        display: flex !important;
        align-items: center;
        min-height: 38px;
        padding: 0 10px 0 39px !important;
        gap: 9px;
        border: 0 !important;
        border-radius: 8px !important;
        background-color: transparent !important;
        background-position: 10px center !important;
        background-size: 20px auto !important;
        background-repeat: no-repeat !important;
        color: #355b3a !important;
        font-size: 12px;
        font-weight: 700 !important;
        line-height: 1.3;
        text-align: left;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: none !important;
    }

    #header .bottom-menu .nav-center > li.langs > ul > li > a.samo_lang:hover,
    #header .bottom-menu .nav-center > li.langs > ul > li > a.samo_lang:focus-visible {
        background-color: #eef6ef !important;
        color: #12392e !important;
    }

    #header .bottom-menu .nav-center > li.langs > ul > li > a.samo_lang:focus-visible {
        outline: 2px solid #58885d;
        outline-offset: -2px;
    }
}

@media (max-width: 767px) {
    #menuToggle .menu-items-langs-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 16px 0 0 !important;
        padding: 16px 0 0 !important;
        border-top: 1px solid rgba(65,108,70,.10) !important;
        box-sizing: border-box !important;
    }

    #menuToggle .menu-items-langs-container .lang-container {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 0 10px;
        border: 1px solid rgba(65,108,70,.16);
        border-radius: 10px;
        background: #f5fbf6;
        box-sizing: border-box;
    }

    #menuToggle .menu-items-langs-container .lang-container > input {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        transform: none;
    }

    #menuToggle div.menu-items-langs-container img {
        width: 20px;
        height: auto;
        flex: 0 0 20px;
    }

    #menuToggle .menu-items-langs-container .lang-container:has(> input:checked) {
        background: #eef6ef;
        border-color: rgba(65,108,70,.3);
    }

    #menuToggle .menu-items-langs-container .lang-container:has(> input:focus-visible) {
        outline: 2px solid #58885d;
        outline-offset: 3px;
    }

    #menuToggle .menu-items-langs-container > ul {
        align-self: flex-end;
        width: 200px;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: rgba(255,255,255,.97);
        box-sizing: border-box;
    }

    #menuToggle .menu-items-langs-container:has(> .icons-wrapper > .lang-container > input:checked) > ul {
        padding: 6px;
        border: 1px solid rgba(65,108,70,.14);
        box-shadow: 0 6px 16px rgba(31,47,34,.10);
    }

    #menuToggle .menu-items-langs-container > ul > li {
        margin: 0;
        padding: 0;
    }

    #menuToggle .menu-items-langs-container > ul > li > a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 10px;
        gap: 9px;
        border-radius: 8px;
        color: #355b3a;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.3;
        white-space: nowrap;
        box-sizing: border-box;
    }

    #menuToggle .menu-items-langs-container > ul > li > a > img {
        order: -1;
    }

    #menuToggle .menu-items-langs-container > ul > li > a:hover,
    #menuToggle .menu-items-langs-container > ul > li > a:focus-visible {
        background: #eef6ef;
        color: #12392e;
        opacity: 1;
    }

    #menuToggle .menu-items-langs-container > ul > li > a:focus-visible {
        outline: 2px solid #58885d;
        outline-offset: -2px;
    }
}

/* =====================================================
   10.4 Resort Life Agent Profile
   Stable premium account menu
   ===================================================== */

/* Retain the legacy capsule only for the existing mobile header. */
@media (max-width: 767px) {

#header .bottom-menu .nav-center > li.profile > a,
#header .bottom-menu .nav-center > li.profile:hover > a,
#header .bottom-menu .nav-center > li.profile > a:hover,
#header .bottom-menu .nav-center > li.profile > a:focus,
#header .bottom-menu .nav-center > li.profile > a:active {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 220px !important;
    max-width: 360px !important;

    background: linear-gradient(180deg, #5b8b60 0%, #416c46 100%) !important;
    color: #ffffff !important;

    border: 1px solid rgba(255,255,255,.34) !important;
    border-radius: 999px !important;

    padding: 8px 16px !important;

    font-weight: 600 !important;
    text-decoration: none !important;
    text-shadow: none !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    outline: none !important;
    outline-offset: 0 !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 5px 14px rgba(31,47,34,.18) !important;
}

}

/* Prevent inherited menu hover from whitening profile */

#header .bottom-menu .nav-center > li.profile > a *,
#header .bottom-menu .nav-center > li.profile:hover > a *,
#header .bottom-menu .nav-center > li.profile > a:hover *,
#header .bottom-menu .nav-center > li.profile > a:focus *,
#header .bottom-menu .nav-center > li.profile > a:active * {
    color: #ffffff !important;
}

/* Profile dropdown card — no mouse gap */

#header .bottom-menu .nav-center > li.profile > ul {
    top: 100% !important;
    margin-top: 0 !important;

    background: #ffffff !important;

    border: 1px solid rgba(65,108,70,.14) !important;
    border-radius: 0 0 16px 16px !important;

    padding: 12px 14px !important;

    box-shadow:
        0 16px 34px rgba(31,47,34,.18),
        inset 0 1px 0 rgba(255,255,255,.80) !important;

    gap: 10px !important;
}

/* Dropdown visible layout */

#header .bottom-menu .nav-center > li.profile > ul {

    left: 0 !important;
    right: auto !important;

    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;

    box-sizing: border-box !important;

    display: none;

    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;

}

#header .bottom-menu .nav-center > li.profile #logout{

    width:100% !important;

}

#header .bottom-menu .nav-center > li.profile .messages-header{

    display:flex !important;

    align-items:center;

    min-height:34px;

}

/* Dropdown text */

#header .bottom-menu .nav-center > li.profile > ul > li > div,
#header .bottom-menu .nav-center > li.profile > ul > li > span,
#header .bottom-menu .nav-center > li.profile > ul > li > a {
    color: #416c46 !important;
    font-weight: 400 !important;
}

/* Sign out button */

#header .bottom-menu .nav-center > li.profile #logout {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 34px !important;

    background: #bbe4c1 !important;
    color: #416c46 !important;

    border: 1px solid rgba(65,108,70,.22) !important;
    border-radius: 11px !important;

    padding: 8px 15px !important;

    font-weight: 500 !important;
    text-decoration: none !important;

    box-shadow: 0 5px 14px rgba(31,47,34,.12) !important;
}

#header .bottom-menu .nav-center > li.profile #logout:hover {
    background: #d7f0db !important;
    color: #416c46 !important;
}
/* =====================================================
   10.3 Resort Life Dropdown Alignment
   Must be placed AFTER 10.2
   ===================================================== */

#header .bottom-menu .nav-center > li > ul {
    left: 0 !important;
    right: auto !important;
    justify-content: flex-start !important;
}

#header .bottom-menu .nav-center > li:hover > ul {
    justify-content: flex-start !important;
}

/* Right-side menus open to the left */

#header .bottom-menu .nav-center > li:nth-last-child(-n+2) > ul {
    left: auto !important;
    right: 0 !important;
    justify-content: flex-end !important;
}

/* =====================================================
   07. Login & Authorization
   ===================================================== */

/* =====================================================
   11. Resort Life Premium Universal Login Page
   Applies to any SAMO page with #loginbox

   Goals:
   - Same login design on /search_tour, /search_hotel and other pages
   - No template changes
   - No JS changes
   - Safe decorative zones
   - Mobile decorations disabled
   ===================================================== */

body:has(#loginbox) {
    background: #ffffff !important;
}

/* B2B presentation only; the person authentication route is unchanged. */
body:has(#loginbox) .logon-wrapper > .header > .button-wrapper.person {
    display: none !important;
}

/* Universal login scene */

body:has(#loginbox) .samo_container {
    position: relative !important;
    min-height: calc(100vh - 150px);
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: visible !important;
}

/* =====================================================
   Login Page Monstera Composition — Existing Scene Layers
   ===================================================== */

@media (min-width: 768px) {

body:has(#loginbox) .samo_container::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 100vw;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse 39% 37% at 100% 17%, rgba(238, 241, 234, .48), transparent 72%),
        url("/public/pict/RLT_corals/Monstera_02.png") calc(100% + 145px) 2% / clamp(290px, 20vw, 390px) auto no-repeat,
        radial-gradient(ellipse at 82% 28%, transparent 0 12%, rgba(170, 139, 67, .05) 12.3%, transparent 12.9%),
        radial-gradient(circle at 10% 22%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 13% 22%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 16% 22%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 19% 22%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 10% 25%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 13% 25%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 16% 25%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 19% 25%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 10% 28%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 13% 28%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 16% 28%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 19% 28%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 10% 31%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 13% 31%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 16% 31%, rgba(65, 108, 70, .08) 1px, transparent 1.5px),
        radial-gradient(circle at 19% 31%, rgba(65, 108, 70, .08) 1px, transparent 1.5px);
    opacity: .20;
    pointer-events: none;
    z-index: 0;
}


body:has(#loginbox) .samo_container::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 100vw;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse 36% 36% at 0% 78%, rgba(223, 230, 217, .28), transparent 72%),
        url("/public/pict/RLT_corals/Monstera_01.png") -150px 73% / clamp(300px, 21vw, 390px) auto no-repeat,
        url("/public/pict/RLT_corals/Monstera_07.png") 7% 79% / clamp(80px, 7vw, 130px) auto no-repeat,
        radial-gradient(circle at 87% 78%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 90% 78%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 93% 78%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 96% 78%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 87% 80%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 90% 80%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 93% 80%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 96% 80%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 87% 82%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 90% 82%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 93% 82%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 96% 82%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 87% 84%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 90% 84%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 93% 84%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(circle at 96% 84%, rgba(65, 108, 70, .07) 1px, transparent 1.5px),
        radial-gradient(ellipse at 17% 67%, transparent 0 9%, rgba(170, 139, 67, .05) 9.3%, transparent 9.9%);
    opacity: .54;
    pointer-events: none;
    z-index: 1;
}

/* Login content area */

body:has(#loginbox) .container:has(#loginbox) {
    position: relative !important;
    min-height: 720px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 110px;
    padding-bottom: 170px;
    overflow: visible !important;
}

/* Soft lagoon glow */

body:has(#loginbox) .container:has(#loginbox)::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -70px;
    transform: translateX(-50%);
    width: 1500px;
    height: 1180px;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 38%,
            rgba(187,228,193,.22) 0%,
            rgba(187,228,193,.14) 23%,
            rgba(65,108,70,.050) 43%,
            rgba(65,108,70,.016) 64%,
            transparent 84%);
    filter: blur(34px);
    pointer-events: none;
}

/* Small botanical details remain on the proven inner decorative layer. */

body:has(#loginbox) .container:has(#loginbox)::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: 136px;
    bottom: 210px;
    pointer-events: none;
    opacity: .16;
    background-repeat: no-repeat;
    background-image:
        url("/public/pict/RLT_corals/Monstera_08.png"),
        url("/public/pict/RLT_corals/Monstera_09.png"),
        radial-gradient(ellipse at 17% 67%, transparent 0 18%, rgba(170, 139, 67, .08) 18.3%, transparent 18.9%),
        radial-gradient(circle at 12% 20%, rgba(65, 108, 70, .10) 1px, transparent 1.5px),
        radial-gradient(circle at 15% 20%, rgba(65, 108, 70, .10) 1px, transparent 1.5px),
        radial-gradient(circle at 18% 20%, rgba(65, 108, 70, .10) 1px, transparent 1.5px),
        radial-gradient(circle at 12% 23%, rgba(65, 108, 70, .10) 1px, transparent 1.5px),
        radial-gradient(circle at 15% 23%, rgba(65, 108, 70, .10) 1px, transparent 1.5px),
        radial-gradient(circle at 18% 23%, rgba(65, 108, 70, .10) 1px, transparent 1.5px),
        radial-gradient(circle at 12% 26%, rgba(65, 108, 70, .10) 1px, transparent 1.5px),
        radial-gradient(circle at 15% 26%, rgba(65, 108, 70, .10) 1px, transparent 1.5px),
        radial-gradient(circle at 18% 26%, rgba(65, 108, 70, .10) 1px, transparent 1.5px);
    background-size:
        92px auto,
        76px auto,
        auto,
        auto,
        auto,
        auto,
        auto,
        auto,
        auto,
        auto,
        auto,
        auto;
    background-position:
        7% 79%,
        90% 28%,
        17% 67%,
        12% 20%,
        15% 20%,
        18% 20%,
        12% 23%,
        15% 23%,
        18% 23%,
        12% 26%,
        15% 26%,
        18% 26%;
}

body:has(#loginbox) .rl-footer::before {
    content: none !important;
    display: none !important;
    background: none !important;
}

body:has(#loginbox) #loginbox {
    overflow: hidden !important;
}

body:has(#loginbox) #loginbox::before {
    content: "" !important;
    position: absolute !important;
    left: -62px !important;
    top: -28px !important;
    width: clamp(190px, 15vw, 250px) !important;
    height: 230px !important;
    background: url("/public/pict/RLT_corals/Monstera_03.png") left top / contain no-repeat !important;
    opacity: .58 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

}

/* Login card wrapper */

body:has(#loginbox) .logon-wrapper {
    position: relative !important;
    z-index: 2 !important;
    width: 440px;
    overflow: visible !important;
}

body:has(#loginbox) .logon-wrapper .header {
    display: block !important;
    position: relative !important;
    z-index: 3 !important;
    margin-bottom: 0 !important;
}

body:has(#loginbox) .logon-wrapper .header .legend.panel.agency{

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:auto !important;
    max-width:100% !important;
    flex:0 1 auto !important;

    height:48px !important;
    min-height:48px !important;

    margin:0 !important;
    padding:0 24px !important;
    box-sizing:border-box !important;

    background:#416c46 !important;

    color:#ffffff !important;

    border:1px solid #416c46 !important;
    border-radius:12px !important;

    font-size:15px !important;
    font-weight:800 !important;

    letter-spacing:0 !important;

    box-shadow:none !important;
}

body:has(#loginbox) .logon-wrapper .header .legend.panel.agency::before {
    content: "\f0b1";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 12px;
    font-size: 18px;
    pointer-events: none;
}

/* Premium desktop agency login identifier */

@media (min-width: 768px) {

    body:has(#loginbox) .logon-wrapper .header {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;

        width: fit-content !important;
        min-width: 0 !important;
        max-width: 100% !important;

        padding: 0 !important;
        margin: 0 auto 10px !important;
        box-sizing: border-box !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body:has(#loginbox) .logon-wrapper .header .legend.panel {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        order: initial !important;
        float: none !important;
        clear: none !important;
        flex: 0 1 auto !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 48px !important;
        min-height: 48px !important;

        margin: 0 !important;
        padding: 0 12px !important;

        background: #416c46 !important;
        color: #ffffff !important;

        border: 1px solid #416c46 !important;
        border-radius: 12px !important;

        box-sizing: border-box !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        box-shadow: none !important;
    }

    body:has(#loginbox) .logon-wrapper .header .legend.panel::before,
    body:has(#loginbox) .logon-wrapper .header .button-wrapper .button::before {
        content: none !important;
        display: none !important;
    }

    body:has(#loginbox) .logon-wrapper .header .button-wrapper {
        display: inline-flex !important;
        align-items: center !important;

        order: initial !important;
        float: none !important;
        clear: none !important;
        flex: 0 1 auto !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: center !important;
    }

    body:has(#loginbox) .logon-wrapper .header .button-wrapper .button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        height: 48px !important;
        min-height: 48px !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        order: initial !important;
        float: none !important;
        clear: none !important;
        flex: 0 0 auto !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;

        margin: 0 !important;
        padding: 0 12px !important;

        background: #ffffff !important;
        color: #416c46 !important;

        border: 1px solid rgba(65,108,70,.16) !important;
        border-radius: 12px !important;

        box-sizing: border-box !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }

    body:has(#loginbox) .logon-wrapper .header .button-wrapper .button:hover {
        background: #eaf7ec !important;
        border-color: rgba(65,108,70,.28) !important;
        color: #416c46 !important;
        box-shadow: none !important;
    }
}

/* Main login panel */

body:has(#loginbox) #loginbox {
    position: relative !important;
    z-index: 2 !important;
    max-width: none !important;
    width: 100% !important;
    background: rgba(187,228,193,.96) !important;
    border: 1px solid rgba(255,255,255,.50) !important;
    border-radius: 0 0 24px 24px !important;
    padding: 34px 36px 32px !important;
    overflow: visible !important;
    box-shadow:
        0 20px 55px rgba(31,47,34,.14),
        0 0 90px rgba(187,228,193,.30),
        inset 0 1px 0 rgba(255,255,255,.55) !important;
}

@media (min-width: 768px) {
    body:has(#loginbox) #loginbox {
        border-radius: 24px !important;
    }
}

/* Login content */

body:has(#loginbox) #loginbox .choose,
body:has(#loginbox) #loginForm .row,
body:has(#loginbox) #loginForm .fixer {
    position: relative !important;
    z-index: 3 !important;
}

body:has(#loginbox) #loginbox .choose {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px !important;
}

body:has(#loginbox) #loginbox .legend {
    color: #416c46 !important;
    font-size: 26px !important;
    font-weight: 900 !important;
}

/* Shared secondary module-link pattern, scoped to login actions. */
body:has(#loginbox) #loginbox .row.mlt-login-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 0 !important;
}

body:has(#loginbox) #loginbox .mlt-login-secondary-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 0;
    min-width: 0;
    gap: 2px;
}

body:has(#loginbox) #loginbox .mlt-login-secondary-link {
    position: relative !important;
    display: block !important;
    float: none;
    width: fit-content;
    max-width: 100%;
    min-height: 32px;
    margin: 0 !important;
    padding: 6px 8px !important;
    box-sizing: border-box;
    color: #355b3a !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    text-decoration: none !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease,
        box-shadow .18s ease, color .18s ease, transform .18s ease !important;
}

body:has(#loginbox) #loginbox .mlt-login-secondary-link::after {
    content: "";
    position: absolute;
    left: 8px;
    bottom: 3px;
    width: 20%;
    max-width: calc(100% - 16px);
    height: 1px;
    border-radius: 2px;
    background: currentColor;
    opacity: .4;
    transition: width .18s ease, opacity .18s ease;
    pointer-events: none;
}

body:has(#loginbox) #loginbox .mlt-login-secondary-link:hover,
body:has(#loginbox) #loginbox .mlt-login-secondary-link:focus-visible {
    color: #416c46 !important;
    background: #f5fbf6 !important;
    border-color: rgba(65,108,70,.16) !important;
    box-shadow: 0 3px 8px rgba(31,47,34,.08) !important;
    transform: translateY(-1px) !important;
}

body:has(#loginbox) #loginbox .mlt-login-secondary-link:hover::after,
body:has(#loginbox) #loginbox .mlt-login-secondary-link:focus-visible::after {
    width: 70%;
    opacity: .78;
}

body:has(#loginbox) #loginbox .mlt-login-secondary-link:focus-visible {
    outline: 2px solid rgba(65,108,70,.45);
    outline-offset: 2px;
}

body:has(#loginbox) #loginbox .mlt-login-secondary-link:active {
    background: #eaf7ec !important;
    box-shadow: none !important;
    transform: none !important;
}

@media (max-width: 767px) {
    body:has(#loginbox) #loginbox .row.mlt-login-actions {
        flex-direction: column;
        align-items: stretch !important;
    }

    body:has(#loginbox) #loginbox .mlt-login-secondary-link {
        min-height: 40px;
        padding: 10px 8px !important;
    }
}

body:has(#loginbox) #loginbox .row {
    margin-bottom: 16px !important;
}

body:has(#loginbox) #loginbox label {
    display: block;
    margin-bottom: 8px;
    color: #1f2f22 !important;
    font-weight: 700 !important;
}

body:has(#loginbox) #loginbox input[type="text"],
body:has(#loginbox) #loginbox input[type="password"] {
    width: 100% !important;
    height: 46px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid rgba(65,108,70,.30) !important;
    border-radius: 13px !important;
    padding: 0 42px 0 13px !important;
    box-shadow: 0 2px 6px rgba(31,47,34,.08) !important;
}

body:has(#loginbox) #loginbox input[type="password"] {
    padding-right: 52px !important;
}

body:has(#loginbox) #loginbox input:focus {
    border-color: #416c46 !important;
    box-shadow: 0 0 0 3px rgba(65,108,70,.18) !important;
    outline: none !important;
}

body:has(#loginbox) #loginbox .input_icon {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    transition: .18s ease !important;
    cursor: pointer !important;
    color: #416c46 !important;
    opacity: .8;
}

body:has(#loginbox) #loginbox .password-input-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

body:has(#loginbox) #loginbox .password-input-wrapper .input_icon {
    box-sizing: border-box !important;
    z-index: 4 !important;
}

body:has(#loginbox) #loginbox .input_icon i {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

body:has(#loginbox) #loginbox .row:last-of-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 0 !important;
}

body:has(#loginbox) #loginbox button.button {
    min-width: 150px;
    height: 46px !important;
    background: #416c46 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 13px !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 22px rgba(31,47,34,.18) !important;
}

body:has(#loginbox) #loginbox button.button:hover {
    background: #58885d !important;
}

/* Mobile-safe login scene */

@media (hover: none) and (pointer: coarse),
       (max-device-width: 767px),
       (max-width: 767px) {

    body:has(#loginbox) .samo_container {
        min-height: auto !important;
        overflow: visible !important;
    }

    body:has(#loginbox) .samo_container::before,
    body:has(#loginbox) .samo_container::after,
    body:has(#loginbox) .container:has(#loginbox)::before,
    body:has(#loginbox) .container:has(#loginbox)::after,
    body:has(#loginbox) .logon-wrapper::before,
    body:has(#loginbox) .logon-wrapper::after,
    body:has(#loginbox) #loginbox::before,
    body:has(#loginbox) #loginbox::after,
    body:has(#loginbox) .logon-wrapper .header::before,
    body:has(#loginbox) .logon-wrapper .header::after,
    body:has(#loginbox) #loginForm::before {
        display: none !important;
        content: none !important;
        background: none !important;
    }

    body:has(#loginbox) .container:has(#loginbox) {
        min-height: auto !important;
        display: block !important;
        padding-top: 28px !important;
        padding-bottom: 70px !important;
        overflow: visible !important;
    }

    body:has(#loginbox) .logon-wrapper {
        width: calc(100% - 34px) !important;
        max-width: 360px !important;
        margin: 0 auto !important;
    }

    body:has(#loginbox) #loginbox {
        padding: 24px 20px 22px !important;
        border-radius: 0 0 22px 22px !important;
    }

    body:has(#loginbox) #loginbox .legend {
        font-size: 22px !important;
    }

    body:has(#loginbox) #loginbox .choose a {
        font-size: 12px !important;
    }

    body:has(#loginbox) #loginbox input[type="text"],
    body:has(#loginbox) #loginbox input[type="password"] {
        height: 42px !important;
    }

    body:has(#loginbox) #loginbox .row:last-of-type {
        gap: 12px;
    }

    body:has(#loginbox) #loginbox button.button {
        min-width: 128px;
        height: 42px !important;
    }
}

/* =====================================================
   12. Resort Life Mobile Experience v1
   ===================================================== */

@media screen and (min-width: 390px) and (max-width: 767px) {
    body:has(#loginbox) .container:has(#loginbox) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 48px 16px 44px !important;
        box-sizing: border-box !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    body:has(#loginbox) .logon-wrapper {
        width: 94vw !important;
        max-width: 390px !important;
        margin: 0 auto !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    body:has(#loginbox) .logon-wrapper .header {
        display: flex !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 0 !important;
        width: fit-content !important;
        max-width: 100% !important;
        min-height: 0 !important;
        margin: 0 auto 16px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }

    body:has(#loginbox) .logon-wrapper .header .legend.panel,
    body:has(#loginbox) .logon-wrapper .header .button-wrapper {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
        order: initial !important;
        animation: none !important;
        transition: none !important;
    }

    body:has(#loginbox) .logon-wrapper .header .legend.panel {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #416c46 !important;
        color: #ffffff !important;
        border: 1px solid #416c46 !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    body:has(#loginbox) .logon-wrapper .header .button-wrapper .button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        color: #416c46 !important;
        border: 1px solid rgba(65,108,70,.18) !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        animation: none !important;
        transition: none !important;
    }

    body:has(#loginbox) .logon-wrapper .header .button-wrapper .button:hover,
    body:has(#loginbox) .logon-wrapper .header .button-wrapper .button:focus-visible {
        background: #eaf7ec !important;
        border-color: rgba(65,108,70,.28) !important;
        color: #416c46 !important;
    }

    body:has(#loginbox) .logon-wrapper .header .legend.panel::before,
    body:has(#loginbox) .logon-wrapper .header .button-wrapper .button::before {
        content: none !important;
        display: none !important;
    }

    body:has(#loginbox) #loginbox {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 24px 20px 22px !important;
        box-sizing: border-box !important;
        background: rgba(187,228,193,.96) !important;
        border-radius: 24px !important;
        box-shadow: 0 14px 34px rgba(31,47,34,.16), 0 0 48px rgba(187,228,193,.24) !important;
        animation: none !important;
        transition: none !important;
    }

    body:has(#loginbox) #loginbox .row {
        margin-bottom: 18px !important;
    }

    body:has(#loginbox) #loginbox input[type="text"],
    body:has(#loginbox) #loginbox input[type="password"] {
        width: 100% !important;
        height: 55px !important;
        min-height: 55px !important;
        padding: 0 44px 0 14px !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
        transition: none !important;
    }

    body:has(#loginbox) #loginbox button.button {
        width: 100% !important;
        min-width: 0 !important;
        height: 56px !important;
        min-height: 56px !important;
        border-radius: 14px !important;
        box-shadow: 0 10px 22px rgba(31,47,34,.18) !important;
        transition: none !important;
    }

    body:has(#loginbox) #loginbox .row:last-of-type {
        gap: 12px !important;
        margin-bottom: 0 !important;
    }

    body:has(#loginbox) .rl-footer {
        display: none !important;
    }
}

/* =====================================================
   24. Login Screen (Production)
   ===================================================== */

@media screen and (min-width: 390px) and (max-width: 767px) {
    /* 24.1 Login Scene */

    body:has(#loginbox) .samo_container:has(#loginbox),
    body:has(#loginbox) .container:has(#loginbox),
    body:has(#loginbox) .logon-wrapper,
    body:has(#loginbox) #loginbox {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body:has(#loginbox) .logon-wrapper {
        max-width: 390px !important;
    }

    html:has(#loginbox),
    body:has(#loginbox) {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body:has(#loginbox) {
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100svh !important;
        min-height: 100dvh !important;
        background: #f7fbf7 !important;
    }

    body:has(#loginbox) #header {
        flex: 0 0 auto !important;
    }

    body:has(#loginbox) .samo_container:has(#loginbox) {
        flex: 1 0 auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #f7fbf7 !important;
    }

    body:has(#loginbox) .rl-footer {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body:has(#loginbox) .samo_container:has(#loginbox) {
        position: relative !important;
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body:has(#loginbox) .samo_container:has(#loginbox)::before,
    body:has(#loginbox) .samo_container:has(#loginbox)::after {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        transform: none !important;
        pointer-events: none !important;
        z-index: 0 !important;
    }

    body:has(#loginbox) .samo_container:has(#loginbox)::before {
        top: 0 !important;
        height: 78px !important;
        opacity: .04 !important;
    }

    body:has(#loginbox) .samo_container:has(#loginbox)::after {
        bottom: 0 !important;
        height: 118px !important;
        opacity: .045 !important;
    }

    body:has(#loginbox) .container:has(#loginbox) {
        position: relative !important;
        z-index: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 48px 16px 44px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    body:has(#loginbox) .container:has(#loginbox)::before {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        transform: none !important;
        opacity: .42 !important;
        filter: blur(34px) !important;
        pointer-events: none !important;
        z-index: 0 !important;
    }

    body:has(#loginbox) .container:has(#loginbox)::after {
        position: absolute !important;
        top: 96px !important;
        right: 0 !important;
        bottom: 120px !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        transform: none !important;
        opacity: .06 !important;
        pointer-events: none !important;
        z-index: 1 !important;
    }

    body:has(#loginbox) .logon-wrapper {
        position: relative !important;
        z-index: 2 !important;
        display: block !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    /* 24.2 Login Card */

    body:has(#loginbox) .logon-wrapper .header {
        display: flex !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 0 !important;
        width: fit-content !important;
        max-width: 100% !important;
        min-height: 0 !important;
        margin: 0 auto 18px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body:has(#loginbox) .logon-wrapper .header .legend.panel,
    body:has(#loginbox) .logon-wrapper .header .button-wrapper {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
        order: initial !important;
    }

    body:has(#loginbox) .logon-wrapper .header .legend.panel {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #416c46 !important;
        color: #ffffff !important;
        border: 1px solid #416c46 !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    body:has(#loginbox) .logon-wrapper .header .button-wrapper {
        display: flex !important;
        align-items: stretch !important;
    }

    body:has(#loginbox) .logon-wrapper .header .button-wrapper .button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        color: #416c46 !important;
        border: 1px solid rgba(65,108,70,.18) !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        transition: none !important;
    }

    body:has(#loginbox) .logon-wrapper .header .button-wrapper .button:hover,
    body:has(#loginbox) .logon-wrapper .header .button-wrapper .button:focus-visible {
        background: #eaf7ec !important;
        border-color: rgba(65,108,70,.28) !important;
        color: #416c46 !important;
    }

    body:has(#loginbox) .logon-wrapper .header .legend.panel:focus-visible,
    body:has(#loginbox) .logon-wrapper .header .button-wrapper .button:focus-visible {
        outline: 3px solid rgba(65,108,70,.28) !important;
        outline-offset: 2px !important;
    }

    body:has(#loginbox) .logon-wrapper .header .legend.panel::before,
    body:has(#loginbox) .logon-wrapper .header .button-wrapper .button::before {
        content: none !important;
        display: none !important;
    }

    body:has(#loginbox) #loginbox {
        position: relative !important;
        z-index: 2 !important;
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 30px 22px 26px !important;
        background: rgba(187,228,193,.96) !important;
        border: 1px solid rgba(255,255,255,.58) !important;
        border-radius: 24px !important;
        color: #355b3a !important;
        box-shadow: 0 18px 38px rgba(31,47,34,.17),
            0 0 48px rgba(187,228,193,.24) !important;
        overflow: visible !important;
    }

    body:has(#loginbox) #loginbox .legend {
        display: block !important;
        margin: 0 0 24px !important;
        color: #416c46 !important;
        font-size: 23px !important;
        font-weight: 800 !important;
        letter-spacing: .1px !important;
        line-height: 1.25 !important;
        text-align: left !important;
    }

    body:has(#loginbox) #loginbox .row {
        position: relative !important;
        margin: 0 0 20px !important;
    }

    body:has(#loginbox) #loginbox label {
        display: block !important;
        margin: 0 0 9px !important;
        color: #355b3a !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        letter-spacing: .1px !important;
        line-height: 1.35 !important;
    }

    body:has(#loginbox) #loginbox input[type="text"],
    body:has(#loginbox) #loginbox input[type="password"] {
        display: block !important;
        width: 100% !important;
        height: 56px !important;
        min-height: 56px !important;
        margin: 0 !important;
        padding: 0 44px 0 16px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border: 1px solid rgba(65,108,70,.22) !important;
        border-radius: 14px !important;
        color: #1f2f22 !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        box-shadow: inset 0 1px 3px rgba(31,47,34,.05),
            0 2px 8px rgba(31,47,34,.04) !important;
        transition: none !important;
    }

    body:has(#loginbox) #loginbox input[type="text"]::placeholder,
    body:has(#loginbox) #loginbox input[type="password"]::placeholder {
        color: #6d8071 !important;
        opacity: .86 !important;
    }

    body:has(#loginbox) #loginbox input[type="text"]:focus,
    body:has(#loginbox) #loginbox input[type="password"]:focus,
    body:has(#loginbox) #loginbox input[type="text"]:focus-visible,
    body:has(#loginbox) #loginbox input[type="password"]:focus-visible {
        border-color: #416c46 !important;
        outline: 3px solid rgba(65,108,70,.17) !important;
        outline-offset: 0 !important;
        box-shadow: 0 0 0 1px rgba(65,108,70,.08),
            0 3px 10px rgba(31,47,34,.06) !important;
    }

    body:has(#loginbox) #loginbox .password-input-wrapper {
        position: relative !important;
        display: block !important;
        width: 100% !important;
    }

    body:has(#loginbox) #loginbox .input_icon {
        color: #416c46 !important;
        opacity: .84 !important;
    }

    body:has(#loginbox) #loginbox .choose {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        margin: 0 0 18px !important;
        line-height: 1.35 !important;
    }

    body:has(#loginbox) #loginbox .choose {
        color: #416c46 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    body:has(#loginbox) #loginbox .choose a {
        font-weight: 700 !important;
    }

    body:has(#loginbox) #loginbox .row:last-of-type {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        margin: 24px 0 0 !important;
    }

    body:has(#loginbox) #loginbox button.button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 56px !important;
        min-height: 56px !important;
        margin: 0 !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
        background: #416c46 !important;
        color: #ffffff !important;
        border: 0 !important;
        border-radius: 14px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        letter-spacing: .1px !important;
        line-height: 1.2 !important;
        box-shadow: 0 11px 24px rgba(31,47,34,.19) !important;
        transition: none !important;
    }

    body:has(#loginbox) #loginbox button.button:hover,
    body:has(#loginbox) #loginbox button.button:focus-visible {
        background: #58885d !important;
    }

    body:has(#loginbox) #loginbox input:focus-visible,
    body:has(#loginbox) #loginbox button:focus-visible {
        outline: 3px solid rgba(65,108,70,.28) !important;
        outline-offset: 2px !important;
    }

    body:has(#loginbox) .rl-footer {
        position: relative !important;
        z-index: 1 !important;
        display: block !important;
        width: 100% !important;
        max-width: 390px !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 26px 18px calc(24px + env(safe-area-inset-bottom)) !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    body:has(#loginbox) .rl-footer-inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    body:has(#loginbox) .rl-footer-addresses {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding-top: 16px !important;
        padding-left: 0 !important;
        border-top: 1px solid rgba(255,255,255,.18) !important;
        border-left: 0 !important;
    }
}

/* =====================================================
   25. Mobile Navigation (Production)
   ===================================================== */

@media screen and (max-width: 767px) {
    /* 25.1 Header */

    #header,
    #header > .mobile-menu-container,
    #header .high-menu {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    #header {
        position: relative !important;
        z-index: 1000 !important;
        height: 72px !important;
        min-height: 72px !important;
        margin: 0 !important;
        padding: env(safe-area-inset-top) 0 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(65,108,70,.12) !important;
        box-shadow: 0 4px 14px rgba(31,47,34,.08) !important;
        overflow: visible !important;
    }

    #header > .mobile-menu-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 72px !important;
        min-height: 72px !important;
        margin: 0 !important;
        padding: 0 16px !important;
        background: #ffffff !important;
    }

    #header > .mobile-menu-container > .logo,
    #header .high-menu .logo {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    #header > .mobile-menu-container > .logo {
        flex: 0 0 auto !important;
        overflow: visible !important;
    }

    #header > .mobile-menu-container > .logo > a {
        display: flex;
        align-items: center;
    }

    #header > .mobile-menu-container > .logo img.logo {
        height: 62px !important;
        max-height: 62px !important;
        transform: none !important;
    }

    #header img.logo {
        display: block !important;
        float: none !important;
        width: auto !important;
        height: 32px !important;
        max-width: min(210px, 65vw) !important;
        margin: 0 !important;
        border: 0 !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

    #header .high-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 60px !important;
        min-height: 60px !important;
        margin: 0 !important;
        padding: 0 16px !important;
        background: #ffffff !important;
        border: 0 !important;
    }

    #header .high-menu .menu,
    #header .high-menu .nav {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    #header .high-menu .nav-center,
    #header .high-menu ul {
        display: none !important;
    }

    #header .high-menu::after {
        content: "" !important;
        display: block !important;
        flex: 0 0 22px !important;
        width: 22px !important;
        height: 16px !important;
        margin-left: auto !important;
        border-top: 2px solid #416c46 !important;
        border-bottom: 2px solid #416c46 !important;
        box-shadow: inset 0 -7px 0 #ffffff, 0 7px 0 -5px #416c46 !important;
        pointer-events: none !important;
    }

    #header .bottom-menu {
        display: none !important;
    }

    /* Mobile private request CTA */

    #header > .mobile-menu-container:has(> .mlt-private-request-mobile) {
        gap: 8px;
    }

    #header > .mobile-menu-container > .mlt-private-request-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 180px;
        min-width: 0;
        max-width: 210px;
        height: 40px;
        margin: 0;
        padding: 0 10px;
        box-sizing: border-box;
        border: 1px solid rgba(65,108,70,.20);
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(234,247,236,.86));
        color: #355b3a;
        box-shadow: 0 4px 12px rgba(38,72,44,.08), inset 0 1px 0 rgba(255,255,255,.86);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
    }

    #header > .mobile-menu-container > .mlt-private-request-mobile .mlt-private-request-action {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 0;
    }

    #header > .mobile-menu-container > .mlt-private-request-mobile .mlt-private-request-label {
        min-width: 0;
        white-space: normal;
    }

    #header > .mobile-menu-container > .mlt-private-request-mobile i {
        flex: 0 0 auto;
        font-size: 12px;
    }

    #header > .mobile-menu-container > .mlt-private-request-mobile:hover {
        background-color: #eaf7ec;
        border-color: rgba(65,108,70,.36);
        color: #355b3a;
        box-shadow: 0 5px 14px rgba(38,72,44,.12);
    }

    #header > .mobile-menu-container > .mlt-private-request-mobile:focus-visible {
        outline: 2px solid #416c46;
        outline-offset: 2px;
    }

    @media (max-width: 375px) {
        #header > .mobile-menu-container:has(> .mlt-private-request-mobile) {
            gap: 6px;
            padding-inline: 12px !important;
        }

        #header > .mobile-menu-container > .mlt-private-request-mobile {
            padding-inline: 6px;
        }
    }

    /* 25.2 Drawer */

    #menuToggle {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #menuToggle > #menu-open {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        margin: -1px !important;
        padding: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
    }

    #menuToggle .menu-open-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 5px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        background: #f5fbf6 !important;
        border: 1px solid rgba(65,108,70,.16) !important;
        border-radius: 14px !important;
        box-shadow: 0 5px 14px rgba(31,47,34,.10) !important;
        transition: background .2s ease, border-color .2s ease, box-shadow .2s ease !important;
    }

    #menuToggle .menu-open-button:hover,
    #menuToggle #menu-open:focus-visible + .menu-open-button {
        background: #eaf7ec !important;
        border-color: rgba(65,108,70,.28) !important;
        box-shadow: 0 7px 16px rgba(31,47,34,.14) !important;
    }

    #menuToggle .menu-open-button:active {
        background: #bbe4c1 !important;
        border-color: #416c46 !important;
        box-shadow: 0 3px 8px rgba(31,47,34,.12) !important;
    }

    #menuToggle #menu-open:checked + .menu-open-button {
        background: #416c46 !important;
        border-color: #416c46 !important;
        box-shadow: 0 7px 16px rgba(65,108,70,.22) !important;
    }

    #menuToggle #menu-open:checked + .menu-open-button .hamburger {
        background: #ffffff !important;
    }

    #menuToggle .hamburger,
    #menuToggle .hamburger-1,
    #menuToggle .hamburger-2,
    #menuToggle .hamburger-3 {
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
    }

    #menuToggle .hamburger {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        flex: 0 0 2px !important;
        align-self: center !important;
        margin: 0 !important;
        background: #416c46 !important;
        border-radius: 999px !important;
        transform-origin: center !important;
        transition: transform .2s ease, opacity .2s ease !important;
    }

    #menuToggle #menu-open:checked + .menu-open-button .hamburger-1 {
        transform: translateY(7px) rotate(45deg) !important;
    }

    #menuToggle #menu-open:checked + .menu-open-button .hamburger-2 {
        opacity: 0 !important;
        transform: none !important;
    }

    #menuToggle #menu-open:checked + .menu-open-button .hamburger-3 {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    #menuToggle #menu-open:focus-visible + .menu-open-button {
        outline: 3px solid rgba(65,108,70,.24) !important;
        outline-offset: 2px !important;
    }

    #menuToggle .menu-items-container,
    #menuToggle .menu-items-auth-container,
    #menuToggle #mobile-menu,
    #menuToggle #mobile-menu > li,
    #menuToggle #mobile-menu .menuName,
    #menuToggle #mobile-menu li ul {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    #menuToggle .menu-items-container {
        display: block !important;
        position: absolute !important;
        top: 72px !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        height: auto !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom)) !important;
        overflow: hidden !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity .2s ease, visibility 0s linear .2s, max-height .2s ease !important;
        background: #ffffff !important;
        border-top: 1px solid rgba(65,108,70,.12) !important;
        box-shadow: 0 12px 28px rgba(31,47,34,.16) !important;
        z-index: 1001 !important;
    }

    #menuToggle > #menu-open:checked ~ .menu-items-container {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        max-height: calc(100dvh - 72px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        transition: opacity .2s ease, visibility 0s linear 0s, max-height .2s ease !important;
    }

    #menuToggle .menu-items-auth-container {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        margin: 0 0 14px !important;
        padding: 16px !important;
        background: #f5fbf6 !important;
        border: 1px solid rgba(65,108,70,.14) !important;
        border-radius: 16px !important;
        color: #416c46 !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    #menuToggle .menu-items-auth-container .menuName,
    #menuToggle .menu-items-auth-container a {
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
        color: #416c46 !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    #menuToggle #mobile-menu {
        display: block !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        list-style: none !important;
        background: #ffffff !important;
        border: 1px solid rgba(65,108,70,.10) !important;
        border-radius: 16px !important;
    }

    #menuToggle #mobile-menu > li {
        display: block !important;
        min-height: 48px !important;
        margin: 0 0 8px !important;
        padding: 0 !important;
        background: #f5fbf6 !important;
        border: 1px solid rgba(65,108,70,.12) !important;
        border-radius: 14px !important;
        box-shadow: 0 3px 10px rgba(31,47,34,.06) !important;
        overflow: hidden !important;
    }

    #menuToggle #mobile-menu > li:last-child {
        margin-bottom: 0 !important;
    }

    #menuToggle #mobile-menu > li > a,
    #menuToggle #mobile-menu > li > .menuName {
        display: flex !important;
        align-items: center !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 12px 14px !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
        color: #416c46 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        overflow-wrap: anywhere !important;
    }

    #menuToggle #mobile-menu > li > a:hover,
    #menuToggle #mobile-menu > li > a:focus-visible,
    #menuToggle #mobile-menu > li > input:focus-visible + .menuName,
    #menuToggle #mobile-menu > li > input:checked + .menuName {
        background: #eaf7ec !important;
        color: #58885d !important;
    }

    #menuToggle #mobile-menu .menuName {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 12px 4px !important;
        color: #416c46 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        overflow-wrap: anywhere !important;
    }

    #menuToggle #mobile-menu .menuName::before {
        display: none !important;
        content: none !important;
    }

    #menuToggle #mobile-menu .menuName::after {
        content: "" !important;
        display: inline-block !important;
        flex: 0 0 8px !important;
        width: 8px !important;
        height: 8px !important;
        margin-left: 12px !important;
        border-top: 2px solid #5f7464 !important;
        border-right: 2px solid #5f7464 !important;
        box-sizing: border-box !important;
        transform: rotate(45deg) !important;
        transition: transform .18s ease !important;
    }

    #menuToggle #mobile-menu > li > input:checked + .menuName::after {
        transform: rotate(135deg) !important;
    }

    #menuToggle #mobile-menu li ul {
        margin: 0 8px 8px !important;
        padding: 0 0 0 16px !important;
        overflow: hidden !important;
        max-height: 0 !important;
        opacity: 0 !important;
        background: #f5fbf6 !important;
        border-left: 2px solid rgba(65,108,70,.16) !important;
        border-radius: 0 12px 12px 0 !important;
        transition: max-height .24s ease, opacity .18s ease, padding .24s ease !important;
    }

    #menuToggle #mobile-menu > li > input:checked ~ ul {
        max-height: 1000px !important;
        padding: 8px 8px 8px 16px !important;
        opacity: 1 !important;
    }

    #menuToggle #mobile-menu li ul a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 44px !important;
        padding: 12px 4px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        color: #5f7464 !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
        overflow-wrap: anywhere !important;
    }

    #menuToggle #mobile-menu li ul > li {
        margin: 0 !important;
        padding: 0 !important;
    }

    #menuToggle #mobile-menu li ul a:hover,
    #menuToggle #mobile-menu li ul a:focus-visible {
        background: #eaf7ec !important;
        color: #416c46 !important;
    }

    #menuToggle .menu-items-currency,
    #menuToggle .note-header {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    #menuToggle .menu-items-currency {
        display: block !important;
        margin: 12px 0 0 !important;
        padding: 12px 0 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #menuToggle .note-header {
        display: block !important;
        margin: 14px 0 0 !important;
        padding: 12px 0 0 !important;
        border-top: 1px solid rgba(65,108,70,.10) !important;
        color: #5f7464 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        overflow-wrap: anywhere !important;
    }
}

@media screen and (min-width: 768px) {
    #header > .mobile-menu-container,
    #header #menuToggle,
    #header .menu-items-container {
        display: none !important;
    }

    #header .high-menu,
    #header .bottom-menu {
        display: block !important;
    }

    #header .high-menu::after {
        content: none !important;
        display: none !important;
    }
}

/* =====================================================
   26. Login Production Bugfix Final
   ===================================================== */

@media screen and (max-width: 767px) {
    body:has(#loginbox) .samo_container:has(#loginbox) {
        flex: 0 0 auto !important;
        padding-bottom: 0 !important;
    }

    body:has(#loginbox) .container:has(#loginbox) {
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 32px !important;
    }

    body:has(#loginbox) .rl-footer {
        margin-top: 0 !important;
    }

    body:has(#loginbox) .rl-footer-addresses {
        grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)) !important;
    }

    body:has(#loginbox) #loginbox input[type="password"] {
        padding-right: 52px !important;
    }

    body:has(#loginbox) #loginbox .choose,
    body:has(#loginbox) #loginbox .row:last-of-type {
        flex-wrap: wrap !important;
    }

}

/* =====================================================
   99. Final Overrides & Legacy Fixes
   Preserve winning cascade order below this point.
   ===================================================== */

/* =====================================================
   99. Search Tour Mobile Touch Fix
   ===================================================== */

@media (max-width: 767px) {

    #search_tour,
    #search_tour *,
    #scrollto,
    #scrollto *,
    .simplebar-wrapper,
    .simplebar-mask,
    .simplebar-offset,
    .simplebar-content-wrapper,
    .simplebar-content {
        touch-action: pan-y !important;
    }

    #search_tour,
    #scrollto {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
    }

    .simplebar-mask,
    .simplebar-offset,
    .simplebar-content-wrapper {
        overflow: visible !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* =====================================================
   Hide Commission Info Button
   Resort Life doesn't use commissions
   ===================================================== */

span.percent.helpalt.icon-info[data-popup="show commissions"] {
    display: none !important;
}

/* =====================================================
   Hide Tourists Menu
   Resort Life doesn't use tourist personal claims
   ===================================================== */

#header .bottom-menu .nav-center > li:not(.menu-tourists):has(.menu-cl_refer_person),
#header .menu .menu-cl_refer_person,
#header #mobile-menu .menu-cl_refer_person,
#header #mobile-menu > li:has(> ul > .menu-cl_refer_person):not(:has(> ul > li:not(.menu-cl_refer_person, .menu-sale))) {
    display: none !important;
}

/* =====================================================
   02.2 Resort Life Search Button
   ===================================================== */

.samo_container button.load {

    min-width: 110px !important;
    min-height: 38px !important;

    padding: 8px 18px !important;

    background: linear-gradient(180deg,#4d7b52,#416c46) !important;

    color: #ffffff !important;

    border: none !important;

    border-radius: 10px !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    text-shadow: none !important;

    box-shadow:
        0 6px 14px rgba(31,47,34,.18) !important;

    transition:
        background .18s ease,
        transform .12s ease,
        box-shadow .18s ease;

    cursor: pointer !important;
}

.samo_container button.load:hover {

    background: linear-gradient(180deg,#5b8b60,#4d7b52) !important;

    color:#ffffff !important;

    box-shadow:
        0 8px 18px rgba(31,47,34,.22) !important;

    transform: translateY(-1px);

}

.samo_container button.load:active {

    background:#416c46 !important;

    transform: translateY(0);

    box-shadow:
        0 3px 8px rgba(31,47,34,.18) !important;

}

/* =====================================================
   10.4.9 Agent Profile Final Dropdown Fix
   Must be the LAST header/profile block
   ===================================================== */

/* Hide technical label */

#header .bottom-menu .nav-center > li.profile .partner-type,
#header .bottom-menu .nav-center > li.profile .login-name,
#header .bottom-menu .nav-center > li.profile > ul > li:first-child {
    display:none !important;
}

/* ===========================
   Messages
   =========================== */

#header .bottom-menu .nav-center > li.profile .messages-header{

    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;

    width:100% !important;
    height:38px !important;

    padding:0 14px !important;

    border-radius:10px !important;

    color:#416c46 !important;
    font-weight:500 !important;

    transition:.18s;
}

#header .bottom-menu .nav-center > li.profile .messages-header::before{

    content:"✉";

    font-size:15px;

    margin-right:10px;

    opacity:.75;

}

#header .bottom-menu .nav-center > li.profile .messages-header:hover{

    background:#eef8ef !important;

}

/* ===========================
   Sign out
   =========================== */

#header .bottom-menu .nav-center > li.profile #logout{

    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;

    width:100% !important;
    height:38px !important;

    box-sizing:border-box;

    padding:0 14px !important;

    border-radius:10px !important;

    background:#bbe4c1 !important;

    border:1px solid rgba(65,108,70,.20) !important;

    color:#416c46 !important;

    font-weight:500 !important;

    text-decoration:none !important;

    transition:.18s;
}

#header .bottom-menu .nav-center > li.profile #logout::before{

    content:"↩";

    font-size:17px;

    margin-right:10px;

    opacity:.75;

}

#header .bottom-menu .nav-center > li.profile #logout:hover{

    background:#d7f0db !important;

}

/* =====================================================
   10.4.9 Agent Profile Final Dropdown Fix
   Must be the LAST header/profile block
   ===================================================== */

#header .bottom-menu .nav-center > li.profile {
    position: relative !important;
    width: auto !important;
}

/* Preserve the legacy mobile trigger geometry. */
@media (max-width: 767px) {

#header .bottom-menu .nav-center > li.profile > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 220px !important;
    width: auto !important;

    white-space: nowrap !important;
}

}

/* Dropdown strictly under profile capsule */

#header .bottom-menu .nav-center > li.profile > ul {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;

    top: 100% !important;
    margin-top: 0 !important;

    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;

    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;

    background: #ffffff !important;
    border: 1px solid rgba(65,108,70,.14) !important;
    border-radius: 0 0 16px 16px !important;

    padding: 12px 14px !important;
    gap: 8px !important;

    box-shadow: 0 16px 34px rgba(31,47,34,.18) !important;
}

/* Keep dropdown open */

#header .bottom-menu .nav-center > li.profile:hover > ul {
    display: flex !important;
}

/* Clean rows */

#header .bottom-menu .nav-center > li.profile > ul > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Messages row */

#header .bottom-menu .nav-center > li.profile .messages-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 34px !important;

    color: #416c46 !important;
    font-weight: 400 !important;
}

/* Sign out button */

#header .bottom-menu .nav-center > li.profile #logout {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* =====================================================
   10.4.11 Agent Profile Menu Items Final Polish
   Must be LAST
   ===================================================== */

#header .bottom-menu .nav-center > li.profile > ul {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    padding: 12px !important;
    gap: 8px !important;
}

/* Hide empty/technical row */
#header .bottom-menu .nav-center > li.profile > ul > li:first-child {
    display: none !important;
}

/* Make every row full width */
#header .bottom-menu .nav-center > li.profile > ul > li {
    width: 100% !important;
    display: block !important;
}

/* Messages as real button */
#header .bottom-menu .nav-center > li.profile .messages-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;
    height: 38px !important;
    box-sizing: border-box !important;

    padding: 0 14px !important;

    background: #ffffff !important;
    border: 1px solid rgba(65,108,70,.14) !important;
    border-radius: 10px !important;

    color: #416c46 !important;
    font-size: 14px !important;
    font-weight: 500 !important;

    cursor: pointer !important;
}

#header .bottom-menu .nav-center > li.profile .messages-header::before {
    content: "✉";
    display: inline-block;
    width: 18px;
    margin-right: 10px;
    color: #416c46;
    opacity: .75;
    text-align: center;
}

#header .bottom-menu .nav-center > li.profile .messages-header:hover {
    background: #eef8ef !important;
}

/* Sign out same style */
#header .bottom-menu .nav-center > li.profile #logout {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;
    height: 38px !important;
    box-sizing: border-box !important;

    padding: 0 14px !important;

    background: #bbe4c1 !important;
    border: 1px solid rgba(65,108,70,.20) !important;
    border-radius: 10px !important;

    color: #416c46 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

#header .bottom-menu .nav-center > li.profile #logout::before {
    content: "↪";
    display: inline-block;
    width: 18px;
    margin-right: 10px;
    color: #416c46;
    opacity: .75;
    text-align: center;
}

#header .bottom-menu .nav-center > li.profile #logout:hover {
    background: #d7f0db !important;
}
/* =====================================================
   Share Results — Premium Production
   The marker is added only by the Share Results click handler.
   ===================================================== */

#samo-link-to-page {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-width: 0;
    max-width: 100%;
    min-height: 36px;
}

#samo-link-to-page > a.link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    gap: 7px;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    height: var(--mlt-share-height, 36px) !important;
    min-height: var(--mlt-share-height, auto);
    margin: 0 !important;
    padding: var(--mlt-share-padding, 0 12px) !important;
    box-sizing: border-box;
    text-indent: 0 !important;
    white-space: nowrap;
    overflow: visible;
    color: var(--mlt-share-color, #355b3a) !important;
    font-size: 13px !important;
    font-weight: var(--mlt-share-weight, 700);
    line-height: var(--mlt-share-line-height, 1.3);
    text-decoration: none !important;
    background: var(--mlt-share-background, #eaf7ec) !important;
    border: 1px solid var(--mlt-share-border, rgba(65,108,70,.18)) !important;
    border-radius: var(--mlt-share-radius, 999px) !important;
    box-shadow: var(--mlt-share-shadow, 0 2px 6px rgba(31,47,34,.08));
    transition: background-color .18s ease, border-color .18s ease,
        box-shadow .18s ease, color .18s ease, transform .18s ease;
}

#samo-link-to-page > a.link::before {
    content: "\f1e0";
    flex: 0 0 auto;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
    line-height: 1;
    color: var(--mlt-share-icon-color, inherit);
}

#samo-link-to-page > a.link:hover,
#samo-link-to-page > a.link:focus-visible {
    color: var(--mlt-share-color, #416c46) !important;
    background: var(--mlt-share-hover-background, #d7f0db) !important;
    border-color: var(--mlt-share-hover-border, rgba(65,108,70,.30)) !important;
    box-shadow: var(--mlt-share-shadow, 0 3px 8px rgba(31,47,34,.12));
    transform: var(--mlt-share-hover-transform, translateY(-1px));
}

#samo-link-to-page > a.link:focus-visible {
    outline: 2px solid var(--mlt-share-focus-color, #58885d) !important;
    outline-offset: 2px;
    box-shadow: var(--mlt-share-focus-shadow, 0 3px 8px rgba(31,47,34,.12));
}

#modalContainer.mlt-share-results-popup .copyButton:focus-visible,
#modalContainer.mlt-share-results-popup a.modalCloseImg:focus-visible {
    outline: 2px solid #58885d !important;
    outline-offset: 2px;
}

#samo-link-to-page > a.link:active {
    transform: none;
    box-shadow: none;
}

#modalContainer.mlt-share-results-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: 560px !important;
    max-width: calc(100% - 32px) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: 0 !important;
    padding: 0 !important;
    transform: translate(-50%, -50%) !important;
    box-sizing: border-box;
    border: 1px solid rgba(65,108,70,.18) !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 22px 60px rgba(31,47,34,.24) !important;
    overflow: visible !important;
}

#modalContainer.mlt-share-results-popup > .modalTitle {
    position: relative;
    height: 0 !important;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: none !important;
    background: transparent !important;
    font-size: 0;
    color: transparent;
    overflow: visible;
}

#modalContainer.mlt-share-results-popup a.modalCloseImg {
    top: 10px !important;
    right: 10px !important;
}

#modalContainer.mlt-share-results-popup #basicModalContent {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: 0 !important;
    padding: 24px !important;
    box-sizing: border-box;
    background: #fff !important;
    border: none !important;
    border-radius: inherit !important;
    box-shadow: none !important;
    overflow: auto !important;
}

#modalContainer.mlt-share-results-popup .mlt-share-results {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Tahoma, Arial, sans-serif;
    text-align: left;
}

#modalContainer.mlt-share-results-popup .mlt-share-results-title {
    margin: 0 28px 8px 0;
    padding: 0;
    color: #355b3a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: break-word;
}

#modalContainer.mlt-share-results-popup .mlt-share-results-subtitle {
    margin: 0 0 16px;
    padding: 0;
    color: #5f7464;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: break-word;
}

#modalContainer.mlt-share-results-popup #copyto {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    height: 100px !important;
    margin: 0 !important;
    padding: 12px !important;
    box-sizing: border-box;
    background: #f7fbf8 !important;
    border: 1px solid rgba(65,108,70,.22) !important;
    border-radius: 13px !important;
    color: #355b3a !important;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px !important;
    line-height: 1.4 !important;
    resize: none;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#modalContainer.mlt-share-results-popup #copyto:focus-visible {
    outline: 2px solid #58885d !important;
    outline-offset: 2px;
}

#modalContainer.mlt-share-results-popup .copyButton {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    height: 46px !important;
    margin: 12px 0 0 !important;
    padding: 0 14px;
    box-sizing: border-box;
    background: #416c46 !important;
    border: none !important;
    border-radius: 13px !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700 !important;
    line-height: 1.3;
    box-shadow: 0 6px 14px rgba(31,47,34,.18);
    cursor: pointer;
    transition: background-color .18s ease, box-shadow .18s ease;
}

#modalContainer.mlt-share-results-popup .copyButton:hover {
    background: #58885d !important;
}

#modalContainer.mlt-share-results-popup .copyButton:active {
    box-shadow: 0 2px 6px rgba(31,47,34,.12) !important;
}

@media (max-width: 767px) {
    #modalContainer.mlt-share-results-popup {
        width: calc(100% - 24px) !important;
        max-width: 430px !important;
    }

    #modalContainer.mlt-share-results-popup #basicModalContent {
        padding: 20px 16px !important;
    }

    #modalContainer.mlt-share-results-popup #copyto {
        height: 120px !important;
    }
}

/* =====================================================
   09.6 Premium Copy Link Popup
   ===================================================== */

#basicModalContent #copyto {
    width: 100% !important;
    min-width: 360px !important;
    height: 96px !important;

    box-sizing: border-box !important;

    margin-top: 12px !important;
    padding: 12px 14px !important;

    background: #f7fbf8 !important;
    border: 1px solid rgba(65,108,70,.22) !important;
    border-radius: 12px !important;

    color: #355b3a !important;
    font-size: 13px !important;
    line-height: 1.35 !important;

    resize: none !important;
    outline: none !important;

    box-shadow: inset 0 1px 3px rgba(31,47,34,.08) !important;
}

#basicModalContent .copyButton {
    width: 100% !important;
    height: 40px !important;

    margin: 0 !important;

    background: #416c46 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 12px !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    box-shadow: 0 6px 14px rgba(31,47,34,.18) !important;
    cursor: pointer !important;
}

#basicModalContent .copyButton:hover {
    background: #58885d !important;
}

#basicModalContent:has(#copyto) {
    padding: 18px !important;
    background: #ffffff !important;
    border-radius: 0 0 22px 22px !important;
}

/* =====================================================
   09.7 Preloader Safety Reset
   ===================================================== */

#samo-circle-preloader[style*="display: none"] {
    display: none !important;
    pointer-events: none !important;
}

#samo-circle-preloader[style*="display: block"] {
    pointer-events: auto !important;
}

/* =====================================================
   09.8 Additional Services Polish
   Packet modal
   ===================================================== */

#basicModalContent #ADDITIONAL_SERVICES {
    margin-top: 12px !important;
}

#basicModalContent #ADDITIONAL_SERVICES table.res {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;

    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;

    box-shadow: none !important;
}

#basicModalContent #ADDITIONAL_SERVICES table.res thead th {
    background: #416c46 !important;
    color: #ffffff !important;

    padding: 9px 12px !important;

    border: none !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: left !important;
}

#basicModalContent #ADDITIONAL_SERVICES table.res thead th::before {

    content:"\f0ec";

    font-family:"Font Awesome 5 Free";

    font-weight:900;

    margin-right:8px;

    color:#ffffff;

    font-size:14px;

}

#basicModalContent #ADDITIONAL_SERVICES table.res tbody td {
    padding: 9px 12px !important;

    background: #ffffff !important;
    border-bottom: 1px solid rgba(65,108,70,.10) !important;

    color: #355b3a !important;
    font-size: 13px !important;
    vertical-align: middle !important;
}

#basicModalContent #ADDITIONAL_SERVICES table.res tbody tr:nth-child(even) td {
    background: #f7fbf8 !important;
}

#basicModalContent #ADDITIONAL_SERVICES table.res tbody tr:hover td {
    background: #eef8ef !important;
}

#basicModalContent #ADDITIONAL_SERVICES table.res td.caption {
    width: 190px !important;
    color: #416c46 !important;
    white-space: nowrap !important;
}

#basicModalContent #ADDITIONAL_SERVICES table.res td.price {
    width: 130px !important;
    color: #1f2f22 !important;
    font-weight: 700 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

#basicModalContent #ADDITIONAL_SERVICES table.res td img {
    opacity: .55 !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

#basicModalContent #ADDITIONAL_SERVICES table.res tr.eraser {
    display: none !important;
}

/* =====================================================
   11.2 Password Recovery Page Polish
   ===================================================== */

body:has(#recovery) .samo_container {
    min-height: calc(100vh - 150px);
}

.samo_container #recovery {
    width: 430px !important;
    margin: 64px auto 0 !important;
    padding: 42px 36px 30px !important;

    background: #bbe4c1 !important;
    border: 1px solid rgba(255,255,255,.55) !important;
    border-radius: 22px !important;

    box-shadow:
        0 20px 50px rgba(31,47,34,.14),
        inset 0 1px 0 rgba(255,255,255,.55) !important;
}

.samo_container #recovery .note {
    display: none !important;
}

.samo_container #recovery .legend {
    display: block !important;
    margin-bottom: 26px !important;

    color: #416c46 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}

.samo_container #recovery .label {
    margin-bottom: 9px !important;
    color: #355b3a !important;
    font-size: 14px !important;
}

.samo_container #recovery input#search {
    width: 100% !important;
    height: 44px !important;

    box-sizing: border-box !important;
    padding: 0 14px !important;

    background: #ffffff !important;
    border: 1px solid rgba(65,108,70,.30) !important;
    border-radius: 12px !important;

    color: #1f2f22 !important;
    font-size: 14px !important;

    box-shadow: 0 2px 6px rgba(31,47,34,.08) !important;
}

.samo_container #recovery input#search:focus {
    border-color: #416c46 !important;
    box-shadow: 0 0 0 3px rgba(65,108,70,.18) !important;
    outline: none !important;
}

.samo_container #recovery button.load {
    display: block !important;
    min-width: 130px !important;
    height: 42px !important;

    margin: 20px auto 0 !important;

    background: linear-gradient(180deg,#4d7b52,#416c46) !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 12px !important;

    font-weight: 700 !important;

    box-shadow: 0 8px 18px rgba(31,47,34,.18) !important;
}

.samo_container #recovery .registration-link {
    margin-top: 24px !important;
    text-align: center !important;
}

/* =====================================================
   Search Filters - MLT Hotel Category Icons
   Starfish + Guest House
   ===================================================== */

.samo_container .checklistbox.STARS .c-icon.hp {
    --mlt-category-count: 1;
    background: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    width: auto !important;
    height: 22px;
    padding: 0 !important;
}

.samo_container .checklistbox.STARS .c-icon.hp input.star {
    order: -1;
    flex: 0 0 auto;
    float: none !important;
    margin: 0 !important;
}

.samo_container .checklistbox.STARS .c-icon.hp::before {
    content: "";
    flex: 0 0 auto;
    width: calc(var(--mlt-category-count) * 16px - 2px);
    height: 14px;
    background-image: url("/public/pict/MLT_Monstera/hotel_star.png");
    background-size: 14px auto;
    background-position: left center;
    background-repeat: space no-repeat;
    pointer-events: none;
}

.samo_container .checklistbox.STARS .hp.hp_3 {
    --mlt-category-count: 2;
}

.samo_container .checklistbox.STARS .hp.hp_4 {
    --mlt-category-count: 3;
}

.samo_container .checklistbox.STARS .hp.hp_5 {
    --mlt-category-count: 4;
}

.samo_container .checklistbox.STARS .hp.hp_6 {
    --mlt-category-count: 5;
}

.samo_container .checklistbox.STARS .c-icon.hp.hp_9::before {
    width: 20px;
    height: 20px;
    background-image: url("/public/pict/MLT_Monstera/guest_star.png");
    background-size: contain;
    background-repeat: no-repeat;
}

/* =====================================================
   10.6 Resort Life Logo Polish
   ===================================================== */

#header img.logo,
img.logo[src*="samo.png"] {
    transform: scale(.85) !important;
    transform-origin: center center !important;

    display: block !important;

    cursor: pointer !important;

    transition:
        transform .22s ease,
        filter .22s ease,
        opacity .22s ease !important;
}

#header img.logo:hover,
img.logo[src*="samo.png"]:hover {
    transform: scale(.88) translateY(-1px) !important;

    filter:
        drop-shadow(0 8px 14px rgba(31,47,34,.16))
        brightness(1.03) !important;

    opacity: .96 !important;
}

/* =====================================================
   08. Footer
   ===================================================== */

/* =====================================================
   12. Resort Life Footer
   ===================================================== */

.rl-footer {
    margin-top: 34px;
    padding: 26px 32px;
    background: #416c46;
    color: #ffffff;
}

.rl-footer-inner {
    max-width: 1320px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 28px;
    align-items: start;
}

.rl-footer-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.rl-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rl-socials a,
.rl-address a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.rl-socials a {
    padding: 6px 10px;
    background: rgba(255,255,255,.12);
    border-radius: 999px;
    font-size: 12px;
}

.rl-socials a:hover {
    background: rgba(255,255,255,.18);
}

.rl-footer-addresses {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-width: 0;
    gap: 18px;
}

.rl-address {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
    gap: 5px;
    font-size: 13px;
    line-height: 1.35;
}

.rl-address strong {
    font-size: 14px;
    margin-bottom: 4px;
}

.rl-address span {
    opacity: .82;
}

/* Mobile */

@media (max-width: 900px) {
    .rl-footer-inner {
        grid-template-columns: 1fr;
    }

    .rl-footer-addresses {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   12.1 Resort Life Footer Premium Polish
   ===================================================== */

.rl-footer {
    position: relative;
    margin-top: 42px !important;
    padding: 34px 34px 28px !important;

    background:
        radial-gradient(circle at 12% 20%, rgba(187,228,193,.18), transparent 28%),
        linear-gradient(180deg, #416c46 0%, #365d3b 100%) !important;

    border-top: 1px solid rgba(255,255,255,.18);
    border-radius: 18px 18px 0 0;

    box-shadow:
        0 -10px 30px rgba(31,47,34,.08),
        inset 0 1px 0 rgba(255,255,255,.12);
}

.rl-footer::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: 90px;

    background: url("/public/pict/RLT_corals/cor-3_TM.png") center top / 780px auto repeat-x;
    opacity: .055;

    pointer-events: none;
}

.rl-footer-inner {
    position: relative;
    z-index: 1;

    max-width: 1320px !important;
    gap: 34px !important;
}

.rl-footer-title,
.rl-address strong {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.rl-socials a {
    display: inline-flex;
    align-items: center;

    min-height: 26px;
    padding: 6px 11px !important;

    border-radius: 999px;
    background: rgba(255,255,255,.11);

    font-size: 12px !important;
    font-weight: 600 !important;

    transition: background .18s ease, transform .12s ease;
}

.rl-socials a:hover {
    background: rgba(255,255,255,.20) !important;
    transform: translateY(-1px);
}

.rl-address {
    color: rgba(255,255,255,.88) !important;
}

.rl-address a {
    color: rgba(255,255,255,.92) !important;
    font-weight: 500;
}

.rl-address span {
    color: rgba(255,255,255,.72) !important;
}

.rl-footer-addresses {
    padding-left: 24px;
    border-left: 1px solid rgba(255,255,255,.16);
}

/* =====================================================
   12.2 Footer Social Icons
   ===================================================== */

.rl-socials a {

    font-size: 0 !important;

    width: 42px;
    height: 42px;

    padding: 0 !important;

    justify-content: center;
    align-items: center;

}

.rl-socials a::before {

    font-family: "Font Awesome 6 Brands";

    font-size: 18px;

    color: #ffffff;

}

/* Instagram */

.rl-socials a[href*="instagram"]::before {
    content: "\f16d";
}

/* YouTube */

.rl-socials a[href*="youtube"]::before {
    content: "\f167";
}

/* Telegram */

.rl-socials a[href*="telegram.org"]::before {
    content: "\f2c6";
}

/* Facebook */

.rl-socials a[href*="facebook"]::before {
    content: "\f39e";
}

.rl-socials a:hover::before{

    transform:scale(1.12);

    transition:.18s;

}


/* =====================================================
   08.6 Premium Information Tables
   Commission / Agency / Reports
   ===================================================== */

.samo_container fieldset.panel {

    border: none !important;
    border-radius: 16px !important;

    background: linear-gradient(180deg,#bbe4c1,#c7ebcb) !important;

    padding: 12px !important;

    box-shadow:
        0 10px 28px rgba(31,47,34,.08);

}

.samo_container fieldset.panel table.res{

    width:100% !important;

    border-collapse:separate !important;
    border-spacing:0 !important;

    overflow:hidden;

    border-radius:12px !important;

    background:#ffffff;

}

/* Header */

.samo_container fieldset.panel table.res thead th{

    background:linear-gradient(180deg,#4d7b52,#416c46) !important;

    color:#ffffff !important;

    font-size:13px !important;
    font-weight:700 !important;

    padding:11px 12px !important;

    border:none !important;

    text-align:left !important;

    white-space:nowrap;

}

/* Body */

.samo_container fieldset.panel table.res tbody td{

    padding:12px !important;

    border-bottom:1px solid rgba(65,108,70,.08) !important;

    color:#355b3a !important;

    background:#ffffff !important;

    vertical-align:middle !important;

}

/* Zebra */

.samo_container fieldset.panel table.res tbody tr:nth-child(even) td{

    background:#f7fbf8 !important;

}

/* Hover */

.samo_container fieldset.panel table.res tbody tr:hover td{

    background:#eef8ef !important;

}

/* Last row */

.samo_container fieldset.panel table.res tbody tr:last-child td{

    border-bottom:none !important;

}

/* Numbers */

.samo_container fieldset.panel table.res td:last-child{

    font-weight:700 !important;

    color:#416c46 !important;

}

/* Dates */

.samo_container fieldset.panel table.res nobr{

    white-space:nowrap;

}

/* Empty dash */

.samo_container fieldset.panel table.res td:has(nobr:only-child){

    color:#708470;

}
/* =====================================================
   08.7 Employees Buttons Polish
   ===================================================== */

/* Edit */

.samo_container .partpass_edit{

    background:#bbe4c1 !important;

    color:#416c46 !important;

    border:1px solid rgba(65,108,70,.22) !important;

    border-radius:10px !important;

    padding:7px 16px !important;

    font-weight:600 !important;

    box-shadow:
        0 4px 10px rgba(31,47,34,.10) !important;

    transition:
        background .18s ease,
        transform .12s ease;

}

.samo_container .partpass_edit:hover{

    background:#d7f0db !important;

    transform:translateY(-1px);

}

/* Create */

.samo_container .partpass_create{

    min-width:120px !important;

}

/* Remove */

.samo_container .partpass_delete{

    background:#ffffff !important;

    color:#b92d2d !important;

    border:1px solid rgba(185,45,45,.22) !important;

    border-radius:10px !important;

    padding:7px 16px !important;

    font-weight:600 !important;

    box-shadow:
        0 4px 10px rgba(31,47,34,.08) !important;

    transition:
        background .18s ease,
        transform .12s ease;

}

.samo_container .partpass_delete:hover{

    background:#fff3f3 !important;

    border-color:#d04b4b !important;

    transform:translateY(-1px);

}
/* =====================================================
   Employees - Login Information Modal
   .partpass_edit
   ===================================================== */

/* Layered important rules isolate this form from legacy popup overrides. */
@layer mlt-employee-login {
    #modalContainer:has(.partpass_edit) {
        width: 640px !important;
        max-width: calc(100vw - 32px) !important;
        height: auto !important;
        max-height: calc(100dvh - 32px) !important;
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        background: #ffffff !important;
        border: 1px solid rgba(65,108,70,.12) !important;
        border-radius: 22px !important;
        box-shadow: 0 22px 60px rgba(31,47,34,.22) !important;
        overflow: visible !important;
    }

    #modalContainer:has(.partpass_edit) #basicModalContent {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: none !important;
        align-items: initial !important;
        padding: 20px 22px 22px !important;
        margin: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: inherit !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    #modalContainer:has(.partpass_edit) #basicModalContent > .partpass_edit {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        transition: none !important;
    }

    #modalContainer .partpass_edit form {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    #modalContainer .partpass_edit fieldset.panel {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 20px 22px !important;
        margin: 0 !important;
        background: linear-gradient(180deg, #f7fbf7 0%, #f1f8f2 100%) !important;
        border: 1px solid rgba(65,108,70,.12) !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 22px rgba(31,47,34,.05) !important;
        overflow: visible !important;
    }

    #modalContainer .partpass_edit .legend-tag {
        display: flex !important;
        align-items: center !important;
        margin: 0 0 18px !important;
        color: #416c46 !important;
        font-size: 22px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }

    #modalContainer .partpass_edit .legend-tag::before {
        content: "\f007" !important;
        font-family: "Font Awesome 5 Free" !important;
        font-weight: 900 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 36px !important;
        width: 36px !important;
        height: 36px !important;
        margin-right: 12px !important;
        background: #e1f2e4 !important;
        border-radius: 50% !important;
        color: #416c46 !important;
        font-size: 15px !important;
    }

    #modalContainer .partpass_edit fieldset.panel:nth-of-type(2) .legend-tag::before {
        content: "\f013" !important;
    }

    #modalContainer .partpass_edit table.width100p {
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: separate !important;
        border-spacing: 0 8px !important;
    }

    #modalContainer .partpass_edit table.width100p td {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        vertical-align: middle !important;
    }

    #modalContainer .partpass_edit table.width100p td.left_column {
        width: 200px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        text-align: right !important;
    }

    #modalContainer .partpass_edit label {
        color: #416c46 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        white-space: normal !important;
    }

    #modalContainer .partpass_edit label.required::after {
        content: " *";
        color: #c74b4b;
    }

    #modalContainer .partpass_edit input[type="text"],
    #modalContainer .partpass_edit input.frm-input,
    #modalContainer .partpass_edit select,
    #modalContainer .partpass_edit .chosen-container,
    #modalContainer .partpass_edit .chosen-single {
        width: 100% !important;
        max-width: 100% !important;
        height: 42px !important;
        box-sizing: border-box !important;
    }

    #modalContainer .partpass_edit input[type="text"],
    #modalContainer .partpass_edit input.frm-input,
    #modalContainer .partpass_edit select,
    #modalContainer .partpass_edit .chosen-single {
        padding: 0 12px !important;
        background: #ffffff !important;
        border: 1px solid rgba(65,108,70,.18) !important;
        border-radius: 10px !important;
        color: #1f2f22 !important;
        font-size: 13px !important;
        box-shadow: 0 3px 10px rgba(31,47,34,.05) !important;
    }

    #modalContainer .partpass_edit input:not(:disabled):focus,
    #modalContainer .partpass_edit select:not(:disabled):focus {
        border-color: rgba(65,108,70,.55) !important;
        box-shadow: 0 0 0 3px rgba(65,108,70,.09) !important;
        outline: none !important;
    }

    #modalContainer .partpass_edit input[type="text"]:disabled {
        background: #f2f5f2 !important;
        color: #5f7464 !important;
        border: 1px solid rgba(65,108,70,.12) !important;
        opacity: 1 !important;
        cursor: not-allowed !important;
    }

    #modalContainer .partpass_edit .chosen-single {
        display: flex !important;
        align-items: center !important;
    }

    #modalContainer .partpass_edit input[type="checkbox"] {
        width: 17px !important;
        height: 17px !important;
        margin: 0 !important;
        accent-color: #416c46 !important;
    }

    #modalContainer .partpass_edit button.Zebra_DatePicker_Icon {
        right: 8px !important;
        left: auto !important;
        top: 14px !important;
    }

    #modalContainer .partpass_edit > form > .label {
        margin: 14px 0 0 !important;
        padding-top: 12px !important;
        border-top: 1px solid rgba(65,108,70,.10) !important;
        color: #5f7464 !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
        text-align: center !important;
    }

    #modalContainer .partpass_edit > form > br {
        display: none !important;
    }

    #modalContainer .partpass_edit input[type="submit"] {
        display: block !important;
        position: static !important;
        min-width: 160px !important;
        height: 44px !important;
        padding: 0 24px !important;
        margin: 16px auto 0 !important;
        background: #416c46 !important;
        color: #ffffff !important;
        border: 0 !important;
        border-radius: 11px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        box-shadow: 0 7px 18px rgba(31,47,34,.14) !important;
        transform: none !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
    }

    #modalContainer .partpass_edit input[type="submit"]:not(:disabled):hover {
        background: #58885d !important;
        box-shadow: 0 9px 20px rgba(31,47,34,.18) !important;
    }

    #modalContainer .partpass_edit input[type="submit"]:focus-visible {
        outline: 3px solid rgba(65,108,70,.35) !important;
        outline-offset: 3px !important;
    }

    #modalContainer .partpass_edit input[type="submit"]:disabled {
        cursor: not-allowed !important;
    }

    @media (max-width: 767px) {
        #modalContainer:has(.partpass_edit) {
            width: calc(100vw - 24px) !important;
            max-width: calc(100vw - 24px) !important;
            border-radius: 20px !important;
        }

        #modalContainer:has(.partpass_edit) #basicModalContent {
            padding: 18px 14px 20px !important;
        }

        #modalContainer .partpass_edit fieldset.panel {
            padding: 18px 14px !important;
        }

        #modalContainer .partpass_edit table.width100p,
        #modalContainer .partpass_edit table.width100p tbody,
        #modalContainer .partpass_edit table.width100p tr,
        #modalContainer .partpass_edit table.width100p td {
            display: block !important;
            width: 100% !important;
        }

        #modalContainer .partpass_edit table.width100p tr + tr {
            margin-top: 12px !important;
        }

        #modalContainer .partpass_edit table.width100p td.left_column {
            width: 100% !important;
            padding: 0 0 6px !important;
            text-align: left !important;
        }

        #modalContainer .partpass_edit input[type="submit"] {
            width: 100% !important;
            min-width: 0 !important;
            min-height: 46px !important;
        }
    }
}
/* =====================================================
   09.10 BRON Add Additional Services Popup — Compact Wide
   ===================================================== */

#modalContainer:has(#additional_services) {
    width: 1040px !important;
    max-width: 94vw !important;
    border-radius: 22px !important;
    overflow: visible !important;
}

#modalContainer:has(#additional_services) #basicModalContent {
    background: #ffffff !important;
    border-radius: 0 0 22px 22px !important;
    overflow: hidden !important;
}

#modalContainer #basicModalContent #additional_services {
    padding: 16px 18px 4px !important;
    background: #ffffff !important;
}

/* cards */

#modalContainer #basicModalContent #additional_services .servtype-container {
    margin: 0 0 10px !important;
    border: 1px solid rgba(65,108,70,.14) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 6px 16px rgba(31,47,34,.06) !important;
}

#modalContainer #basicModalContent #additional_services .servtype-container > input[type="radio"] {
    display: none !important;
}

/* headers */

#modalContainer #basicModalContent #additional_services .servtype-container > label.service {
    display: flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 8px 14px !important;

    background: linear-gradient(180deg, #4d7b52 0%, #416c46 100%) !important;
    color: #ffffff !important;

    border: none !important;

    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

#modalContainer #basicModalContent #additional_services .servtype-container > label.service::before {
    content: "\f0ec";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;

    margin-right: 9px;
    font-size: 12px;
    color: #ffffff;
}

/* Tax icon */

#modalContainer #basicModalContent #additional_services .servtype-container:has(label[for="servtype-2"]) > label.service::before {
    content: "\f571";
}

/* Transfer group icon — arrows */

#modalContainer #basicModalContent #additional_services .servtype-container:has(label[for="servtype-3"]) > label.service::before {
    content: "\f0ec";
}

/* table */

#modalContainer #basicModalContent #additional_services table.res {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

#modalContainer #basicModalContent #additional_services table.res tr td {
    padding: 9px 12px !important;
    border-bottom: 1px solid rgba(65,108,70,.08) !important;
    background: #ffffff !important;
    color: #355b3a !important;
    vertical-align: middle !important;
}

#modalContainer #basicModalContent #additional_services table.res tr:last-child td {
    border-bottom: none !important;
}

#modalContainer #basicModalContent #additional_services table.res tr:hover td {
    background: #f4faf5 !important;
}

/* service name in one comfortable row */

#modalContainer #basicModalContent #additional_services td.service-name {
    width: auto !important;
}

#modalContainer #basicModalContent #additional_services td.service-name label {
    display: grid !important;
    grid-template-columns: 18px 1fr !important;
    column-gap: 9px !important;
    align-items: start !important;

    color: #416c46 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* checkbox */

#modalContainer #basicModalContent #additional_services input.mainservice {
    width: 15px !important;
    height: 15px !important;
    margin: 1px 0 0 !important;

    accent-color: #416c46 !important;
}

#modalContainer #basicModalContent #additional_services input.mainservice:disabled {
    opacity: .55 !important;
}

/* price */

#modalContainer #basicModalContent #additional_services td.service-price {
    width: 170px !important;
    min-width: 170px !important;

    text-align: right !important;
    white-space: nowrap !important;

    color: #416c46 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

/* dates column if empty */

#modalContainer #basicModalContent #additional_services td.service-dates {
    width: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Add service button */

#modalContainer:has(#additional_services) #basicModalContent > #ADD_ADDITIONAL_SERVICES {
    display: block !important;
    flex: 0 0 auto !important;
    align-self: center;

    min-width: 150px !important;
    max-width: 100%;
    min-height: 42px !important;
    box-sizing: border-box;

    margin: 10px auto 14px !important;
    padding: 0 22px !important;

    background: #416c46 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 10px !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    box-shadow: 0 4px 10px rgba(65,108,70,.16) !important;
    transition: background-color .18s ease, box-shadow .18s ease;

    cursor: pointer !important;
}

#modalContainer:has(#additional_services) #basicModalContent > #ADD_ADDITIONAL_SERVICES:hover:not(:disabled) {
    background: #58885d !important;
    box-shadow: 0 5px 12px rgba(65,108,70,.20) !important;
}

#modalContainer:has(#additional_services) #basicModalContent > #ADD_ADDITIONAL_SERVICES:focus-visible {
    outline: 2px solid #355b3a;
    outline-offset: 3px;
}

/* =====================================================
   09.11 BRON Reservation Result Popup
   ===================================================== */

#modalContainer:has(.CLAIMRESULT) {
    width: 460px !important;
    max-width: 92vw !important;
    border-radius: 22px !important;
    overflow: visible !important;
}

#modalContainer:has(.CLAIMRESULT) #basicModalContent {
    background: #ffffff !important;
    border-radius: 0 0 22px 22px !important;
    overflow: hidden !important;
}

#modalContainer #basicModalContent .CLAIMRESULT {
    position: relative !important;

    padding: 30px 28px 26px !important;

    background:
        radial-gradient(circle at 50% 0%, rgba(187,228,193,.38), transparent 52%),
        linear-gradient(180deg, #ffffff 0%, #f5fbf6 100%) !important;

    color: #416c46 !important;

    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
}

#modalContainer #basicModalContent .CLAIMRESULT::before {
    content: "\f058";

    font-family: "Font Awesome 5 Free";
    font-weight: 900;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin: 0 auto 14px;

    background: #bbe4c1;
    border-radius: 50%;

    color: #416c46;
    font-size: 25px;

    box-shadow:
        0 10px 24px rgba(31,47,34,.14),
        inset 0 1px 0 rgba(255,255,255,.55);
}

#modalContainer #basicModalContent .CLAIMRESULT a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 34px !important;

    margin: 14px 5px 0 !important;
    padding: 0 15px !important;

    background: #bbe4c1 !important;
    color: #416c46 !important;

    border: 1px solid rgba(65,108,70,.20) !important;
    border-radius: 999px !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;

    box-shadow: 0 6px 16px rgba(31,47,34,.10) !important;
}

#modalContainer #basicModalContent .CLAIMRESULT a:hover {
    background: #d7f0db !important;
    transform: translateY(-1px);
}

/* =====================================================
   09.11 BRON Reservation Success Popup — Production
   Desktop + Mobile
   ===================================================== */

#modalContainer:has(.CLAIMRESULT.claim-success-card):has(#basicModalContent) {
    width: 540px !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    max-height: calc(100vh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    border: none !important;
    border-radius: 24px !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) .modalTitle {
    display: none !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    max-height: calc(100vh - 32px) !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 24px !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .CLAIMRESULT.claim-success-card {
    width: 100% !important;
    margin: 0 !important;
    padding: 28px 20px 26px !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    color: #355b3a !important;
    text-align: center !important;
    box-sizing: border-box !important;
    box-shadow: 0 22px 55px rgba(31,47,34,.20), inset 0 1px 0 rgba(255,255,255,.80) !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .CLAIMRESULT.claim-success-card::before {
    content: none !important;
    display: none !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-success-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 68px !important;
    height: 68px !important;
    margin: 0 auto 16px !important;
    border-radius: 50% !important;
    background: #bbe4c1 !important;
    color: #416c46 !important;
    font-size: 38px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: 0 10px 24px rgba(31,47,34,.15) !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-success-title {
    margin: 0 0 7px !important;
    color: #416c46 !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-success-subtitle {
    margin: 0 0 20px !important;
    color: #5f7464 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-success-details {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 16px !important;
    border: 1px solid rgba(65,108,70,.12) !important;
    border-radius: 15px !important;
    background: #f5fbf6 !important;
    box-sizing: border-box !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-detail {
    min-width: 0 !important;
    text-align: left !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-detail + .claim-detail {
    margin-top: 0 !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-detail span {
    display: block !important;
    margin-bottom: 4px !important;
    color: #5f7464 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-detail strong {
    display: block !important;
    color: #1f2f22 !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-detail:first-child strong {
    color: #416c46 !important;
    font-size: 27px !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-success-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    width: 100% !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-btn-primary {
    border: 1px solid #416c46 !important;
    background: #416c46 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(31,47,34,.18) !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-btn-secondary {
    border: 1px solid rgba(65,108,70,.22) !important;
    background: #ffffff !important;
    color: #416c46 !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-btn-primary:hover,
#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-btn-primary:focus-visible {
    border-color: #58885d !important;
    background: #58885d !important;
    box-shadow: 0 10px 22px rgba(31,47,34,.22) !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-btn-secondary:hover,
#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-btn-secondary:focus-visible {
    border-color: rgba(65,108,70,.38) !important;
    background: #f5fbf6 !important;
}

#modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-btn:focus-visible {
    outline: 3px solid rgba(65,108,70,.25) !important;
    outline-offset: 2px !important;
}

@media (max-width: 767px) {
    #modalContainer:has(.CLAIMRESULT.claim-success-card):has(#basicModalContent) {
        width: calc(100vw - 24px) !important;
        max-width: 420px !important;
    }

    #modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent {
        max-height: calc(100dvh - 32px) !important;
    }

    #modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .CLAIMRESULT.claim-success-card {
        padding: 22px 16px 20px !important;
        border-radius: 20px !important;
    }

    #modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-success-icon {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 14px !important;
        font-size: 34px !important;
    }

    #modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-success-title {
        font-size: 24px !important;
        line-height: 1.15 !important;
    }

    #modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-success-subtitle {
        margin-bottom: 18px !important;
        font-size: 13px !important;
    }

    #modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-success-details {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
        padding: 12px !important;
    }

    #modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-detail + .claim-detail {
        padding-top: 10px !important;
        border-top: 1px solid rgba(65,108,70,.10) !important;
    }

    #modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-success-actions {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    #modalContainer:has(.CLAIMRESULT.claim-success-card) #basicModalContent .claim-btn {
        min-height: 48px !important;
    }
}

/* =====================================================
   09. Domain Pages & Booking Widgets
   ===================================================== */

/* =====================================================
   08.8 CL Refer Reservation Cards Polish
   ===================================================== */

.samo_container .resultset:not(:where(.hotel_stopsale > #hotel_stopsale > .resultset)) {
    max-width: 1180px !important;
    margin: 0 auto !important;
}

/* CL Refer mobile workspace: fluid shell, stacked filters, local results scroll. */
@media screen and (max-width: 1024px) {
    body > .samo_container.cl_refer:has(> #cl_refer),
    body > .samo_container.cl_refer > #cl_refer,
    #cl_refer > .controls,
    #cl_refer > .resultset {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    #cl_refer > .resultset {
        /* No height cap: expanded details stay in the normal vertical flow. */
        overflow-x: auto !important;
        overflow-y: auto !important;
    }

    #cl_refer > .resultset > table.cl_refer_result {
        min-width: 936px !important;
    }

    #cl_refer > .controls > table.std.panel,
    #cl_refer > .controls > table.std.panel > tbody,
    #cl_refer > .controls > table.std.panel > tbody > tr,
    #cl_refer > .controls > table.std.panel > tbody > tr > td,
    #cl_refer > .controls > table.std.panel > tbody > tr > td > table,
    #cl_refer > .controls > table.std.panel > tbody > tr > td > table > tbody {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    #cl_refer > .controls > table.std.panel {
        margin: 0;
        padding: 16px;
        border: 1px solid rgba(65,108,70,.16);
        border-radius: 14px;
        background: #f5faf6;
    }

    #cl_refer > .controls > table.std.panel > tbody > tr > td {
        padding: 0;
        border: 0;
    }

    #cl_refer > .controls > table.std.panel > tbody > tr > .right_side {
        margin-top: 12px;
    }

    #cl_refer > .controls > table.std.panel > tbody > tr > td > table > tbody > tr,
    #cl_refer > .controls > table.std.panel > tbody > tr > td > table > tbody > tr > td {
        display: block;
        width: 100%;
        min-width: 0;
        height: auto;
        box-sizing: border-box;
        padding: 0;
        white-space: normal;
        text-align: left !important;
    }

    #cl_refer > .controls .left_side > table > tbody > tr + tr {
        margin-top: 8px;
    }

    #cl_refer > .controls .right_side > table > tbody > tr + tr {
        margin-top: 12px;
    }

    #cl_refer > .controls .right_side > table > tbody > tr > td + td {
        margin-top: 6px;
    }

    #cl_refer > .controls .right_side > table > tbody > tr > td:empty {
        display: none;
    }

    #cl_refer > .controls > .searchmodes {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        margin-bottom: 12px;
    }

    #cl_refer > .controls > .searchmodes > :is(.searchmode_cl_refer, .searchmode_claim_unpaid) {
        flex: 1 1 150px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #cl_refer > .controls > .searchmodes .searchmode_button {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #cl_refer > .controls > table.std.panel :is(select[name="CLAIMTYPE"], select[name="PAYTYPE"], input[name="CLAIMBEGIN"], input[name="CHECKINBEG"], input[name="CHECKINEND"], input[name="CDATEBEG"], input[name="CDATEEND"], input[name="FIO"]) {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 44px;
        box-sizing: border-box;
    }

    #cl_refer > .controls > table.std.panel .Zebra_DatePicker_Icon_Wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    #cl_refer > .controls > table.std.panel .Zebra_DatePicker_Icon_Wrapper > input.date {
        padding-right: 44px;
    }

    #cl_refer > .controls > table.std.panel .Zebra_DatePicker_Icon {
        left: auto !important;
        right: 8px !important;
        top: 50% !important;
        transform: translateY(-50%);
    }

    #cl_refer .controls .cl_refer_btn button.load {
        width: 100%;
        min-height: 44px !important;
        margin: 0;
        box-sizing: border-box;
        border-radius: 12px !important;
    }
}

/* Reservation card */

.samo_container table.cl_refer_result {
    width: 100% !important;
    margin: 18px 0 !important;

    border-collapse: separate !important;
    border-spacing: 0 !important;

    background: #ffffff !important;
    border: 1px solid rgba(65,108,70,.14) !important;
    border-radius: 18px !important;

    overflow: hidden !important;

    box-shadow:
        0 10px 26px rgba(31,47,34,.08) !important;
}

/* Header */

.samo_container table.cl_refer_result thead th {
    background: linear-gradient(180deg,#4d7b52,#416c46) !important;
    color: #ffffff !important;

    padding: 14px 16px !important;

    border: none !important;

    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;

    text-align: left !important;
    vertical-align: middle !important;
}

/* Claim number badge */

.samo_container table.cl_refer_result thead th.cl-r-claim-data {
    padding: 14px 16px !important;
    color: rgba(255,255,255,.90) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}

.samo_container table.cl_refer_result thead .claim {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 0 !important;
    height: 30px !important;

    margin-right: 8px !important;
    padding: 0 11px !important;
    box-sizing: border-box !important;

    background: rgba(255,253,248,.96) !important;
    color: #416c46 !important;

    border: 1px solid rgba(255,255,255,.58) !important;
    border-radius: 9px !important;

    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 7px rgba(31,47,34,.12) !important;
}

.samo_container table.cl_refer_result thead .claim::before {
    content: "#";
    margin-right: 2px;
    color: rgba(65,108,70,.64);
    font-size: .82em;
    font-weight: 800;
    line-height: 1;
}

/* Body cells */

.samo_container table.cl_refer_result tbody td {
    padding: 13px 16px !important;

    background: #ffffff !important;
    color: #1f2f22 !important;

    border-bottom: 1px solid rgba(65,108,70,.08) !important;

    vertical-align: top !important;
    line-height: 1.35 !important;
}

/* Soft second row */

.samo_container table.cl_refer_result tbody tr.edit_claim td,
.samo_container table.cl_refer_result tbody tr:last-child td {
    background: #f5fbf6 !important;
}

/* =====================================================
   CL Refer - Reservation Status System
   Paid / Unpaid / Overdue / Cancelled
   ===================================================== */

.samo_container table.cl_refer_result .claim-status {
    --mlt-claim-background: #f3f6f4;
    --mlt-claim-color: #4f6254;
    --mlt-claim-border: rgba(65,108,70,.14);
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 30px;
    max-width: 100%;
    padding: 5px 10px !important;
    box-sizing: border-box;
    vertical-align: top;
    background: var(--mlt-claim-background) !important;
    color: var(--mlt-claim-color) !important;
    border: 1px solid var(--mlt-claim-border) !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.samo_container table.cl_refer_result .claim-status:has(> img:is([src$="/paid.gif"], [src*="/paid.gif?"])) {
    --mlt-claim-background: #eef7f0;
    --mlt-claim-color: #2f6840;
    --mlt-claim-border: rgba(65,108,70,.18);
}

.samo_container table.cl_refer_result .claim-status:has(> img:is([src$="/unpaid.gif"], [src*="/unpaid.gif?"])) {
    --mlt-claim-background: #fff8e9;
    --mlt-claim-color: #805818;
    --mlt-claim-border: rgba(186,135,43,.22);
}

.samo_container table.cl_refer_result .claim-status:has(> img:is([src$="/cancel.gif"], [src*="/cancel.gif?"])) {
    --mlt-claim-background: #f2f4f3;
    --mlt-claim-color: #59645d;
    --mlt-claim-border: rgba(89,100,93,.16);
}

/* Keep unknown SAMO icons visible; replace only the confirmed assets. */
.samo_container table.cl_refer_result .claim-status > img {
    display: inline-block !important;
    flex: 0 0 auto;
    margin: 0;
}

.samo_container table.cl_refer_result .claim-status > img:is(
    [src$="/paid.gif"], [src*="/paid.gif?"],
    [src$="/unpaid.gif"], [src*="/unpaid.gif?"],
    [src$="/cancel.gif"], [src*="/cancel.gif?"]
) {
    display: none !important;
}

.samo_container table.cl_refer_result .claim-status:has(> img:is([src$="/paid.gif"], [src*="/paid.gif?"]))::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 10px;
    margin: -3px 3px 0;
    box-sizing: border-box;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    pointer-events: none;
}

.samo_container table.cl_refer_result .claim-status:has(> img:is([src$="/unpaid.gif"], [src*="/unpaid.gif?"]))::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin: 0 3px;
    border-radius: 50%;
    background: currentColor;
    pointer-events: none;
}

.samo_container table.cl_refer_result .claim-status:has(> img:is([src$="/cancel.gif"], [src*="/cancel.gif?"]))::before {
    content: "\00d7";
    flex: 0 0 12px;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    pointer-events: none;
}

.samo_container table.cl_refer_result td.num > .claim-status:has(+ .claim-payment-overdue) {
    display: flex !important;
    width: fit-content;
}

.samo_container table.cl_refer_result td.num > .claim-payment-overdue {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 26px;
    margin-top: 6px;
    padding: 5px 8px;
    box-sizing: border-box;
    background: #fff1f0;
    color: #9a3e39 !important;
    border: 1px solid rgba(154,62,57,.18);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}

.samo_container table.cl_refer_result .claim-status .ui-icon-payment-overdue {
    order: 1;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin: 0;
    box-sizing: border-box;
    background: #b1853a !important;
    border: 2px solid #fff8e9;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(186,135,43,.3);
    cursor: help;
}

/* Links as chips */

.samo_container table.cl_refer_result .cl_alink .link,
.samo_container table.cl_refer_result .claim-orders__button,
.samo_container table.cl_refer_result .cancel_claim,
.samo_container table.cl_refer_result .dropdown-button {
    display: inline-flex !important;
    align-items: center !important;

    margin: 4px 6px 4px 0 !important;
    padding: 7px 11px !important;

    background: #bbe4c1 !important;
    color: #416c46 !important;

    border: 1px solid rgba(65,108,70,.16) !important;
    border-radius: 999px !important;

    font-size: 12px !important;
    font-weight: 700 !important;

    text-decoration: none !important;
    cursor: pointer !important;
}

.samo_container table.cl_refer_result .cl_alink .link:hover,
.samo_container table.cl_refer_result .claim-orders__button:hover,
.samo_container table.cl_refer_result .dropdown-button:hover {
    background: #d7f0db !important;
}

/* Cancellation */

.samo_container table.cl_refer_result .cancel_claim {
    background: #ffffff !important;
    color: #9b2f2f !important;
    border-color: rgba(155,47,47,.22) !important;
}

.samo_container table.cl_refer_result .cancel_claim:hover {
    background: #fff3f3 !important;
}

/* Show services area */

.samo_container table.cl_refer_result td.orders {
    color: #416c46 !important;
    font-weight: 700 !important;
}

/* Linked reservation and partner booking notes */

#cl_refer .linked_claims,
.samo_container table.cl_refer_result .partnercomment {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    margin: 0 0 10px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(31,47,34,.04);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
}

#cl_refer .linked_claims {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 12px;
    background: #f3f8f4 !important;
    border: 1px solid rgba(65,108,70,.16);
    color: var(--rl-muted, #5f7464);
}

#cl_refer .linked_claims .linked_claim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 36px;
    max-width: 100%;
    padding: 4px 10px;
    background: #e7f1e9;
    border: 1px solid rgba(65,108,70,.18);
    border-radius: 8px;
    color: var(--rl-text, #355b3a);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

#cl_refer .linked_claims .linked_claim::before {
    content: "\f08e" / "";
    flex: 0 0 auto;
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

#cl_refer .linked_claims .linked_claim:hover {
    background: #dcebdd;
    border-color: rgba(65,108,70,.30);
    color: var(--rl-heading, #416c46);
}

#cl_refer .linked_claims .linked_claim:focus-visible {
    outline: 2px solid var(--rl-heading, #416c46);
    outline-offset: 2px;
}

.samo_container table.cl_refer_result .partnercomment {
    position: relative;
    display: block;
    padding: 12px 14px 12px 44px !important;
    background: #faf8f2 !important;
    border: 1px solid rgba(151,128,89,.20);
    color: #594f40;
}

.samo_container table.cl_refer_result .partnercomment::before {
    content: "\f075" / "";
    position: absolute;
    top: 14px;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #978059;
    font-family: "Font Awesome 6 Free";
    font-size: 14px;
    font-weight: 900;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}

/* Dropdown */

.samo_container table.cl_refer_result .dropdown-menu {
    display: inline-block !important;
    position: relative !important;
}

.samo_container table.cl_refer_result .dropdown-content {
    border-radius: 12px !important;
    border: 1px solid rgba(65,108,70,.14) !important;
    box-shadow: 0 10px 24px rgba(31,47,34,.16) !important;
    overflow: hidden !important;
}

/* Mobile safe */

@media (max-width: 767px) {
    .samo_container table.cl_refer_result {
        font-size: 12px !important;
    }

    .samo_container table.cl_refer_result thead th,
    .samo_container table.cl_refer_result tbody td {
        padding: 10px !important;
    }

    .samo_container table.cl_refer_result thead th.cl-r-claim-data {
        padding: 11px 12px !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    .samo_container table.cl_refer_result thead .claim {
        height: 28px !important;
        padding: 0 9px !important;
        border-radius: 8px !important;
        font-size: 15px !important;
    }

    .samo_container table.cl_refer_result thead .claim::before {
        font-size: .78em;
    }
}

/* =====================================================
   Reservation Action Center — isolated to td.cl_alink
   ===================================================== */

.samo_container table.cl_refer_result td.cl_alink {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.samo_container table.cl_refer_result td.cl_alink :is(
    .msg-new,
    .cl_price,
    .pay_variant,
    .e_doc,
    .dropdown-button
) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #416c46 !important;
    border: 1px solid rgba(65,108,70,.20) !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 14px rgba(31,47,34,.10) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease !important;
}

.samo_container table.cl_refer_result td.cl_alink :is(
    .msg-new,
    .cl_price,
    .pay_variant,
    .e_doc,
    .dropdown-button
):hover {
    background: #f1faf2 !important;
    border-color: #416c46 !important;
    box-shadow: 0 8px 18px rgba(31,47,34,.14) !important;
    transform: translateY(-1px) !important;
}

.samo_container table.cl_refer_result td.cl_alink :is(
    .msg-new,
    .cl_price,
    .pay_variant,
    .e_doc,
    .dropdown-button
):active {
    background: #eaf7ec !important;
    box-shadow: 0 3px 8px rgba(31,47,34,.10) !important;
    transform: translateY(0) !important;
}

.samo_container table.cl_refer_result td.cl_alink :is(
    .msg-new,
    .cl_price,
    .pay_variant,
    .e_doc,
    .dropdown-button
):focus-visible {
    outline: 3px solid rgba(88,136,93,.28) !important;
    outline-offset: 2px !important;
}

.samo_container table.cl_refer_result td.cl_alink :is(
    .msg-new,
    .cl_price,
    .pay_variant,
    .e_doc,
    .dropdown-button
)::before {
    display: inline-block !important;
    margin-right: 8px !important;
    color: currentColor !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.samo_container table.cl_refer_result td.cl_alink .msg-new::before {
    content: "\f0e0" !important;
}

.samo_container table.cl_refer_result td.cl_alink .cl_price::before {
    content: "\f02b" !important;
}

.samo_container table.cl_refer_result td.cl_alink .pay_variant::before {
    content: "\f09d" !important;
}

.samo_container table.cl_refer_result td.cl_alink .e_doc::before {
    content: "\f15c" !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-button::before {
    content: "\f013" !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-menu {
    display: inline-flex !important;
    position: relative !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-content {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    z-index: 1000 !important;
    min-width: 190px !important;
    padding: 6px !important;
    background: #ffffff !important;
    border: 1px solid rgba(65,108,70,.16) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 30px rgba(31,47,34,.18) !important;
    overflow: hidden !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-content :is(
    a,
    button,
    .link
) {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    background: transparent !important;
    color: #416c46 !important;
    border: none !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: left !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-content :is(
    a,
    button,
    .link
):hover {
    background: #eaf7ec !important;
    color: #355b3a !important;
}

/* Keep the dropdown hover path continuous without layout changes. */

.samo_container table.cl_refer_result td.cl_alink .dropdown-menu::after {
    content: "" !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 190px !important;
    height: 8px !important;
    pointer-events: auto !important;
    z-index: 999 !important;
}

/* =====================================================
   Reservation Card — premium two-column action center
   ===================================================== */

.samo_container table.cl_refer_result tbody td.cl_alink {
    width: 25% !important;
    min-width: 220px !important;
    padding: 18px !important;
    box-sizing: border-box !important;
    background: #f5fbf6 !important;
    border-right: 1px solid rgba(65,108,70,.12) !important;
    vertical-align: top !important;
}

.samo_container table.cl_refer_result tbody td.cl_alink + td {
    width: 75% !important;
    padding: 20px 24px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    vertical-align: top !important;
}

.samo_container table.cl_refer_result td.cl_alink :is(
    .msg-new,
    .cl_price,
    .pay_variant,
    .e_doc,
    .dropdown-button
) {
    width: calc(50% - 4px) !important;
    min-width: 0 !important;
    flex: 1 1 calc(50% - 8px) !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-menu {
    width: calc(50% - 4px) !important;
    min-width: 0 !important;
    flex: 1 1 calc(50% - 8px) !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-menu .dropdown-button {
    width: 100% !important;
}

/* Orders hierarchy */

.samo_container table.cl_refer_result td.orders {
    padding: 20px 24px !important;
    background: #f9fcf9 !important;
    color: #355b3a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.samo_container table.cl_refer_result td.orders table.orders-group,
.samo_container table.cl_refer_result td.orders table.tbl_peoples {
    margin: 0 0 16px !important;
}

.samo_container table.cl_refer_result td.orders table.orders-group > thead > tr > th,
.samo_container table.cl_refer_result td.orders table.tbl_peoples > thead > tr > th {
    padding: 14px 16px !important;
    font-size: 14px !important;
    letter-spacing: .01em !important;
}

.samo_container table.cl_refer_result td.orders table.orders-group > tbody > tr > td,
.samo_container table.cl_refer_result td.orders table.tbl_peoples > tbody > tr > td {
    padding: 14px 16px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* Show services belongs to Orders */

.samo_container table.cl_refer_result td.orders .claim-orders__button {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 32px !important;
    margin: 10px 0 0 !important;
    padding: 0 12px !important;
    background: #e4f5e6 !important;
    color: #416c46 !important;
    border: 1px solid rgba(65,108,70,.16) !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 9px rgba(31,47,34,.07) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.samo_container table.cl_refer_result td.orders .claim-orders__button:hover {
    background: #d7f0db !important;
    box-shadow: 0 6px 14px rgba(31,47,34,.11) !important;
}

/* Service items */

.samo_container table.cl_refer_result td.orders :is(
    .service,
    .service-item,
    .service-name,
    .service-type,
    .services
) {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    margin: 4px 6px 4px 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    background: #eef8ef !important;
    color: #416c46 !important;
    border: 1px solid rgba(65,108,70,.13) !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* Tourist grid */

.samo_container table.cl_refer_result td.orders table.tbl_peoples > tbody > tr > td {
    color: #1f2f22 !important;
    font-weight: 600 !important;
}

.samo_container table.cl_refer_result td.orders table.tbl_peoples > tbody > tr > td:first-child {
    color: #416c46 !important;
    font-weight: 800 !important;
}

.samo_container table.cl_refer_result td.orders table.tbl_peoples td:has(.fa-file),
.samo_container table.cl_refer_result td.orders table.tbl_peoples td:has(.fa-file-lines) {
    color: #416c46 !important;
}

@media (max-width: 767px) {
    .samo_container table.cl_refer_result tbody td.cl_alink,
    .samo_container table.cl_refer_result tbody td.cl_alink + td {
        width: 100% !important;
        min-width: 0 !important;
        border-right: none !important;
    }

    .samo_container table.cl_refer_result tbody td.cl_alink + td {
        padding: 14px !important;
    }
}

/* =====================================================
   Action Center — inline expandable reservation menu
   ===================================================== */

.samo_container table.cl_refer_result td.cl_alink .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: relative !important;
    width: calc(50% - 4px) !important;
    min-width: 0 !important;
    flex: 1 1 calc(50% - 8px) !important;
    margin: 0 !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-menu::after {
    display: none !important;
    content: none !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-menu .dropdown-button {
    width: 100% !important;
    flex: 0 0 auto !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-content {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
    border-color: transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    transform: translateY(-4px) !important;
    transition: max-height .22s ease, opacity .18s ease, transform .22s ease, margin .22s ease, padding .22s ease, border-color .22s ease !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-menu:hover .dropdown-content,
.samo_container table.cl_refer_result td.cl_alink .dropdown-menu:focus-within .dropdown-content {
    max-height: 360px !important;
    margin-top: 8px !important;
    padding: 6px !important;
    border-color: rgba(65,108,70,.16) !important;
    box-shadow: 0 10px 24px rgba(31,47,34,.12) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Action Center — single vertical stack */

.samo_container table.cl_refer_result td.cl_alink {
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
}

.samo_container table.cl_refer_result td.cl_alink :is(
    .msg-new,
    .cl_price,
    .pay_variant,
    .e_doc,
    .dropdown-menu
) {
    width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
}

.samo_container table.cl_refer_result td.cl_alink :is(
    .msg-new,
    .cl_price,
    .pay_variant,
    .e_doc,
    .dropdown-button
) {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-menu {
    order: 99 !important;
    align-items: stretch !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-menu .dropdown-button {
    flex: 0 0 auto !important;
}

/* Marina Life B2B: Edit Reservation intentionally hidden */
.samo_container table.cl_refer_result td.cl_alink .dropdown-menu:has(
    > .dropdown-content > :is(.edit_payer, [data-js="uploadFile"]),
    #uploadFile
) {
    display: none !important;
}

/* =====================================================
   Resort Life Action Center v1.0 — final polish
   ===================================================== */

.samo_container table.cl_refer_result tbody td.cl_alink {
    padding: 18px !important;
    background: #f5fbf6 !important;
    border: 1px solid rgba(65,108,70,.14) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 22px rgba(31,47,34,.08) !important;
}

.samo_container table.cl_refer_result tbody td.cl_alink::before {
    content: "Actions" !important;
    display: block !important;
    order: -1 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #5f7464 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

html[lang="uk"] .samo_container table.cl_refer_result tbody td.cl_alink::before {
    content: "Дії" !important;
}

.samo_container table.cl_refer_result td.cl_alink :is(
    .msg-new,
    .cl_price,
    .pay_variant,
    .e_doc,
    .dropdown-button
) {
    justify-content: flex-start !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
    text-align: left !important;
}

.samo_container table.cl_refer_result td.cl_alink :is(
    .msg-new,
    .cl_price,
    .pay_variant,
    .e_doc,
    .dropdown-button
)::before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    margin-right: 9px !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Expanded Edit Reservation section */

.samo_container table.cl_refer_result td.cl_alink .dropdown-content {
    padding: 0 10px !important;
    border-radius: 16px !important;
    border-color: rgba(65,108,70,.12) !important;
    background: #fbfefb !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-menu:hover .dropdown-content,
.samo_container table.cl_refer_result td.cl_alink .dropdown-menu:focus-within .dropdown-content {
    padding: 10px !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-content :is(
    a,
    button,
    .link
) {
    position: relative !important;
    min-height: 36px !important;
    padding: 0 10px 0 34px !important;
    border-bottom: 1px solid rgba(65,108,70,.08) !important;
    border-radius: 10px !important;
    transition: background-color .16s ease, color .16s ease !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-content :is(
    a,
    button,
    .link
):last-child {
    border-bottom: none !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-content :is(
    a,
    button,
    .link
)::before {
    position: absolute !important;
    left: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    color: #416c46 !important;
    font-family: "Font Awesome 5 Free" !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-content :is(
    a,
    button,
    .link
):nth-child(1)::before {
    content: "\f00c" !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-content :is(
    a,
    button,
    .link
):nth-child(2)::before {
    content: "\f56f" !important;
}

.samo_container table.cl_refer_result td.cl_alink .dropdown-content :is(
    a,
    button,
    .link
):hover {
    background: #eaf7ec !important;
    color: #355b3a !important;
}

/* Orders relationship */

.samo_container table.cl_refer_result td.orders {
    padding: 20px 24px !important;
    background: #f9fcf9 !important;
    border-left: 1px solid rgba(65,108,70,.08) !important;
}

.samo_container table.cl_refer_result td.orders .claim-orders__button {
    margin: 14px 0 0 !important;
    box-shadow: 0 3px 9px rgba(31,47,34,.07) !important;
}

.samo_container table.cl_refer_result tbody td.cl_alink + td {
    width: 75% !important;
    padding: 20px 24px !important;
}

/* =====================================================
   Service Cards — scoped to Orders service rows
   ===================================================== */

.samo_container table.cl_refer_result table.orders-group tr.service > td {
    padding: 16px !important;
    box-sizing: border-box !important;
    background: #f5fbf6 !important;
    color: #1f2f22 !important;
    border-top: 1px solid rgba(65,108,70,.12) !important;
    border-bottom: 1px solid rgba(65,108,70,.12) !important;
    background-clip: padding-box !important;
    vertical-align: middle !important;
    transition: background-color .18s ease, box-shadow .18s ease !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service > td:first-child {
    border-left: 1px solid rgba(65,108,70,.12) !important;
    border-radius: 16px 0 0 16px !important;
    box-shadow: -4px 6px 16px rgba(31,47,34,.07) !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service > td:last-child {
    border-right: 1px solid rgba(65,108,70,.12) !important;
    border-radius: 0 16px 16px 0 !important;
    box-shadow: 4px 6px 16px rgba(31,47,34,.07) !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service + tr.service > td {
    border-top-width: 16px !important;
    border-top-color: transparent !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service:hover > td {
    background: #eaf7ec !important;
    box-shadow: 0 8px 20px rgba(31,47,34,.10) !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service .order-block {
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service .service-packet-name {
    display: block !important;
    margin: 0 !important;
    color: #416c46 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service .service-dates {
    display: block !important;
    margin-top: 6px !important;
    color: #5f7464 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service .o_pcount {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 26px !important;
    margin: 8px 0 0 !important;
    padding: 0 9px !important;
    box-sizing: border-box !important;
    background: #e4f5e6 !important;
    color: #416c46 !important;
    border: 1px solid rgba(65,108,70,.14) !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service .o_pcount::before {
    content: "\f007" !important;
    margin-right: 6px !important;
    font-family: "Font Awesome 5 Free" !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

/* =====================================================
   CL Refer - Reservation Cost / Payment Modal
   ===================================================== */

#modalContainer:has(.cl_referer_cost) {
    width: min(760px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 18px !important;
    box-shadow: 0 22px 55px rgba(31,47,34,.22) !important;
    overflow: visible !important;
}

#modalContainer:has(.cl_referer_cost) > .modalTitle {
    display: block !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: transparent !important;
    font-size: 0 !important;
    overflow: visible !important;
}

/* Override the shared scroll shell without changing any other modal. */
#modalContainer:has(#basicModalContent > .cl_referer_cost) #basicModalContent {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 22px 24px 20px !important;
    background: #ffffff !important;
    border: 1px solid rgba(65,108,70,.18) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    color: #12392e;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    overflow-x: auto !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

#modalContainer:has(.cl_referer_cost) #basicModalContent > .note:empty,
#modalContainer:has(.cl_referer_cost) #basicModalContent > .upper-table + br {
    display: none;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost {
    width: 100% !important;
    min-width: 0;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

/* The first, two-cell table remains the dynamic owner summary. */
#modalContainer:has(.cl_referer_cost) table.cl_referer_cost:first-of-type:not(.upper-table) {
    margin-bottom: 18px;
    background: #f5faf6;
    border: 1px solid #dce8df;
    border-radius: 12px;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost:first-of-type:not(.upper-table) thead,
#modalContainer:has(.cl_referer_cost) table.cl_referer_cost:first-of-type:not(.upper-table) tr,
#modalContainer:has(.cl_referer_cost) table.cl_referer_cost:first-of-type:not(.upper-table) th {
    display: block;
    width: auto;
    background: transparent;
    border: none;
    text-align: left;
    white-space: normal;
    overflow: visible;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost:first-of-type:not(.upper-table) th:first-child {
    padding: 12px 16px 4px;
    color: #5f7464;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost:first-of-type:not(.upper-table) th:last-child {
    padding: 0 16px 14px;
    color: #12392e;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table {
    border: 1px solid #dce8df;
    border-radius: 12px;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table th,
#modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table td {
    padding: 11px 12px;
    border: none;
    font-size: 13px;
    line-height: 1.45;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: normal;
    overflow: visible;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table .titles {
    width: 44%;
    text-align: left;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table .claim-currency,
#modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table .pay-currency {
    width: 28%;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table thead th {
    background: #12392e;
    color: #ffffff;
    font-weight: 700;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table thead th:first-child {
    border-radius: 10px 0 0;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

#modalContainer:has(.cl_referer_cost) #basicModalContent table.cl_referer_cost.upper-table tbody td {
    background: #ffffff;
    border-bottom: 1px solid #e5ece7;
    color: #12392e;
    font-weight: 400;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table tbody td:not(.titles) {
    white-space: nowrap;
}

#modalContainer:has(.cl_referer_cost) #basicModalContent table.cl_referer_cost.upper-table tbody tr:nth-child(2) td {
    font-weight: 700;
}

#modalContainer:has(.cl_referer_cost) #basicModalContent table.cl_referer_cost.upper-table tbody tr:has(.red) td {
    background: #fbf2f1;
    border-top: 1px solid #ead5d2;
    color: #813b38;
    font-weight: 700;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost .red {
    color: #813b38 !important;
    font-weight: 700;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table tbody tr:last-child td {
    border-bottom: none;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 10px;
}

#modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table tbody tr:last-child td:last-child {
    border-radius: 0 0 10px;
}

#modalContainer:has(.cl_referer_cost) #basicModalContent > .l {
    margin-top: 16px;
    padding: 11px 14px;
    background: #fcf8ed;
    border-left: 3px solid #b79a51;
    border-radius: 10px;
    color: #514a37;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
}

#modalContainer:has(.cl_referer_cost) a.modalCloseImg {
    display: block !important;
    z-index: 99999 !important;
}

@media (max-width: 767px) {
    #modalContainer:has(.cl_referer_cost) {
        width: calc(100vw - 24px) !important;
        max-width: 760px !important;
    }

    #modalContainer:has(#basicModalContent > .cl_referer_cost) #basicModalContent {
        padding: 16px 14px !important;
    }

    #modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table th,
    #modalContainer:has(.cl_referer_cost) table.cl_referer_cost.upper-table td {
        padding: 9px 6px;
        font-size: 12px;
    }

    #modalContainer:has(.cl_referer_cost) #basicModalContent > .l {
        padding: 10px 12px;
        font-size: 12px;
    }
}

#modalContainer:has(.choose-payer) #basicModalContent {
    display: block !important;

    width: 100% !important;
    min-height: 0 !important;

    padding: 22px 24px !important;
    margin: 0 !important;

    background: #ffffff !important;
    border: none !important;
    border-radius: 22px !important;

    box-shadow: none !important;
    overflow: hidden !important;

    color: #416c46 !important;
    box-sizing: border-box !important;
}

#modalContainer #basicModalContent .choose-payer fieldset {
    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    background: transparent !important;
}

#modalContainer #basicModalContent .choose-payer legend {
    display: flex !important;
    align-items: center !important;

    margin: 0 0 16px !important;
    padding: 0 !important;

    color: #416c46 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

#modalContainer #basicModalContent .choose-payer legend::before {
    content: "\f4c0";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;

    width: 34px;
    height: 34px;

    margin-right: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #bbe4c1;
    color: #416c46;
    border-radius: 50%;

    font-size: 14px;
}

#modalContainer #basicModalContent .choose-payer .row.radio {
    margin: 10px 0 !important;
}

#modalContainer #basicModalContent .choose-payer .row.radio label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;

    min-height: 38px !important;
    padding: 0 12px !important;

    background: #f5fbf6 !important;
    border: 1px solid rgba(65,108,70,.12) !important;
    border-radius: 12px !important;

    color: #416c46 !important;
    font-size: 14px !important;
    font-weight: 800 !important;

    cursor: pointer !important;
}

#modalContainer #basicModalContent .choose-payer input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #416c46 !important;
}

#modalContainer #basicModalContent .choose-payer .row:last-child {
    margin-top: 18px !important;
    text-align: center !important;
}

#modalContainer #basicModalContent .choose-payer button.save {
    min-width: 150px !important;
    height: 40px !important;

    background: linear-gradient(180deg, #4d7b52, #416c46) !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 12px !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    box-shadow: 0 10px 22px rgba(31,47,34,.18) !important;

    cursor: pointer !important;
    opacity: 1 !important;
}

#modalContainer #basicModalContent .choose-payer button.save:hover {
    background: linear-gradient(180deg, #5b8b60, #4d7b52) !important;
}
/* =====================================================
   09.15 Resort Life Messages Popup
   ===================================================== */

#messages-popup.open {
    width: 760px !important;
    max-width: 92vw !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 82vh !important;

    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%) !important;
    top: 9vh !important;

    padding: 0 !important;

    background: #ffffff !important;
    background-image: none !important;

    border: none !important;
    border-radius: 24px !important;

    box-shadow: 0 24px 70px rgba(31,47,34,.24) !important;

    overflow: hidden !important;
}

/* Header */

#messages-popup .messages-caption {
    height: 58px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: linear-gradient(180deg, #4d7b52, #416c46) !important;
    color: #ffffff !important;

    border: none !important;
}

#messages-popup .message-subject {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 900 !important;
}

#messages-popup .message-subject::before {
    content: "\f0e0";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

/* Close */

#messages-popup .messages-close {
    position: absolute !important;
    top: 14px !important;
    right: 16px !important;

    width: 30px !important;
    height: 30px !important;

    border-radius: 50% !important;
    background: rgba(255,255,255,.18) !important;

    cursor: pointer !important;
}

#messages-popup .messages-close::before {
    content: "×";
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

/* Content */

#messages-popup .messages-content {
    padding: 22px 26px 28px !important;

    background:
        radial-gradient(circle at 50% 0%, rgba(187,228,193,.32), transparent 55%),
        #ffffff !important;

    max-height: calc(82vh - 58px) !important;
    overflow-y: auto !important;
}

/* New message tab */

#messages-popup .messages-new-wrapper > input[type="radio"] {
    display: none !important;
}

#messages-popup .messages-new-wrapper > label {
    display: inline-flex !important;
    align-items: center !important;

    margin: 0 0 18px !important;
    padding: 9px 16px !important;

    background: #bbe4c1 !important;
    color: #416c46 !important;

    border-radius: 999px !important;

    font-size: 14px !important;
    font-weight: 800 !important;
}

/* A sole, checked compose tab needs no visible tab switch. */
#messages-popup .messages-content > .messages-new-wrapper:only-child:has(> .message-form)
    > input[name="msg"][type="radio"]:checked:only-of-type + label {
    display: none !important;
}

#messages-popup .messages-content > .messages-new-wrapper:only-child:has(
    > input[name="msg"][type="radio"]:checked:only-of-type
) > .message-form .claim + .chosen-container {
    margin-top: 0 !important;
}

/* Form */

#messages-popup .message-form {
    max-width: 620px !important;
    margin: 0 auto !important;
}

#messages-popup .chosen-container,
#messages-popup textarea.text {
    width: 100% !important;
    max-width: 100% !important;
}

#messages-popup .chosen-single,
#messages-popup textarea.text {
    min-height: 42px !important;

    background: #ffffff !important;
    border: 1px solid rgba(65,108,70,.22) !important;
    border-radius: 12px !important;

    box-shadow: 0 3px 10px rgba(31,47,34,.08) !important;

    color: #1f2f22 !important;
    font-size: 14px !important;
}

#messages-popup .chosen-single {
    display: flex !important;
    align-items: center !important;

    padding: 0 36px 0 14px !important;
    line-height: 42px !important;
}

#messages-popup .chosen-single span {
    color: #1f2f22 !important;
    font-weight: 600 !important;
}

#messages-popup textarea.text {
    min-height: 92px !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    resize: vertical !important;
}

/* Spacing */

#messages-popup .chosen-container {
    margin-bottom: 12px !important;
}

#messages-popup .messagecategory-note {
    display: none !important;
}

/* Attach */

#messages-popup .attach {
    margin: 14px 0 18px !important;
    padding: 14px 16px !important;

    background: #f5fbf6 !important;
    border: 1px solid rgba(65,108,70,.12) !important;
    border-radius: 14px !important;

    color: #416c46 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

#messages-popup .attach input[type="file"] {
    margin-bottom: 8px !important;
}

/* Send */

#messages-popup button.message-sent {
    display: block !important;

    min-width: 160px !important;
    height: 42px !important;

    margin: 0 auto !important;

    background: linear-gradient(180deg, #4d7b52, #416c46) !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 13px !important;

    font-size: 14px !important;
    font-weight: 900 !important;

    box-shadow: 0 10px 22px rgba(31,47,34,.18) !important;

    opacity: 1 !important;
}

#messages-popup button.message-sent:disabled {
    background: #dfe8e1 !important;
    color: #7f927f !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* =====================================================
   09.17 Favorites Page — Resort Life Polish
   ===================================================== */

/* Search keeps SAMO's original inline footprint; only the painted control grows. */
.samo_container.search_hotel #scrollto table.res td.favorites-cell > .favorites {
    position: relative;
    background: none !important;
}

.samo_container.search_hotel #scrollto table.res td.favorites-cell > .favorites::before {
    content: "\f004";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    border: 1px solid rgba(65,108,70,.14);
    border-radius: 10px;
    background: #f3f8f4;
    color: #637c67;
    font-family: "Font Awesome 6 Free";
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.samo_container.search_hotel #scrollto table.res td.favorites-cell > .favorites:active::before {
    background: #e3efe5;
    border-color: #58885d;
    color: #416c46;
}

/* A short overlay above the heart leaves Price and Statistics in place. */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .samo_container.search_hotel #scrollto table.res td.favorites-cell > .favorites::after {
        content: "Save";
        position: absolute;
        bottom: calc(50% + 16px);
        left: 50%;
        z-index: 3;
        transform: translate(-50%, 3px);
        width: max-content;
        padding: 1px 8px;
        border: 1px solid rgba(65,108,70,.14);
        border-radius: 7px;
        background: #f3f8f4;
        color: #416c46;
        font-size: 11px;
        font-weight: 700;
        line-height: 14px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    html[lang="uk"] .samo_container.search_hotel #scrollto table.res td.favorites-cell > .favorites::after {
        content: "Зберегти";
    }

    .samo_container.search_hotel #scrollto table.res td.favorites-cell > .favorites:hover::before {
        background: #eaf4ec;
        border-color: #58885d;
        color: #416c46;
    }

    .samo_container.search_hotel #scrollto table.res td.favorites-cell > .favorites:hover::after {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 767px) {
    .samo_container.search_hotel #scrollto table.res td.favorites-cell > .favorites::before {
        width: 40px;
        height: 40px;
    }
}

/* Scope only for the Favorites results page */
body:has(.resultset table.res td.favorites) > .samo_container {
    width: min(1200px, calc(100% - 32px)) !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Main green wrapper */
body:has(.resultset table.res td.favorites)
.container.panel {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 12px !important;

    background: #bbe4c1 !important;
    border: 1px solid rgba(65,108,70,.12) !important;
    border-radius: 18px !important;

    box-sizing: border-box !important;

    box-shadow:
        0 12px 30px rgba(31,47,34,.08),
        inset 0 1px 0 rgba(255,255,255,.45) !important;
}

/* Resultset fills the card */
body:has(.resultset table.res td.favorites)
.container.panel > .resultset {
    width: 100% !important;
    margin: 0 !important;
}

/* Favorites table */
body:has(.resultset table.res td.favorites)
.resultset > table.res {
    width: 100% !important;

    margin: 0 !important;

    border-collapse: separate !important;
    border-spacing: 0 !important;

    background: #ffffff !important;
    border: 1px solid rgba(65,108,70,.12) !important;
    border-radius: 14px !important;

    overflow: hidden !important;

    box-shadow: 0 8px 22px rgba(31,47,34,.08) !important;
}

/* Header */
body:has(.resultset table.res td.favorites)
.resultset > table.res thead th {
    padding: 11px 12px !important;

    background: linear-gradient(
        180deg,
        #4d7b52 0%,
        #416c46 100%
    ) !important;

    color: #ffffff !important;

    border: none !important;

    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;

    text-align: left !important;
    vertical-align: middle !important;

    white-space: normal !important;
}

/* Rounded outer header corners */
body:has(.resultset table.res td.favorites)
.resultset > table.res thead th:first-child {
    border-top-left-radius: 13px !important;
}

body:has(.resultset table.res td.favorites)
.resultset > table.res thead th:last-child {
    border-top-right-radius: 13px !important;
}

/* Result rows */
body:has(.resultset table.res td.favorites)
.resultset > table.res tbody td {
    padding: 13px 12px !important;

    background: #ffffff !important;
    color: #1f2f22 !important;

    border: none !important;
    border-bottom: 1px solid rgba(65,108,70,.09) !important;

    font-size: 12px !important;
    line-height: 1.35 !important;

    vertical-align: middle !important;
}

/* Soft alternating background */
body:has(.resultset table.res td.favorites)
.resultset > table.res tbody tr:nth-child(even) td {
    background: #f5fbf6 !important;
}

body:has(.resultset table.res td.favorites)
.resultset > table.res tbody tr:last-child td {
    border-bottom: none !important;
}

/* Hotel name */
body:has(.resultset table.res td.favorites)
.resultset td.link-hotel {
    color: #416c46 !important;
    font-weight: 800 !important;
}

/* Nights */
body:has(.resultset table.res td.favorites)
.resultset td.c {
    color: #416c46 !important;
    font-weight: 800 !important;
    text-align: center !important;
}

/* Price button */
body:has(.resultset table.res td.favorites)
.resultset td.td_price a {
    text-decoration: none !important;
}

body:has(.resultset table.res td.favorites)
.resultset .price_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 34px !important;

    padding: 0 13px !important;

    background: #ffffff !important;
    color: #416c46 !important;

    border: 1px solid rgba(65,108,70,.24) !important;
    border-radius: 10px !important;

    font-size: 13px !important;
    font-weight: 900 !important;

    white-space: nowrap !important;

    box-shadow: 0 4px 12px rgba(31,47,34,.08) !important;
}

body:has(.resultset table.res td.favorites)
.resultset .price_button:hover {
    background: #d7f0db !important;
    border-color: #416c46 !important;
    transform: translateY(-1px);
}

/* Remove / notification cells */
body:has(.resultset table.res td.favorites)
.resultset td.favorites {
    width: 38px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;

    text-align: center !important;
}

/* Slightly larger click area */
body:has(.resultset table.res td.favorites)
.resultset td.favorites > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 28px !important;
    height: 28px !important;

    box-sizing: border-box;
    border: 1px solid rgba(65,108,70,.14);
    border-radius: 9px !important;
    background-color: #f3f8f4;
    transition: background-color .18s ease, border-color .18s ease;

    cursor: pointer !important;
}

body:has(.resultset table.res td.favorites)
.resultset td.favorites > span:hover {
    background-color: rgba(65,108,70,.10) !important;
    border-color: #58885d;
}

/* Mobile: preserve horizontal table scroll */
@media (max-width: 767px) {
    body:has(.resultset table.res td.favorites)
    > .samo_container {
        width: calc(100% - 16px) !important;
    }

    body:has(.resultset table.res td.favorites)
    .container.panel {
        padding: 8px !important;
    }

    body:has(.resultset table.res td.favorites)
    .container.panel > .resultset {
        overflow-x: auto !important;
        overflow-y: visible !important;
        touch-action: pan-x pan-y !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body:has(.resultset table.res td.favorites)
    .resultset > table.res {
        min-width: 940px !important;
    }
}

/* =====================================================
   09.18 Favorites Page Footer Placement — FINAL
   Do not style footer content here
   ===================================================== */

/* Only the Favorites page */
body:has(.samo_container.favorites) {
    min-height: 100vh !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

/* Favorites content occupies all free vertical space */
body:has(.samo_container.favorites) > .samo_container.favorites {
    flex: 1 0 auto !important;

    width: var(--main-container-width, 1200px) !important;
    max-width: calc(100% - 32px) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    box-sizing: border-box !important;
}

/*
   Footer:
   only positioning and viewport width.
   Typography, grid, padding and height come from the original footer CSS.
*/
body:has(.samo_container.favorites) > footer.rl-footer {
    flex: 0 0 auto !important;
    align-self: stretch !important;

    position: relative !important;
    inset: auto !important;
    transform: none !important;

    width: 100vw !important;
    max-width: none !important;

    margin-top: auto !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: calc(50% - 50vw) !important;

    box-sizing: border-box !important;
}

/* Do not override the original footer component */
body:has(.samo_container.favorites)
> footer.rl-footer
> .rl-footer-inner {
    /* intentionally empty */
}

@media (max-width: 767px) {
    body:has(.samo_container.favorites)
    > .samo_container.favorites {
        width: calc(100% - 16px) !important;
        max-width: none !important;
    }
}

/* =====================================================
   Favorites Page — Footer Placement
   Footer design comes from global .rl-footer styles
   ===================================================== */

body:has(#search_tour.favorites) {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

body:has(#search_tour.favorites) > .samo_container.favorites {
    flex: 1 0 auto !important;
}

body:has(#search_tour.favorites) > footer.rl-footer {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: auto !important;
}
/* =====================================================
   09.17.1 Favorites Results Width Fix
   Must be LAST
   ===================================================== */

/* Main favorites content width */

.samo_container.favorites {
    width: min(1200px, calc(100% - 32px)) !important;
    max-width: 1200px !important;

    margin-left: auto !important;
    margin-right: auto !important;
}

/* Green outer panel follows page width exactly */

.samo_container.favorites > .container.panel {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 12px !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Resultset must fill the whole green panel */

.samo_container.favorites
> .container.panel
> .resultset {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow-x: auto !important;
    overflow-y: visible !important;

    box-sizing: border-box !important;
}

/* Table fills resultset */

.samo_container.favorites
> .container.panel
> .resultset
> table.res {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    table-layout: fixed !important;

    margin: 0 !important;

    box-sizing: border-box !important;
}

/* Better column balance */

.samo_container.favorites table.res th:nth-child(1),
.samo_container.favorites table.res td:nth-child(1) {
    width: 10% !important;
}

.samo_container.favorites table.res th:nth-child(2),
.samo_container.favorites table.res td:nth-child(2) {
    width: 29% !important;
}

.samo_container.favorites table.res th:nth-child(3),
.samo_container.favorites table.res td:nth-child(3) {
    width: 6% !important;
    text-align: center !important;
}

.samo_container.favorites table.res th:nth-child(4),
.samo_container.favorites table.res td:nth-child(4) {
    width: 17% !important;
}

.samo_container.favorites table.res th:nth-child(5),
.samo_container.favorites table.res td:nth-child(5) {
    width: 6% !important;
    text-align: center !important;
}

.samo_container.favorites table.res th:nth-child(6),
.samo_container.favorites table.res td:nth-child(6) {
    width: 16% !important;
}

.samo_container.favorites table.res th:nth-child(7),
.samo_container.favorites table.res td:nth-child(7) {
    width: 10% !important;
}

.samo_container.favorites table.res th:nth-child(8),
.samo_container.favorites table.res td:nth-child(8),
.samo_container.favorites table.res th:nth-child(9),
.samo_container.favorites table.res td:nth-child(9) {
    width: 3% !important;
    text-align: center !important;
}

/* Prevent content from stretching columns */

.samo_container.favorites table.res th,
.samo_container.favorites table.res td {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

/* Keep price compact */

.samo_container.favorites .td_price,
.samo_container.favorites .price_button {
    white-space: nowrap !important;
}

/* Mobile horizontal scroll */

@media (max-width: 767px) {
    .samo_container.favorites {
        width: calc(100% - 16px) !important;
    }

    .samo_container.favorites
    > .container.panel
    > .resultset
    > table.res {
        min-width: 920px !important;
        table-layout: auto !important;
    }
}

/* =====================================================
   09.21 Additional Services Button
   Resort Life Style
   ===================================================== */

button.additional_services{

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    gap:10px !important;

    min-width:290px !important;
    min-height:44px !important;

    margin:18px auto !important;

    padding:0 24px !important;

    position:relative !important;
    z-index:2 !important;

    background:linear-gradient(
        180deg,
        #4d7b52 0%,
        #416c46 100%
    ) !important;

    color:#ffffff !important;

    border:none !important;
    border-radius:12px !important;

    font-family:var(--main-font-family) !important;
    font-size:14px !important;
    font-weight:700 !important;
    letter-spacing:.2px !important;

    cursor:pointer !important;

    box-shadow:
        0 10px 22px rgba(31,47,34,.18),
        inset 0 1px 0 rgba(255,255,255,.10) !important;

    transition:
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease !important;
}

/* Icon */

button.additional_services::before{

    content:"\f0fe";

    font-family:"Font Awesome 6 Free" !important;
    font-weight:900 !important;

    font-size:15px !important;
    line-height:1 !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    flex:0 0 auto !important;

}

/* Hover */

button.additional_services:hover{

    background:linear-gradient(
        180deg,
        #5b8b60 0%,
        #4d7b52 100%
    ) !important;

    transform:translateY(-1px) !important;

    box-shadow:
        0 14px 28px rgba(31,47,34,.22),
        inset 0 1px 0 rgba(255,255,255,.14) !important;

}

/* Active */

button.additional_services:active{

    transform:translateY(0) !important;

    box-shadow:
        0 8px 18px rgba(31,47,34,.18),
        inset 0 2px 4px rgba(0,0,0,.08) !important;

}

/* Focus */

button.additional_services:focus-visible{

    outline:none !important;

    box-shadow:
        0 0 0 4px rgba(65,108,70,.18),
        0 14px 28px rgba(31,47,34,.22) !important;

}

/* Mobile */

@media (max-width:767px){

    button.additional_services{

        width:100% !important;
        min-width:0 !important;

    }

}

/* =====================================================
   09.22 Final Booking Price Card
   ===================================================== */

/* Main final block */

#search_tour fieldset.panel:has(.PRICE_DETAIL),
#bron_info fieldset.panel:has(.PRICE_DETAIL),
.samo_container fieldset.panel:has(.PRICE_DETAIL) {
    float: none !important;

    width: min(620px, calc(100% - 32px)) !important;
    max-width: 620px !important;

    margin: 24px auto 30px !important;
    padding: 24px !important;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255,255,255,.54),
            transparent 50%
        ),
        linear-gradient(
            180deg,
            #d7f0db 0%,
            #c3e7c8 100%
        ) !important;

    border: 1px solid rgba(65,108,70,.14) !important;
    border-radius: 22px !important;

    box-shadow:
        0 18px 44px rgba(31,47,34,.13),
        inset 0 1px 0 rgba(255,255,255,.65) !important;

    color: #355b3a !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Header */

.samo_container fieldset.panel:has(.PRICE_DETAIL) .legend-tag {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    margin: 0 0 8px !important;
    padding: 0 !important;

    color: #416c46 !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: .4px !important;
    text-transform: uppercase !important;
}

.samo_container fieldset.panel:has(.PRICE_DETAIL) .legend-tag::before {
    content: "\f02b" !important;

    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;

    width: 30px !important;
    height: 30px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: rgba(255,255,255,.55) !important;
    border-radius: 50% !important;

    font-size: 13px !important;
}

/* Remove unnecessary empty tables */

.samo_container fieldset.panel:has(.PRICE_DETAIL) > table.price_details:empty {
    display: none !important;
}

/* Price area */

.samo_container fieldset.panel:has(.PRICE_DETAIL) .PRICE_DETAIL {
    margin: 0 0 18px !important;
    padding: 18px 20px !important;

    background: rgba(255,255,255,.58) !important;

    border: 1px solid rgba(65,108,70,.12) !important;
    border-radius: 16px !important;

    box-shadow:
        0 8px 20px rgba(31,47,34,.07),
        inset 0 1px 0 rgba(255,255,255,.75) !important;
}

.samo_container fieldset.panel:has(.PRICE_DETAIL) .PRICE_DETAIL table {
    width: 100% !important;
    margin: 0 !important;
}

.samo_container fieldset.panel:has(.PRICE_DETAIL) .CLAIMPRICE {
    padding: 0 !important;

    color: #1f2f22 !important;

    font-size: 30px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: -.4px !important;

    text-align: center !important;
}

/* Contact row */

.samo_container fieldset.panel:has(.PRICE_DETAIL) table.price_details {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.samo_container fieldset.panel:has(.PRICE_DETAIL) td.buttons {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.samo_container fieldset.panel:has(.PRICE_DETAIL) table.width100p {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.samo_container fieldset.panel:has(.PRICE_DETAIL) .bron-contacts {
    padding: 0 !important;
    vertical-align: middle !important;
}

.samo_container fieldset.panel:has(.PRICE_DETAIL) .bron-contacts:first-child {
    width: 190px !important;
    padding-right: 14px !important;

    color: #416c46 !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;

    text-align: right !important;
}

.samo_container fieldset.panel:has(.PRICE_DETAIL) input.contacts {
    width: 100% !important;
    min-height: 42px !important;

    padding: 0 14px !important;

    background: #ffffff !important;

    border: 1px solid rgba(65,108,70,.20) !important;
    border-radius: 12px !important;

    color: #1f2f22 !important;

    font-family: var(--main-font-family) !important;
    font-size: 13px !important;

    box-shadow:
        0 4px 12px rgba(31,47,34,.07),
        inset 0 1px 0 rgba(255,255,255,.8) !important;

    outline: none !important;
    box-sizing: border-box !important;
}

.samo_container fieldset.panel:has(.PRICE_DETAIL) input.contacts:focus {
    border-color: #416c46 !important;

    box-shadow:
        0 0 0 3px rgba(65,108,70,.14),
        0 5px 14px rgba(31,47,34,.08) !important;
}

/* Notice */

.samo_container fieldset.panel:has(.PRICE_DETAIL) .CLAIMPRICE_NOTICE {
    display: block !important;

    margin: 14px 0 0 !important;
    padding: 10px 12px !important;

    background: #fff8e8 !important;

    border: 1px solid rgba(180,120,20,.16) !important;
    border-radius: 11px !important;

    color: #6f5420 !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;

    text-align: center !important;
}

/* Button row */

.samo_container fieldset.panel:has(.PRICE_DETAIL)
table.price_details > tbody > tr:last-child > td.buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;

    margin-top: 18px !important;
}

/* Recalculate */

.samo_container fieldset.panel:has(.PRICE_DETAIL) button.calc {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    min-width: 160px !important;
    min-height: 44px !important;

    padding: 0 20px !important;

    background: #ffffff !important;
    color: #416c46 !important;

    border: 1px solid rgba(65,108,70,.22) !important;
    border-radius: 13px !important;

    font-family: var(--main-font-family) !important;
    font-size: 14px !important;
    font-weight: 800 !important;

    box-shadow: 0 8px 18px rgba(31,47,34,.08) !important;

    cursor: pointer !important;
}

.samo_container fieldset.panel:has(.PRICE_DETAIL) button.calc::before {
    content: "\f021" !important;

    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;

    font-size: 14px !important;
}

.samo_container fieldset.panel:has(.PRICE_DETAIL) button.calc:hover {
    background: #f5fbf6 !important;
    border-color: rgba(65,108,70,.34) !important;

    transform: translateY(-1px) !important;
}

/* Booking */

.samo_container fieldset.panel:has(.PRICE_DETAIL) button.bron {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    min-width: 180px !important;
    min-height: 44px !important;

    padding: 0 22px !important;

    background: linear-gradient(
        180deg,
        #4d7b52 0%,
        #416c46 100%
    ) !important;

    color: #ffffff !important;

    border: none !important;
    border-radius: 13px !important;

    font-family: var(--main-font-family) !important;
    font-size: 14px !important;
    font-weight: 900 !important;

    box-shadow:
        0 11px 24px rgba(31,47,34,.20),
        inset 0 1px 0 rgba(255,255,255,.14) !important;

    cursor: pointer !important;
}

.samo_container fieldset.panel:has(.PRICE_DETAIL) button.bron::before {
    content: "\f058" !important;

    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;

    font-size: 15px !important;
}

.samo_container fieldset.panel:has(.PRICE_DETAIL) button.bron:hover:not(:disabled) {
    background: linear-gradient(
        180deg,
        #5b8b60 0%,
        #4d7b52 100%
    ) !important;

    transform: translateY(-1px) !important;

    box-shadow:
        0 15px 30px rgba(31,47,34,.23),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
}

/* Disabled booking */

.samo_container fieldset.panel:has(.PRICE_DETAIL) button.bron:disabled {
    background: #dfe7e0 !important;
    color: #8b998d !important;

    box-shadow: none !important;

    cursor: not-allowed !important;
    opacity: 1 !important;
}

/* Mobile */

@media (max-width: 767px) {
    .samo_container fieldset.panel:has(.PRICE_DETAIL) {
        width: calc(100% - 16px) !important;
        padding: 18px !important;
    }

    .samo_container fieldset.panel:has(.PRICE_DETAIL) .bron-contacts,
    .samo_container fieldset.panel:has(.PRICE_DETAIL) .bron-contacts:first-child {
        display: block !important;
        width: 100% !important;

        padding: 0 !important;
        text-align: left !important;
    }

    .samo_container fieldset.panel:has(.PRICE_DETAIL) .bron-contacts:first-child {
        margin-bottom: 7px !important;
    }

    .samo_container fieldset.panel:has(.PRICE_DETAIL)
    table.price_details > tbody > tr:last-child > td.buttons {
        flex-direction: column !important;
    }

    .samo_container fieldset.panel:has(.PRICE_DETAIL) button.calc,
    .samo_container fieldset.panel:has(.PRICE_DETAIL) button.bron {
        width: 100% !important;
    }
}
/* =====================================================
   10. Weather Widget
   ===================================================== */

/* Resort Life: corporate weather widget */

@media screen and (min-width: 761px) {
    .samo_container:has(#rlt-weather-widget) {
        width: var(--mlt-workspace-width, var(--main-container-width, 1200px)) !important;
        max-width: var(--mlt-workspace-max, calc(100% - 32px)) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
}

/* =====================================================
   Authenticated Desktop Workspace
   Hotel search, stop sales and unpaid reservations; header, footer and modals stay independent.
   ===================================================== */

@media screen and (min-width: 1024px) {
    body:has(> #header .nav-center > li.profile) > .samo_container.search_hotel:not(:has(#loginbox)),
    body > .samo_container.hotel_stopsale:has(> #hotel_stopsale):not(:has(#loginbox)),
    body:has(> #header .nav-center > li.profile) > .samo_container.claim_unpaid:has(> #claim_unpaid):not(:has(#loginbox)) {
        --mlt-workspace-width: calc(100% - 48px);
        --mlt-workspace-max: 1680px;
        width: var(--mlt-workspace-width);
        max-width: var(--mlt-workspace-max);
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    body:has(> #header .nav-center > li.profile) > .samo_container.search_hotel:not(:has(#loginbox)) > #search_tour {
        /* Keep the search width token out of the sibling Messages popup. */
        --main-container-width: 100%;
    }

    body:has(> #header .nav-center > li.profile) > .samo_container.search_hotel:not(:has(#loginbox)) > #search_tour > .resultset {
        max-width: calc(100% - 20px) !important;
        overflow-x: auto;
    }
}

/* =====================================================
   Hotel Stop Sale - Operational Workspace
   Page-owned controls and results only; Chosen and SAMO keep their behavior.
   ===================================================== */

.samo_container.hotel_stopsale > #hotel_stopsale,
.samo_container.hotel_stopsale > #hotel_stopsale > .controls {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.samo_container.hotel_stopsale > #hotel_stopsale > .controls > .searchmodes {
    margin: 0 0 12px !important;
    flex-wrap: wrap;
}

.samo_container.hotel_stopsale > #hotel_stopsale .searchmodes .searchmode_selected {
    padding: 10px 18px !important;
    border: 1px solid rgba(65,108,70,.12) !important;
    border-radius: 11px !important;
    background: #e5f2e8;
    color: #12392e;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.samo_container.hotel_stopsale > #hotel_stopsale > .controls > table.panel {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 18px;
    box-sizing: border-box;
    border: 1px solid rgba(65,108,70,.12);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px !important;
    background: #f3f8f4;
    box-shadow: 0 6px 20px rgba(31,47,34,.05) !important;
}

.samo_container.hotel_stopsale > #hotel_stopsale > .controls > table.panel > tbody,
.samo_container.hotel_stopsale > #hotel_stopsale > .controls > table.panel > tbody > tr,
.samo_container.hotel_stopsale > #hotel_stopsale .controls .td_panel,
.samo_container.hotel_stopsale > #hotel_stopsale .controls .td_panel > table {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-spacing: 0;
    box-sizing: border-box;
}

.samo_container.hotel_stopsale > #hotel_stopsale .controls .td_panel > table > tbody {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1.35fr) max-content;
    gap: 12px 16px;
    align-items: center;
}

.samo_container.hotel_stopsale > #hotel_stopsale .controls .td_panel > table > tbody > tr {
    display: contents;
}

.samo_container.hotel_stopsale > #hotel_stopsale .controls .td_panel > table > tbody > tr > td {
    width: auto;
    min-width: 0;
    padding: 0;
    white-space: normal;
}

.samo_container.hotel_stopsale > #hotel_stopsale .controls td.title {
    color: #5f7464;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

/* Chosen owns visibility; only its inline fixed width is overridden. */
.samo_container.hotel_stopsale > #hotel_stopsale .controls :is(select, .chosen-container) {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.samo_container.hotel_stopsale > #hotel_stopsale .controls select,
.samo_container.hotel_stopsale > #hotel_stopsale .controls .chosen-container .chosen-single {
    height: 38px;
    min-height: 38px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid rgba(65,108,70,.18);
    border-radius: 9px;
    background: #fff;
    color: #355b3a;
    font-size: 13px;
    line-height: 36px;
    box-shadow: none;
}

.samo_container.hotel_stopsale > #hotel_stopsale .controls .chosen-single div b {
    background-position-y: 9px;
}

.samo_container.hotel_stopsale > #hotel_stopsale .controls select:focus-visible,
.samo_container.hotel_stopsale > #hotel_stopsale .controls .chosen-container-active .chosen-single {
    border-color: rgba(65,108,70,.50);
    box-shadow: 0 0 0 3px rgba(65,108,70,.08);
    outline: none;
}

.samo_container.hotel_stopsale > #hotel_stopsale .controls .chosen-drop {
    border-color: rgba(65,108,70,.18);
    border-radius: 0 0 9px 9px;
}

.samo_container.hotel_stopsale > #hotel_stopsale .controls button.load {
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 0 22px !important;
    border: 1px solid rgba(65,108,70,.20) !important;
    border-radius: 10px;
    background: #416c46 !important;
    color: #fff;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.3;
    box-shadow: 0 5px 14px rgba(31,47,34,.10) !important;
    transition: background-color .15s ease;
}

.samo_container.hotel_stopsale > #hotel_stopsale .controls button.load:hover:not(:disabled) {
    background: #58885d !important;
    transform: none;
}

.samo_container.hotel_stopsale > #hotel_stopsale .controls button.load:focus-visible {
    outline: 2px solid #58885d;
    outline-offset: 3px;
}

.samo_container.hotel_stopsale > #hotel_stopsale > .resultset {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Empty resultsets are cleared by SAMO when a filter changes. */
.samo_container.hotel_stopsale > #hotel_stopsale > .resultset:has(> table.res) {
    border: 1px solid rgba(65,108,70,.12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(31,47,34,.05);
}

.samo_container.hotel_stopsale > #hotel_stopsale > .resultset > table.res {
    width: 100%;
    min-width: 1000px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #355b3a;
}

.samo_container.hotel_stopsale > #hotel_stopsale > .resultset > table.res > thead > tr > th {
    padding: 11px 12px;
    border: 0;
    background: #12392e;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    white-space: normal;
    vertical-align: middle;
}

/* Auto layout respects nowrap dates and leaves the note column flexible. */
.samo_container.hotel_stopsale > #hotel_stopsale table.res th:nth-child(1) { width: 16%; }
.samo_container.hotel_stopsale > #hotel_stopsale table.res th:nth-child(2) { width: 20%; }
.samo_container.hotel_stopsale > #hotel_stopsale table.res th:nth-child(3) { width: 12%; }
.samo_container.hotel_stopsale > #hotel_stopsale table.res th:nth-child(4) { width: 7%; }
.samo_container.hotel_stopsale > #hotel_stopsale table.res th:nth-child(5) { width: 17%; }

.samo_container.hotel_stopsale > #hotel_stopsale > .resultset > table.res > tbody > tr > td {
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid rgba(65,108,70,.09);
    background: #fff;
    color: #355b3a;
    font-size: 13px;
    line-height: 1.4;
    vertical-align: middle;
    transition: background-color .15s ease;
}

.samo_container.hotel_stopsale > #hotel_stopsale table.res > tbody > tr:nth-child(even) > td:not([colspan]) {
    background: #fafcfb;
}

.samo_container.hotel_stopsale > #hotel_stopsale table.res > tbody > tr:hover > td:not([colspan]) {
    background: #f4f8f5;
}

.samo_container.hotel_stopsale > #hotel_stopsale table.res > tbody > tr > td[colspan="7"] {
    padding: 11px 14px;
    border-top: 1px solid rgba(65,108,70,.14);
    border-bottom: 1px solid rgba(65,108,70,.12);
    background: #eef6ef;
    color: #5f7464;
}

.samo_container.hotel_stopsale > #hotel_stopsale table.res td[colspan="7"] > span.link[data-hotel] {
    color: #12392e;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.samo_container.hotel_stopsale > #hotel_stopsale table.res td[colspan="7"] > span.link[data-hotel]:hover {
    color: #58885d;
    text-decoration: underline;
}

.samo_container.hotel_stopsale > #hotel_stopsale table.res > tbody > tr > td:first-child:not([colspan]) {
    color: #294c34;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.samo_container.hotel_stopsale > #hotel_stopsale > .resultset > table.res > thead > tr > th:nth-child(6),
.samo_container.hotel_stopsale > #hotel_stopsale > .resultset > table.res > tbody > tr > td:nth-child(6):not([colspan]) {
    display: none;
}

.samo_container.hotel_stopsale > #hotel_stopsale table.res > tbody > tr > td:nth-child(7) {
    color: #425748;
    line-height: 1.45;
}

.samo_container.hotel_stopsale > #hotel_stopsale table.res > tbody > tr > td:nth-child(7) .nw {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1023px) {
    body > .samo_container.hotel_stopsale:has(> #hotel_stopsale):not(:has(#loginbox)) {
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 767px) {
    .samo_container.hotel_stopsale > #hotel_stopsale > .controls > table.panel {
        padding: 16px;
    }

    .samo_container.hotel_stopsale > #hotel_stopsale .controls .td_panel > table > tbody {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .samo_container.hotel_stopsale > #hotel_stopsale .controls td.title {
        margin-bottom: 6px;
    }

    .samo_container.hotel_stopsale > #hotel_stopsale .controls .td_panel > table > tbody > tr > td:not(.title):not(.hs-refresh) {
        margin-bottom: 12px;
    }

    .samo_container.hotel_stopsale > #hotel_stopsale .controls td.hs-empty {
        display: none;
    }

    .samo_container.hotel_stopsale > #hotel_stopsale .controls button.load {
        width: 100%;
        min-height: 44px !important;
    }
}

/* =====================================================
   Unpaid Reservations - Financial Workspace
   Scoped to the authenticated claim_unpaid page, outside modal containers.
   ===================================================== */

.samo_container.claim_unpaid > #claim_unpaid,
.samo_container.claim_unpaid > #claim_unpaid > .controls.container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.samo_container.claim_unpaid > #claim_unpaid > .controls > .searchmodes {
    margin: 0 0 10px;
    flex-wrap: wrap;
}

.samo_container.claim_unpaid > #claim_unpaid .searchmodes .searchmode_selected {
    background: #e5f2e8;
    color: #12392e;
    font-weight: 800;
}

.samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate !important;
    border-spacing: 0;
    margin: 0 0 16px;
    padding: 12px;
    background: #f3f8f4;
    border: 1px solid rgba(65,108,70,.14);
    border-radius: 14px !important;
}

.samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel td {
    padding: 4px 8px;
    white-space: normal;
    vertical-align: top;
}

.samo_container.claim_unpaid > #claim_unpaid .controls .label_filter {
    color: #5f7464;
    font-size: 12px;
    font-weight: 600;
}

.samo_container.claim_unpaid > #claim_unpaid .controls :is(.chosen-container, select, input.CLAIM) {
    max-width: 100%;
    box-sizing: border-box;
}

.samo_container.claim_unpaid > #claim_unpaid .controls button.load {
    background: #12392e !important;
    color: #fff;
}

.samo_container.claim_unpaid > #claim_unpaid .controls button.load:hover {
    background: #1b4a3c !important;
}

.samo_container.claim_unpaid > #claim_unpaid > .resultset {
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 auto !important;
    padding: 0;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(65,108,70,.12);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31,47,34,.06);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.samo_container.claim_unpaid > #claim_unpaid > .resultset > table.std.res {
    width: 100%;
    min-width: 1180px;
    margin: 0;
    table-layout: fixed;
    border-collapse: separate !important;
    border-spacing: 0;
    color: #34483b;
    font-size: 12px;
    line-height: 1.5;
}

.samo_container.claim_unpaid > #claim_unpaid > .resultset > table > thead > tr > th {
    padding: 12px 10px;
    background: #12392e;
    color: #fff;
    border: 0;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

/* Column shares total 100%; 1180px keeps all eleven columns readable when scrolling. */
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(1) { width: 8%; }
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(2) { width: 12.5%; }
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(3) { width: 11%; }
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(4) { width: 9%; }
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(5) { width: 8%; }
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(6) { width: 9%; }
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(7) { width: 10%; }
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(8) { width: 8%; }
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(9) { width: 9%; }
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(10) { width: 7%; }
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(11) { width: 8.5%; }

.samo_container.claim_unpaid > #claim_unpaid #claims > tr > td {
    padding: 13px 10px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid rgba(65,108,70,.10);
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
    transition: background-color .16s ease;
}

.samo_container.claim_unpaid > #claim_unpaid #claims > tr:nth-child(even) > td {
    background: #f8faf8;
}

.samo_container.claim_unpaid > #claim_unpaid #claims > tr:hover > td {
    background: #f3f8f4;
}

.samo_container.claim_unpaid > #claim_unpaid #claims > tr:last-child > td {
    border-bottom: 0;
}

.samo_container.claim_unpaid > #claim_unpaid #claims > tr > td:first-child {
    color: #5f7464;
    font-size: 11px;
}

.samo_container.claim_unpaid > #claim_unpaid #claims .claiminfo {
    display: inline-block;
    margin-bottom: 5px;
    padding: 3px 6px;
    background: #eef7f0;
    border-radius: 6px;
    color: #12392e;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.samo_container.claim_unpaid > #claim_unpaid #claims .claiminfo:hover {
    background: #e0eee3;
}

.samo_container.claim_unpaid > #claim_unpaid #claims > tr > td:nth-child(2) {
    color: #647369;
    font-size: 11px;
    line-height: 1.6;
}

.samo_container.claim_unpaid > #claim_unpaid #claims > tr > td:nth-child(2) > :is(.green.bold, .red.bold) {
    display: inline-block;
    max-width: 100%;
    margin: 3px 0;
    padding: 4px 7px;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
}

.samo_container.claim_unpaid > #claim_unpaid #claims > tr > td:nth-child(2) > .green.bold {
    background: #eef7f0;
    color: #356c43;
    border: 1px solid rgba(65,108,70,.14);
}

.samo_container.claim_unpaid > #claim_unpaid #claims > tr > td:nth-child(2) > .red.bold {
    background: #fff1f0;
    color: #9a3e39;
    border: 1px solid rgba(154,62,57,.16);
}

.samo_container.claim_unpaid > #claim_unpaid #claims > tr > td:nth-child(5),
.samo_container.claim_unpaid > #claim_unpaid #claims > tr > td.debt {
    color: #1f2f22;
    font-weight: 700;
    text-align: right;
}

.samo_container.claim_unpaid > #claim_unpaid #claims > tr > td.debt {
    color: #12392e;
    font-weight: 800;
}

.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(5),
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(6),
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(8),
.samo_container.claim_unpaid > #claim_unpaid .resultset th:nth-child(10),
.samo_container.claim_unpaid > #claim_unpaid #claims > tr > td:nth-child(8),
.samo_container.claim_unpaid > #claim_unpaid #claims > tr > td:nth-child(10) {
    text-align: right;
}

.samo_container.claim_unpaid > #claim_unpaid #claims > tr > td:nth-child(7),
.samo_container.claim_unpaid > #claim_unpaid #claims > tr > td:nth-child(9) {
    line-height: 1.65;
}

.samo_container.claim_unpaid > #claim_unpaid #claims a.link[href*="/pay_variant"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    max-width: 100%;
    padding: 4px 10px;
    box-sizing: border-box;
    background: #12392e;
    color: #fff;
    border: 1px solid rgba(18,57,46,.18);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.samo_container.claim_unpaid > #claim_unpaid #claims a.link[href*="/pay_variant"]:hover {
    background: #1b4a3c;
    color: #fff;
    box-shadow: 0 3px 8px rgba(18,57,46,.14);
}

.samo_container.claim_unpaid > #claim_unpaid #claims :is(.claiminfo, a.link[href*="/pay_variant"]):focus-visible {
    outline: 2px solid #58885d;
    outline-offset: 2px;
}

/* Unpaid Reservations mobile workspace: paired filters and contained results. */
@media screen and (max-width: 1024px) {
    body > .samo_container.claim_unpaid:has(> #claim_unpaid):not(:has(#loginbox)) {
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-inline: auto;
        box-sizing: border-box;
    }

    .samo_container.claim_unpaid > #claim_unpaid,
    .samo_container.claim_unpaid > #claim_unpaid > .controls.container,
    .samo_container.claim_unpaid > #claim_unpaid > .resultset {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls > .searchmodes {
        display: flex;
        align-items: stretch;
        gap: 8px;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls > .searchmodes > .searchmode {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 150px;
        min-height: 44px;
        min-width: 0;
        max-width: 100%;
        margin: 0 !important;
        box-sizing: border-box;
        text-align: center;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls > .searchmodes :is(.searchmode, .searchmode_button) {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls > .searchmodes .searchmode_button {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        width: 100%;
        box-sizing: border-box;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel {
        display: block;
        max-width: 100%;
        min-width: 0;
        padding: 16px;
        box-sizing: border-box;
        background: #f5faf6;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel > tbody {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    /* SAMO renders labels in row one and their controls in row two. */
    .samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel > tbody > tr:nth-child(-n+2) {
        display: contents;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel > tbody > tr > td {
        display: block;
        min-width: 0;
        padding: 0;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel > tbody > tr:first-child > td:nth-child(1) { order: 1; }
    .samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel > tbody > tr:nth-child(2) > td:nth-child(1) { order: 2; }
    .samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel > tbody > tr:first-child > td:nth-child(2) { order: 3; }
    .samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel > tbody > tr:nth-child(2) > td:nth-child(2) { order: 4; }
    .samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel > tbody > tr:first-child > td:nth-child(3) { order: 5; }
    .samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel > tbody > tr:nth-child(2) > td:nth-child(3) { order: 6; }

    .samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel > tbody > tr:first-child > td:not(:first-child) {
        margin-top: 6px;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls > table.panel > tbody > tr:nth-child(n+3) {
        display: block;
        order: 7;
        margin-top: 6px;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls :is(.chosen-container, select, input.CLAIM) {
        width: 100% !important;
        min-width: 0;
        margin-right: 0;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls :is(select, input.CLAIM, .chosen-single, button.load) {
        min-height: 44px !important;
        box-sizing: border-box;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls .chosen-single {
        display: flex;
        align-items: center;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls .chosen-single > div {
        display: flex;
        align-items: center;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls .chosen-single > div > b {
        height: 20px;
    }

    .samo_container.claim_unpaid > #claim_unpaid > .controls button.load {
        width: 100%;
        margin: 0;
    }
}

#rlt-weather-widget.rlt-weather-widget {
    width: auto;
    box-sizing: border-box;
    margin: 18px 10px 14px;
    padding: 15px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background:
        linear-gradient(
            135deg,
            #f4faf5 0%,
            #edf7ef 100%
        );

    border: 1px solid rgba(63, 112, 72, 0.22);
    border-left: 5px solid #3f7048;
    border-radius: 13px;

    box-shadow:
        0 8px 24px rgba(43, 79, 50, 0.09);

    color: #314537;
    font-family: Arial, sans-serif;
}

#rlt-weather-widget .rlt-weather-main {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 14px;
}

#rlt-weather-widget .rlt-weather-icon {
    flex: 0 0 auto;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid rgba(63, 112, 72, 0.18);
    border-radius: 11px;

    box-shadow:
        0 4px 12px rgba(43, 79, 50, 0.08);

    font-size: 24px;
    line-height: 1;
}

#rlt-weather-widget .rlt-weather-copy {
    min-width: 0;
}

#rlt-weather-widget .rlt-weather-label {
    margin-bottom: 3px;

    color: #67806d;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.55px;
    text-transform: uppercase;
}

#rlt-weather-widget .rlt-weather-title {
    color: #294c31;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

#rlt-weather-widget .rlt-weather-subtitle {
    margin-top: 3px;

    color: #718277;

    font-size: 12px;
    line-height: 1.3;
}

#rlt-weather-widget .rlt-weather-details {
    flex: 0 0 auto;

    display: flex;
    align-items: stretch;
    gap: 8px;
}

#rlt-weather-widget .rlt-weather-detail {
    min-width: 80px;
    padding: 8px 12px;

    background: rgba(255, 255, 255, 0.82);

    border: 1px solid rgba(63, 112, 72, 0.15);
    border-radius: 9px;

    box-shadow:
        0 2px 8px rgba(43, 79, 50, 0.04);

    text-align: center;
}

#rlt-weather-widget .rlt-weather-detail span,
#rlt-weather-widget .rlt-weather-detail strong {
    display: block;
}

#rlt-weather-widget .rlt-weather-detail span {
    margin-bottom: 3px;

    color: #7a8b7e;

    font-size: 10px;
    line-height: 1.2;
}

#rlt-weather-widget .rlt-weather-detail strong {
    color: #3f7048;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

#rlt-weather-widget .rlt-weather-status {
    color: #718277;

    font-size: 12px;
}

/* Soft corporate hover */

#rlt-weather-widget.rlt-weather-widget {
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

#rlt-weather-widget.rlt-weather-widget:hover {
    border-color: rgba(63, 112, 72, 0.34);

    box-shadow:
        0 10px 28px rgba(43, 79, 50, 0.13);

    transform: translateY(-1px);
}

/* Tablet and mobile */

@media screen and (max-width: 760px) {
    #rlt-weather-widget.rlt-weather-widget {
        margin: 12px 5px;
        padding: 13px;

        display: block;

        border-left-width: 4px;

        touch-action: pan-y;
    }

    #rlt-weather-widget .rlt-weather-details {
        width: 100%;
        margin-top: 12px;

        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    #rlt-weather-widget .rlt-weather-detail {
        min-width: 0;
        padding: 8px 5px;
    }

    #rlt-weather-widget.rlt-weather-widget:hover {
        transform: none;
    }
}

@media screen and (max-width: 430px) {
    #rlt-weather-widget .rlt-weather-icon {
        width: 41px;
        height: 41px;

        font-size: 22px;
    }

    #rlt-weather-widget .rlt-weather-title {
        font-size: 15px;
    }

    #rlt-weather-widget .rlt-weather-label {
        font-size: 9px;
    }

    #rlt-weather-widget .rlt-weather-detail-location {
        display: none;
    }

    #rlt-weather-widget .rlt-weather-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* =====================================================
   Book ID Button — Final Footer Safe Fix
   Must be placed at the END of customer.css
   ===================================================== */

#bron-info-link-to-page > a.external {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;

    float: right !important;
    clear: both !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;

    width: auto !important;
    min-width: 156px !important;
    height: 44px !important;

    margin: 18px 26px 20px 0 !important;
    padding: 0 22px !important;

    box-sizing: border-box !important;

    background:
        linear-gradient(
            180deg,
            #5b8b60 0%,
            #416c46 100%
        ) !important;

    background-image:
        linear-gradient(
            180deg,
            #5b8b60 0%,
            #416c46 100%
        ) !important;

    color: #ffffff !important;

    border: 1px solid rgba(65,108,70,.24) !important;
    border-radius: 999px !important;

    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    text-indent: 0 !important;
    text-align: center !important;
    text-decoration: none !important;

    white-space: nowrap !important;
    overflow: visible !important;

    opacity: 1 !important;

    box-shadow:
        0 12px 26px rgba(31,47,34,.22),
        inset 0 1px 0 rgba(255,255,255,.16) !important;

    cursor: pointer !important;

    z-index: 20 !important;

    transition:
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease !important;
}

/* Book ID icon */

#bron-info-link-to-page > a.external::before {
    content: "\f02b" !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    width: 18px !important;

    margin: 0 !important;

    font-family: "Font Awesome 6 Free" !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    color: #ffffff !important;

    text-indent: 0 !important;
}

/* Hover */

#bron-info-link-to-page > a.external:hover {
    background:
        linear-gradient(
            180deg,
            #67996c 0%,
            #4d7b52 100%
        ) !important;

    color: #ffffff !important;

    transform: translateY(-2px) !important;

    box-shadow:
        0 16px 32px rgba(31,47,34,.27),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
}

/* Active */

#bron-info-link-to-page > a.external:active {
    transform: translateY(0) !important;

    background: #416c46 !important;

    box-shadow:
        0 7px 16px rgba(31,47,34,.18) !important;
}

/* Ensure footer cannot cover the button */

.rl-footer {
    clear: both !important;
}

#bron-info-link-to-page > a.external + .rl-footer,
#bron-info-link-to-page > a.external ~ .rl-footer {
    clear: both !important;
}

/* =====================================================
   99.1 Search Result Status Surfaces
   Shared desktop rows and mobile cards; Stop Sale has priority.
   ===================================================== */

.samo_container #scrollto table.res tbody tr.price_info {
    background: #ffffff !important;
}

/* Paint the surface once on the row, including gaps in mobile cards. */
.samo_container #scrollto table.res tbody tr.price_info > td,
.samo_container #scrollto table.res tbody tr.price_info:hover > td {
    background: transparent !important;
}

.samo_container #scrollto table.res tbody tr.price_info:not(.red_row):is(
    .green_row, :has(td.hotel-seats span.hotel_availability_Y)
) {
    background: rgba(65,108,70,.12) !important;
}

.samo_container #scrollto table.res tbody tr.price_info.red_row {
    background: rgba(190,55,55,.12) !important;
}

.samo_container #scrollto table.res tbody tr.price_info.red_row > td,
.samo_container #scrollto table.res tbody tr.price_info.red_row > td a {
    color: #9f4d4d !important;
}

.samo_container #scrollto table.res tbody tr.price_info:has(
    td.hotel-seats span.hotel_availability_Y
) > td {
    border-bottom-color: #c3d8c6 !important;
    transition:
        background-color .18s ease,
        box-shadow .18s ease !important;
}

.samo_container #scrollto table.res tbody tr:has(
    td.hotel-seats span.hotel_availability_Y
) > td:first-child {
    box-shadow: inset 4px 0 0 #416c46 !important;
}

/* Mobile */

@media (max-width: 767px) {
    #bron-info-link-to-page > a.external {
        float: none !important;

        width: calc(100% - 32px) !important;
        max-width: 260px !important;

        margin: 16px auto 20px !important;
    }
}

/* =====================================================
   Login Page Viewport Fit
   ===================================================== */

@media (min-width:768px){

html:has(#loginbox),
body:has(#loginbox){
    height:100vh !important;
    overflow:hidden !important;
}

body:has(#loginbox){
    display:flex !important;
    flex-direction:column !important;
}

body:has(#loginbox) .samo_container{
    flex:1 1 auto !important;
    min-height:0 !important;
}

body:has(#loginbox) .container:has(#loginbox){

    height:100% !important;

    display:flex !important;
    justify-content:center !important;
    align-items:flex-start !important;

    padding-top:24px !important;
    padding-bottom:18px !important;

    box-sizing:border-box !important;
}

body:has(#loginbox) .logon-wrapper{
    transform:translateY(-48px) scale(.92);
    transform-origin:top center;
}

body:has(#loginbox) #loginbox{
    padding:24px 30px 22px !important;
}

body:has(#loginbox) .rl-footer{
    flex:0 0 auto !important;
    margin-top:0 !important;
}

}

/* =====================================================
   Marina Life Desktop Login Experience — Production
   Full-page agency form; compact mobile copy, no modal marketing.
   ===================================================== */

.mlt-login-desktop-intro,
.mlt-login-desktop-value,
.mlt-login-mobile-positioning {
    display: none;
}

@media (max-width: 767px) {
    body:has(#loginbox) .logon-wrapper > .mlt-login-mobile-positioning {
        display: block;
        max-width: 100%;
        min-width: 0;
        margin: 12px 0 0;
        padding: 0;
        color: #5f7464;
        font-family: Tahoma, Arial, sans-serif;
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
        white-space: normal;
        overflow-wrap: break-word;
    }
}

@media (min-width: 768px) {
    html:has(#loginbox):has(.mlt-login-desktop-intro) {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body:has(#loginbox):has(.mlt-login-desktop-intro) {
        height: auto !important;
        min-height: 100vh;
        min-height: 100svh;
        overflow: hidden !important;
    }

    /* One full-width scene owns the edge leaves and clips only artwork. */
    body:has(#loginbox) .samo_container:has(.mlt-login-desktop-intro) {
        position: relative !important;
        isolation: isolate;
        display: flex;
        align-items: center;
        flex: 1 0 auto !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 520px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        overflow: hidden !important;
        background:
            linear-gradient(to bottom, #fff 0, rgba(255,255,255,0) 140px),
            radial-gradient(ellipse at 50% 48%, rgba(187,228,193,.18), transparent 64%),
            #fbfdf9;
    }

    body:has(#loginbox) .samo_container:has(.mlt-login-desktop-intro)::before,
    body:has(#loginbox) .samo_container:has(.mlt-login-desktop-intro)::after {
        content: "" !important;
        display: block !important;
        position: absolute;
        width: 390px;
        max-width: 40%;
        height: 440px;
        transform: none;
        pointer-events: none;
        z-index: 0;
        background-repeat: no-repeat;
        background-size: contain;
        mix-blend-mode: multiply;
        -webkit-mask-image: radial-gradient(ellipse at center, #000 24%, transparent 70%);
        mask-image: radial-gradient(ellipse at center, #000 24%, transparent 70%);
    }

    body:has(#loginbox) .samo_container:has(.mlt-login-desktop-intro)::before {
        top: auto;
        right: auto;
        bottom: -60px;
        left: -145px;
        background-image: url("/public/pict/MLT_Monstera/Monstera_01.png");
        background-position: left bottom;
        opacity: .34;
    }

    body:has(#loginbox) .samo_container:has(.mlt-login-desktop-intro)::after {
        top: 0;
        right: -130px;
        bottom: auto;
        left: auto;
        background-image: url("/public/pict/MLT_Monstera/Monstera_02.png");
        background-position: right top;
        opacity: .24;
    }

    body:has(#loginbox) .container:has(.mlt-login-desktop-intro) {
        position: relative !important;
        width: 100% !important;
        max-width: 1360px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 48px 48px 56px !important;
        display: block !important;
        box-sizing: border-box !important;
        background: transparent !important;
        z-index: 1;
    }

    /* Retire the old inner glow and secondary-asset layers for this scene. */
    body:has(#loginbox) .container:has(.mlt-login-desktop-intro)::before,
    body:has(#loginbox) .container:has(.mlt-login-desktop-intro)::after {
        content: none !important;
        display: none !important;
    }

    body:has(#loginbox) .logon-wrapper:has(> .mlt-login-desktop-intro) {
        --mlt-login-side-offset: clamp(0px, calc(20vw - 256px), 64px);
        display: grid !important;
        /* Preserve column widths and artwork bounds; expand only the gutters. */
        grid-template-columns: calc((100% - 440px - 96px) / 2) 440px calc((100% - 440px - 96px) / 2);
        grid-template-rows: auto auto;
        grid-template-areas: "intro mode value" "intro form value";
        column-gap: calc(48px + var(--mlt-login-side-offset));
        justify-content: center;
        row-gap: 16px;
        align-items: center;
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        height: auto !important;
        max-height: none !important;
        margin: 0 auto !important;
        transform: none !important;
        box-sizing: border-box;
    }

    body:has(#loginbox) .logon-wrapper:has(> .mlt-login-desktop-intro)::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 25%;
        right: 25%;
        background: url("/public/pict/MLT_Monstera/Monstera_03.png") center / contain no-repeat;
        opacity: .22;
        mix-blend-mode: multiply;
        -webkit-mask-image: radial-gradient(ellipse, #000 30%, transparent 70%);
        mask-image: radial-gradient(ellipse, #000 30%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    body:has(#loginbox) .logon-wrapper:has(> .mlt-login-desktop-intro) > .header {
        grid-area: mode;
        align-self: end;
        margin: 0 auto !important;
    }

    body:has(#loginbox) .logon-wrapper:has(> .mlt-login-desktop-intro) > #loginbox {
        grid-area: form;
        align-self: start;
        box-sizing: border-box;
        background: #f5faf2 !important;
        border: 1px solid rgba(65,108,70,.16) !important;
        box-shadow: 0 18px 46px rgba(31,47,34,.10), inset 0 1px 0 rgba(255,255,255,.8) !important;
        overflow: visible !important;
    }

    body:has(#loginbox) .logon-wrapper:has(> .mlt-login-desktop-intro) > #loginbox::before {
        top: 6px !important;
        right: 12px !important;
        bottom: auto !important;
        left: auto !important;
        width: 28px !important;
        height: 28px !important;
        background: url("/public/pict/MLT_Monstera/Monstera_04.png") center / contain no-repeat !important;
        opacity: .65 !important;
        mix-blend-mode: multiply;
        -webkit-mask-image: radial-gradient(ellipse, #000 30%, transparent 72%);
        mask-image: radial-gradient(ellipse, #000 30%, transparent 72%);
    }

    body:has(#loginbox) .logon-wrapper > .mlt-login-desktop-intro,
    body:has(#loginbox) .logon-wrapper > .mlt-login-desktop-value {
        display: block;
        position: relative;
        z-index: 2;
        width: fit-content;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        color: #345340;
        font-family: Tahoma, Arial, sans-serif;
        white-space: normal;
        overflow-wrap: break-word;
    }

    body:has(#loginbox) .mlt-login-desktop-intro {
        grid-area: intro;
        justify-self: end;
    }

    body:has(#loginbox) .mlt-login-desktop-value {
        grid-area: value;
        justify-self: start;
    }

    body:has(#loginbox) .mlt-login-eyebrow {
        margin: 0 0 14px;
        padding: 0;
        color: #697d63;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: 0;
    }

    body:has(#loginbox) .mlt-login-heading {
        margin: 0 0 18px;
        padding: 0;
        color: #355b3a;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 30px;
        font-weight: 400;
        line-height: 1.15;
        letter-spacing: 0;
    }

    body:has(#loginbox) .mlt-login-lead {
        margin: 0 0 28px;
        padding: 0;
        color: #5f7464;
        font-size: 15px;
        line-height: 1.65;
    }

    body:has(#loginbox) .mlt-login-benefits {
        display: flex;
        flex-direction: column;
        gap: 22px;
        margin: 26px 0 0;
        padding: 0;
        list-style: none;
    }

    body:has(#loginbox) .mlt-login-benefits > li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    body:has(#loginbox) .mlt-login-benefit-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        border: 1px solid rgba(65,108,70,.16);
        border-radius: 50%;
        box-sizing: border-box;
        background: rgba(255,255,255,.72);
        color: #567457;
        font-size: 15px;
    }

    body:has(#loginbox) .mlt-login-benefits strong {
        display: block;
        color: #345340;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.5;
    }

    body:has(#loginbox) .mlt-login-benefits p {
        margin: 4px 0 0;
        padding: 0;
        color: #65776a;
        font-size: 12px;
        line-height: 1.6;
    }

    body:has(#loginbox) .mlt-login-signoff {
        margin: 32px 0 0;
        padding: 0;
        color: #6a7965;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.5;
        letter-spacing: 0;
    }

    body:has(#loginbox) .mlt-login-good-journeys {
        margin: 30px 0 0;
        padding: 0;
        color: #8c784f;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 22px;
        font-style: italic;
        line-height: 1.4;
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    body:has(#loginbox) .container:has(.mlt-login-desktop-intro) {
        padding: 40px 32px 48px !important;
    }

    body:has(#loginbox) .logon-wrapper:has(> .mlt-login-desktop-intro) {
        grid-template-columns: calc((100% - 420px - 56px) / 2) 420px calc((100% - 420px - 56px) / 2);
        column-gap: calc(28px + var(--mlt-login-side-offset));
    }

    body:has(#loginbox) .mlt-login-benefits { gap: 18px; }
    body:has(#loginbox) .mlt-login-benefits > li { gap: 10px; }
}

@media (min-width: 768px) and (max-width: 991px) {
    body:has(#loginbox) .container:has(.mlt-login-desktop-intro) {
        padding: 32px 28px 40px !important;
    }

    body:has(#loginbox) .logon-wrapper:has(> .mlt-login-desktop-intro) {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
        grid-template-areas: "intro mode" "intro form";
        column-gap: 28px;
    }

    body:has(#loginbox) .logon-wrapper > .mlt-login-desktop-value { display: none; }
    body:has(#loginbox) .mlt-login-heading { font-size: 28px; }
    body:has(#loginbox) .mlt-login-lead { font-size: 13px; }
    body:has(#loginbox) .mlt-login-benefits { gap: 16px; }
    body:has(#loginbox) .mlt-login-benefit-icon { display: none; }
    body:has(#loginbox) .mlt-login-benefits strong { font-size: 13px; }
    body:has(#loginbox) .mlt-login-signoff { font-size: 9px; }
}

/* =====================================================
   Global Application Shell — Sticky Footer
   Excludes the dedicated login layout
   ===================================================== */

html:not(:has(#loginbox)) {
    min-height: 100% !important;
}

body:not(:has(#loginbox)) {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

body:not(:has(#loginbox)) > #header {
    flex: 0 0 auto !important;
}

body:not(:has(#loginbox)) > .samo_container {
    flex: 1 0 auto !important;
}

body:not(:has(#loginbox)) > footer.rl-footer {
    flex: 0 0 auto !important;
}

/* =====================================================
   CL Refer Inner Reservation Tables
   Orders and Tourists as independent premium cards
   ===================================================== */

.samo_container table.cl_refer_result table.orders-group,
.samo_container table.cl_refer_result table.tbl_peoples {
    display: table !important;
    width: 100% !important;
    margin: 12px 0 !important;

    border-collapse: separate !important;
    border-spacing: 0 !important;

    background: #ffffff !important;
    border: 1px solid rgba(65,108,70,.14) !important;
    border-radius: 16px !important;

    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(31,47,34,.08) !important;
}

.samo_container table.cl_refer_result table.orders-group > thead > tr > th,
.samo_container table.cl_refer_result table.tbl_peoples > thead > tr > th {
    background: linear-gradient(180deg, #4d7b52, #416c46) !important;
    color: #ffffff !important;

    border: none !important;

    font-weight: 800 !important;
    vertical-align: middle !important;
}

.samo_container table.cl_refer_result table.orders-group > thead > tr > th:first-child,
.samo_container table.cl_refer_result table.tbl_peoples > thead > tr > th:first-child {
    border-top-left-radius: 15px !important;
}

.samo_container table.cl_refer_result table.orders-group > thead > tr > th:last-child,
.samo_container table.cl_refer_result table.tbl_peoples > thead > tr > th:last-child {
    border-top-right-radius: 15px !important;
}

.samo_container table.cl_refer_result table.orders-group > tbody > tr > td,
.samo_container table.cl_refer_result table.tbl_peoples > tbody > tr > td {
    background: #ffffff !important;
    color: #1f2f22 !important;

    border-bottom: 1px solid rgba(65,108,70,.08) !important;
    vertical-align: middle !important;
}

.samo_container table.cl_refer_result table.orders-group > tbody > tr:nth-child(even) > td,
.samo_container table.cl_refer_result table.tbl_peoples > tbody > tr:nth-child(even) > td {
    background: #f5fbf6 !important;
}

.samo_container table.cl_refer_result table.orders-group > tbody > tr:hover > td,
.samo_container table.cl_refer_result table.tbl_peoples > tbody > tr:hover > td {
    background: #eaf7ec !important;
}

.samo_container table.cl_refer_result table.orders-group > tbody > tr:last-child > td,
.samo_container table.cl_refer_result table.tbl_peoples > tbody > tr:last-child > td {
    border-bottom: none !important;
}

/* =====================================================
   Edit Tourist Popup — Resort Life Information Cards
   Actual component: #edit_tourist form.edit_tourist
   ===================================================== */

#edit_tourist {
    background: #ffffff !important;
}

#edit_tourist form.edit_tourist {
    padding: 22px 26px 24px !important;
    background: #ffffff !important;
    color: #1f2f22 !important;
}

#edit_tourist form.edit_tourist fieldset.panel {
    margin: 0 0 16px !important;
    padding: 20px 22px !important;

    background: linear-gradient(180deg, #f8fcf8 0%, #eef8ef 100%) !important;
    border: 1px solid rgba(65,108,70,.14) !important;
    border-radius: 18px !important;

    box-shadow:
        0 10px 24px rgba(31,47,34,.07),
        inset 0 1px 0 rgba(255,255,255,.72) !important;
}

#edit_tourist form.edit_tourist .legend-tag {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;

    margin: 0 0 16px !important;
    padding: 0 0 12px !important;

    color: #416c46 !important;
    font-size: 0 !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;

    border-bottom: 1px solid rgba(65,108,70,.14) !important;
}

#edit_tourist form.edit_tourist .legend-tag::before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;

    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;

    background: rgba(187,228,193,.72) !important;
    color: #416c46 !important;
    border: 1px solid rgba(65,108,70,.12) !important;
    border-radius: 10px !important;

    font-family: "Font Awesome 5 Free" !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

#edit_tourist form.edit_tourist .legend-tag::after {
    display: inline-block !important;
    color: #416c46 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

#edit_tourist form.edit_tourist fieldset.panel:first-of-type .legend-tag::before {
    content: "\f2c2" !important;
}

#edit_tourist form.edit_tourist fieldset.panel:first-of-type .legend-tag::after {
    content: "Personal Information" !important;
}

#edit_tourist form.edit_tourist fieldset.panel:nth-of-type(2) .legend-tag::before {
    content: "\f5ab" !important;
}

#edit_tourist form.edit_tourist fieldset.panel:nth-of-type(2) .legend-tag::after {
    content: "Passport & Documents" !important;
}

#edit_tourist form.edit_tourist .width100p {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

#edit_tourist form.edit_tourist .left_column {
    color: #416c46 !important;
    font-weight: 700 !important;
    text-align: right !important;
    vertical-align: middle !important;
}

#edit_tourist form.edit_tourist .frm-input {
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #1f2f22 !important;
    border: 1px solid rgba(65,108,70,.22) !important;
    border-radius: 11px !important;
    box-shadow: 0 3px 10px rgba(31,47,34,.08) !important;
}

#edit_tourist form.edit_tourist .frm-input:focus {
    border-color: #416c46 !important;
    box-shadow: 0 0 0 3px rgba(65,108,70,.16) !important;
    outline: none !important;
}

#edit_tourist form.edit_tourist .chosen-container {
    border-radius: 11px !important;
    box-shadow: 0 3px 10px rgba(31,47,34,.08) !important;
}

#edit_tourist form.edit_tourist .chosen-container .chosen-single {
    background: #ffffff !important;
    color: #1f2f22 !important;
    border: 1px solid rgba(65,108,70,.22) !important;
    border-radius: 11px !important;
    box-shadow: none !important;
}

#edit_tourist form.edit_tourist input[type="submit"] {
    display: block !important;
    min-width: 150px !important;
    height: 42px !important;
    margin: 14px auto 0 !important;

    background: linear-gradient(180deg, #4d7b52 0%, #416c46 100%) !important;
    color: #ffffff !important;

    border: 1px solid rgba(65,108,70,.34) !important;
    border-radius: 12px !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: .1px !important;

    box-shadow:
        0 10px 22px rgba(31,47,34,.17),
        inset 0 1px 0 rgba(255,255,255,.14) !important;
}

#edit_tourist form.edit_tourist input[type="submit"]:hover {
    background: linear-gradient(180deg, #5b8b60 0%, #4d7b52 100%) !important;
    box-shadow:
        0 13px 26px rgba(31,47,34,.20),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
    transform: translateY(-1px) !important;
}

/* =====================================================
   Global Modal Positioning System
   Centered viewport shell with internal scrolling
   ===================================================== */

#modalContainer:has(#basicModalContent),
#logonContainer:has(#basicModalContent) {
    position: fixed !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;

    margin: 0 !important;
    transform: translate(-50%, -50%) !important;

    max-height: calc(100vh - 32px) !important;
    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: visible !important;
}

#modalContainer:has(#basicModalContent) #basicModalContent,
#logonContainer:has(#basicModalContent) #basicModalContent {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-padding-block: 24px !important;
    box-sizing: border-box !important;
}

#messages-popup.open {
    position: fixed !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;

    margin: 0 !important;
    transform: translate(-50%, -50%) !important;

    display: flex !important;
    flex-direction: column !important;
    max-height: calc(100vh - 32px) !important;
    box-sizing: border-box !important;
}

#messages-popup.open .messages-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-padding-block: 24px !important;
}

/* =====================================================
   Popup Pay Action
   Actual modal control: <button class="pay_claim">
   ===================================================== */

#basicModalContent .pay_claim {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 42px !important;
    width: max-content !important;
    max-width: 100% !important;
    padding: 0 28px !important;
    margin: 18px auto 4px !important;
    box-sizing: border-box !important;

    background: #416c46 !important;
    color: #ffffff !important;

    border: 1px solid #416c46 !important;
    border-radius: 14px !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;

    box-shadow: 0 9px 20px rgba(31,47,34,.18) !important;
    cursor: pointer !important;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .12s ease !important;
}

#basicModalContent .pay_claim:hover {
    background: #58885d !important;
    border-color: #58885d !important;
    box-shadow: 0 12px 24px rgba(31,47,34,.22) !important;
    transform: translateY(-1px) !important;
}

#basicModalContent .pay_claim:active {
    background: #416c46 !important;
    border-color: #416c46 !important;
    box-shadow: 0 4px 10px rgba(31,47,34,.16) !important;
    transform: translateY(0) !important;
}

#basicModalContent .pay_claim:focus-visible {
    outline: 3px solid rgba(88,136,93,.42) !important;
    outline-offset: 3px !important;
}

#basicModalContent .pay_claim:disabled,
#basicModalContent .pay_claim[disabled],
#basicModalContent .pay_claim.disabled,
#basicModalContent .pay_claim[aria-disabled="true"] {
    background: #aab9ac !important;
    border-color: #aab9ac !important;
    color: #ffffff !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: .72 !important;
    transform: none !important;
}

/* =====================================================
   09.13 Electronic Documents Popup — authoritative section
   ===================================================== */

#modalContainer:has(#e_doc) {
    width: 520px !important;
    max-width: calc(100vw - 32px) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 28px !important;
    box-shadow: 0 22px 55px rgba(31,47,34,.22) !important;
    overflow: hidden !important;
}

#modalContainer:has(#e_doc) .modalTitle {
    display: block !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    color: transparent !important;
}

#modalContainer:has(#e_doc) a.modalCloseImg {
    display: block !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 100000 !important;
}

#modalContainer:has(#e_doc) a.modalCloseImg::before {
    font-size: 28px !important;
}

#modalContainer:has(#e_doc) #basicModalContent {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 110px 34px 38px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 28px !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

#modalContainer:has(#e_doc) #basicModalContent::before {
    content: none !important;
    display: none !important;
}

#modalContainer:has(#e_doc) #basicModalContent::after {
    content: "Electronic Documents" !important;
    display: block !important;
    position: absolute !important;
    top: 31px !important;
    right: 34px !important;
    left: 34px !important;
    margin: 0 !important;
    padding: 0 0 22px !important;
    border-bottom: 1px solid rgba(65,108,70,.20) !important;
    color: #416c46 !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-align: center !important;
}

#modalContainer #basicModalContent #e_doc {
    display: block !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #1f2f22 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

#modalContainer #basicModalContent #e_doc::before {
    content: none !important;
    display: none !important;
}

/* Mode tabs */

#modalContainer #basicModalContent #e_doc_tabs {
    display: block !important;
    margin: 0 0 42px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 0 !important;
    white-space: nowrap !important;
}

#modalContainer #basicModalContent #e_doc_tabs .e_doc_tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: calc(50% - 6px) !important;
    height: 64px !important;
    margin: 0 12px 0 0 !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #416c46 !important;
    border: 1px solid rgba(65,108,70,.10) !important;
    border-radius: 18px !important;
    box-shadow: 0 5px 16px rgba(31,47,34,.08) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    vertical-align: top !important;
    cursor: pointer !important;
}

#modalContainer #basicModalContent #e_doc_tabs .e_doc_tab:last-child {
    margin-right: 0 !important;
}

/* Electronic Documents: keep only the Print tab in the navigation. */
#modalContainer #basicModalContent #e_doc_tabs #E_DOC_BTN_ADD {
    display: none !important;
}

#modalContainer #basicModalContent #e_doc_tabs #E_DOC_BTN_PRINT {
    width: 100% !important;
    margin-right: 0 !important;
}

#modalContainer #basicModalContent #e_doc_tabs .e_doc_tab:hover:not(:disabled):not(.e_doc_tab_selected) {
    background: #f5fbf6 !important;
}

#modalContainer #basicModalContent #e_doc_tabs .e_doc_tab.e_doc_tab_selected {
    background: #e4f5e6 !important;
    border-color: rgba(65,108,70,.16) !important;
    color: #416c46 !important;
    box-shadow: 0 5px 16px rgba(65,108,70,.12) !important;
}

#modalContainer #basicModalContent #e_doc_tabs .e_doc_tab:active:not(:disabled) {
    transform: translateY(1px) !important;
}

#modalContainer #basicModalContent #e_doc_tabs .e_doc_tab:disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
}

/* Document table */

#modalContainer #basicModalContent #e_doc table.res {
    width: 100% !important;
    margin: 0 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
    background: #f5fbf6 !important;
    border: 1px solid rgba(65,108,70,.14) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(31,47,34,.08) !important;
}

#modalContainer #basicModalContent #e_doc table.res thead th {
    padding: 16px 18px !important;
    background: linear-gradient(180deg, #4d7b52, #416c46) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    vertical-align: middle !important;
}

#modalContainer #basicModalContent #e_doc table.res thead th:first-child {
    border-top-left-radius: 10px !important;
}

#modalContainer #basicModalContent #e_doc table.res thead th:last-child {
    min-width: 190px !important;
    border-top-right-radius: 10px !important;
    white-space: nowrap !important;
}

#modalContainer #basicModalContent #e_doc table.res tbody td {
    padding: 18px !important;
    background: #ffffff !important;
    color: #1f2f22 !important;
    border-top: 1px solid rgba(65,108,70,.10) !important;
    border-bottom: 1px solid rgba(65,108,70,.10) !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
}

#modalContainer #basicModalContent #e_doc table.res tbody tr:nth-child(even) td {
    background: #f7fbf8 !important;
}

#modalContainer #basicModalContent #e_doc table.res tbody tr:hover td {
    background: #eaf7ec !important;
}

#modalContainer #basicModalContent #e_doc table.res tbody tr td:first-child {
    border-left: 1px solid rgba(65,108,70,.10) !important;
    border-radius: 12px 0 0 12px !important;
}

#modalContainer #basicModalContent #e_doc table.res tbody tr td:last-child {
    min-width: 190px !important;
    border-right: 1px solid rgba(65,108,70,.10) !important;
    border-radius: 0 12px 12px 0 !important;
    white-space: nowrap !important;
}

#modalContainer #basicModalContent #e_doc table.res tbody tr td:last-child br {
    display: none !important;
}

/* Header selection control */

#modalContainer #basicModalContent #e_doc table.res thead input.multiCheck {
    margin: 0 !important;
    vertical-align: middle !important;
}

/* Print action */

#modalContainer #basicModalContent #e_doc .document {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 20px !important;
    background: #ffffff !important;
    color: #416c46 !important;
    border: 1px solid rgba(65,108,70,.24) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 12px rgba(31,47,34,.08) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

#modalContainer #basicModalContent #e_doc .document:hover {
    background: #f5fbf6 !important;
    border-color: #416c46 !important;
    box-shadow: 0 7px 16px rgba(31,47,34,.12) !important;
}

#modalContainer #basicModalContent #e_doc .document:active {
    background: #eef8ef !important;
    box-shadow: 0 3px 8px rgba(31,47,34,.10) !important;
}

/* Download action */

#modalContainer #basicModalContent #e_doc #multiDownload {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    min-width: 430px !important;
    max-width: 100% !important;
    min-height: 62px !important;
    margin: 34px auto 10px !important;
    padding: 0 32px !important;
    background: linear-gradient(180deg, #4d7b52, #416c46) !important;
    color: #ffffff !important;
    border: 1px solid rgba(65,108,70,.34) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 22px rgba(31,47,34,.18) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
}

#modalContainer #basicModalContent #e_doc #multiDownload:hover {
    background: linear-gradient(180deg, #5b8b60, #4d7b52) !important;
    box-shadow: 0 13px 26px rgba(31,47,34,.22) !important;
}

#modalContainer #basicModalContent #e_doc #multiDownload:active {
    background: #416c46 !important;
    box-shadow: 0 4px 10px rgba(31,47,34,.16) !important;
}

#modalContainer #basicModalContent #e_doc #multiDownload:disabled,
#modalContainer #basicModalContent #e_doc #multiDownload[disabled] {
    background: #aab9ac !important;
    border-color: #aab9ac !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: .7 !important;
}

/* Row checkboxes */

#modalContainer #basicModalContent #e_doc input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 8px 0 0 !important;
    background: #ffffff !important;
    border: 1px solid rgba(65,108,70,.32) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(31,47,34,.08) !important;
    cursor: pointer !important;
}

#modalContainer #basicModalContent #e_doc input[type="checkbox"]:checked {
    background: #416c46 !important;
    border-color: #416c46 !important;
}

#modalContainer #basicModalContent #e_doc input[type="checkbox"]:checked::after {
    content: "" !important;
    width: 5px !important;
    height: 9px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) translate(-1px, -1px) !important;
}

#modalContainer #basicModalContent #e_doc input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(88,136,93,.30) !important;
    outline-offset: 2px !important;
}

#modalContainer #basicModalContent #e_doc input[type="checkbox"]:disabled {
    background: #eef2ee !important;
    border-color: rgba(65,108,70,.16) !important;
    cursor: not-allowed !important;
    opacity: .65 !important;
}

/* Replacement loader */

#modalContainer #basicModalContent #e_doc .counter::before {
    content: none !important;
    animation: none !important;
}

#modalContainer #basicModalContent #e_doc .rl-doc-spinner,
#modalContainer #basicModalContent #e_doc .counter::after {
    width: 20px !important;
    height: 20px !important;
    box-sizing: border-box !important;
    border: 3px solid rgba(65,108,70,.18) !important;
    border-top-color: #416c46 !important;
    border-radius: 50% !important;
    animation: rlSpinnerRotate .8s linear infinite !important;
}

#modalContainer #basicModalContent #e_doc .rl-doc-spinner {
    display: inline-block !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}

#modalContainer #basicModalContent #e_doc .counter {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    margin-left: 36px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: #416c46 !important;
    color: #ffffff !important;
    border: 1px solid rgba(65,108,70,.28) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(31,47,34,.16) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    animation: none !important;
}

#modalContainer #basicModalContent #e_doc .rl-doc-spinner + .counter {
    margin-left: 8px !important;
}

#modalContainer #basicModalContent #e_doc .counter::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    right: calc(100% + 8px) !important;
    display: block !important;
    margin-top: -10px !important;
}

@keyframes rlSpinnerRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    #modalContainer:has(#e_doc) {
        width: 680px !important;
        max-width: calc(100vw - 48px) !important;
    }

    #modalContainer #basicModalContent #e_doc_tabs .e_doc_tab {
        height: 64px !important;
        font-size: 20px !important;
    }
}

@media (max-width: 767px) {
    #modalContainer:has(#e_doc) #basicModalContent {
        padding: 16px !important;
    }

    #modalContainer #basicModalContent #e_doc table.res {
        padding: 4px !important;
        border-spacing: 0 6px !important;
    }

    #modalContainer #basicModalContent #e_doc table.res tbody td {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }
}

/* =====================================================
   Reservation Card — final layout polish
   ===================================================== */

@media (min-width: 768px) {
    .samo_container table.cl_refer_result tbody td.cl_alink {
        width: 28% !important;
        min-width: 240px !important;
        padding: 22px !important;
        gap: 10px !important;
    }

    .samo_container table.cl_refer_result tbody td.cl_alink + td {
        width: 72% !important;
    }

    .samo_container table.cl_refer_result td.cl_alink :is(
        .msg-new,
        .cl_price,
        .pay_variant,
        .e_doc,
        .dropdown-button
    ) {
        padding-right: 18px !important;
        padding-left: 18px !important;
    }
}

.samo_container table.cl_refer_result td.cl_alink .cl_price {
    text-transform: none !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service > td {
    padding: 14px 16px !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(65,108,70,.08) !important;
    background: #f5fbf6 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service {
    display: table-row !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    vertical-align: middle !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service + tr.service > td {
    border-top: 0 !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service > td.o_pcount {
    display: table-cell !important;
    float: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    background: #f5fbf6 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(65,108,70,.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #416c46 !important;
    text-align: right !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service:hover > td {
    background: #f1faf2 !important;
    box-shadow: none !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service .service-packet-name {
    font-weight: 600 !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service .service-dates {
    color: #6d8071 !important;
    font-weight: 500 !important;
}

.samo_container table.cl_refer_result table.orders-group tr.service .o_pcount {
    font-size: 11px !important;
}

.samo_container table.cl_refer_result td.orders .claim-orders__button {
    position: relative !important;
    top: -12px !important;
    z-index: 1 !important;
}

input.frm-input.date,
input.frm-input.CHECKINBEG,
input.frm-input.CHECKINEND,
input.frm-input.CREATEBEG,
input.frm-input.CREATEEND {
    padding-right: 18px !important;
}

/* =====================================================
   Top Navigation - Desktop Unified Layout
   Guest + Authenticated
   ===================================================== */

@media (min-width: 768px) {
    #header .bottom-menu .nav-center {
        --mlt-nav-gap: 3px;
        --mlt-nav-group-space: 22px;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: var(--mlt-nav-gap);
        min-height: 46px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #header .bottom-menu .nav-center > li {
        display: flex;
        align-items: center;
        align-self: stretch;
        flex: 0 0 auto;
        margin-inline-start: 0;
    }

    #header .bottom-menu .nav-center > li:not(.langs, .profile) > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 12px;
        white-space: nowrap;
    }

    /* One separator per group; Share belongs to the account-side utility group. */
    #header .bottom-menu .nav-center > li:is(.menu-hotel_stopsale, .langs, .sign-in),
    #header .bottom-menu .nav-center:not(:has(> #samo-link-to-page)) > li.profile,
    #header .bottom-menu .nav-center:has(> li.profile) > #samo-link-to-page {
        position: relative;
        margin-inline-start: var(--mlt-nav-group-space);
    }

    #header .bottom-menu .nav-center > li:is(.menu-hotel_stopsale, .langs, .sign-in)::before,
    #header .bottom-menu .nav-center:not(:has(> #samo-link-to-page)) > li.profile::before,
    #header .bottom-menu .nav-center:has(> li.profile) > #samo-link-to-page::before {
        content: "";
        position: absolute;
        top: 50%;
        inset-inline-start: calc((var(--mlt-nav-group-space) + var(--mlt-nav-gap)) / -2);
        width: 1px;
        height: 24px;
        margin: 0;
        background: rgba(255,255,255,.20);
        transform: translateY(-50%);
        pointer-events: none;
    }

    /* Preserve the approved Share -> Profile visual order without DOM changes. */
    #header .bottom-menu .nav-center:has(> li.profile) > #samo-link-to-page {
        /* Override only this control's presentation; retain mobile defaults. */
        --mlt-share-height: 38px;
        --mlt-share-padding: 0 13px;
        --mlt-share-color: #ffffff;
        --mlt-share-weight: 800;
        --mlt-share-line-height: 1;
        --mlt-share-background: rgba(255,255,255,.07);
        --mlt-share-border: rgba(255,255,255,.22);
        --mlt-share-radius: 10px;
        --mlt-share-shadow: none;
        --mlt-share-icon-color: rgba(255,255,255,.90);
        --mlt-share-hover-background: rgba(255,255,255,.14);
        --mlt-share-hover-border: rgba(255,255,255,.30);
        --mlt-share-hover-transform: none;
        --mlt-share-focus-color: rgba(255,255,255,.70);
        --mlt-share-focus-shadow: 0 0 0 3px rgba(255,255,255,.12);
        order: 1;
        flex: 0 0 auto;
        right: auto !important;
        bottom: auto !important;
    }

    #header .bottom-menu .nav-center:has(> li.profile) > #samo-link-to-page > a.link:active {
        background: rgba(255,255,255,.18) !important;
    }

    #header .bottom-menu .nav-center:has(> #samo-link-to-page) > li.profile {
        order: 2;
    }

    #header .bottom-menu .nav-center:has(> #samo-link-to-page) > li.profile,
    #header .bottom-menu .nav-center:not(:has(> #samo-link-to-page)) > li.profile {
        margin-inline-start: calc(14px - var(--mlt-nav-gap));
    }

    #header .bottom-menu .nav-center:not(:has(> #samo-link-to-page)) > li.profile::before {
        inset-inline-start: -7px;
    }

    #header .bottom-menu .nav-center > li.profile {
        --mlt-profile-max-width: 280px;
        flex: 0 1 auto;
        background: transparent !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: var(--mlt-profile-max-width) !important;
    }

    #header .bottom-menu .nav-center > li.profile > a.menu-caret {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px;
        width: 100% !important;
        min-width: 0 !important;
        max-width: var(--mlt-profile-max-width) !important;
        min-height: 38px !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
        background: rgba(255,255,255,.07) !important;
        border: 1px solid rgba(255,255,255,.22) !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        color: #ffffff !important;
        font-size: 13px;
        font-weight: 800 !important;
        line-height: 1.3;
        white-space: nowrap !important;
        text-decoration: none !important;
        text-shadow: none !important;
    }

    #header .bottom-menu .nav-center > li.profile > a.menu-caret > .profile-agency-label {
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #header .bottom-menu .nav-center > li.profile > a.menu-caret::before {
        flex-shrink: 0;
    }

    #header .bottom-menu .nav-center > li.profile:hover > a.menu-caret,
    #header .bottom-menu .nav-center > li.profile:focus-within > a.menu-caret {
        background: rgba(255,255,255,.12) !important;
        border-color: rgba(255,255,255,.25) !important;
    }

    #header .bottom-menu .nav-center > li.profile > a.menu-caret::after {
        flex: 0 0 auto;
        margin: 0;
        border-top-color: rgba(255,255,255,.85);
    }

    #header .bottom-menu .nav-center > li.profile > a.menu-caret:focus-visible {
        outline: 2px solid rgba(255,255,255,.7);
        outline-offset: 3px;
    }

    #header .bottom-menu .nav-center > li.profile > ul {
        left: 0 !important;
        right: auto !important;
        width: var(--mlt-profile-max-width) !important;
        min-width: 0 !important;
        max-width: min(var(--mlt-profile-max-width), calc(100vw - 32px)) !important;
        box-sizing: border-box !important;
        transform: none !important;
    }

    #header .bottom-menu .nav-center > li.profile:focus-within > ul {
        display: flex !important;
    }

    /* Keep the full identity available when the trigger label is truncated. */
    #header .bottom-menu .nav-center > li.profile > ul > li:first-child,
    #header .bottom-menu .nav-center > li.profile .profile-agency-name,
    #header .bottom-menu .nav-center > li.profile .login-name,
    #header .bottom-menu .nav-center > li.profile .partner-type {
        display: block !important;
        text-align: start;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #header .bottom-menu .nav-center > li.profile > ul > li:first-child > div {
        padding: 4px 2px 12px;
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(65,108,70,.12);
    }

    #header .bottom-menu .nav-center > li.profile .profile-agency-name {
        margin-bottom: 8px;
        color: #355b3a;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.45;
    }

    #header .bottom-menu .nav-center > li.profile .login-name,
    #header .bottom-menu .nav-center > li.profile .partner-type {
        padding-left: 0;
        background-image: none;
        color: #5f7464;
        font-size: 12px;
        line-height: 1.45;
    }

    #header .bottom-menu .nav-center > li.profile .partner-type {
        margin-top: 3px;
        font-size: 11px;
    }
}

@media (min-width: 768px) and (max-width: 1366px) {
    #header .bottom-menu .nav-center {
        --mlt-nav-gap: 2px;
        --mlt-nav-group-space: 16px;
    }

    #header .bottom-menu .nav-center > li:not(.langs, .profile) > a {
        padding-inline: 9px;
    }

    #header .bottom-menu .nav-center > li.profile {
        --mlt-profile-max-width: 260px;
    }

    #header .bottom-menu .nav-center > li.profile > a.menu-caret {
        padding-inline: 12px !important;
    }
}

@media (max-width: 767px) {
    #header .bottom-menu .nav-center > li.profile {
        width: 240px !important;
    }

    #header .bottom-menu .nav-center > li.profile > a.menu-caret {
        display: inline-flex !important;
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
        box-sizing: border-box !important;
        justify-content: center !important;
    }

    #header .bottom-menu .nav-center > li.profile > ul {
        left: 0 !important;
        right: auto !important;
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
        box-sizing: border-box !important;
        transform: none !important;
    }
}

/* =====================================================
   Agency Login Identifier — shared desktop and mobile presentation
   ===================================================== */

body:has(#loginbox) .logon-wrapper .header {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0 !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 auto 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body:has(#loginbox) .logon-wrapper .header .legend.panel,
body:has(#loginbox) .logon-wrapper .header .button-wrapper {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
    order: initial !important;
}

body:has(#loginbox) .logon-wrapper .header .legend.panel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #416c46 !important;
    color: #ffffff !important;
    border: 1px solid #416c46 !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 12px rgba(65,108,70,.18) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

body:has(#loginbox) .logon-wrapper .header .button-wrapper .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #416c46 !important;
    border: 1px solid rgba(65,108,70,.20) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body:has(#loginbox) .logon-wrapper .header .button-wrapper .button:hover,
body:has(#loginbox) .logon-wrapper .header .button-wrapper .button:focus-visible {
    background: #eaf7ec !important;
    border-color: rgba(65,108,70,.30) !important;
    color: #416c46 !important;
}

body:has(#loginbox) .logon-wrapper .header .legend.panel::before,
body:has(#loginbox) .logon-wrapper .header .button-wrapper .button::before {
    content: none !important;
    display: none !important;
}
/* =====================================================
   26.1 Login Wrapper Height Fix
   ===================================================== */

@media screen and (max-width:767px){

body:has(#loginbox) .logon-wrapper{
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
}

body:has(#loginbox) .container:has(#loginbox){
    align-items:center !important;
}

}

/* =====================================================
   27. Resort Life Mobile BRON Shell
   ===================================================== */

@media (max-width:767px) {
    .samo_container.bron {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        padding-right: max(16px, env(safe-area-inset-right));
        padding-left: max(16px, env(safe-area-inset-left));
        box-sizing: border-box;
        background: #f5fbf6;
    }

    .samo_container.bron #bron_info {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .samo_container.bron #bron_info > .top_container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        padding-top: calc(16px + env(safe-area-inset-top));
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
        box-sizing: border-box;
    }
}

/* =====================================================
   28. Resort Life Mobile Full-Width Chrome
   ===================================================== */

@media (max-width:767px) {
    #header,
    #header .high-menu,
    footer.rl-footer {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    #header .high-menu {
        min-width: 0 !important;
    }

    footer.rl-footer .rl-footer-inner {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
}

/* =====================================================
   29. Resort Life Mobile BRON Price Calendar
   ===================================================== */

@media (max-width:767px) {
    .samo_container.bron #bron_info #calendar-low-prices-shell {
        margin-top: 16px !important;
        padding: 10px !important;
        background: #f5fbf6 !important;
        border: 1px solid rgba(65,108,70,.14) !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 24px rgba(31,47,34,.08) !important;
    }

    .samo_container.bron #bron_info #calendar-low-prices-shell .pricestats {
        border-radius: 12px 12px 0 0 !important;
    }

    .samo_container.bron #bron_info #calendar-low-prices,
    .samo_container.bron #bron_info #calendar-low-prices > table {
        background: #ffffff !important;
        border-radius: 0 0 12px 12px !important;
    }

    .samo_container.bron #bron_info .calendar-low-prices-fold-ear {
        border-radius: 0 0 12px 12px !important;
    }
}

/* =====================================================
   30. Resort Life Mobile BRON Service Actions
   ===================================================== */

@media (max-width:767px) {
    .samo_container.bron #bron_info .services_container table.res td.iconsServicesTransport {
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        padding: 8px 10px !important;
        text-align: center !important;
        vertical-align: middle !important;
        box-sizing: border-box !important;
    }

    .samo_container.bron #bron_info .services_container table.res td.iconsServicesTransport > i {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        line-height: 1 !important;
        vertical-align: middle !important;
    }
}

/* =====================================================
   31. Resort Life Mobile BRON Actions and Book ID
   ===================================================== */

@media (max-width:767px) {
    .samo_container.bron #bron_info .services_container table.res td.iconsServicesTransport:not(:has(> i))::before {
        content: "" !important;
        display: inline-block !important;
        width: 36px !important;
        height: 36px !important;
        visibility: hidden !important;
        vertical-align: middle !important;
    }

    .samo_container.bron #bron_info > .top_container > #bron-info-link-to-page {
        position: sticky !important;
        bottom: 16px !important;
        z-index: 20 !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        pointer-events: none !important;
    }

    .samo_container.bron #bron_info > .top_container > #bron-info-link-to-page > a.external {
        pointer-events: auto !important;
        float: none !important;
    }
}

/* =====================================================
   32. Resort Life Mobile BRON Book ID Icon
   ===================================================== */

@media (max-width:767px) {
    .samo_container.bron #bron_info > .top_container > #bron-info-link-to-page > a.external::before {
        content: none !important;
        display: none !important;
    }
}

/* =====================================================
   33. Resort Life Share Booking Dialog
   ===================================================== */

body.share-booking-modal-open {
    overflow: hidden !important;
}

body.share-booking-modal-open #modalOverlay {
    opacity: 1 !important;
    background: rgba(0,0,0,.45) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
}

#modalContainer.share-booking-modal {
    top: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 420px !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    transform: translate(-50%, -50%) !important;
    border: none !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    overflow: visible !important;
}

#modalContainer.share-booking-modal .modalTitle {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: block !important;
    height: 0 !important;
    border: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
}

#modalContainer.share-booking-modal a.modalCloseImg {
    top: 12px !important;
    right: 12px !important;
    pointer-events: auto !important;
}

#modalContainer.share-booking-modal #basicModalContent {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

#modalContainer.share-booking-modal .share-booking-dialog {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    padding: 24px 24px 20px !important;
    color: #355b3a !important;
    font-family: var(--main-font-family) !important;
    text-align: left !important;
}

#modalContainer.share-booking-modal .share-booking-dialog h2 {
    margin: 0 36px 10px 0 !important;
    color: #416c46 !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

#modalContainer.share-booking-modal .share-booking-description {
    margin: 0 0 20px !important;
    color: #5f7464 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

#modalContainer.share-booking-modal .share-booking-copy,
#modalContainer.share-booking-modal .share-booking-technical-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

#modalContainer.share-booking-modal .share-booking-copy {
    border: 1px solid rgba(65,108,70,.2) !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #5b8b60 0%, #416c46 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(31,47,34,.18) !important;
}

#modalContainer.share-booking-modal .share-booking-copy:hover {
    background: #58885d !important;
    transform: translateY(-1px) !important;
}

#modalContainer.share-booking-modal .share-booking-copy:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 10px rgba(31,47,34,.16) !important;
}

#modalContainer.share-booking-modal .share-booking-technical-trigger {
    margin-top: 12px !important;
    border: 1px solid rgba(65,108,70,.2) !important;
    border-radius: 12px !important;
    background: #f5fbf6 !important;
    color: #416c46 !important;
}

#modalContainer.share-booking-modal .share-booking-technical-trigger:hover {
    background: #eaf7ec !important;
    transform: translateY(-1px) !important;
}

#modalContainer.share-booking-modal .share-booking-copy:focus-visible,
#modalContainer.share-booking-modal .share-booking-technical-trigger:focus-visible,
#modalContainer.share-booking-modal a.modalCloseImg:focus-visible {
    outline: 3px solid rgba(65,108,70,.24) !important;
    outline-offset: 2px !important;
}

#modalContainer.share-booking-modal .share-booking-status {
    margin-top: 10px !important;
    color: #416c46 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

#modalContainer.share-booking-modal .share-booking-status[hidden] {
    display: none !important;
}

#modalContainer.share-booking-modal .share-booking-value {
    margin: 0 0 18px !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(65,108,70,.16) !important;
    border-radius: 10px !important;
    background: #f5fbf6 !important;
    color: #355b3a !important;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 767px) {
    #modalContainer.share-booking-modal {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
    }

    #modalContainer.share-booking-modal .share-booking-dialog {
        padding: 20px 20px 20px !important;
    }
}

/* =====================================================
   34. Additional Services Modal Geometry
   ===================================================== */

/* Only the services region scrolls; the native action stays in normal flow. */
#modalContainer:has(#additional_services) .modalTitle {
    flex: 0 0 auto;
}

#modalContainer:has(#additional_services) #basicModalContent {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

#modalContainer #basicModalContent > #additional_services {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

#modalContainer #basicModalContent > #additional_services + br {
    display: none;
}

@media (min-width: 768px) {
    #modalContainer:has(#additional_services) {
        left: 50% !important;
        top: 50% !important;
        width: min(920px, 88vw) !important;
        max-width: 920px !important;
        max-height: 80vh !important;
        margin: 0 auto !important;
        transform: translate(-50%, -50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
    }

    #modalContainer:has(#additional_services) #basicModalContent {
        width: 100% !important;
        padding: 20px 24px !important;
        box-sizing: border-box !important;
    }

    #modalContainer:has(#additional_services) #additional_services {
        padding: 0 8px 0 0 !important;
    }

    #modalContainer:has(#additional_services) #basicModalContent > #ADD_ADDITIONAL_SERVICES {
        margin: 16px auto 0 !important;
    }
}

/* =====================================================
   35. Mobile Additional Services Modal Alignment
   ===================================================== */

@media (max-width: 767px) {
    #modalContainer:has(#additional_services) #basicModalContent.samo_container {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    #modalContainer:has(#additional_services) #additional_services {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    #modalContainer:has(#additional_services) #additional_services .servtype-container {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* =====================================================
   36. Mobile Additional Services Cards
   ===================================================== */

@media (max-width: 767px) {
    #modalContainer:has(#additional_services) #additional_services table.res,
    #modalContainer:has(#additional_services) #additional_services table.res > tbody,
    #modalContainer:has(#additional_services) #additional_services table.res > tbody > tr {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    #modalContainer:has(#additional_services) #additional_services table.res > tbody > tr {
        margin: 0 0 8px !important;
        padding: 12px 14px !important;
        border: 1px solid rgba(65,108,70,.14) !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }

    #modalContainer:has(#additional_services) #additional_services table.res > tbody > tr > td.service-name,
    #modalContainer:has(#additional_services) #additional_services table.res > tbody > tr > td.service-price {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        border-bottom: none !important;
        box-sizing: border-box !important;
    }

    #modalContainer:has(#additional_services) #additional_services table.res > tbody > tr > td.service-name label {
        width: 100% !important;
        grid-template-columns: 18px minmax(0, 1fr) !important;
        box-sizing: border-box !important;
    }

    #modalContainer:has(#additional_services) #additional_services table.res > tbody > tr > td.service-price {
        margin-top: 6px !important;
        text-align: right !important;
        color: #416c46 !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
    }

    #modalContainer:has(#additional_services) #additional_services table.res > tbody > tr > td.service-dates {
        display: none !important;
    }
}

/* =====================================================
   37. Empty Tourist Info Subpanels
   ===================================================== */

.samo_container.bron div.tourist > fieldset.subpanel:empty {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    border: 0 !important;
    background: transparent !important;
}

/* RLT SEARCH LEGEND REDESIGN START */
/* Real, localized status markup. SAMO retains ownership of show/hide. */
.samo_container #search_tour .price-legend-container.rlt-search-legend {
    padding: 20px 24px;
    background: #f5fbf6;
    border-radius: 16px;
}

/* Suppress the legacy generated heading, subtitle and Limited tile only
   when the new template is present. Native availability icons remain. */
.samo_container #search_tour .rlt-search-legend::before,
.samo_container #search_tour .rlt-search-legend > .price_legend::before,
.samo_container #search_tour .rlt-search-legend > .price_legend::after {
    content: none;
    display: none;
}

.samo_container #search_tour .rlt-search-legend .rlt-legend-title {
    margin: 0 0 4px;
    padding: 0;
    color: #155638;
    font: 700 22px/1.3 Tahoma, Arial, sans-serif;
    letter-spacing: 0;
    text-align: left;
}

.samo_container #search_tour .rlt-search-legend .rlt-legend-subtitle {
    margin: 0;
    padding: 0;
    color: #5f7464;
    font: 400 14px/1.5 Tahoma, Arial, sans-serif;
    text-align: left;
}

.samo_container #search_tour .rlt-search-legend .rlt-legend-statuses {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    min-width: 0;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

.samo_container #search_tour .rlt-search-legend .rlt-legend-status {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    list-style: none;
    box-sizing: border-box;
    text-align: left;
}

.samo_container #search_tour .rlt-search-legend .rlt-legend-status + .rlt-legend-status::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -8px;
    width: 1px;
    background: rgba(65,108,70,.14);
    pointer-events: none;
}

.samo_container #search_tour .rlt-search-legend .rlt-legend-status--instant {
    --rlt-status-color: #117634;
    --rlt-status-icon-bg: #d9f2e1;
    --rlt-status-bg: #eef8f1;
}

.samo_container #search_tour .rlt-search-legend .rlt-legend-status--limited {
    display: none;
}

.samo_container #search_tour .rlt-search-legend .rlt-legend-status--stop {
    --rlt-status-color: #c91935;
    --rlt-status-icon-bg: #ffe1e6;
    --rlt-status-bg: #fff1f3;
}

.samo_container #search_tour .rlt-search-legend .rlt-legend-status--best {
    --rlt-status-color: #956000;
    --rlt-status-icon-bg: #fff0cb;
    --rlt-status-bg: #fffaef;
}

.samo_container #search_tour .rlt-search-legend .rlt-legend-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    margin: 0;
    padding: 0;
    border-radius: 15px;
    background: var(--rlt-status-icon-bg);
    color: var(--rlt-status-color);
    font-size: 26px;
    box-sizing: border-box;
}

.samo_container #search_tour .rlt-search-legend .rlt-legend-copy {
    flex: 1 1 0;
    min-width: 0;
    padding: 5px 0 0;
    white-space: normal;
    overflow-wrap: break-word;
}

.samo_container #search_tour .rlt-search-legend .rlt-legend-status-title {
    display: block;
    margin: 0 0 6px;
    color: var(--rlt-status-color);
    font: 700 13px/1.4 Tahoma, Arial, sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
}

.samo_container #search_tour .rlt-search-legend .rlt-legend-description {
    margin: 0;
    padding: 0;
    color: #273c33;
    font: 400 13px/1.5 Tahoma, Arial, sans-serif;
}

/* Existing functional legends keep their text, icons and individual styles;
   only their placement below the status items changes. */
.samo_container #search_tour .rlt-search-legend > .price_legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.samo_container #search_tour .rlt-search-legend > .price_legend td:has(> .places),
.samo_container #search_tour .rlt-search-legend > .price_legend td:has(> .hotel_availability_img),
.samo_container #search_tour .rlt-search-legend > .price_legend td:has(> .price_stats_img) {
    grid-column: auto;
    grid-row: auto;
}

@media (min-width: 768px) and (max-width: 1099px) {
    .samo_container #search_tour .rlt-search-legend .rlt-legend-statuses {
        gap: 12px;
    }

    .samo_container #search_tour .rlt-search-legend .rlt-legend-status {
        flex: 1 1 calc((100% - 12px) / 2);
        padding: 12px;
        border-radius: 14px;
        background: var(--rlt-status-bg);
    }

    .samo_container #search_tour .rlt-search-legend .rlt-legend-status + .rlt-legend-status::before {
        content: none;
    }
}

@media (max-width: 767px) {
    .samo_container #search_tour .price-legend-container.rlt-search-legend {
        padding: 16px 12px;
    }

    .samo_container #search_tour .rlt-search-legend .rlt-legend-title {
        font-size: 20px;
    }

    .samo_container #search_tour .rlt-search-legend .rlt-legend-subtitle {
        font-size: 12px;
    }

    .samo_container #search_tour .rlt-search-legend .rlt-legend-statuses {
        gap: 10px;
        margin-top: 16px;
    }

    .samo_container #search_tour .rlt-search-legend .rlt-legend-status {
        flex-basis: 100%;
        align-items: center;
        gap: 12px;
        min-height: 64px;
        padding: 10px 12px;
        border-radius: 14px;
        background: var(--rlt-status-bg);
    }

    .samo_container #search_tour .rlt-search-legend .rlt-legend-status + .rlt-legend-status::before {
        content: none;
    }

    .samo_container #search_tour .rlt-search-legend .rlt-legend-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 23px;
    }

    .samo_container #search_tour .rlt-search-legend .rlt-legend-copy {
        padding-top: 0;
    }

    .samo_container #search_tour .rlt-search-legend .rlt-legend-status-title {
        margin-bottom: 4px;
        font-size: 12px;
    }

    .samo_container #search_tour .rlt-search-legend .rlt-legend-description {
        font-size: 12px;
    }

    .samo_container #search_tour .rlt-search-legend > .price_legend {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
        margin-top: 16px;
    }
}
/* RLT SEARCH LEGEND REDESIGN END */

/* =====================================================
   Pay Variant — Premium Production
   ===================================================== */

.samo_container.pay_variant:has(> #pay_variant) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

#pay_variant {
    width: var(--main-container-width);
    max-width: calc(100% - 32px);
    min-width: 0;
    margin: 0 auto 32px;
    box-sizing: border-box;
    text-align: left;
}

#pay_variant .pay-variant-title {
    height: auto;
    margin: 0 0 16px;
    padding: 16px 20px;
    box-sizing: border-box;
    border: 1px solid rgba(65,108,70,.14);
    border-radius: 14px;
    background: #f7fbf7;
    color: #355b3a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
}

#pay_variant .panel.pay_variant.invoice_container {
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid rgba(65,108,70,.14);
    border-radius: 20px !important;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31,47,34,.07) !important;
}

/* Only the outer payment-layout table changes; description tables stay native. */
#pay_variant .invoice_container > table,
#pay_variant .invoice_container > table > tbody {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-spacing: 0;
    background: transparent;
    box-sizing: border-box;
}

#pay_variant .invoice_container > table > tbody > tr {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    background: transparent;
}

#pay_variant .invoice_container > table > tbody > tr > .variant-container,
#pay_variant .invoice_container > table > tbody > tr > .note_container {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    text-align: left;
}

#pay_variant .invoice_container > table > tbody > tr > .variant-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-right: 24px;
    border-right: 1px solid rgba(65,108,70,.14);
}

#pay_variant .invoice_container .icon-pv.invoice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(65,108,70,.12);
    border-radius: 14px;
    background: #eaf7ec;
    box-sizing: border-box;
}

#pay_variant .invoice_container .icon-pv.invoice img {
    display: block;
    width: 28px;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Invoice actions: preserve SAMO's DOM labels and create/download states. */
#pay_variant .invoice_container .variant-container > span.link.v_invoice,
#pay_variant .invoice_container .variant-container > a[download] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 180px;
    max-width: 100%;
    min-height: 40px;
    padding: 0 16px;
    box-sizing: border-box;
    border: 1px solid rgba(65,108,70,.20);
    border-radius: 9px;
    background: #416c46;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(31,47,34,.10);
    transition: background-color .18s ease, border-color .18s ease,
        box-shadow .18s ease;
}

#pay_variant .invoice_container .variant-container > span.link.v_invoice:hover {
    border-color: rgba(65,108,70,.28);
    background: #58885d;
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(31,47,34,.14);
}

#pay_variant .invoice_container .variant-container > span.link.v_invoice:active {
    background: #355b3a;
}

/* invoice_print clears the span while the adjacent progressbar shows progress. */
#pay_variant .invoice_container .variant-container > span.link.v_invoice.in-progress:empty {
    display: none;
}

#pay_variant .invoice_container .variant-container > a[download] {
    padding: 8px 14px;
    border-color: rgba(65,108,70,.18);
    background: #eef6ef;
    color: #355b3a;
    white-space: normal;
    overflow-wrap: anywhere;
}

#pay_variant .invoice_container .variant-container > a[download]:hover {
    border-color: rgba(65,108,70,.28);
    background: #e2f0e4;
    color: #355b3a;
    box-shadow: 0 7px 18px rgba(31,47,34,.14);
}

#pay_variant .invoice_container .variant-container > span.link.v_invoice:focus-visible,
#pay_variant .invoice_container .variant-container > a[download]:focus-visible,
#pay_variant .invoice_container .note_container a:focus-visible {
    outline: 2px solid #58885d;
    outline-offset: 3px;
}

#pay_variant .invoice_container .note_container {
    color: #355b3a;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Flatten only a sole outer description wrapper, not its internal notices. */
#pay_variant .invoice_container .note_container > div:only-child {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#pay_variant .invoice_container .note_container a {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

#pay_variant .invoice_container .note_container a[href$="/public/pict/invoice.gif"] {
    display: none !important;
}

@media (max-width: 767px) {
    #pay_variant .pay-variant-title {
        padding: 14px 16px;
        font-size: 18px;
    }

    #pay_variant .panel.pay_variant.invoice_container {
        padding: 18px 16px;
    }

    #pay_variant .invoice_container > table > tbody > tr {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    #pay_variant .invoice_container > table > tbody > tr > .variant-container {
        padding: 0 0 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(65,108,70,.14);
    }

    #pay_variant .invoice_container .variant-container > span.link.v_invoice,
    #pay_variant .invoice_container .variant-container > a[download] {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }
}

/* =====================================================
   Invoice Editor Modal — Premium Production
   ===================================================== */

#modalContainer:has(#INVOICE_EDITOR) {
    top: 50% !important;
    left: 50% !important;
    width: 480px !important;
    max-width: calc(100% - 32px) !important;
    min-width: 0;
    height: auto !important;
    min-height: 0;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%) !important;
    border: 1px solid rgba(65,108,70,.16) !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 18px 48px rgba(31,47,34,.20) !important;
}

#modalContainer:has(#INVOICE_EDITOR) > .modalTitle {
    height: 0 !important;
    margin: 0;
    padding: 0;
    background: transparent !important;
    color: transparent;
    font-size: 0;
    overflow: visible;
}

#modalContainer:has(#INVOICE_EDITOR) a.modalCloseImg {
    top: -8px !important;
    right: -8px !important;
}

#modalContainer:has(#INVOICE_EDITOR) #basicModalContent {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 0;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: inherit !important;
    box-shadow: none;
    box-sizing: border-box;
    overflow: auto !important;
}

#INVOICE_EDITOR,
#INVOICE_EDITOR fieldset.panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    box-sizing: border-box;
}

#INVOICE_EDITOR fieldset.panel {
    padding: 24px !important;
    border: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#INVOICE_EDITOR table.acquiring-panel,
#INVOICE_EDITOR table.acquiring-panel > tbody,
#INVOICE_EDITOR table.acquiring-panel > tbody > tr,
#INVOICE_EDITOR table.acquiring-panel > tbody > tr > td {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0 !important;
    border: 0;
    border-spacing: 0;
    box-sizing: border-box;
    text-align: left;
}

#INVOICE_EDITOR label[for="INVOICE_AMOUNT"] {
    display: block;
    margin: 0 0 6px;
    color: #355b3a !important;
    font-size: 14px;
    font-weight: 700 !important;
    line-height: 1.4;
}

#INVOICE_EDITOR table.acquiring-panel > tbody > tr > td:has(> #INVOICE_AMOUNT) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

#INVOICE_EDITOR #INVOICE_AMOUNT {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid rgba(65,108,70,.24);
    border-radius: 11px;
    font-size: 16px;
    line-height: 1.4;
}

#INVOICE_EDITOR #INVOICE_AMOUNT:not(:disabled):not(.error) {
    background-color: #f7fbf7;
    color: #355b3a;
}

#INVOICE_EDITOR #INVOICE_CURRENCY {
    color: #355b3a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

#INVOICE_EDITOR button.load {
    display: block;
    width: 100%;
    min-width: 0 !important;
    min-height: 46px !important;
    margin: 16px 0 0;
    padding: 12px 16px !important;
    box-sizing: border-box;
    border-radius: 12px !important;
    font-size: 14px;
    font-weight: 700 !important;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: normal;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

#INVOICE_EDITOR #INVOICE_AMOUNT:focus-visible,
#INVOICE_EDITOR button.load:focus-visible,
#modalContainer:has(#INVOICE_EDITOR) a.modalCloseImg:focus-visible {
    outline: 2px solid #58885d;
    outline-offset: 2px;
}

#INVOICE_EDITOR .note:empty {
    display: none;
}

#INVOICE_EDITOR .note:not(:empty) {
    margin: 0 0 16px;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    #modalContainer:has(#INVOICE_EDITOR) {
        width: calc(100% - 24px) !important;
        max-width: 420px !important;
    }

    #INVOICE_EDITOR fieldset.panel {
        padding: 24px 20px !important;
    }
}

/* =====================================================
   Claim Quick Preview Modal
   Standalone #claiminfo
   ===================================================== */

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) {
    width: 720px !important;
    max-width: calc(100% - 32px) !important;
    height: auto !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 22px !important;
    box-shadow: 0 20px 55px rgba(31,47,34,.20) !important;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) > .modalTitle {
    position: relative;
    flex: 0 0 auto;
    height: auto !important;
    min-height: 56px;
    padding: 16px 56px 16px 20px;
    box-sizing: border-box;
    background: #fbfdfb !important;
    border-bottom: 1px solid #e2ebe4 !important;
    color: #12392e;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) a.modalCloseImg {
    top: 14px !important;
    right: 14px !important;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) a.modalCloseImg:focus-visible {
    outline: 3px solid #58885d;
    outline-offset: 3px;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #basicModalContent {
    display: block;
    flex: 1 1 auto !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 18px 20px 20px !important;
    box-sizing: border-box;
    overflow: auto !important;
    color: #34483b;
    font-weight: 400;
    line-height: 1.45;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo {
    width: 100%;
    min-width: 0;
    max-height: none;
    overflow: visible;
    box-sizing: border-box;
    font-size: 13px;
    overflow-wrap: anywhere;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > br {
    display: none;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.res {
    width: 100%;
    max-width: 100%;
    margin: 0 0 14px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    line-height: 1.45;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.res > thead > tr > th {
    padding: 9px 10px;
    background: #eef5ef;
    color: #12392e;
    border: 0;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.res > thead > tr > th:first-child {
    border-top-left-radius: 10px;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.res > thead > tr > th:last-child {
    border-top-right-radius: 10px;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.res > tbody > tr > td {
    padding: 8px 10px;
    background: #fff;
    color: #34483b;
    border: 0;
    border-bottom: 1px solid #e2ebe4;
    font-weight: 400;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.width100p:first-child > thead th {
    background: #eef6ef;
    color: #416c46;
    font-size: 13px;
    font-weight: 600;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.width100p:first-child > thead b {
    color: #12392e;
    font-size: 19px;
    font-weight: 900;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.width100p:first-child > tbody > tr > td:first-child {
    color: #5f7464;
    font-weight: 600;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.width100p:first-child > tbody > tr > td:last-child b {
    color: #12392e;
    font-weight: 800;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.width100p:first-child > tbody > tr:nth-child(4) > td:last-child b {
    font-weight: 900;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.width100p:first-child :is(.green.bold, .warn) {
    display: inline-block;
    max-width: 100%;
    padding: 4px 8px;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.width100p:first-child .green.bold {
    background: #eef7f0;
    color: #356c43;
    border: 1px solid rgba(65,108,70,.14);
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.width100p:first-child .warn {
    background: #fff8e9;
    color: #805818;
    border: 1px solid rgba(186,135,43,.20);
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > .tbl_peoples th:first-child {
    width: 12%;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > .tbl_peoples th:nth-child(2) {
    width: 40%;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > .tbl_peoples > tbody > tr > td:nth-child(2) {
    color: #1f2f22;
    font-weight: 700;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > .tbl_peoples > tbody > tr > td:nth-child(n+3) {
    color: #53695a;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.tbl_orders {
    margin-bottom: 0;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > .tbl_orders > tbody > tr > td {
    padding: 10px;
    line-height: 1.6;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > .tbl_orders img {
    margin-right: 6px;
    vertical-align: middle;
    opacity: 1;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > a[href*="/cl_refer"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 38px;
    margin: 16px 0 0 auto;
    padding: 8px 16px;
    box-sizing: border-box;
    background: #12392e;
    color: #fff;
    border: 1px solid rgba(18,57,46,.18);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, box-shadow .18s ease;
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > a[href*="/cl_refer"]:hover {
    background: #1b4a3c;
    color: #fff;
    box-shadow: 0 3px 8px rgba(18,57,46,.14);
}

#modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > a[href*="/cl_refer"]:focus-visible {
    outline: 2px solid #58885d;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) {
        width: calc(100vw - 24px) !important;
        max-width: 100% !important;
        max-height: calc(100vh - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
    }

    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) > .modalTitle {
        padding-left: 14px;
        font-size: 15px;
    }

    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #basicModalContent {
        padding: 14px 14px 16px !important;
    }

    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.res {
        font-size: 12px;
    }

    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > table.res > tbody > tr > td {
        padding: 8px 6px;
    }

    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > .tbl_peoples,
    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > .tbl_peoples > :is(thead, tbody) {
        display: block;
    }

    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > .tbl_peoples tr {
        display: grid;
        grid-template-columns: 38px repeat(2, minmax(0, 1fr));
        padding: 6px;
    }

    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > .tbl_peoples > thead > tr {
        background: #eef5ef;
        border-radius: 10px 10px 0 0;
    }

    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > .tbl_peoples > tbody > tr {
        background: #fff;
        border-bottom: 1px solid #e2ebe4;
    }

    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #basicModalContent #claiminfo > .tbl_peoples > :is(thead, tbody) > tr > :is(th, td) {
        width: auto;
        min-width: 0;
        padding: 5px 4px;
        background: transparent;
        border: 0;
    }

    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > .tbl_peoples tr > :nth-child(2) {
        grid-column: 2 / -1;
    }

    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > .tbl_peoples tr > :nth-child(3) {
        grid-column: 1 / 3;
    }

    #modalContainer:has(#claiminfo):not(:has(#cancel_claim)) #claiminfo > a[href*="/cl_refer"] {
        width: 100%;
    }
}

/* =====================================================
   CL Refer — Cancellation Request Modal
   Desktop + Mobile
   ===================================================== */

#modalContainer:has(#cancel_claim) {
    width: 740px !important;
    max-width: calc(100% - 32px) !important;
    height: auto !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
}

#modalContainer:has(#cancel_claim) > .modalTitle {
    position: relative;
    flex-shrink: 0;
    height: auto !important;
    min-height: 56px;
    padding: 17px 56px 17px 20px;
    box-sizing: border-box;
    background: #fbfdfb !important;
    border-bottom: 1px solid #e2ebe4 !important;
    color: #12392e;
    text-align: left;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

#modalContainer:has(#cancel_claim) a.modalCloseImg {
    top: 14px !important;
    right: 14px !important;
}

#modalContainer:has(#cancel_claim) a.modalCloseImg:focus-visible {
    outline: 3px solid rgba(65,108,70,.35);
    outline-offset: 3px;
}

#modalContainer:has(#cancel_claim) #basicModalContent {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    overflow: auto !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 20px !important;
    color: #243526;
    font-weight: 400;
    line-height: 1.45;
}

#modalContainer:has(#cancel_claim) #cancel_claim {
    width: 100%;
    min-width: 0;
    max-height: none;
    overflow: visible;
    box-sizing: border-box;
    font-size: 13px;
    overflow-wrap: anywhere;
}

#modalContainer:has(#cancel_claim) #cancel_claim > br,
#modalContainer:has(#cancel_claim) #cancel_claim #claiminfo > br,
#modalContainer:has(#cancel_claim) #cancel_claim > .note:empty {
    display: none;
}

#modalContainer:has(#cancel_claim) #cancel_claim table.res {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
}

#modalContainer:has(#cancel_claim) #cancel_claim table.res thead th,
#modalContainer:has(#cancel_claim) #cancel_claim table.res thead td {
    padding: 9px 10px;
    background: #eef5f0;
    color: #12392e;
    border: 0;
    font-size: 12px;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
}

#modalContainer:has(#cancel_claim) #cancel_claim table.res thead tr:first-child > :first-child {
    border-top-left-radius: 10px;
}

#modalContainer:has(#cancel_claim) #cancel_claim table.res thead tr:first-child > :last-child {
    border-top-right-radius: 10px;
}

#modalContainer:has(#cancel_claim) #basicModalContent #cancel_claim table.res tbody td {
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #e2ebe4;
    background: #fff;
    color: #243526;
    font-weight: 400;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
}

#modalContainer:has(#cancel_claim) #cancel_claim #claiminfo > table:first-child thead th {
    font-size: 14px;
}

#modalContainer:has(#cancel_claim) #cancel_claim #claiminfo > table:first-child thead b {
    font-size: 18px;
    font-weight: 800;
}

#modalContainer:has(#cancel_claim) #cancel_claim #claiminfo > table:first-child tbody td:first-child {
    color: #5f7464;
}

#modalContainer:has(#cancel_claim) #cancel_claim #claiminfo > table:first-child .green.bold,
#modalContainer:has(#cancel_claim) #cancel_claim #claiminfo > table:first-child .warn {
    display: inline-block;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 700;
}

#modalContainer:has(#cancel_claim) #cancel_claim #claiminfo > table:first-child .green.bold {
    background: #eaf5ed;
    color: #355b3a;
}

#modalContainer:has(#cancel_claim) #cancel_claim #claiminfo > table:first-child .warn {
    background: #fff5e5;
    color: #80551f;
}

#modalContainer:has(#cancel_claim) #cancel_claim .tbl_peoples th:first-child {
    width: 12%;
}

#modalContainer:has(#cancel_claim) #cancel_claim .tbl_peoples th:nth-child(2) {
    width: 40%;
}

#modalContainer:has(#cancel_claim) #basicModalContent #cancel_claim .tbl_peoples tbody td:nth-child(2) {
    font-weight: 600;
}

#modalContainer:has(#cancel_claim) #basicModalContent #cancel_claim .tbl_peoples tbody td:nth-child(n+3) {
    color: #5f7464;
}

#modalContainer:has(#cancel_claim) #basicModalContent #cancel_claim .tbl_orders tbody td {
    padding: 10px;
    background: #fff;
    line-height: 1.45;
}

#modalContainer:has(#cancel_claim) #cancel_claim table.tbl_orders {
    margin-bottom: 16px;
}

#modalContainer:has(#cancel_claim) #basicModalContent #cancel_claim .tbl_orders td img {
    vertical-align: middle;
    margin-right: 6px;
    opacity: 1;
}

#modalContainer:has(#cancel_claim) #cancel_claim .note:not(:empty) {
    margin: 0 0 16px;
}

#modalContainer:has(#cancel_claim) #cancel_claim select.cancel_claim_reason_select,
#modalContainer:has(#cancel_claim) #cancel_claim textarea,
#modalContainer:has(#cancel_claim) #cancel_claim input {
    max-width: 100%;
    box-sizing: border-box;
}

#modalContainer:has(#cancel_claim) #cancel_claim #agreement {
    display: block;
    width: 340px;
    min-width: 0;
    max-width: 100%;
    min-height: 46px;
    margin: 16px auto 0;
    padding: 12px 22px;
    box-sizing: border-box;
    border: 1px solid rgba(198,161,91,.35);
    border-radius: 11px;
    background: #12392e;
    color: #fff;
    opacity: 1;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: 0 3px 8px rgba(18,57,46,.14);
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

#modalContainer:has(#cancel_claim) #cancel_claim #agreement:hover:not(:disabled):not([aria-disabled="true"]):not(.disabled) {
    background: #1b4a3c;
    border-color: rgba(198,161,91,.50);
    box-shadow: 0 5px 12px rgba(18,57,46,.18);
}

#modalContainer:has(#cancel_claim) #cancel_claim #agreement:active:not(:disabled):not([aria-disabled="true"]):not(.disabled) {
    background: #0e3026;
    box-shadow: inset 0 2px 4px rgba(18,57,46,.18);
}

#modalContainer:has(#cancel_claim) #cancel_claim #agreement:focus-visible {
    outline: 3px solid #58885d;
    outline-offset: 3px;
}

#modalContainer:has(#cancel_claim) #cancel_claim #agreement:disabled,
#modalContainer:has(#cancel_claim) #cancel_claim #agreement[aria-disabled="true"],
#modalContainer:has(#cancel_claim) #cancel_claim #agreement.disabled {
    background: #e7ece8;
    color: #849087;
    border-color: #d5ddd7;
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    #modalContainer:has(#cancel_claim) {
        width: calc(100vw - 24px) !important;
        max-width: 100% !important;
    }

    #modalContainer:has(#cancel_claim) > .modalTitle {
        padding-left: 12px;
        font-size: 15px;
    }

    #modalContainer:has(#cancel_claim) #basicModalContent {
        padding: 16px 12px !important;
    }

    #modalContainer:has(#cancel_claim) #cancel_claim table.res,
    #modalContainer:has(#cancel_claim) #cancel_claim table.res thead th {
        font-size: 12px;
    }

    #modalContainer:has(#cancel_claim) #basicModalContent #cancel_claim table.res tbody td,
    #modalContainer:has(#cancel_claim) #cancel_claim table.res thead th {
        padding: 8px 5px;
    }

    #modalContainer:has(#cancel_claim) #cancel_claim table.tbl_peoples,
    #modalContainer:has(#cancel_claim) #cancel_claim .tbl_peoples > thead,
    #modalContainer:has(#cancel_claim) #cancel_claim .tbl_peoples > tbody {
        display: block;
    }

    #modalContainer:has(#cancel_claim) #cancel_claim .tbl_peoples tr {
        display: grid;
        grid-template-columns: 38px repeat(2, minmax(0, 1fr));
        padding: 6px;
    }

    #modalContainer:has(#cancel_claim) #cancel_claim .tbl_peoples thead tr {
        background: #eef5f0;
        border-radius: 10px 10px 0 0;
    }

    #modalContainer:has(#cancel_claim) #cancel_claim .tbl_peoples tbody tr {
        background: #fff;
        border-bottom: 1px solid #e2ebe4;
    }

    #modalContainer:has(#cancel_claim) #basicModalContent #cancel_claim table.tbl_peoples th,
    #modalContainer:has(#cancel_claim) #basicModalContent #cancel_claim table.tbl_peoples tbody td {
        width: auto;
        min-width: 0;
        padding: 5px 4px;
        background: transparent;
        border: 0;
    }

    #modalContainer:has(#cancel_claim) #cancel_claim .tbl_peoples tr > :nth-child(2) {
        grid-column: 2 / -1;
    }

    #modalContainer:has(#cancel_claim) #cancel_claim .tbl_peoples tr > :nth-child(3) {
        grid-column: 1 / 3;
    }

    #modalContainer:has(#cancel_claim) #cancel_claim #agreement {
        width: 100%;
        min-height: 48px;
        padding-inline: 12px;
    }
}

/* =====================================================
   Session Recovery - Modal Login
   #logonContainer only; standalone login stays unchanged.
   ===================================================== */

body:has(#logonContainer) > #logonOverlay {
    background: rgba(18,35,27,.42) !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: blur(7px) saturate(.85);
    backdrop-filter: blur(7px) saturate(.85);
}

#logonContainer:has(#loginbox) {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 3003;
    display: flex !important;
    flex-direction: column !important;
    width: 440px !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: rgba(255,255,255,.92) !important;
    border: 1px solid rgba(255,255,255,.55) !important;
    border-radius: 24px !important;
    box-shadow: 0 28px 70px rgba(18,57,46,.25) !important;
    overflow: visible !important;
}

#logonContainer:has(#loginbox) > .modalTitle {
    position: relative !important;
    flex: 0 0 auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 13px 54px 13px 18px !important;
    box-sizing: border-box !important;
    background: rgba(255,255,255,.88) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(65,108,70,.10) !important;
    border-radius: 23px 23px 0 0 !important;
    color: #12392e !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

#logonContainer:has(#loginbox) a.modalCloseImg {
    top: 9px !important;
    right: 12px !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    z-index: 5 !important;
}

#logonContainer:has(#loginbox) a.modalCloseImg:focus-visible {
    outline: 3px solid rgba(65,108,70,.55) !important;
    outline-offset: 3px;
}

/* The content is the only scroll region; login.css caps the wrapper at 400px. */
#logonContainer:has(#loginbox) #basicModalContent {
    position: relative !important;
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    background: linear-gradient(145deg, rgba(239,248,240,.98), rgba(255,255,255,.98)) !important;
    border: 0 !important;
    border-radius: 0 0 23px 23px !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scroll-padding-block: 20px;
}

#logonContainer:has(#loginbox) .logon-wrapper,
#logonContainer:has(#loginbox) #loginbox {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
}

#logonContainer:has(#loginbox) #basicModalContent::before,
#logonContainer:has(#loginbox) #basicModalContent::after,
#logonContainer:has(#loginbox) .logon-wrapper::before,
#logonContainer:has(#loginbox) .logon-wrapper::after,
#logonContainer:has(#loginbox) #loginbox::before,
#logonContainer:has(#loginbox) #loginbox::after {
    content: none !important;
    display: none !important;
}

#logonContainer:has(#loginbox) .logon-wrapper > .header {
    display: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 20px !important;
    padding: 5px !important;
    background: #f5fbf6 !important;
    border: 1px solid rgba(65,108,70,.16) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

#logonContainer:has(#loginbox) .header > .legend.panel,
#logonContainer:has(#loginbox) .header > .button-wrapper {
    display: flex !important;
    flex: 1 1 0 !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

#logonContainer:has(#loginbox) .header > .legend.panel,
#logonContainer:has(#loginbox) .header > .button-wrapper > .button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

#logonContainer:has(#loginbox) .header > .legend.panel {
    background: #12392e !important;
    color: #fff !important;
}

#logonContainer:has(#loginbox) .header > .button-wrapper > .button {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    background: #fff !important;
    color: #416c46 !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

#logonContainer:has(#loginbox) .header > .button-wrapper > .button:hover {
    background: #eaf7ec !important;
}

#logonContainer:has(#loginbox) #loginbox .choose {
    margin: 0 0 18px !important;
    padding: 0 !important;
}

#logonContainer:has(#loginbox) #loginbox .choose .legend {
    width: auto !important;
    color: #12392e !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

#logonContainer:has(#loginbox) #loginForm .row {
    margin: 0 0 16px !important;
}

#logonContainer:has(#loginbox) #loginForm label {
    display: block !important;
    margin: 0 0 8px !important;
    color: #355b3a !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

#logonContainer:has(#loginbox) #loginForm input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    float: none !important;
    background: rgba(255,255,255,.90) !important;
    border: 1px solid rgba(65,108,70,.18) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: #1f2f22 !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
}

#logonContainer:has(#loginbox) #loginForm input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus {
    border-color: rgba(65,108,70,.55) !important;
    box-shadow: 0 0 0 3px rgba(65,108,70,.10) !important;
    outline: none !important;
}

#logonContainer:has(#loginbox) #loginForm #password {
    padding-right: 50px !important;
}

#logonContainer:has(#loginbox) #loginbox .input_icon {
    top: 5px !important;
    right: 7px !important;
    transform: none !important;
    color: #5f7464 !important;
    opacity: 1 !important;
}

#logonContainer:has(#loginbox) #loginbox .input_icon:hover {
    color: #12392e !important;
}

#logonContainer:has(#loginbox) #loginbox .input_icon i {
    transform: none !important;
}

/* Target the action class: trailing SAMO .fixer nodes invalidate :last-of-type. */
#logonContainer:has(#loginbox) #loginbox .row.mlt-login-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 4px 0 0 !important;
}

#logonContainer:has(#loginbox) #loginbox .mlt-login-secondary-actions {
    flex: 1 1 150px !important;
    min-width: 0 !important;
}

#logonContainer:has(#loginbox) #loginbox .mlt-login-secondary-link {
    color: #416c46 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

#logonContainer:has(#loginbox) #loginbox button.button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 120px !important;
    height: auto !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 22px !important;
    background: #12392e !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 11px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    box-shadow: 0 7px 18px rgba(18,57,46,.16) !important;
}

#logonContainer:has(#loginbox) #loginbox button.button:hover:not(:disabled) {
    background: #1b4a3c !important;
    box-shadow: 0 9px 20px rgba(18,57,46,.20) !important;
}

#logonContainer:has(#loginbox) #loginbox button.button:disabled {
    background: #e7ece8 !important;
    color: #849087 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

#logonContainer:has(#loginbox) #loginbox button.button:focus-visible,
#logonContainer:has(#loginbox) .header .button:focus-visible {
    outline: 3px solid rgba(65,108,70,.55) !important;
    outline-offset: 3px;
}

#logonContainer:has(#loginbox) .fixer {
    display: none !important;
}

/* Preserve message visibility; only remove the legacy absolute positioning. */
#logonContainer:has(#loginbox) h1.error_message,
#logonContainer:has(#loginbox) h1.cookie_alert {
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    box-sizing: border-box !important;
}

@media (max-width: 767px) {
    #logonContainer:has(#loginbox) {
        width: calc(100vw - 24px) !important;
        max-width: 440px !important;
        max-height: calc(100vh - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
        border-radius: 20px !important;
    }

    #logonContainer:has(#loginbox) > .modalTitle {
        border-radius: 19px 19px 0 0 !important;
    }

    #logonContainer:has(#loginbox) #basicModalContent {
        padding: 18px 16px 20px !important;
        border-radius: 0 0 19px 19px !important;
    }

    #logonContainer:has(#loginbox) #loginbox .row.mlt-login-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #logonContainer:has(#loginbox) #loginbox .mlt-login-secondary-actions {
        flex: 0 0 auto !important;
    }

    #logonContainer:has(#loginbox) #loginbox button.button {
        width: 100% !important;
    }
}

/* =====================================================
   Booking Agreement Modal
   #agreement_text; cancellation keeps its own presentation.
   ===================================================== */

#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) {
    width: min(1080px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
    height: auto !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    background: #fff !important;
    border: none !important;
    border-radius: 22px !important;
    box-shadow: 0 22px 60px rgba(31,47,34,.20) !important;
}

#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) > .modalTitle {
    position: relative;
    flex: 0 0 auto;
    height: auto !important;
    min-height: 52px;
    padding: 15px 54px 15px 22px !important;
    box-sizing: border-box;
    background: #fff !important;
    color: #12392e !important;
    border: none !important;
    border-bottom: 1px solid rgba(65,108,70,.10) !important;
    border-radius: 22px 22px 0 0;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.4;
    text-align: left;
}

#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) a.modalCloseImg {
    top: 14px !important;
    right: 14px !important;
}

#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) a.modalCloseImg:focus-visible {
    outline: 2px solid #58885d;
    outline-offset: 3px;
}

#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) #basicModalContent {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box;
    background: #fff !important;
    border: none !important;
    border-radius: 0 0 22px 22px !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

/* Replace bron_info.css's 350px nested scroller with content-driven height. */
#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) #agreement_text {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    max-height: none;
    margin: 0;
    box-sizing: border-box;
    overflow: visible;
    text-align: left;
}

#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) #basicModalContent > #agreement_text + br {
    display: none;
}

#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) #basicModalContent > button#agreement {
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: fit-content;
    min-width: 200px;
    max-width: 100%;
    height: auto;
    min-height: 46px;
    margin: 16px auto 0;
    padding: 0 24px;
    box-sizing: border-box;
    background: #12392e;
    color: #fff;
    border: 1px solid rgba(18,57,46,.18);
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 7px 18px rgba(18,57,46,.16);
    cursor: pointer;
    transform: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) #basicModalContent > button#agreement:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]) {
    background: #1b4a3c;
    border-color: rgba(198,161,91,.35);
    box-shadow: 0 9px 20px rgba(18,57,46,.20);
}

#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) #basicModalContent > button#agreement:active:not(:disabled):not(.disabled):not([aria-disabled="true"]) {
    background: #0e3026;
}

#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) #basicModalContent > button#agreement:focus-visible {
    outline: 2px solid #58885d;
    outline-offset: 3px;
}

#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) #basicModalContent > button#agreement:disabled,
#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) #basicModalContent > button#agreement.disabled,
#modalContainer:has(#agreement_text):not(:has(#cancel_claim)) #basicModalContent > button#agreement[aria-disabled="true"] {
    background: #e7ece8;
    color: #849087;
    border-color: #d5ddd7;
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    #modalContainer:has(#agreement_text):not(:has(#cancel_claim)) {
        width: calc(100vw - 24px) !important;
        max-width: none !important;
        border-radius: 20px !important;
    }

    #modalContainer:has(#agreement_text):not(:has(#cancel_claim)) > .modalTitle {
        padding-left: 16px !important;
        border-radius: 20px 20px 0 0;
    }

    #modalContainer:has(#agreement_text):not(:has(#cancel_claim)) #basicModalContent {
        padding: 16px 14px !important;
        border-radius: 0 0 20px 20px !important;
    }

    /* The rendered agreement has exactly one inline grid: its eight-item checklist. */
    #modalContainer:has(#agreement_text):not(:has(#cancel_claim)) #agreement_text [style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 7px !important;
    }

    #modalContainer:has(#agreement_text):not(:has(#cancel_claim)) #basicModalContent > button#agreement {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        margin-top: 14px;
    }
}
/* =========================================================
   MLT Desktop Header Experience — FINAL
   Marina Life Travel
   Decorative banner + real Private Requests CTA
   Desktop only
   ========================================================= */

@media screen and (min-width: 768px) {

    /* -----------------------------------------------------
       1. Header canvas
       ----------------------------------------------------- */

    #header .high-menu {
        position: relative !important;
        overflow: hidden !important;
        isolation: isolate !important;
    }

    #header .high-menu .note-header {
        position: absolute !important;
        z-index: 2 !important;

        top: 0 !important;
        left: 15% !important;
        right: 0 !important;

        width: auto !important;
        height: 72px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;
        pointer-events: none !important;
    }


    /* -----------------------------------------------------
       2. Premium banner
       ----------------------------------------------------- */

    #header .high-menu .note {
        position: relative !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        width: 100% !important;
        height: 72px !important;

        margin: 0 !important;
        padding: 0 38px 0 34px !important;
        box-sizing: border-box !important;

        text-align: left !important;

        background:
            radial-gradient(
                ellipse at 22% 130%,
                rgba(187, 228, 193, .30) 0%,
                rgba(187, 228, 193, .10) 28%,
                transparent 54%
            ),
            radial-gradient(
                ellipse at 78% -45%,
                rgba(119, 174, 128, .16) 0%,
                rgba(187, 228, 193, .08) 32%,
                transparent 58%
            ),
            linear-gradient(
                105deg,
                rgba(255,255,255,.99) 0%,
                rgba(250,253,250,.98) 28%,
                rgba(241,249,242,.97) 66%,
                rgba(232,245,235,.96) 100%
            ) !important;

        border: 0 !important;
        overflow: hidden !important;

        pointer-events: none !important;
    }


    /* -----------------------------------------------------
       3. Main destination copy
       ----------------------------------------------------- */

    #header .high-menu .note::before {
        content:
            "MALDIVES  ◇  INDIAN OCEAN\A"
            "Curated journeys. Timeless memories.";

        white-space: pre !important;

        position: relative !important;
        z-index: 4 !important;

        display: block !important;
        flex: 0 1 auto !important;

        color: #416c46 !important;

        font-family: var(--main-font-family) !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1.65 !important;

        letter-spacing: 1.75px !important;

        opacity: .94 !important;

        text-shadow:
            0 1px 0 rgba(255,255,255,.80) !important;
    }


    /* -----------------------------------------------------
       4. Soft animated ocean-light layer
       ----------------------------------------------------- */

    #header .high-menu .note::after {
        content: "" !important;

        position: absolute !important;
        z-index: 1 !important;

        top: -90% !important;
        left: -18% !important;

        width: 138% !important;
        height: 280% !important;

        pointer-events: none !important;

        background:
            radial-gradient(
                ellipse at 28% 50%,
                rgba(113, 169, 123, .11) 0%,
                transparent 27%
            ),
            radial-gradient(
                ellipse at 63% 48%,
                rgba(187, 228, 193, .18) 0%,
                transparent 30%
            ),
            radial-gradient(
                ellipse at 88% 52%,
                rgba(89, 145, 99, .09) 0%,
                transparent 25%
            ),
            linear-gradient(
                100deg,
                transparent 18%,
                rgba(255,255,255,.34) 38%,
                rgba(187,228,193,.12) 52%,
                rgba(255,255,255,.28) 68%,
                transparent 84%
            ) !important;

        filter: blur(2px) !important;

        transform:
            translate3d(-3%, 0, 0)
            rotate(-2deg) !important;

        animation:
            mltHeaderDrift 12s ease-in-out infinite alternate !important;

        opacity: .88 !important;
    }


    /* -----------------------------------------------------
       5. Real Private Requests CTA
       ----------------------------------------------------- */

    #header .high-menu .note .mlt-private-request {
        position: relative !important;
        z-index: 5 !important;

        flex: 0 0 auto !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 13px !important;

        min-width: 214px !important;
        height: 46px !important;

        margin: 0 !important;
        padding: 0 17px 0 19px !important;
        box-sizing: border-box !important;

        color: #355b3a !important;

        text-decoration: none !important;
        text-align: left !important;

        background:
            linear-gradient(
                135deg,
                rgba(255,255,255,.78),
                rgba(244,250,245,.66)
            ) !important;

        border:
            1px solid rgba(65,108,70,.16) !important;

        border-radius: 14px !important;

        box-shadow:
            0 5px 18px rgba(38,72,44,.07),
            inset 0 1px 0 rgba(255,255,255,.86) !important;

        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;

        cursor: pointer !important;

        pointer-events: auto !important;

        overflow: hidden !important;

        transition:
            transform .28s ease,
            background .28s ease,
            border-color .28s ease,
            box-shadow .28s ease !important;
    }


    /* Small premium accent */

    #header .high-menu .note .mlt-private-request::before {
        content: "" !important;

        display: block !important;
        flex: 0 0 auto !important;

        width: 7px !important;
        height: 7px !important;

        border-radius: 50% !important;

        background: #6f9c76 !important;

        box-shadow:
            0 0 0 4px rgba(111,156,118,.10) !important;

        transition:
            transform .28s ease,
            box-shadow .28s ease !important;
    }


    /* Subtle moving light inside CTA */

    #header .high-menu .note .mlt-private-request::after {
        content: "" !important;

        position: absolute !important;

        top: -70% !important;
        left: -35% !important;

        width: 34% !important;
        height: 240% !important;

        background:
            linear-gradient(
                90deg,
                transparent,
                rgba(255,255,255,.62),
                transparent
            ) !important;

        transform: rotate(18deg) !important;

        opacity: 0 !important;

        pointer-events: none !important;

        transition:
            left .65s ease,
            opacity .28s ease !important;
    }


    /* -----------------------------------------------------
       6. CTA typography
       ----------------------------------------------------- */

    #header .high-menu .note .mlt-private-request-action {
        display: block !important;

        color: #355b3a !important;

        font-family: var(--main-font-family) !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1 !important;

        letter-spacing: 0 !important;
        text-transform: none !important;

        white-space: nowrap !important;

        transition:
            transform .28s ease,
            color .28s ease !important;
    }


    /* -----------------------------------------------------
       7. Premium hover
       ----------------------------------------------------- */

    #header .high-menu .note .mlt-private-request:hover {
        transform: translateY(-2px) !important;

        color: #294d2f !important;

        background:
            linear-gradient(
                135deg,
                rgba(255,255,255,.94),
                rgba(235,246,237,.88)
            ) !important;

        border-color:
            rgba(65,108,70,.29) !important;

        box-shadow:
            0 9px 24px rgba(38,72,44,.13),
            inset 0 1px 0 rgba(255,255,255,.96) !important;
    }

    #header .high-menu .note .mlt-private-request:hover::before {
        transform: scale(1.12) !important;

        box-shadow:
            0 0 0 5px rgba(111,156,118,.13),
            0 0 15px rgba(111,156,118,.18) !important;
    }

    #header .high-menu .note .mlt-private-request:hover::after {
        left: 112% !important;
        opacity: .72 !important;
    }

    #header .high-menu .note .mlt-private-request:hover
    .mlt-private-request-action {
        color: #294d2f !important;
        transform: translateX(2px) !important;
    }


    /* Keyboard navigation */

    #header .high-menu .note .mlt-private-request:focus-visible {
        outline:
            2px solid rgba(65,108,70,.48) !important;

        outline-offset: 3px !important;
    }


    /* -----------------------------------------------------
       8. Ambient movement across entire banner
       ----------------------------------------------------- */

    @keyframes mltHeaderDrift {

        0% {
            transform:
                translate3d(-4%, 0, 0)
                rotate(-2deg)
                scale(1.01);

            opacity: .68;
        }

        45% {
            transform:
                translate3d(1.5%, -1%, 0)
                rotate(-1deg)
                scale(1.035);

            opacity: .96;
        }

        100% {
            transform:
                translate3d(5%, 1%, 0)
                rotate(1deg)
                scale(1.015);

            opacity: .76;
        }
    }


    /* -----------------------------------------------------
       9. Medium desktop / laptop protection
       ----------------------------------------------------- */

    @media screen and (max-width: 1050px) {

        #header .high-menu .note {
            padding-left: 24px !important;
            padding-right: 24px !important;
        }

        #header .high-menu .note::before {
            font-size: 10px !important;
            letter-spacing: 1.25px !important;
        }

        #header .high-menu .note .mlt-private-request {
            min-width: 190px !important;
            padding-left: 15px !important;
            padding-right: 15px !important;
            gap: 10px !important;
        }

    }


    /* -----------------------------------------------------
       10. Respect reduced-motion preference
       ----------------------------------------------------- */

    @media (prefers-reduced-motion: reduce) {

        #header .high-menu .note::after {
            animation: none !important;
            transform: none !important;
        }

        #header .high-menu .note .mlt-private-request,
        #header .high-menu .note .mlt-private-request::before,
        #header .high-menu .note .mlt-private-request::after,
        #header .high-menu .note .mlt-private-request-action {
            transition: none !important;
        }
    }
}

/* =========================================================
   MLT Header — soft right edge + mail icon refinement
   ========================================================= */

/* Soft fade at the far-right edge of the experience */
#header .high-menu .note-header::after {
    content: "" !important;

    position: absolute !important;
    z-index: 3 !important;

    top: 0 !important;
    right: 0 !important;

    width: 42px !important;
    height: 72px !important;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,.42) 48%,
            rgba(255,255,255,.88) 82%,
            #ffffff 100%
        ) !important;

    pointer-events: none !important;
}
/* =========================================================
   MLT Header — soft left edge fade
   ========================================================= */

#header .high-menu .note-header::before {
    content: "" !important;

    position: absolute !important;
    z-index: 3 !important;

    top: 0 !important;
    left: 0 !important;

    width: 55px !important;
    height: 72px !important;

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            rgba(255,255,255,.88) 18%,
            rgba(255,255,255,.48) 52%,
            rgba(255,255,255,0) 100%
        ) !important;

    pointer-events: none !important;
}

/* Give CTA some breathing room before the fade */
#header .high-menu .note {
    padding-right: 62px !important;
}


/* Contact action + envelope */
#header .high-menu .note .mlt-private-request-action {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}


/* Premium mail icon */
#header .high-menu .note .mlt-private-request-action i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 20px !important;
    height: 20px !important;

    color: #527b58 !important;

    font-size: 10px !important;

    border: 1px solid rgba(65,108,70,.15) !important;
    border-radius: 50% !important;

    background: rgba(255,255,255,.58) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.85) !important;

    transition:
        transform .28s ease,
        color .28s ease,
        background .28s ease,
        border-color .28s ease !important;
}


/* Tiny tactile response */
#header .high-menu .note .mlt-private-request:hover
.mlt-private-request-action i {
    transform: translateX(2px) rotate(-5deg) !important;

    color: #355b3a !important;

    background: rgba(255,255,255,.9) !important;

    border-color: rgba(65,108,70,.26) !important;
}

/* =====================================================
   Agency Agreement Notice - localized BRON_AGREEMENT_ABSENCE
   ===================================================== */

#system-error:has(> .mlt-agreement-notice) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 32px 24px;
    color: #355b3a;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
}

#system-error > .mlt-agreement-notice {
    box-sizing: border-box;
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid rgba(65,108,70,.14);
    border-radius: 18px;
    background: #f5faf6;
    box-shadow: 0 10px 28px rgba(53,91,58,.08);
    color: #355b3a;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    overflow-wrap: anywhere;
}

#system-error .mlt-agreement-notice-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

#system-error .mlt-agreement-notice-icon {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(65,108,70,.12);
    border-radius: 12px;
    background: #faf9f5;
    color: #416c46;
    font-size: 21px;
    box-sizing: border-box;
}

#system-error .mlt-agreement-notice-title {
    min-width: 0;
    margin: 0;
    color: #355b3a;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

#system-error .mlt-agreement-notice-description,
#system-error .mlt-agreement-notice-activation,
#system-error .mlt-agreement-notice-help > p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

#system-error .mlt-agreement-notice-activation {
    margin-top: 12px;
    color: #5f7464;
}

#system-error .mlt-agreement-notice-help {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(65,108,70,.12);
}

#system-error .mlt-agreement-notice-help > h3 {
    margin: 0 0 8px;
    color: #355b3a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
}

#system-error .mlt-agreement-notice-help > p {
    color: #5f7464;
}

#system-error .mlt-agreement-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    margin-top: 20px;
    padding: 11px 18px;
    border: 1px solid #416c46;
    border-radius: 10px;
    background: #416c46;
    box-shadow: 0 3px 8px rgba(53,91,58,.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, box-shadow .18s ease;
}

#system-error .mlt-agreement-contact > i {
    flex: 0 0 auto;
}

#system-error .mlt-agreement-contact > span {
    min-width: 0;
}

#system-error .mlt-agreement-contact:hover {
    background: #355b3a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(53,91,58,.18);
}

#system-error .mlt-agreement-contact:focus-visible {
    outline: 2px solid #355b3a;
    outline-offset: 3px;
}

#system-error .mlt-agreement-notice-email {
    margin-top: 10px;
    color: #5f7464;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

@media (min-width: 768px) and (max-width: 1023px) {
    #system-error:has(> .mlt-agreement-notice) {
        padding: 24px 20px;
    }

    #system-error > .mlt-agreement-notice {
        padding: 28px 24px;
    }
}

@media (max-width: 767px) {
    #system-error:has(> .mlt-agreement-notice) {
        padding: 20px 16px;
    }

    #system-error > .mlt-agreement-notice {
        padding: 22px 20px;
    }

    #system-error .mlt-agreement-notice-header {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    #system-error .mlt-agreement-notice-title {
        font-size: 20px;
    }

    #system-error .mlt-agreement-contact {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #system-error .mlt-agreement-contact {
        transition: none;
    }
}