/* =============================================================================
   Samui Touren — Consolidated Inline Styles
   Extracted from child theme inc/ modules for performance.
   ============================================================================= */

/* ── samui-cls-fix (security.php) ── */
/* Pre-reserve flexslider height to prevent CLS */
.gdlr-core-flexslider.flexslider {
    min-height: 300px;
    contain: layout style;
}
.gdlr-core-flexslider .flex-viewport {
    overflow: hidden;
}
/* Stabilize sticky navigation height during scroll transition */
.traveltour-sticky-navigation .traveltour-header-inner {
    min-height: 80px;
}
.traveltour-sticky-navigation.traveltour-fixed-navigation .traveltour-header-inner {
    min-height: 60px;
}
/* Prevent CLS from WhatsApp floating widget */
.wa__btn_popup {
    contain: layout style;
    position: fixed !important;
}

/* ── samui-cls-fix (performance.php) ── */
' . "\n";
    // RevSlider container (homepage only, but CSS is lightweight)
    echo '.gdlr-core-revolution-slider-item{min-height:700px}' . "\n";
    echo '@media(max-width:1024px){.gdlr-core-revolution-slider-item{min-height:768px}}' . "\n";
    echo '@media(max-width:778px){.gdlr-core-revolution-slider-item{min-height:500px}}' . "\n";
    echo '@media(max-width:480px){.gdlr-core-revolution-slider-item{min-height:400px}}' . "\n";
    // Tour thumbnails — handled by unified rules in style.css
    // Tour detail page title background image
    echo '.traveltour-page-title-container{min-height:200px}' . "\n";
    echo '@media(max-width:778px){.traveltour-page-title-container{min-height:150px}}' . "\n";
    // GoodLayers page builder images — prevent CLS
    echo '.gdlr-core-pbf-background-wrap img{width:100%;height:auto}' . "\n";
    // Tour booking sidebar — prevent reflow
    echo '.tourmaster-tour-booking-bar-wrap{min-height:320px}' . "\n";
    echo '@media(max-width:999px){.tourmaster-tour-booking-bar-wrap{min-height:auto}}' . "\n";
    echo '

