/**
 * Global theme overrides.
 *
 * bootstrap-select dropdowns (hero-search Location / Activity selects, and any
 * other <select> the theme upgrades via jQuery('select').selectpicker()) render
 * a Bootstrap dropdown whose selected option inherits Bootstrap's default blue
 * .active background. Recolour the open menu to the theme teal and round it,
 * matching the tour-listing sort dropdown. The toggle/field itself is already
 * styled by the hero-search CSS, so only the menu is themed here.
 */
/* When a .form-select upgrades to bootstrap-select, the wrapper keeps the
   .form-select class — so Bootstrap's native background arrow shows on top of
   bootstrap-select's own caret (double chevron). Drop the native one. */
/* Service detail — sidebar widgets (search / recent tours / destinations / categories). */
.side-bar .widget-title {
    font-size: 20px;
    color: #066168;
    margin-bottom: 16px;
}

.side-bar .trv-sidebar-search .form-control {
    border: 1px solid #e4e9ee;
    border-radius: 30px 0 0 30px;
}

.side-bar .trv-sidebar-search .site-button {
    border-radius: 0 30px 30px 0;
    padding: 0 18px;
}

.side-bar .trv-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-bar .trv-recent-name {
    color: #066168;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    display: block;
}

.side-bar .trv-recent-price {
    color: #ffaa0d;
    font-weight: 600;
    font-size: 14px;
}

.side-bar .trv-tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.side-bar .trv-tag-list li a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #e4e9ee;
    border-radius: 30px;
    color: #346065;
    font-size: 14px;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.side-bar .trv-tag-list li a:hover {
    border-color: #066168;
    background: #eafafa;
    color: #066168;
}

/* Blog detail — author bio box (post author). */
.trv-author-box {
    background: #f4fbfb;
    border: 1px solid #e4e9ee;
    border-radius: 16px;
    padding: 22px 24px;
    margin: 30px 0;
}

.trv-author-box .trv-author-avatar img {
    border-radius: 50%;
}

.trv-author-box .trv-author-label {
    font-size: 13px;
    color: #66868a;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.trv-author-box .trv-author-name {
    margin: 2px 0 6px;
    color: #066168;
    font-size: 20px;
}

.trv-author-box .trv-author-info p {
    margin: 0;
    color: #346065;
    font-size: 14px;
}

.bootstrap-select.form-select {
    background-image: none;
    padding-right: 0;
}

.bootstrap-select .dropdown-menu {
    border: 1px solid #e4e9ee;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}

.bootstrap-select .dropdown-menu li a.dropdown-item {
    border-radius: 8px;
    padding: 9px 14px;
    color: #346065;
    transition: background-color .15s ease, color .15s ease;
}

.bootstrap-select .dropdown-menu li a.dropdown-item:hover,
.bootstrap-select .dropdown-menu li a.dropdown-item:focus {
    background: #eafafa;
    color: #066168;
}

/* Selected option → theme teal (was Bootstrap blue) */
.bootstrap-select .dropdown-menu li.selected a.dropdown-item,
.bootstrap-select .dropdown-menu li a.dropdown-item.active,
.bootstrap-select .dropdown-menu li a.dropdown-item.selected {
    background: #066168 !important;
    color: #fff !important;
}

.bootstrap-select .dropdown-menu li.selected a.dropdown-item small,
.bootstrap-select .dropdown-menu li a.dropdown-item.active small {
    color: rgba(255, 255, 255, .6) !important;
}

/* bootstrap-select live-search box (when present) */
.bootstrap-select .dropdown-menu .bs-searchbox .form-control {
    border: 1px solid #e4e9ee;
    border-radius: 8px;
}

.bootstrap-select .dropdown-menu .bs-searchbox .form-control:focus {
    border-color: #066168;
    box-shadow: 0 0 0 .15rem rgba(6, 97, 104, .15);
}

/* ── Banner-2 hero (hero-search style-2): robust height ───────────────────────
   The template hero uses a fixed height (950px) tuned for a 1–2 word title.
   CMS titles vary in length; a long title overflowed the fixed box and the
   in-flow search bar spilled into the next section. Use min-height so the hero
   grows with its content instead of overflowing. */
.trv-banner-2-wrap { height: auto; min-height: 950px; }
.trv-banner-2-wrap .trv-banner-2-overlay { height: auto; min-height: 880px; }
.trv-banner-2-wrap .trv-banner-2-content-section { height: auto; min-height: 880px; }

/* ── Header style-2 (centered-logo): pin the logo to the true horizontal centre
   (aligned with the circular badge) regardless of menu length. Menu flows on the
   left, action icons pushed right; the centred logo sits in the gap. Menu is
   width-capped so it never runs under the logo. */
.header-style-2 .main-bar { position: relative; }
.header-style-2 .main-bar .logo-header {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%); margin: 0; order: 0;
}
.header-style-2 .main-bar .header-nav { flex: 0 0 auto; }
.header-style-2 .main-bar .header-nav .nav { flex-wrap: nowrap; }
.header-style-2 .main-bar .extra-nav { margin-left: auto; }
@media (max-width: 1399px) {
    .header-style-2 .main-bar .logo-header { position: static; transform: none; }
}

