/* =========================================================
   mainstyle.css — Version 1.7.3
   ========================================================= */

:root {
    --nav-h: 76px;
    --gutter: 300px;
    --section-top: 110px;
    --card-w: 280px;
    --card-h: 400px;
    --card-r: 22px;
    --card-gap: 16px;
    --edge-safe: 24px;
    --nav-bg: rgba(23, 27, 32, .84);
    --btn-bg: rgba(23, 27, 32, .90);
    --btn-brd: rgba(255, 255, 255, .14);
    --fade-ms: 420ms;
    --wm-left: -56px;
    --wm-bottom: 32px;
    --wm-opacity: 0.40;
    --wm-width: 95%;
    --wm-max-width: none;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #000;
    color: #fff;
}

.wl-nav {
    min-height: var(--nav-h);
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wl-nav-inner {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.wl-brand-text {
    font-weight: 900;
    letter-spacing: .08em;
    font-size: 16px;
    color: #fff;
}

.wl-nav-links {
    gap: 30px;
    align-items: center;
}

.wl-nav .nav-link {
    color: rgba(255, 255, 255, .92);
    font-weight: 650;
    font-size: 14px;
    padding: 10px 0;
}

.wl-nav .nav-link:hover {
    color: #fff;
}

.wellness-section {
    position: relative;
    min-height: 100vh;
    padding-top: var(--nav-h);
    overflow: hidden;
    background: none !important;
}

.wl-section-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.section-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    --py: 0px;
    transform: translate3d(0, var(--py), 0) scale(1.22);
    transform-origin: center;
    will-change: transform, opacity;
    opacity: 0;
    transition: opacity var(--fade-ms) ease;
}

.section-bg.is-on {
    opacity: 1;
}

.section-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .30), rgba(0, 0, 0, .28));
}

.wellness-section::after {
    content: none !important;
}

.wl-watermark {
    position: absolute;
    left: var(--wm-left);
    bottom: var(--wm-bottom);
    z-index: 2;
    opacity: var(--wm-opacity);
    pointer-events: none;
    user-select: none;
}

.wl-watermark img {
    display: block;
    width: var(--wm-width);
    max-width: var(--wm-max-width);
    height: auto;
}

.wl-stage {
    position: relative;
    z-index: 3;
    min-height: calc(100vh - var(--nav-h));
    padding-top: var(--section-top);
    padding-left: var(--gutter);
    padding-right: 0;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 28px;
}

.wl-title-h1 {
    margin: 0;
    line-height: .95;
    letter-spacing: -0.03em;
}

.wl-title-h1 .t1 {
    display: block;
    font-size: 88px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.wl-title-h1 .t2 {
    display: block;
    font-size: 110px;
    font-weight: 700;
    color: #cbb58a;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.wl-title-h1 .accent-center {
    color: #D1C29F;
}

.wl-title-h1 .accent-accommodation {
    color: #53A6F9;
}

.wl-title-h1 .accent-cuisine {
    color: #ff7a3d;
}

.wl-title-h1 .accent-activities {
    color: #BCD8A1;
}

.wl-carousel {
    padding-bottom: 0;
}

.wl-carousel-viewport {
    width: calc(100vw - var(--gutter));
    max-width: calc(100vw - var(--gutter));
    overflow-x: auto;
    overflow-y: visible;
    padding-inline: var(--edge-safe);
    scroll-padding-inline: var(--edge-safe);
    padding-top: 24px;
    padding-bottom: 24px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
}

.wl-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.wl-track {
    display: flex;
    gap: var(--card-gap);
    width: max-content;
    align-items: flex-end;
    margin-inline: calc(var(--edge-safe) * -1);
    padding-inline: var(--edge-safe);
    box-sizing: border-box;
}

.wl-card {
    position: relative;
    z-index: 1;
    width: var(--card-w);
    height: var(--card-h);
    border-radius: var(--card-r);
    overflow: hidden;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, .02);
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    transform: translateY(0) scale(1);
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}

.wl-card:hover {
    transform: translateY(-6px) scale(1.015);
    z-index: 10;
    box-shadow: 0 8px 12px rgba(0, 0, 0, .30);
}

.wl-card.is-selected {
    z-index: 10;
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .40);
}

.wl-card.is-selected:hover {
    transform: translateY(-12px) scale(1.04);
}