/* ── samui-topbar-fix (performance.php) ── */
' . "\n";

    // === GLOBE LANGUAGE DROPDOWN ===
    echo '.samui-lang-switch{position:relative;display:none;align-items:center;cursor:pointer;margin-right:14px;height:22px;z-index:100000;padding:4px 6px}' . "\n";
    echo '.samui-lang-switch .fa-globe{font-size:18px!important;color:#fff!important;padding:2px}' . "\n";
    echo '.samui-lang-switch .samui-lang-current{font-size:13px;color:#fff;margin-left:5px;font-weight:500;text-transform:uppercase;letter-spacing:.5px}' . "\n";
    echo '.samui-lang-switch .fa-caret-down{font-size:10px!important;color:rgba(255,255,255,.7)!important;margin-left:3px}' . "\n";
    // Dropdown panel
    echo '.samui-lang-dropdown{position:absolute;top:calc(100% + 6px);left:-8px;background:rgba(10,22,40,0.95)!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important;border:1px solid rgba(255,255,255,0.1)!important;border-radius:10px!important;box-shadow:0 12px 36px rgba(0,0,0,0.35)!important;padding:10px 16px!important;min-width:130px;z-index:49999;opacity:0;visibility:hidden;transform:translateY(6px);transition:all .2s ease}' . "\n";
    echo '.samui-lang-switch:hover .samui-lang-dropdown,.samui-lang-switch.active .samui-lang-dropdown{opacity:1;visibility:visible;transform:translateY(0)}' . "\n";
    // Dropdown links — MUST override theme's .traveltour-body .traveltour-top-bar a{color:#fff}
    echo '.traveltour-body .samui-lang-dropdown a,.samui-lang-dropdown a,.samui-lang-switch .samui-lang-dropdown a{display:flex!important;align-items:center;gap:8px;padding:8px 14px;color:rgba(255,255,255,0.85)!important;font-size:13px!important;text-decoration:none!important;white-space:nowrap;transition:background .15s,color .15s;background-color:transparent!important}' . "\n";
    echo '.traveltour-body .samui-lang-dropdown a:hover,.samui-lang-dropdown a:hover{background:rgba(0,181,247,0.1)!important;color:#00b5f7!important}' . "\n";
    // Nuclear override: beats .traveltour-body .traveltour-top-bar a{color:#fff}
    echo '.traveltour-body .traveltour-top-bar .samui-lang-dropdown a,.traveltour-body .traveltour-top-bar .samui-lang-switch .samui-lang-dropdown a,.traveltour-body .traveltour-top-bar-left .samui-lang-dropdown a{color:rgba(255,255,255,0.85)!important;background-color:transparent!important}' . "\n";
    echo '.samui-lang-dropdown a img{width:20px!important;height:14px!important;max-width:20px!important;border-radius:2px;flex-shrink:0;box-shadow:0 0 1px rgba(0,0,0,.2)}' . "\n";
    echo '.traveltour-body .samui-lang-dropdown a.samui-lang-active,.samui-lang-dropdown a.samui-lang-active{font-weight:600;color:#02b5f8!important}' . "\n";

    // === HIDE ORIGINAL FLAG IMAGES ===
    echo '.traveltour-custom-wpml-flag{display:none!important}' . "\n";
    // === DESKTOP NAV WPML LANGUAGE DROPDOWN — restyle to match our design ===
    echo '.traveltour-top-bar-wpml-flag{position:relative;display:inline-flex;align-items:center;margin-left:15px}' . "\n";
    echo '.traveltour-dropdown-wpml-flag{position:relative;cursor:pointer;padding-top:0!important;padding-bottom:0!important}' . "\n";
    echo '.traveltour-dropdown-wpml-flag-background{display:none}' . "\n";
    echo '.traveltour-dropdown-wpml-current-language{font-size:13px;color:#fff;font-weight:500;text-transform:capitalize;letter-spacing:.5px;padding:4px 8px;cursor:pointer}' . "\n";
    echo '.traveltour-dropdown-wpml-item a img,.traveltour-dropdown-wpml-current-language img{width:20px!important;height:14px!important;max-width:20px!important;border-radius:2px;flex-shrink:0;box-shadow:0 0 1px rgba(0,0,0,.2);vertical-align:middle}' . "\n";
    echo '.traveltour-dropdown-wpml-current-language::after{content:"\\f0d7";font-family:"FontAwesome";margin-left:5px;font-size:10px;color:rgba(255,255,255,.7)}' . "\n";
    echo '.traveltour-dropdown-wpml-list{position:absolute;top:calc(100% + 6px);right:0;background:rgba(10,22,40,0.95)!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important;border:1px solid rgba(255,255,255,0.1)!important;border-radius:10px!important;box-shadow:0 12px 36px rgba(0,0,0,0.35)!important;padding:10px 16px!important;min-width:130px;z-index:49999;opacity:0;visibility:hidden;transform:translateY(6px);transition:all .2s ease}' . "\n";
    echo '.traveltour-dropdown-wpml-flag:hover .traveltour-dropdown-wpml-list,.traveltour-dropdown-wpml-flag.active .traveltour-dropdown-wpml-list{opacity:1;visibility:visible;transform:translateY(0)}' . "\n";
    echo '.traveltour-dropdown-wpml-item{display:block}' . "\n";
    echo '.traveltour-dropdown-wpml-item a{display:flex!important;align-items:center;gap:8px;padding:6px 12px;color:rgba(255,255,255,0.85)!important;font-size:13px!important;text-decoration:none!important;white-space:nowrap;transition:background .15s,color .15s;background-color:transparent!important}' . "\n";
    echo '.traveltour-dropdown-wpml-item a:hover{background:rgba(0,181,247,0.1)!important;color:#00b5f7!important}' . "\n";
    // On mobile, hide the desktop dropdown (our globe switch handles it)
    echo '@media(max-width:999px){.traveltour-top-bar-wpml-flag{display:none!important}}' . "\n";

    // === SEARCH + MENU OVERLAY CLOSE BUTTONS (all viewports) ===
    echo '.traveltour-top-search-wrap>.traveltour-top-search-close{position:fixed;right:20px;top:20px;z-index:100001;width:48px;height:48px;cursor:pointer}' . "\n";
    echo '.traveltour-top-search-close .icon_close::before{content:"\\f00d"!important;font-family:"FontAwesome"!important}' . "\n";
    echo '.traveltour-top-search-wrap>.traveltour-top-search-close::before{content:"\\f00d";font-family:"FontAwesome";font-size:22px;color:#fff;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.15);transition:background .2s,transform .2s;cursor:pointer}' . "\n";
    echo '.traveltour-top-search-close:hover::before{background:rgba(255,255,255,.3);transform:rotate(90deg)}' . "\n";
    echo '.traveltour-overlay-menu-content .traveltour-overlay-menu-close::after{content:"\\f00d"!important;font-family:"FontAwesome"!important;font-size:32px}' . "\n";

    // === TOP BAR — Icon sizing + alignment (all viewports) ===
    echo '.traveltour-top-bar{line-height:22px}' . "\n";
    echo '.traveltour-top-bar i.fa{font-size:14px!important;vertical-align:middle;position:relative;top:-1px}' . "\n";
    echo '.traveltour-top-bar a{font-size:13px;vertical-align:middle;line-height:22px}' . "\n";
    echo '.traveltour-top-bar-right-social a{margin-left:18px}' . "\n";
    echo '.traveltour-top-bar-right-social a:first-child{margin-left:0}' . "\n";
    echo '.traveltour-top-bar-right-social i.fa{font-size:16px!important;top:0}' . "\n";
    // Phone/email icon spacing
    echo '.traveltour-top-bar .fa-phone{margin-right:6px!important}' . "\n";
    echo '.traveltour-top-bar .fa-envelope-o{margin-left:16px!important;margin-right:6px!important}' . "\n";

    // === MOBILE LAYOUT (≤999px) ===
    echo '@media(max-width:999px){' . "\n";
    echo '  .traveltour-mobile-header-wrap .traveltour-top-bar-container{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap}' . "\n";
    echo '  .traveltour-mobile-header-wrap .traveltour-top-bar-left{float:none;display:flex!important;align-items:center;gap:0;font-size:13px;padding:0 12px}' . "\n";
    echo '  .traveltour-mobile-header-wrap .traveltour-top-bar-right{float:none;display:flex;align-items:center;padding:0 12px}' . "\n";
    echo '  .traveltour-mobile-header-wrap .traveltour-top-bar-right-social{display:flex;align-items:center;gap:18px;margin-left:0}' . "\n";
    echo '  .traveltour-mobile-header-wrap .traveltour-top-bar-right-social a{margin-left:0}' . "\n";
    echo '  .traveltour-mobile-header-wrap .traveltour-top-bar{padding:8px 0;position:relative;z-index:10000}' . "\n";
    echo '}' . "\n";

    // === SMALL MOBILE (≤480px) ===
    echo '@media(max-width:480px){' . "\n";
    echo '  .traveltour-mobile-header-wrap .traveltour-top-bar-left{font-size:12px}' . "\n";
    echo '  .traveltour-mobile-header-wrap .traveltour-top-bar-right-social{gap:14px}' . "\n";
    echo '  .traveltour-mobile-header-wrap .samui-lang-current{display:none}' . "\n";
    echo '  .traveltour-mobile-header-wrap .samui-lang-switch .fa-caret-down{display:none}' . "\n";
    echo '  .samui-lang-switch{display:inline-flex!important;z-index:110001!important}' . "\n";
    echo '  .samui-lang-dropdown{z-index:110001!important}' . "\n";
    echo '  .traveltour-mobile-header .traveltour-logo{pointer-events:none}' . "\n";
    echo '  .traveltour-mobile-header .traveltour-logo a,.traveltour-mobile-header .traveltour-logo img{pointer-events:auto}' . "\n";
    echo '  .traveltour-mobile-header-wrap .fa-envelope-o{margin-left:10px!important}' . "\n";
    echo '}' . "\n";

    echo '