/* ── hero search: the Location/Date/Traveler label icons render oversized
   (Botble outputs explicit 36x36 width/height attrs). Constrain them across every
   hero style — all variants share the .trv-search-st1-column column markup. */
.trv-search-st1-column label i img,
.trv-search-st1-column .form-group label img {
    width: 20px;
    height: auto;
    margin-inline-end: 5px;
}

/* ── Botble admin bar offset ──────────────────────────────────────────────────
   When an admin is logged in, Botble shows a 40px fixed bar at the top and adds
   body.show-admin-bar. The theme's overlay (absolute) and sticky (fixed) headers
   sit relative to the viewport, so they hide under the admin bar. Push them down
   by the 40px admin-bar height. */
body.show-admin-bar .site-header.is-fixed,
body.show-admin-bar .site-header.is-fixed .main-bar {
    top: 40px !important;
}
@media (min-width: 992px) {
    body.show-admin-bar .site-header.header-style-1:not(.is-fixed),
    body.show-admin-bar .site-header.header-style-2:not(.is-fixed) {
        top: 75px; /* 35px design offset + 40px admin bar */
    }
}

/* ── Comment form (fob-comment) — match theme primary color ───────────── */
.fob-comment-form-section .btn-primary,
.fob-comment-form-section button[type="submit"] {
    background-color: var(--primary-color, #066168);
    border-color: var(--primary-color, #066168);
}
.fob-comment-form-section .btn-primary:hover,
.fob-comment-form-section .btn-primary:focus,
.fob-comment-form-section .btn-primary:active,
.fob-comment-form-section button[type="submit"]:hover {
    background-color: var(--primary-color-hover, #054c52);
    border-color: var(--primary-color-hover, #054c52);
}
.fob-comment-form-section .form-control:focus,
.fob-comment-list-section .form-control:focus {
    border-color: var(--primary-color, #066168);
    box-shadow: 0 0 0 .15rem rgba(6, 97, 104, .15);
}

/* ── Gallery detail comment area — themed inputs, constrained width ───── */
.trv-gallery-comments {
    max-width: 920px;
    margin: 40px auto 0;
    padding-top: 40px;
    border-top: 1px solid #eef0f2;
}
.fob-comment-form-section .form-control {
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    background-color: #fff;
    padding: 12px 16px;
}
.fob-comment-form-section textarea.form-control {
    min-height: 130px;
}
.fob-comment-form-section label,
.fob-comment-form-section .form-label {
    font-weight: 600;
    margin-bottom: 6px;
}
.fob-comment-form-section .fob-comment-form-note {
    margin-bottom: 24px;
}
.fob-comment-form-section .btn-primary {
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
}

/* ── a11y target-size: expand carousel pagination dot tap area (no visual change) ── */
.swiper-pagination-bullet {
    position: relative;
}
.swiper-pagination-bullet::before {
    content: "";
    position: absolute;
    inset: -12px;
}

/* ── Achievement counters: shrink stat labels so each stays on one line ── */
.trv-achivment-section .trv-icon-title {
    font-size: 18px;
    line-height: 26px;
    white-space: nowrap;
}

/* ── Header: ẩn bộ chọn TIỀN TỆ (USD) ở MỌI kích thước — resort VN không cần,
   chỉ gây rối hàng phải. ────────────────────────────────────────────────── */
.site-header .trv-switcher-currency {
    display: none;
}

/* ── DESKTOP header (≥1400px — nơi menu ngang hiện đầy đủ; theme thu menu vào
   drawer ở ≤1399px). Menu dính logo + đè lên ô chọn resort, và nút hamburger
   (mở panel thông tin) thừa. Sửa: thêm khoảng thở, bỏ nút info. ──────────── */
/* Nút "THÔNG TIN" (info panel = .trv-r-section-block) chỉ là khối quảng cáo, lại nổi
   dạng tab dọc ĐÈ lên hero ở mobile/tablet → ẩn ở MỌI kích thước. Hamburger mở menu là
   phần tử KHÁC (#mobile-side-drawer) nên vẫn còn. */
.site-header .extra-cell.trv-r-section-block {
    display: none !important;
}

@media (min-width: 1400px) {
    /* Khoảng cách giữa menu và cụm bộ chọn bên phải (hết dính "TIN TỨC" vào pill). */
    .site-header .extra-nav {
        margin-left: 24px;
    }

    /* Khoảng thở giữa logo và menu chính. */
    .site-header .logo-header {
        margin-right: 24px;
    }
}

/* ── MOBILE/TABLET (≤1399px): bộ chọn (điểm đến/ngôn ngữ) + nút tìm kiếm được
   JS dời VÀO TRONG drawer hamburger (class .in-drawer). Header trên cùng chỉ còn
   logo + nút hamburger → gọn, không bao giờ cắt chữ. Style lại cho hợp drawer. */

/* Drawer (.header-nav) mang class Bootstrap `d-flex justify-content-end` → xếp NGANG,
   đẩy các mục ra ngoài 250px. Trong drawer (≤1399px) ép xếp DỌC, canh trái. */
@media (max-width: 1399.98px) {
    .site-header .header-nav {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
    }
}

/* AN TOÀN DESKTOP: hàng logo+✕ (JS chèn cho drawer) CHỈ dùng ≤1399px. Trên desktop
   ẩn hẳn để không thấy 2 logo + nút ✕ lạ cạnh menu (bug đã gặp). JS cũng tự xoá nó
   khi về desktop; đây là lớp bảo hiểm phòng khi JS chưa kịp chạy. */
@media (min-width: 1400px) {
    .header-nav .lyn-drawer-head { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DRAWER MOBILE — OVERLAY ĐỘC LẬP phủ TOÀN màn hình (độc lập header trang).
   Bấm hamburger → menu overlay trải ra, có hàng logo+✕ riêng. Không cuộn nền.
   --lyn-hd-h = chiều cao hàng logo+✕; --lyn-admin-h = offset thanh admin (nếu login).
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1399.98px) {
    :root {
        --lyn-hd-h: 70px;      /* chiều cao hàng logo+✕ trong drawer */
        --lyn-admin-h: 0px;    /* offset thanh admin Botble (chỉ khi đăng nhập) */
    }
    /* Đăng nhập admin → body bị đẩy xuống 40px (margin-top). Overlay fixed neo theo
       viewport nên phải DỊCH XUỐNG 40px cho khớp, không đè lên header trang. */
    body.show-admin-bar { --lyn-admin-h: 40px; }

    /* Drawer = OVERLAY full màn hình. z 1050 > mọi header (999) → phủ kín header trang
       (trang chủ trong suốt / trang phụ header-inner trắng / .is-fixed khi cuộn). */
    .header-style-1.mobile-sider-drawer-menu .header-nav,
    .header-style-2.mobile-sider-drawer-menu .header-nav,
    .header-style-3.mobile-sider-drawer-menu .header-nav {
        position: fixed !important;
        display: block !important;             /* huỷ flex d-flex justify-content-end của Bootstrap */
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        top: var(--lyn-admin-h) !important;    /* dưới thanh admin (nếu có) */
        bottom: 0 !important;
        height: auto !important;
        z-index: 1050 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
        overflow-x: hidden !important;         /* chặn tràn ngang → không lệch/cắt chữ */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        /* ĐÓNG: ẩn + trượt lên nhẹ. */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .3s ease, transform .36s cubic-bezier(.22,.61,.36,1), visibility .3s;
        pointer-events: none;
    }
    /* MỞ: hiện + về vị trí. */
    .header-style-1.mobile-sider-drawer-menu.active .header-nav,
    .header-style-2.mobile-sider-drawer-menu.active .header-nav,
    .header-style-3.mobile-sider-drawer-menu.active .header-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* ── HÀNG ĐỈNH của overlay (JS chèn, là con ĐẦU của drawer): logo THẬT + ✕.
       position:STICKY top:0 → bám đỉnh vùng cuộn của drawer, menu cuộn phía dưới.
       Không dùng fixed vì drawer có transform → fixed sẽ neo theo drawer gây lệch. */
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-head {
        position: sticky;
        top: 0;
        height: var(--lyn-hd-h);
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px 0 24px;   /* lề trái 24px KHỚP menu links bên dưới */
        background: #fff;
        border-bottom: 1px solid #eef0f2;
    }
    /* Logo clone: item flex bên TRÁI, kích thước gọn, không kế thừa absolute/float gốc. */
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-brand.logo-header {
        position: static !important;
        flex: 0 1 auto;
        margin: 0 !important;
        padding: 0 !important;
        max-width: calc(100% - 60px);
        order: 0;
    }
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-brand .logo-header-inner {
        margin: 0 !important;
        padding: 0 !important;
    }
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-brand a {
        padding: 0 !important;
        margin: 0 !important;
    }
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-brand img,
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-brand svg {
        max-height: 34px;
        width: auto;
    }
    /* Luôn hiện bản MÀU (dark) trên nền trắng; ép bản trắng ẩn. */
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-head .logo-variant--dark {
        display: inline-flex !important;
    }
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-head .logo-variant--light {
        display: none !important;
    }
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-head .logo-text {
        color: var(--heading-color) !important;
    }
    /* Nút ✕ luôn bên PHẢI. */
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-close {
        order: 1;
    }

    /* Nút ✕: tròn, teal nhạt, 2 gạch chéo cân đối. */
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-close {
        position: relative;
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(var(--primary-color-rgb), .08);
        cursor: pointer;
        transition: background .18s ease;
    }
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-close:hover {
        background: rgba(var(--primary-color-rgb), .16);
    }
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-close span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 19px;
        height: 2px;
        border-radius: 2px;
        background: var(--primary-color);
    }
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-close span:first-child {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .mobile-sider-drawer-menu .header-nav .lyn-drawer-close span:last-child {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    /* ── HAMBURGER LUÔN NHÌN THẤY: trên trang PHỤ (header-inner) header nền TRẮNG →
       gạch hamburger (vốn trắng cho hero tối ở trang chủ) tàng hình. Ép sang TỐI. */
    .header-inner .navbar-toggler .icon-bar,
    .sticky-header.is-fixed .navbar-toggler .icon-bar {
        background: var(--heading-color) !important;
    }

    /* ── HAMBURGER GỐC ẨN HẲN khi drawer MỞ: overlay đã có ✕ riêng → tránh 2 nút chồng
       nhau ở góc phải (bug trong ảnh). Chỉ hiện khi ĐÓNG để bấm mở. */
    .mobile-sider-drawer-menu.active #mobile-side-drawer {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Danh sách menu: reset lề/đệm mặc định để KHÔNG lệch trái (bị cắt chữ).
       Toàn bộ ul + li dóng thẳng, lề trái do padding của <a> lo (24px). */
    .mobile-sider-drawer-menu .header-nav .navbar-nav {
        margin: 0 !important;
        padding: 4px 0 0 !important;
        width: 100%;
        list-style: none;
    }
    .mobile-sider-drawer-menu .header-nav .navbar-nav > li {
        margin: 0 !important;
        width: 100%;
    }

    /* Khoá cuộn nền khi drawer mở: CHỈ overflow:hidden (KHÔNG position:fixed — thứ gây
       reflow đột ngột → giật). Overlay phủ toàn màn hình nên nền phía sau vô hình;
       không dịch chuyển scroll → không có cú nhảy nào. */
    html.lyn-drawer-open,
    body.lyn-drawer-open {
        overflow: hidden !important;
    }
}

/* ── ĐỒNG BỘ LỀ TRÁI menu = 24px. Selector NÂNG SPECIFICITY để THẮNG rule base khi
   trang đã cuộn: `.is-fixed.mobile-sider-drawer-menu .header-nav .nav>li>a {padding:12px 15px}`
   (đó là lý do trang mẹ CUỘN XUỐNG rồi mở menu bị lệch 12px thay vì 24px). Bao cả
   trạng thái .is-fixed để luôn thắng ở mọi lúc. */
@media (max-width: 1399.98px) {
    .site-header .header-nav .navbar-nav > li > a,
    .site-header.is-fixed.mobile-sider-drawer-menu .header-nav .navbar-nav > li > a,
    .site-header.sticky-header.is-fixed .header-nav .navbar-nav > li > a {
        padding: 15px 24px !important;   /* nhịp dọc đều, lề trái 24px đồng bộ toàn drawer */
        font-size: 1rem;
        letter-spacing: .02em;
    }
    /* Vạch ngăn mảnh giữa các item cho gọn gàng, thẳng hàng. */
    .site-header .header-nav .navbar-nav > li + li > a,
    .is-fixed.mobile-sider-drawer-menu .header-nav .navbar-nav > li + li > a {
        border-top: 1px solid #f2f4f5;
    }
}

/* Các phần tử đã dời vào drawer: xếp dọc, chiếm cả bề rộng drawer, có đường ngăn trên.
   Lề 24px KHỚP với menu links + hàng ngôn ngữ. Riêng pill (có viền) sẽ tự lùi nội dung
   về 24px bằng cách kéo pill sang trái đúng phần padding của nó (xem rule pill bên dưới). */
.site-header .header-nav .extra-cell.in-drawer {
    display: block;
    width: 100%;
    margin: 0;
    padding: 18px 24px;
    border-top: 1px solid #eef0f2;
}

.site-header .header-nav .extra-cell.trv-switchers.in-drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

/* Tiền tệ mặc định → ẩn trong drawer. GIỮ điểm đến + ngôn ngữ. */
.site-header .header-nav .in-drawer .trv-switcher-currency {
    display: none;
}

/* Bộ chọn ĐIỂM ĐẾN (resort) trên mobile được style ở design-system.css, khối
   "MEGA-MENU ĐIỂM ĐẾN" (@media max-width: 1399.98px). Nó dùng markup thật
   .lyn-dest-mega/.lyn-mega — KHÔNG phải .in-drawer/.lyn-dest-switcher-menu (những
   selector đó không tồn tại trong markup hiện tại nên vô tác dụng). Style ở đó cho
   nút bấm ĐỒNG NHẤT với các mục menu kế bên (không viền/nền, chữ hoa, cùng padding). */

/* ── Hàng tiện ích: NGÔN NGỮ (trái) + TÌM KIẾM (phải) nằm NGANG nhau, cùng lề 20px
   với pill điểm đến ở trên. Không còn icon search lọt thỏm một mình. */
.site-header .header-nav .in-drawer .lyn-drawer-utilrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

/* Ngôn ngữ: chiếm phần lớn hàng, canh trái, dóng thẳng mép pill điểm đến. */
.site-header .header-nav .in-drawer .trv-switcher-language {
    display: inline-flex;
    flex: 1 1 auto;
    min-width: 0;
}

.site-header .header-nav .in-drawer .trv-switcher-language .trv-switcher-toggle {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    color: #346065;
    padding: 0;
    font-size: .9rem;
    font-weight: 600;
    text-transform: none;
}

.site-header .header-nav .in-drawer .trv-switcher-language .trv-switcher-current {
    display: inline-block;
}

/* Dropdown bung của switcher trong drawer: xổ ra bên trái, không đè mép phải. */
.site-header .header-nav .in-drawer .trv-switcher-menu {
    right: auto;
    left: 0;
    min-width: 160px;
}

/* Ô search giờ nằm TRONG hàng tiện ích: bỏ nền/viền/padding khối riêng, chỉ còn icon. */
.site-header .header-nav .in-drawer.one {
    flex: 0 0 auto;
    width: auto;
    padding: 0 !important;
    border-top: 0 !important;
    border-left: 1px solid #eef0f2;
    padding-left: 14px !important;
}

.site-header .header-nav .in-drawer .header-search {
    display: flex;
    align-items: center;
}

.site-header .header-nav .in-drawer .header-search .header-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), .08);
    font-size: 19px;
    transition: background .18s ease, color .18s ease;
}
.site-header .header-nav .in-drawer .header-search .header-search-icon:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ── TABLET (≥768px, ≤1399px): nút hamburger #mobile-side-drawer bị theme ghim
   `top:4px` tuyệt đối → lệch lên. Canh giữa dọc cho thẳng logo. ───────────── */
@media (min-width: 768px) and (max-width: 1399.98px) {
    .site-header.mobile-sider-drawer-menu #mobile-side-drawer {
        top: 50%;
        margin-top: 0;
        margin-bottom: 0;
        transform: translateY(-50%);
    }
}