.wl-card:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .35);
    outline-offset: 6px;
}

.wl-card .card-image {
    flex: 1 1 auto;
    min-height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* Ensure specific positioning context if needed */
    overflow: hidden; /* Cut off overflowing image parts */
}

.wl-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wl-card .card-content {
    flex: 0 0 auto;
    background: #fff;
    color: #111;
    padding: 14px 16px 16px 16px;
    position: relative;
    height: auto;
}

.wl-card .card-content::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 3px;
    background: #D1C29F;
}

.wl-card .card-content[data-type="accommodation"]::before {
    background: #53A6F9;
}

.wl-card .card-content[data-type="cuisine"]::before {
    background: #ff7a3d;
}

.wl-card .card-content[data-type="activities"]::before {
    background: #BCD8A1;
}

.card-category {
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, .45);
    padding-left: 18px;
    margin-bottom: 6px;
}

.card-name {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    color: #111;
    padding-left: 18px;
    white-space: normal;
    overflow: visible;
}

.wl-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    width: calc(100vw - var(--gutter));
}

.wl-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--btn-bg);
    border: 1px solid var(--btn-brd);
    color: rgba(255, 255, 255, .92);
    display: grid;
    place-items: center;
    transition: transform 160ms ease, background 160ms ease;
}

.wl-btn:hover {
    transform: scale(1.08);
    background: rgba(23, 27, 32, .98);
}

.wl-btn i {
    font-size: 18px;
}

.wl-footer {
    background: rgba(23, 27, 32, .92);
}

.wl-footer-inner {
    padding: 18px 24px;
}

.wl-footer-link {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
}

.wl-footer-link:hover {
    color: #fff;
}

@media (max-width: 1400px) {
    :root {
        --gutter: 100px;
        --section-top: 96px;
    }

    .wl-title-h1 .t1 {
        font-size: 70px;
    }

    .wl-title-h1 .t2 {
        font-size: 84px;
    }

    .wl-controls {
        width: calc(100vw - var(--gutter));
    }

    .wl-carousel-viewport {
        width: calc(100vw - var(--gutter));
        max-width: calc(100vw - var(--gutter));
    }
}

@media (max-width: 992px) {
    :root {
        --gutter: 20px;
        --section-top: 92px;
        --card-w: 280px;
        --card-h: 390px;
    }

    .wl-nav-links {
        gap: 14px;
        padding: 12px 0;
    }

    .wl-controls {
        width: calc(100vw - var(--gutter));
    }

    .wl-carousel-viewport {
        width: calc(100vw - var(--gutter));
        max-width: calc(100vw - var(--gutter));
    }
}

/* =========================================================
   Desktop Navigation Tweaks (Center, No Logo, Distributed)
   ========================================================= */

@media (min-width: 992px) {

    /* 1. ซ่อน Logo Wellness Thailand */
    .wl-brand {
        display: none !important;
    }

    /* 2. จัดคอนเทนเนอร์เมนูให้อยู่กึ่งกลางหน้าจอ */
    .wl-nav .collapse.navbar-collapse {
        justify-content: center;
        width: 100%;
    }

    /* 3. ปรับแต่งตัวอักษร และ การกระจายตัว (Distribution) */
    .wl-nav-links {
        /* ล้างค่าเดิม */
        margin-left: 0 !important;
        margin-right: 0 !important;

        /* กำหนดความกว้างของแถบเมนู เพื่อให้มีพื้นที่ในการกระจายตัว */
        width: 100%;
        max-width: 1000px;
        /* ปรับค่านี้ได้ถ้าอยากให้กว้าง/แคบกว่านี้ */

        /* สั่งกระจายเมนูให้เต็มพื้นที่ (ซ้ายสุดไปขวาสุดของกรอบ 1000px) */
        justify-content: space-between !important;
        gap: 0;
        /* รีเซ็ต gap เพราะเราใช้ space-between แล้ว */
    }

    /* 4. ปรับขนาดและน้ำหนัก Font ตามที่ต้องการ */
    .wl-nav .nav-link {
        font-size: 18px !important;
        /* ขนาด 18px */
        font-weight: 500 !important;
        /* ความหนา 500 */
        color: rgba(255, 255, 255, 0.9);
        padding: 10px 0;
    }

    .wl-nav .nav-link:hover {
        color: #fff;
    }
}