/* ── samui-cf7-tourmaster-match (performance.php) ── */
' . "\n";
    echo '
/* ═══════════════════════════════════════════════════════════
   CF7 Scooter Form — Tourmaster Booking Bar Style Match
   ═══════════════════════════════════════════════════════════ */

/* ── Layout reset ── */
.tourmaster-tour-booking-bar-wrap .wpcf7 { padding: 0; }
.tourmaster-tour-booking-bar-wrap .wpcf7-form { padding: 0; }
.tourmaster-tour-booking-bar-wrap .wpcf7-form > div { padding: 8px 0 0; }

/* ── Remove CF7 auto-inserted <br> and <p> spacing ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-form br { display: none; }
.tourmaster-tour-booking-bar-wrap .wpcf7-form p {
    margin: 0 0 12px;
    padding: 0;
}

/* ── Field labels ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-form label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
    color: #999;
    padding: 0;
}

/* ── Inputs, selects, textareas ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-form input[type="text"],
.tourmaster-tour-booking-bar-wrap .wpcf7-form input[type="email"],
.tourmaster-tour-booking-bar-wrap .wpcf7-form input[type="tel"],
.tourmaster-tour-booking-bar-wrap .wpcf7-form input[type="date"],
.tourmaster-tour-booking-bar-wrap .wpcf7-form select,
.tourmaster-tour-booking-bar-wrap .wpcf7-form textarea {
    font-size: 14px;
    height: 44px;
    padding: 10px 14px;
    width: 100%;
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    outline: none;
    background: #fff;
    color: #333;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    margin: 0;
}
.tourmaster-tour-booking-bar-wrap .wpcf7-form textarea {
    height: 80px;
    resize: vertical;
}

/* ── Select dropdown arrow ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-form select {
    cursor: pointer;
    padding-right: 35px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=\x27http://www.w3.org/2000/svg\x27 width=\x2712\x27 height=\x278\x27 viewBox=\x270 0 12 8\x27%3E%3Cpath fill=\x27%23999\x27 d=\x27M6 8L0 0h12z\x27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
}

/* ── Focus states ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-form input:focus,
.tourmaster-tour-booking-bar-wrap .wpcf7-form select:focus,
.tourmaster-tour-booking-bar-wrap .wpcf7-form textarea:focus {
    border-color: #24bef7;
    box-shadow: 0 0 0 3px rgba(36,190,247,0.12);
}

/* ── Date inputs (readonly, Air Datepicker) ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-form input[readonly] {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=\x27http://www.w3.org/2000/svg\x27 width=\x2716\x27 height=\x2716\x27 viewBox=\x270 0 24 24\x27 fill=\x27none\x27 stroke=\x27%23999\x27 stroke-width=\x272\x27%3E%3Crect x=\x273\x27 y=\x274\x27 width=\x2718\x27 height=\x2718\x27 rx=\x272\x27/%3E%3Cline x1=\x2716\x27 y1=\x272\x27 x2=\x2716\x27 y2=\x276\x27/%3E%3Cline x1=\x278\x27 y1=\x272\x27 x2=\x278\x27 y2=\x276\x27/%3E%3Cline x1=\x273\x27 y1=\x2710\x27 x2=\x2721\x27 y2=\x2710\x27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 35px;
}

/* ── Conditional date fields: hidden until Model is selected ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-form .samui-date-group {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin: 0;
}
.tourmaster-tour-booking-bar-wrap .wpcf7-form .samui-date-group.samui-visible {
    max-height: 300px;
    opacity: 1;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* Side-by-side date fields */
.tourmaster-tour-booking-bar-wrap .wpcf7-form .samui-date-group > p,
.tourmaster-tour-booking-bar-wrap .wpcf7-form .samui-date-group > label {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    margin: 0 !important;
}

/* ── Air Datepicker v3 — brand overrides ── */
.air-datepicker {
    --adp-color: #333;
    --adp-background-color: #fff;
    --adp-accent-color: #24bef7;
    --adp-color-secondary: #8896a7;
    --adp-day-name-color: #8896a7;
    --adp-cell-border-radius: 50%;
    --adp-border-color: #e0e0e0;
    --adp-border-color-inner: #f0f0f0;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
    font-family: \x27Open Sans\x27, \x27Open Sans Fallback\x27, Arial, sans-serif;
}
.air-datepicker-nav--title {
    font-weight: 700;
    font-size: 14px;
}
.air-datepicker-cell.-selected-,
.air-datepicker-cell.-selected-.-focus- {
    background: #24bef7;
    color: #fff;
}
.air-datepicker-cell.-current- {
    color: #24bef7;
    font-weight: 700;
}
.air-datepicker-cell.-focus- {
    background: rgba(36, 190, 247, 0.1);
}
/* Mobile overlay */
.air-datepicker--isMobile .air-datepicker--content {
    border-radius: 16px 16px 0 0;
}
.air-datepicker-overlay {
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* ── Submit button ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-form input[type="submit"],
.tourmaster-tour-booking-bar-wrap .wpcf7-form .wpcf7-submit {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 8px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: #24bef7;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all .25s;
}
.tourmaster-tour-booking-bar-wrap .wpcf7-form input[type="submit"]:hover {
    background: #1da8dc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36,190,247,0.35);
}

/* ── Turnstile widget: positioned before submit button ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-turnstile,
.tourmaster-tour-booking-bar-wrap .cf-turnstile {
    margin: 8px auto 4px;
    text-align: center;
    min-height: 0 !important;
    overflow: hidden;
    transition: all 0.3s ease;
}
/* Compact mode centers the smaller widget */
.tourmaster-tour-booking-bar-wrap .cf-turnstile iframe {
    margin: 0 auto;
    display: block;
}

/* ── Response output ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-response-output {
    margin: 8px 0 0;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
}

/* ── Validation: invalid field highlighting ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-form .wpcf7-not-valid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.15) !important;
    animation: samui-shake 0.4s ease;
}
@keyframes samui-shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-4px); }
    40%      { transform: translateX(4px); }
    60%      { transform: translateX(-3px); }
    80%      { transform: translateX(2px); }
}

/* ── Validation: error tips below fields ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-not-valid-tip {
    font-size: 11px;
    font-weight: 600;
    color: #e74c3c;
    display: block;
    margin-top: 4px;
    padding-left: 2px;
}

/* ── Validation: error label highlight ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-form label:has(.wpcf7-not-valid) {
    color: #e74c3c !important;
}

/* ── Spinner ── */
.tourmaster-tour-booking-bar-wrap .wpcf7-spinner {
    display: block;
    margin: 6px auto;
}

/* ── Hide native scooter-model select — custom dropdown replaces it ── */
.wpcf7-form-control-wrap[data-name="scooter-model"] select {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}
.wpcf7-form-control-wrap[data-name="scooter-model"] {
    position: relative;
}
';
    echo '

/* ── samui-fa-swap (performance.php) ── */
@font-face{font-family:"FontAwesome";font-display:swap!important;}

/* ── samui-category-cards (slider.php) ── */
/* ── Card container ── */
    .tourmaster-tour-category-grid-2 {
        margin-bottom: 20px !important;
    }

    .tourmaster-tour-category-item-wrap {
        position: relative;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.04);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }

    .tourmaster-tour-category-item-wrap:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* ── Image ── */
    .tourmaster-tour-category-thumbnail {
        border-radius: 6px;
        overflow: hidden;
    }

    .tourmaster-tour-category-thumbnail img {
        width: 100% !important;
        height: 280px !important;
        object-fit: cover !important;
        display: block;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 6px;
    }

    .tourmaster-tour-category-item-wrap:hover .tourmaster-tour-category-thumbnail img {
        transform: scale(1.04);
    }

    /* ── Overlay — matches slider gradient exactly ── */
    .tourmaster-tour-category-overlay,
    .tourmaster-tour-category-overlay-front {
        position: absolute;
        inset: 0;
        border-radius: 6px;
        z-index: 1;
    }

    .tourmaster-tour-category-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 8, 20, 0.10) 0%,
                rgba(0, 8, 20, 0.12) 30%,
                rgba(0, 8, 20, 0.40) 60%,
                rgba(0, 8, 20, 0.62) 80%,
                rgba(0, 6, 16, 0.72) 100%
            ) !important;
        opacity: 1 !important;
    }

    .tourmaster-tour-category-overlay-front {
        background: transparent !important;
    }

    /* ── Head wrapper — same positioning feel as slider ── */
    .tourmaster-tour-category-head {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 3;
        padding: 0 24px 26px;
    }

    .tourmaster-tour-category-head-display { margin-bottom: 10px; }

    /* ── Title — matches slider title typography ── */
    .tourmaster-tour-category-title {
        font-family: 'Poppins', 'Poppins Fallback', 'Raleway', -apple-system, sans-serif !important;
        font-size: 20px !important;
        font-weight: 800 !important;
        color: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
        letter-spacing: -0.01em;
        text-shadow:
            0 1px 2px rgba(0, 0, 0, 0.6),
            0 3px 12px rgba(0, 0, 0, 0.2);
    }

    /* ── CTA Link — frosted glass style matching slider button ── */
    .tourmaster-tour-category-head-animate {
        opacity: 1 !important;
        transform: none !important;
        max-height: none !important;
        visibility: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }

    .tourmaster-tour-category-head-link {
        font-family: 'Poppins', 'Poppins Fallback', 'Raleway', sans-serif !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        color: rgba(255, 255, 255, 0.85) !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        padding: 8px 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 2px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        transition: all 0.3s ease !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .tourmaster-tour-category-head-link::after {
        content: '→';
        font-size: 13px;
        transition: transform 0.25s ease;
        opacity: 0.7;
    }

    .tourmaster-tour-category-item-wrap:hover .tourmaster-tour-category-head-link {
        color: #0a1628 !important;
        background: #fff !important;
        border-color: #fff !important;
        text-shadow: none;
    }

    .tourmaster-tour-category-item-wrap:hover .tourmaster-tour-category-head-link::after {
        transform: translateX(4px);
        opacity: 1;
    }

    /* ── Divider ── */
    .tourmaster-tour-category-head-divider {
        display: none !important;
    }

    /* ── Responsive ── */
    @media (max-width: 768px) {
        .tourmaster-tour-category-thumbnail img {
            height: 250px !important;
        }
        .tourmaster-tour-category-title {
            font-size: 17px !important;
        }
        .tourmaster-tour-category-head {
            padding: 0 20px 22px;
        }
    }

    @media (max-width: 480px) {
        .tourmaster-tour-category-thumbnail img {
            height: 230px !important;
        }
        .tourmaster-tour-category-title {
            font-size: 15px !important;
        }
    }

    /* ── Load-more button — use composited transitions only ── */
    .tourmaster-load-more.tourmaster-button {
        transition: opacity 0.2s ease, background-color 0.2s ease !important;
    }

/* ── samui-scooter-dropdown (slider.php) ── */
.samui-scooter-select { position: relative; width: 100%; font-family: \x27Open Sans\x27, \x27Open Sans Fallback\x27, Arial, sans-serif; z-index: 1; }
    .samui-scooter-trigger { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1.5px solid #d4dae3; border-radius: 8px; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; min-height: 52px; position: relative; z-index: 2; }
    .samui-scooter-trigger:hover { border-color: #24bef7; }
    .samui-scooter-trigger.is-open { border-color: #24bef7; box-shadow: 0 0 0 3px rgba(36, 190, 247, 0.12); border-radius: 8px 8px 0 0; }
    .samui-scooter-trigger__thumb { width: 48px; height: 36px; border-radius: 5px; object-fit: cover; flex-shrink: 0; background: #f0f4f8; }
    .samui-scooter-trigger__text { flex: 1; min-width: 0; }
    .samui-scooter-trigger__model { font-size: 13px; font-weight: 600; color: #1a2b3c; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .samui-scooter-trigger__price { font-size: 11px; color: #24bef7; font-weight: 600; line-height: 1.3; }
    .samui-scooter-trigger__placeholder { font-size: 13px; color: #8896a7; }
    .samui-scooter-trigger__arrow { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s ease; color: #8896a7; }
    .samui-scooter-trigger.is-open .samui-scooter-trigger__arrow { transform: rotate(180deg); }
    .samui-scooter-panel { position: absolute; z-index: 90000; background: #fff; border: 1.5px solid #24bef7; border-top: none; border-radius: 0 0 8px 8px; box-shadow: 0 12px 32px rgba(0, 20, 60, 0.12), 0 4px 12px rgba(0, 20, 60, 0.06); max-height: 340px; overflow-y: auto; display: none; overscroll-behavior: contain; box-sizing: border-box; font-family: \x27Open Sans\x27, \x27Open Sans Fallback\x27, Arial, sans-serif; }
    .samui-scooter-panel::-webkit-scrollbar { width: 5px; }
    .samui-scooter-panel::-webkit-scrollbar-track { background: transparent; }
    .samui-scooter-panel::-webkit-scrollbar-thumb { background: #c8d3de; border-radius: 3px; }
    .samui-scooter-panel.is-visible { display: block; animation: samui-dd-in 0.2s ease-out; }
    @keyframes samui-dd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
    .samui-scooter-option { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid #f0f4f8; position: relative; }
    .samui-scooter-option:last-child { border-bottom: none; }
    .samui-scooter-option:hover { background: linear-gradient(135deg, rgba(36, 190, 247, 0.06), rgba(36, 190, 247, 0.02)); }
    .samui-scooter-option.is-selected { background: linear-gradient(135deg, rgba(36, 190, 247, 0.10), rgba(36, 190, 247, 0.04)); }
    .samui-scooter-option.is-selected::after { content: '\2713'; position: absolute; right: 14px; color: #24bef7; font-weight: 700; font-size: 14px; }
    .samui-scooter-option__thumb { width: 64px; height: 48px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #f0f4f8; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
    .samui-scooter-option__info { flex: 1; min-width: 0; }
    .samui-scooter-option__name { font-size: 13px; font-weight: 600; color: #1a2b3c; line-height: 1.3; }
    .samui-scooter-option__meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
    .samui-scooter-option__cc { font-size: 11px; color: #6b7d8f; font-weight: 400; }
    .samui-scooter-option__price { font-size: 11px; font-weight: 700; color: #24bef7; background: rgba(36, 190, 247, 0.08); padding: 1px 6px; border-radius: 3px; }
    @media (max-width: 480px) { .samui-scooter-option__thumb { width: 52px; height: 40px; } }
    /* ── Mobile bottom-sheet for scooter selector ── */
    @media (max-width: 767px) {
      .samui-scooter-panel {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-height: 65vh !important;
        border-radius: 16px 16px 0 0 !important;
        border: none !important;
        box-shadow: 0 -4px 40px rgba(0,0,0,0.2) !important;
        z-index: 110000 !important;
        padding-bottom: env(safe-area-inset-bottom, 20px) !important;
      }
      .samui-scooter-panel.is-visible {
        animation: samui-sheet-up 0.3s cubic-bezier(0.32, 0.72, 0, 1) !important;
      }
      @keyframes samui-sheet-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
      }
      .samui-scooter-panel::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #d0d5dd;
        border-radius: 2px;
        margin: 10px auto 6px;
      }
      .samui-scooter-option {
        padding: 12px 16px !important;
        min-height: 52px;
      }
      .samui-scooter-option__thumb {
        width: 56px !important;
        height: 42px !important;
      }
      .samui-scooter-trigger.is-open {
        border-radius: 8px !important;
      }
      /* Nuclear: native select must NEVER show on mobile */
      select#scooter-model,
      .wpcf7-form-control-wrap[data-name="scooter-model"] select {
        position: fixed !important;
        left: -9999px !important;
        top: -9999px !important;
        opacity: 0 !important;
        pointer-events: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
      }
    }
    /* Backdrop overlay */
    .samui-scooter-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.45);
      z-index: 109999;
      display: none;
      -webkit-backdrop-filter: blur(2px);
      backdrop-filter: blur(2px);
    }
    .samui-scooter-backdrop.is-visible {
      display: block;
      animation: samui-fade-in 0.2s ease;
    }
    @keyframes samui-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ── samui-tour-lang-flags (cruise-components.php) ── */
/* ── Tour Card Flag Overlay (grid + medium layouts) ── */
div.tour-lang-overlay {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 10px !important;
    background: rgba(10, 22, 40, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 6px !important;
    z-index: 10 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    pointer-events: auto;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    transition: none !important;
}
div.tour-lang-overlay:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.tour-lang-overlay .fa-globe {
    font-size: 12px;
    color: #5ecdf5;
    line-height: 1;
}
.tour-lang-flags {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}
img.tour-lang-flag,
img.tour-lang-flag[width],
.tour-lang-overlay img,
.tour-lang-flags img {
    width: 20px !important;
    height: 14px !important;
    max-width: 20px !important;
    max-height: 14px !important;
    min-width: 20px !important;
    min-height: 14px !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
    object-fit: cover !important;
    display: inline-block !important;
    position: static !important;
    transform: none !important;
    transition: none !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}
img.tour-lang-flag:hover {
    transform: none !important;
}

/* Ensure thumbnails are positioned for overlay (grid + medium) */
.tourmaster-tour-thumbnail {
    position: relative !important;
}

/* ── Medium layout (list-style cards on cruise page) ── */
.tourmaster-tour-medium .tourmaster-tour-thumbnail {
    overflow: visible !important;
}
.tourmaster-tour-medium.tourmaster-tour-frame .tourmaster-tour-medium-inner {
    overflow: visible !important;
}
.tourmaster-tour-medium .tour-lang-overlay {
    bottom: 6px;
    left: 6px;
    padding: 4px 8px;
}
.tourmaster-tour-medium .tour-lang-overlay .fa-globe {
    font-size: 11px;
}
.tourmaster-tour-medium img.tour-lang-flag {
    width: 18px !important;
    height: 13px !important;
    min-width: 18px !important;
    max-width: 18px !important;
}

/* ── Tour Detail Page Flag Row ── */
.tour-detail-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
    border: 1px solid rgba(0, 181, 247, 0.25);
}
.tour-detail-lang .fa-globe {
    font-size: 15px;
    color: #fff;
}
.tour-detail-lang-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tour-detail-lang-flags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tour-detail-lang-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(0, 181, 247, 0.3);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.tour-detail-lang-item:hover {
    background: rgba(0, 181, 247, 0.15);
    border-color: rgba(0, 181, 247, 0.5);
}
img.tour-detail-flag {
    width: 22px !important;
    height: 16px !important;
    max-width: 22px !important;
    min-width: 22px !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    display: inline-block !important;
    object-fit: cover !important;
    position: static !important;
    transform: none !important;
    flex-shrink: 0 !important;
}
.tour-detail-lang-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
@media (max-width: 767px) {
    .tour-lang-overlay {
        bottom: 5px;
        left: 5px;
        padding: 3px 7px;
        gap: 4px;
    }
    .tour-lang-overlay .fa-globe { font-size: 10px; }
    img.tour-lang-flag { width: 16px !important; height: 11px !important; min-width: 16px !important; min-height: 11px !important; max-width: 16px !important; }
    .tour-detail-lang {
        flex-wrap: wrap;
        gap: 6px;
        padding: 6px 10px;
    }
    /* Gallery button + language pills: clean mobile layout */
    .tourmaster-single-header-title-wrap {
        padding-bottom: 14px !important;
    }
    /* Gallery wrap + button: controlled by style.css mobile rules */
    .tour-detail-lang-label {
        font-size: 10px;
    }
    .tour-detail-lang-name {
        display: none !important;  /* Mobile: flag only, no text */
        font-size: 10px;
    }
    .tour-detail-lang-item {
        padding: 4px;
        border-color: rgba(0, 181, 247, 0.25) !important;
        border-radius: 4px !important;
    }
    img.tour-detail-flag {
        width: 18px !important;
        height: 13px !important;
        min-width: 18px !important;
        max-width: 18px !important;
    }
}

/* ── samui-cruise-trust (cruise-components.php) ── */
/* ── Cruise Confidence Trust Bar ── */
.samui-cruise-trust {
    background: linear-gradient(135deg, #0b1829 0%, #13243d 50%, #0f1e33 100%);
    padding: 28px 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.samui-cruise-trust::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00b5f7, #2fb5a4, #00b5f7);
}
.samui-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.samui-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.samui-trust-item:hover {
    background: rgba(0, 181, 247, 0.08);
    border-color: rgba(0, 181, 247, 0.2);
    transform: translateY(-2px);
}
.samui-trust-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 20px;
}
.samui-trust-icon.pier    { background: rgba(0, 181, 247, 0.18); color: #5ecdf5; }
.samui-trust-icon.time    { background: rgba(76, 175, 80, 0.18); color: #81c784; }
.samui-trust-icon.deutsch { background: rgba(255, 193, 7, 0.18); color: #ffd54f; }
.samui-trust-icon.rating  { background: rgba(255, 152, 0, 0.18); color: #ffb74d; }
.samui-trust-text h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.samui-trust-text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #94a8bb;
}
@media (max-width: 999px) {
    .samui-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .samui-trust-grid { grid-template-columns: 1fr; gap: 10px; }
    .samui-cruise-trust { padding: 18px 0; }
    .samui-trust-item { padding: 12px; }
    .samui-trust-text h4 { font-size: 13px; }
}

/* ── samui-cruise-cro (cruise-components.php) ── */
/* ── Tour Card Hover Effects (cruise page) ── */
.page-id-6548 .tourmaster-tour-grid,
.page-id-17336 .tourmaster-tour-grid,
body[class*="cruise"] .tourmaster-tour-grid {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 12px;
    overflow: hidden;
}
.page-id-6548 .tourmaster-tour-grid:hover,
.page-id-17336 .tourmaster-tour-grid:hover,
body[class*="cruise"] .tourmaster-tour-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 20, 60, 0.12), 0 4px 12px rgba(0, 20, 60, 0.06);
}
/* Enhanced price styling */
.page-id-6548 .tourmaster-tour-price .tourmaster-tour-discount-price,
.page-id-17336 .tourmaster-tour-price .tourmaster-tour-discount-price,
.page-id-6548 .tourmaster-tour-price .tourmaster-tail,
.page-id-17336 .tourmaster-tour-price .tourmaster-tail {
    color: #00b5f7 !important;
    font-weight: 800 !important;
}
/* Tour thumbnail overlay on hover */
.page-id-6548 .tourmaster-tour-thumbnail img,
.page-id-17336 .tourmaster-tour-thumbnail img {
    transition: transform 0.4s ease;
}
.page-id-6548 .tourmaster-tour-grid:hover .tourmaster-tour-thumbnail img,
.page-id-17336 .tourmaster-tour-grid:hover .tourmaster-tour-thumbnail img {
    transform: scale(1.05);
}

/* ── Floating CTA Bar ── */
.samui-cruise-cta {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    z-index: 90000;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(21, 34, 56, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 181, 247, 0.2);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    transition: bottom 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.samui-cruise-cta.visible { bottom: 0; }
.samui-cruise-cta-text {
    font-size: 14px;
    font-weight: 600;
    color: #e8ecf0;
    white-space: nowrap;
}
.samui-cruise-cta-text span {
    color: #5ecdf5;
}
.samui-cruise-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #00b5f7 0%, #2fb5a4 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.samui-cruise-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 181, 247, 0.3);
    color: #fff;
    text-decoration: none;
}
.samui-cruise-cta-close {
    position: absolute;
    top: 4px;
    right: 12px;
    background: none;
    border: none;
    color: #5a7385;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
@media (max-width: 600px) {
    .samui-cruise-cta {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px 16px;
    }
    .samui-cruise-cta-text { font-size: 12px; }
    .samui-cruise-cta-btn { width: 100%; justify-content: center; padding: 12px 20px; }
}
