/* ===================================
    Crafto - Bisiness
====================================== */
/* font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
/* variable */
:root {     
    --base-color: #5758D6;
    --dark-gray: #262b35;
    --medium-gray:#868d98;
    --primary-font: "Noto Sans", sans-serif;
    --alt-font: "Noto Sans", sans-serif;
}
/* reset */
body { 
    font-size: 16px;
    line-height: 26px;
    overflow-x: hidden;
}
/* header */
header .navbar-brand img {
    max-height: 51px;
}
.navbar .navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 400;
}
.sticky .header-transparent .header-button .btn {
    color: var(--dark-gray);
    border-color: var(--dark-gray);
}
.sticky .header-transparent .header-button .btn:hover {
    border-color: var(--dark-gray);
    color: var(--white);
    background:  var(--dark-gray);
}
header.sticky.sticky-active [data-header-hover="light"] .widget-text i {
    color: var(--white);
}
/* accordion style 02 */
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu {
    background-color: var(--dark-gray);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li:hover a,
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li.active a{
    opacity: .5;
}
/* bg color */
.bg-gradient-sherpa-blue-black {
    background-image: linear-gradient(to right top, #23248C, #22236D, #232348, #222226, #232323);
}
.bg-gradient-sherpa-black-blue {
    background-image: linear-gradient(to right top, #232323, #222226, #232348, #22236D, #23248C);
} 
/* bg transparent color */
.bg-base-color-transparent {
    background-color: rgba(87, 88, 214,.8);
}
/*  tabs style 05  */
.tab-style-05 .nav-tabs > li.nav-item {
    letter-spacing: -.5px;
}
/* accordion */
.accordion .accordion-item .accordion-header .accordion-title i {
    top: 52%;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {margin-bottom: 25px}

/*  progress bar style 01  */
.progress-bar-style-01 .progress .progress-bar-title {
    bottom: 15px;
}
/* page title */
.page-title-extra-large h1 {
    font-size: 4.7rem;
    line-height: 4.7rem;
}
/* separator line */
.separator-line-9px {
    height: 9px;
}
/* tag */
.tag-cloud div { 
    /*padding-top: 5px;
    padding-bottom: 9px;*/
    padding: 15px 24px;
    vertical-align: middle;
}
/* blog comment */ 
.blog-comment li .btn-reply {
    padding-top: 5px;
    padding-bottom: 7px;
}
/* number pagination style 01 */
.pagination-style-01 .page-item .page-link {
    line-height: 42px;
}
.pagination-style-01 .page-item.active .page-link {
    background: var(--dark-gray);
    color: var(--white);
}
/* top right bottom left */
.bottom-minus-45px {
    bottom: -45px;
}
.right-minus-45px {
    right: -45px;
}
/* footer */
footer .footer-logo img {
    max-height: 26px;
}
footer ul li {
    margin-bottom: 0;
}
.footer-dark a:hover {
    color: var(--black);
}
/* model popup */
.mfp-bg {
    background: #000000;
    opacity: 0.7;
}
.bg-contain-lg {background-size: cover; !important; background-repeat: no-repeat;}
@media (min-width: 1100px) {
    
    .mb-0-lg {margin-bottom: 0px;}
}
/* media query responsive */
@media (max-width: 1499px) {
    .navbar .navbar-nav .nav-link {
        padding-left: 20px;
        padding-right: 20px;
    } 
}
@media (max-width: 1399px) {
    .navbar .navbar-nav .nav-link {
        padding-left: 20px;
        padding-right: 20px;
    }
    .sticky-wrap.shadow-in {
        left: 35px;
    }
}
@media (max-width: 1300px) {
    .sticky-wrap.shadow-in {
        left: 10px;
    }
    .hidden-md {display: none !important;}
    .grid.gutter-large li {padding: 5px 5px;}
    
}
@media (min-width: 992px) and (max-width: 1100px)
{
    .photo-slider-modal__dialog {width: min(900px, calc(100% - 40px)) !important;}
}
@media (min-width: 992px) {
    .hidden-992 {display: none;}
    .lg-pr-0 {padding-right: 0px !important;}
    .lg-pl-0 {padding-left: 0px !important;}
}
@media (max-width: 991px) {
    .header-transparent .header-button .btn {
        color: var(--dark-gray);
        border-color: var(--dark-gray);
    }
    .header-transparent .header-button .btn:hover {
        border-color: var(--dark-gray);
        color: var(--white);
        background:  var(--dark-gray);
    }
    .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu {
        width: calc(100% + 30px) !important;
        margin-left: -15px;
        padding: 10px 45px;
        margin-bottom: 0;
        margin-right: -15px;
    }
    .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li:last-child a {
        padding-bottom: 17px;
    }
    .pb-10vh {padding-bottom: 5vh !important;}
    .grid.gutter-large li {padding: 5px 5px;}
    h1 {font-size: 3.275rem; line-height: 3.275rem;}
    .navbar-collapse-show .mobile-logo {display: none;}
    .hidden-991 {display: none;}
    .fs-22 {font-size: 18px;}
    .fs-21 {font-size: 20px;}
    .pt-0-sm {padding: 0px;}
    .pt-10-sm {padding-top: 10px !important;}
    .pb-sm-0 {padding-bottom: 0px !important;}
    .mt-0-sm {margin-top: 0px !important;}
    .h-50vh {height: 65vh !important;}
    .h-85vh-sm {height: 85vh !important;}
    .fs-40 {font-size: 30px;}
    .map-card {top: 80px !important;}
    .menu-white .navbar .navbar-nav .nav-link {color: #222222 !important;}
    .mb-30vh-sm {margin-bottom: 30vh !important;}
    .mb-sm-20px {margin-bottom: 20px !important;}
    .contact-col {width:100%;}
    .contact-top {
        flex-direction: column;
        padding: 35px 0px !important;
    }
    .middle-line {
    width: 100% !important;
    height: 1px !important;
    margin: 28px 0 !important;
    }
    .timeline-badge {
        left: -5px !important; 
        top: 10px !important; 
        width: 18px !important; 
        height: 18px !important;}
    .timeline-container::before {display: none;}
    .timeline-content {padding-left: 25px !important;}
    .justify-items-left-sm {justify-items: left !important;}
    .p-2 {padding: 6% !important;}
    .p-3 {padding: 6% !important;}
    .p-sm-0 {padding: 0px !important}
    .navbar .navbar-nav .nav-link {font-size: 20px;}
    .pr-sm-0 {padding-right: 0px;}
    .swiper.slide-img-list {
        margin-right: -15px !important; /* ดึงขอบขวาทะลุกำแพง Bootstrap (ปรับเลขตามจริงได้ เช่น -12px หรือ -20px) */
        padding-right: 0 !important;
    }
    .swiper.slide-img-list {
        overflow: hidden !important;
/*        padding-left: 0 !important; */
        margin-left: 0 !important;
        
        /* 🛠️ บังคับขยายขอบฝั่งขวาเพิ่มขึ้นอีกเล็กน้อย เพื่อเปิดพื้นที่ดึงภาพใบที่ 3 ให้แลบออกมาเด่นชัด */
        margin-right: -25px !important; 
        padding-right: 0 !important;
    }

    /* 2. สั่งให้ Wrapper ย่อยข้างในขยายมิติได้แบบไม่โดนบีบพิกเซล */
    .swiper.slide-img-list .swiper-wrapper {
        width: max-content !important;
    }
}
@media (min-width: 768px) {
    .hidden-768 {display: none;}
}
@media (max-width: 767px) {
    p {
        margin-bottom: 20px;
    }
    .page-title-extra-large h1 {
        font-size: 40px;
        line-height: 46px;
    }
    /* Mobile nav style classic */
    [data-mobile-nav-style=classic] .navbar-nav {
        display: block;
    }
    .fs-20 {font-size: 16px;}
    .pb-10vh {padding-bottom: 20vh !important;}
    .pb-100px-xs {padding-bottom: 100px;}
    .h-100vh-xs {height: 100vh !important;}
    .grid.gutter-large li {padding: 10px 5px;}
    .text-xs-start {text-align: left !important;}
    .mb-30vh-xs {margin-bottom: 30vh !important;}
    .hidden-767 {display: none;}
    .pb-0-xs {padding-bottom: 0px;}
    .pagination-bg-white .swiper-horizontal > .swiper-pagination-bullets {bottom: 0px; width: 100%;}
    .pagination-bg-white.page-imageslide-places .swiper-horizontal > .swiper-pagination-bullets {bottom: 25px; width: 100%;}
    .pt-xs-0 {padding-top: 0px;}
    .fs-21 {font-size: 18px;}
    .xs-mb-10px {margin-bottom: 10px;}
    .mb-xs-20px {margin-bottom: 20px;}
    .fs-14 {font-size: 13px !important;}
    body {
    font-size: 14px;
    line-height: 24px;}
    .p-20px-xs {padding: 30px 20px;}
    .p-xs-0 {padding: 0;}
    .tag-cloud div {font-size: 15px}
    .tag-cloud div {padding: 13px 15px;}
    .non-bg-xs {padding: 7px 14px !important;}
    .tag-cloud img {width: 20px !important;}
    .map-places iframe {height: 360px !important;}
}

/* NEW CSS */
.pl-0 {padding-left: 0px !important;}
.pl-5px {padding-left: 5px !important;}
.pl-10px {padding-left: 10px !important;}
.pl-20px {padding-left: 20px !important;}
.pl-40px {padding-left: 40px !important;}
.pr-0 {padding-right: 0px !important;}
.pr-5px {padding-right: 5px !important;}
.pr-10px {padding-right: 10px !important;}
.pr-20px {padding-right: 20px !important;}
.p-10px {padding: 10px;}
.p-20px {padding: 20px;}
.ptb16px-plr6px {padding: 14px 6px !important;}
.pt-10px {padding-top: 10px;}
.pb-10vh {padding-bottom: 10vh;}
.ml-10px {margin-left: 10px;}
.mr-5px {margin-right: 5px;}
.mr-10px {margin-right: 10px;}
.mr-auto {margin: 0 0 0 auto;}
.lg-p-8px {padding: 8px !important;}

.w-fit {width: fit-content;}
.line-height-25px {line-height: 25px;}

.text-right {text-align: right;}
.webkit-box {display: -webkit-box;}

.h-95 {height: 95%;}
.h-90 {height: 90%;}

.nav-link:focus, .nav-link:hover {color: #A4A4A4;}

.text-666666 {color: #666666 !important;}
.text-A4A4A4 {color: #A4A4A4!important;}

.justify-items-end {justify-items: end;}

.overflow-hidden {overflow: hidden;}

.pagination-bg-white .swiper-light-pagination .swiper-pagination-bullet {background-color: #DDDDDD;}

.bg-contain {background-size: contain !important; background-repeat: no-repeat;}

.btn.btn-dark-gray.btn-green {background-color: #CAE193; border-radius: 10px !important; text-transform: none;}
.btn.btn-dark-gray.btn-green:hover {background-color: #E5E5E5; border-color: #E5E5E5;}
.form-control {border-radius: 10px !important;}

.btn-top-available {
    background-color: rgba(245, 245, 245, 0.4);
    border-radius: 43px;
    padding: 1px 17px;
    border: 1px solid #ffffff;
    color: #fff;
}
.btn-top-booked {
    background-color: rgba(34, 34, 34, 0.4);
    border-radius: 43px;
    padding: 1px 20px;
    border: 1px solid #222222;
    color: #A4A4A4;
}

.image-available {
    position: absolute;
    z-index: 9999;
    left: 20px;
    top: 20px;
}

.contact-box{

    background:#fff;

    border-radius:11px;

    overflow:hidden;

/*    border:1px solid #000000;*/

    box-shadow:
        0 2px 8px rgba(0,0,0,.1),
        0 10px 24px rgba(0,0,0,.1);

}


/*****************************
 Top
******************************/

.contact-top{

    display:flex;

    justify-content:center;

    align-items:center;

    padding:40px 65px;

    background:#fff;

}

.contact-col{

    flex:1;

    text-align:center;

}

.contact-title{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:8px;

    color:#222222;

    font-size:15px;

    font-weight:500;

    margin-bottom:20px;

    letter-spacing:.1px;

}

.contact-title i{

    font-size:18px;

    color:#222222;

}

.contact-link{

    display:inline-block;

    text-decoration:none;

    color:#222;

    font-size:14px;

    font-weight:700;

    line-height:1.3;

    transition:.25s;

}

.contact-link:hover{

    color:#000;

}

.middle-line{

    width:1px;

    height:52px;

    background:#e8e8e8;

    margin:0 72px;

}


/*****************************
 Bottom
******************************/

.contact-bottom{

    background:#f4f4f4;

    text-align:center;

    padding:40px 65px;

    border-top:1px solid #ececec;

}

.contact-bottom h3{

    font-size:16px;

    font-weight:700;

    color:#222222;

    line-height:1.6;

    margin-bottom:20px;

}

.contact-bottom p{

    font-size:14px;

    color:#666666;

    line-height:1.6;

    font-weight:400;
    margin-bottom: 0px;

}


/*****************************
 Responsive
******************************/

@media(max-width:767px){

.contact-top{

    flex-direction:column;

    padding:35px 0px;

}

.middle-line{

    width:100%;

    height:1px;

    margin:28px 0;

}

.contact-col{

    width:100%;

}

.contact-link{

    font-size:15px;

}

.contact-bottom{

    padding:22px;

}

.contact-bottom p {

    font-size: 13px;
}

.map-card {

    top: 80px !important;
}

}

.google-map{

    position:relative;

    width:100%;

/*    height:650px;*/

    overflow:hidden;

}

.google-map iframe{

    width:100%;

    height:570px;

    border:0;
}


/********************
 Card
********************/

.map-card{

    position:absolute;

    top:50px;

    left:50%;

    transform:translateX(-50%);

    width:250px;

    background:#fff;

    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,.18);

    z-index:5;

}

.map-card h3{

    padding:20px 10px 0 10px;

    font-size:18px;

    font-weight:700;

    color:#222;

    margin-bottom: 0px;

}

.map-card p{

    margin:0px 0 20px;

    color:#666666;

    line-height:24px;

    font-size:14px;

    padding: 0 10px;

}

.map-card a{

    display:block;

    background:#624731;

    color:#fff;

    text-decoration:none;

    height:50px;

    line-height:50px;

    font-size:14px;

    font-weight:700;

    letter-spacing:.5px;

    transition:.3s;

}

.map-card a:hover{

    background:#f2f2f2;
    color: var(--black);

}

.map-pin{

    position:absolute;
    left:50%;
    bottom:-22px;
    transform:translateX(-50%);

    width:0;
    height:0;

    border-left:18px solid transparent;
    border-right:18px solid transparent;
    border-top:22px solid #624731;
}

a:hover .map-pin {border-top:22px solid #f2f2f2;}

.border-end {
    border-right: 2px var(--bs-border-style) #DDDDDD;
}
.menu-white .navbar .navbar-nav .nav-link {color: #ffffff;}
.menu-white .sticky-active  nav .navbar-collapse li a {color: #222222 !important;}
.about-swiper .swiper-slide {
    height: auto !important; 
    display: flex;
    align-items: flex-start !important;
}
.about-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1), 0 10px 24px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    
    /* 🛠️ จุดที่ 2: เปลี่ยนจาก height: 100% เป็น height: max-content */
    height: max-content !important; /* บังคับให้กรอบสูงพอดีเท่าเนื้อหาข้างใน ไม่ขยายส่วนเกิน */
    width: 100%;
}
.about-bottom {
    background: #ffffff;
    text-align: center;
    padding: 20px;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    
    /* 🛠️ จุดที่ 3: เอา flex-grow: 1; ออก (ลบบรรทัดนั้นทิ้ง หรือแก้เป็นค่าเริ่มต้นตามนี้) */
    flex-grow: 0 !important; /* สั่งปิดไม่ให้บล็อกสีขาวกางยืดส่วนเกินลงไปด้านล่าง */

}
.about-bottom h6 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto; 
    width: 100%;
    margin-bottom: 0;
}

.ul-about {padding-left: 20px; margin-top: 20px;}
.ul-about li {list-style: disc; margin-bottom: 10px; color: #666666;}

.timeline-container {
    position: relative;
    margin: 0 auto;
    padding-left: 130px; /* เว้นพื้นที่ให้ปีด้านซ้าย */
}

/* เส้นแกนกลางแนวตั้ง */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 180px;
    top: 13px;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    /* ตั้งค่าเริ่มต้นให้จางลง (สำหรับปีในอดีต) */
    opacity: 0.3;
    transition: opacity 0.5s ease, color 0.5s ease;
}

/* เมื่อไอเทมนั้น Active (แสดงผลอยู่) */
.timeline-item.active {
    opacity: 1;
}

/* ส่วนแสดงตัวเลขปี ค.ศ. ด้านซ้าย */
.timeline-year {
    position: absolute;
    left: -120px;
    width: fit-content;
    text-align: right;
    font-size: 3.25rem;
    font-weight: bold;
    color: #DDDDDD;
    line-height: 1;
    transition: color 0.5s ease;
}

.timeline-item.active .timeline-year {
    color: #222222; /* ปีปัจจุบัน/Active จะเข้มเด่นชัด */
}

/* วงกลมบนเส้น Timeline */
.timeline-badge {
    position: absolute;
    left: 41px; /* จัดให้อยู่ตรงกลางเส้นพอดี */
    top: 15px;
    width: 20px;
    height: 20px;
    background-color: #DDDDDD;
    border-radius: 50%;
    transition: background-color 0.5s ease, transform 0.3s ease;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 1);
    z-index: 2;
}

/* วงกลมสีเขียวเมื่อ Active */
.timeline-item.active .timeline-badge {
    background-color: #CAE193; /* สีเขียว */
/*    transform: scale(1.3);*/
    
}

/* เนื้อหาฝั่งขวา */
.timeline-content {
    padding-left: 100px;
}

.timeline-content h3 {
    font-size: 1.7rem;
    margin-bottom: 0px;
    color: #222;
    font-weight: 400;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}
.btn-available-detail {
    background-color: rgba(245, 245, 245, 0.4);
    border-radius: 43px;
    padding: 5px 19px;
    border: 1px solid #ffffff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1), 0 10px 24px rgba(0, 0, 0, .1);
    width: fit-content;
}

/* กล่องควบคุมตำแหน่งปุ่มแชร์ */
.button-group-container {
    display: flex;
    align-items: center;
    gap: 12px; /* ระยะห่างระหว่างปุ่ม Available และปุ่มแชร์ */
    position: relative;
}

.share-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* สไตล์ปุ่มหลัก (ปุ่มกลมสีขาวตามรูปแบบภาพ) */
.share-btn-main {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    color: #555555;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1), 0 10px 24px rgba(0, 0, 0, .1); /* เงาจางๆ รอบปุ่ม */
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    z-index: 10;
    padding: 17px;
}

.share-btn-main:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1), 0 10px 24px rgba(0, 0, 0, .1);
    color: #000000;
}

/* กล่องเก็บปุ่มโซเชียลที่จะเด้งออกมา */
.social-options {
    position: absolute;
    display: flex;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: #ffffff;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    bottom: 65px; /* แสดงด้านบนของปุ่มหลัก */
    right: 0; 
    max-width: calc(100vw - 40px); /* บังคับไม่ให้ความกว้างของเมนูยาวเกินหน้าจอมือถือ */
}

/* เมื่อกดเปิดใช้งาน */
.social-options.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* สไตล์ปุ่มโซเชียลแต่ละอัน */
.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.social-btn:hover {
    transform: scale(1.15);
}

/* สีประจำแบรนด์โซเชียลต่างๆ */
.facebook { background-color: #1877F2; }
.line { background-color: #06C755; }
.twitter { background-color: #000000; }
.copy-link { background-color: #607D8B; }

.swiper-button-prev, .swiper-rtl .swiper-button-next {
    left: var(--swiper-navigation-sides-offset, 30px);
    right: auto;
}
.swiper-button-next, .swiper-rtl .swiper-button-prev {
    right: var(--swiper-navigation-sides-offset, 30px);
    left: auto;
}

.btn-see-all {
    position: absolute;
    top: 20px; /* ระยะห่างจากขอบบน */
    right: 20px; /* ระยะห่างจากขอบขวา */
    background-color: rgba(255, 255, 255, 0.4); /* สีขาวโปร่งแสงเล็กน้อย */
    color: #222222;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 8px; /* ขอบมนเหลี่ยมสไตล์โมเดิร์นตามภาพ */
    border: 1px solid rgba(255, 255, 255, 0.08);
/*    cursor: text !important;*/
    display: flex;
    align-items: center;
    gap: 8px; /* ระยะห่างระหว่างไอคอนและตัวหนังสือ */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px); /* เอฟเฟกต์กระจกฝ้าด้านหลังปุ่ม */
    z-index: 10;
}

.btn-see-all:hover {
    /*background-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
}

.btn-see-all i {
    font-size: 14px;
    color: #222222;
}

/* กล่องการ์ดหลัก */
.favorite-card {
    background-color: #ffffff;
    width: 100%;
/*    max-width: 350px;*/
    padding: 30px 24px;
    border-radius: 16px; /* ขอบมนโค้งตามรูป */
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1), 0 10px 24px rgba(0, 0, 0, .1); /* เงาจางๆ รอบการ์ด */
/*    text-align: center;*/
}

/* ส่วนหัวที่มีข้อความและไอคอนใบไม้ประกบข้าง */
.card-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

/* สไตล์ไอคอนกิ่งไม้สีเขียวอ่อนอ่อนตามภาพ */
.leaf-icon {
    color: #b5dca3; 
    font-size: 24px;
}

/* สลับด้านไอคอนกิ่งไม้ฝั่งซ้ายให้หันเข้าหากัน */
.leaf-icon.left {
    transform: scaleX(-1); 
}

/* ข้อความหัวข้อหลัก */
.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #222222;
    line-height: 1.2;
    padding-left: 5px;
    padding-right: 5px;
}

/* ข้อความรายละเอียดตรงกลาง */
.card-subtitle {
    font-size: 13px;
    color: #222222;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* เส้นคั่นกลางบางๆ */
.card-divider {
    border: none;
    height: 1px;
    background-color: #DDDDDD;
    margin-bottom: 20px;
    width: 100%;
}

/* ส่วนแสดงตัวเลขสถิติด้านล่าง */
.card-stats {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

/* ตัวเลข 128 ขนาดใหญ่หนาเด่นชัด */
.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #222222;
    line-height: 1;
}

/* ข้อความ bookings ต่อท้าย */
.stat-label {
    font-size: 13px;
    color: #222222;
    font-weight: 400;
}

.non-bg {
    background-color: transparent !important;
     margin-bottom: 0px !important;
}
.non-bg:hover {
    box-shadow: none !important;
}
.fa-regular {background-color: #f2f2f2;}

.btn-contact-book {
    display: inline-block;
    text-align: center;
    font-size: 18px;
    line-height: 20px;
    margin: 0 6px 10px 0;
    padding: 15px 25px;
    border-radius: 10px;
    background-color: #CAE193;
    border: 0px solid var(--extra-medium-gray);
    color: #222222;
    vertical-align: middle;
    width: 100%;
    margin-top: 20px;
    font-weight: 600;
}
.btn-contact-book:hover {background-color: #F2F2F2; color: #A4A4A4;}

.mfp-gallery button.mfp-close {right: 50px; top: 50px;}

.tag-cloud img {width: 24px;}

.map-places iframe {
    width: 100%;
    height: 570px;
    border: 0;
}
.page-imageslide-places .swiper {
    padding-bottom: 65px !important; 
    overflow: hidden !important; 
}

.slide-img-list {
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
}

.slide-img-list .swiper-wrapper {
    padding: 0 !important;
}

.slide-img-list .swiper-slide {
    box-sizing: border-box;
}

.booking-card-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ================================
   CONTACT PANEL
================================ */

.contact-book-panel {
    width: 100%;
/*    max-width: 305px;*/

    margin: 0 auto;

    background: #fff;
    border-radius: 14px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);

    overflow: hidden;

    max-height: 0;
    opacity: 0;

    transform: translateY(-10px);

    visibility: hidden;
    pointer-events: none;

    transition:
        max-height 0.45s ease,
        opacity 0.35s ease,
        transform 0.45s ease,
        margin-top 0.45s ease;
}


/* ================================
   OPEN
================================ */

.contact-book-panel.is-active {
    max-height: 180px;

    margin-top: 18px;

    opacity: 1;

    transform: translateY(0);

    visibility: visible;
    pointer-events: auto;
}


/* ================================
   TITLE
================================ */

.contact-book-panel__title {
    padding: 35px 18px 25px;

    text-align: center;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;

    color: #222;
}


/* ================================
   OPTIONS
================================ */

.contact-book-panel__options {
    display: flex;
    align-items: center;

    padding: 0 20px 20px;
}


/* ================================
   OPTION
================================ */

.contact-book-option {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #222;
    text-decoration: none;

    transition: opacity 0.2s ease;
}

.contact-book-option:hover {
    opacity: 0.65;
}


/* ================================
   ICON
================================ */

.contact-book-option__icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 20px;
}


/* ================================
   TEXT
================================ */

.contact-book-option__text {
    font-size: 17px;
    font-weight: 600;

    white-space: nowrap;
}


/* ================================
   DIVIDER
================================ */

.contact-book-divider {
    width: 1px;
    height: 30px;

    flex-shrink: 0;

    margin: 0 14px;

    background: #ddd;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 575px) {

    .contact-book-panel {
        max-width: calc(100% - 30px);
    }

    .contact-book-panel__title {
        font-size: 15px;
    }

    .contact-book-panel__options {
        padding-left: 15px;
        padding-right: 15px;
    }

    .contact-book-option__text {
        font-size: 15px;
    }

    .contact-book-divider {
        margin: 0 8px;
    }

}

/* =========================================================
   PHOTO GALLERY GRID POPUP
========================================================= */

.photo-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.photo-gallery-modal.is-open {
    display: block;
}

.photo-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.photo-gallery-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(900px, calc(100% - 40px));
    max-height: calc(100vh - 60px);
    transform: translate(-50%, -50%);

    background: #fff;
    border-radius: 20px;

    overflow: hidden;

    display: flex;
    flex-direction: column;
}


/* Header */

.photo-gallery-modal__header {
    position: relative;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 25px 18px;

    background: #fff;
}

.photo-gallery-modal__header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #222222;
    margin: auto;
}

.photo-gallery-modal__close {
    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: all .25s ease;
}

.photo-gallery-modal__close:hover {
    background: transparent;
}


/* Grid */

.photo-gallery-grid {
    padding: 15px 25px 30px 25px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 15px;
    row-gap: 15px;

    overflow-y: auto;
}

.photo-gallery-grid__item {
    position: relative;

    width: 100%;
/*    aspect-ratio: 16 / 10;*/
    height: 220px;
    overflow: hidden;

    border-radius: 12px;
    cursor: pointer;

    background: transparent;
}

.photo-gallery-grid__item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .35s ease;
    border-radius: 12px;
    margin-bottom: 15px;
}

.photo-gallery-grid__item:hover img {
    transform: scale(1.04);
    border-radius: 12px;
}


/* =========================================================
   PHOTO SLIDER POPUP
   FIGMA STYLE
========================================================= */

.photo-slider-modal {
    position: fixed;
    inset: 0;

    z-index: 1000000;

    display: none;
}

.photo-slider-modal.is-open {
    display: block;
}


/* =========================================================
   DARK BACKGROUND
========================================================= */

.photo-slider-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.70);
}


/* =========================================================
   WHITE POPUP
========================================================= */

.photo-slider-modal__dialog {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: min(1200px, calc(100% - 40px));

    max-height: calc(100vh - 40px);

    background: #fff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.photo-slider-modal__header {
    position: relative;

    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 70px;

    background: #fff;
}


.photo-slider-modal__title {
    margin: 0;

    font-size: 20px;
    line-height: 1.3;

    font-weight: 600;

    color: #111;

    text-align: center;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.photo-slider-modal__close {
    position: absolute;

    top: 50%;
    right: 20px;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #111;

    font-size: 20px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: opacity .2s ease;
}

.photo-slider-modal__close:hover {
    opacity: .55;
}


/* =========================================================
   IMAGE AREA
========================================================= */

.photo-slider-modal__content {

    width: 100%;

    /* รูปมีพื้นที่สูงขึ้น */
    height: auto;

    padding: 0px 28px 30px 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;

    overflow: hidden;
}


.photo-slider-modal__content img {

    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    user-select: none;

    -webkit-user-drag: none;

    border-radius: 10px;
}


/* =========================================================
   FOOTER
========================================================= */

.photo-slider-modal__footer {

    position: absolute;

    /* เริ่มหลัง Header */
    top: 58px;

    left: 0;
    right: 0;
    bottom: 0;

    height: auto;

    padding: 0;

    background: transparent;

    display: block;

    pointer-events: none;

    z-index: 10;
}


/* =========================================================
   PREVIOUS / NEXT
========================================================= */

.photo-slider-modal__prev,
.photo-slider-modal__next {

    position: absolute;

    /* ไม่ใช้ top: 50% แล้ว */
    top: auto;

    /* อยู่ด้านล่าง */
    bottom: 50px;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0px solid #dedede;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.2);

    color: #ffffff;

    font-size: 14px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    pointer-events: auto;

    z-index: 20;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


/* ลูกศรซ้าย */
.photo-slider-modal__prev {

    left: 50px;

    transform: none;
}


/* ลูกศรขวา */
.photo-slider-modal__next {

    right: 50px;

    transform: none;
}


.photo-slider-modal__prev:hover,
.photo-slider-modal__next:hover {

    background: #222;

    border-color: #222;

    color: #fff;
}


/* =========================================================
   COUNTER
========================================================= */

.photo-slider-modal__counter {

    min-width: 55px;

    text-align: center;

    color: #222;

    font-size: 14px;

    font-weight: 500;
    display: none !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .photo-gallery-modal__dialog {
        width: calc(100% - 24px);
        max-height: calc(100vh - 30px);
        border-radius: 16px;
    }

    .photo-gallery-modal__header {
        padding: 18px 18px 14px;
    }

    .photo-gallery-grid {
        padding: 0 18px 18px;
        gap: 10px;
    }

    .photo-gallery-grid__item {
        border-radius: 9px;
    }

    .photo-slider-modal__content {
        width: calc(100vw - 80px);
        height: calc(100vh - 120px);
    }

    .photo-slider-modal__prev,
    .photo-slider-modal__next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .photo-slider-modal__prev {
        left: 10px;
    }

    .photo-slider-modal__next {
        right: 10px;
    }

    .photo-slider-modal__close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .photo-slider-modal__dialog {

        width: calc(100% - 24px);

        border-radius: 14px;
    }


    .photo-slider-modal__header {

        height: 60px;

        padding: 0 55px 0 20px;
    }


    .photo-slider-modal__title {

        font-size: 17px;
    }


    .photo-slider-modal__close {

        right: 12px;

        width: 36px;
        height: 36px;

        font-size: 18px;
    }


    .photo-slider-modal__content {

        height: 55vh;

        padding: 0 15px;
    }


    .photo-slider-modal__footer {

        height: 65px;

        gap: 18px;

        padding: 0 15px;
    }


    .photo-slider-modal__prev,
    .photo-slider-modal__next {

        width: 38px;
        height: 38px;
    }

}

/* ---- สถานะ Booked (post.status_soldout = 1) ---- */
/* ป้ายข้างหัวข้อหน้า detail — ให้โทนเดียวกับ .btn-top-booked ที่มีอยู่แล้ว */
.btn-available-detail.is-booked {
    background-color: rgba(34, 34, 34, 0.4);
    border: 1px solid #222222;
    color: #A4A4A4;
}
/* ปุ่มติดต่อจอง — ห้องถูกจองแล้วให้เป็นสีเทาและกดไม่ได้ */
.btn-contact-book.is-disabled,
.btn-contact-book.is-disabled:hover {
    background-color: #E5E5E5;
    color: #A4A4A4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---- Location tile ที่ถูกเลือกอยู่ ---- */
/* view ใส่ class="active" ให้ <a> ของ tile ที่ตรงกับ ?location=
   ทำให้หน้าตาเหมือนตอน hover ของธีม — style.css:17522
     .blog-metro figure:hover img  ->  transform: scale(1.1) + opacity 0.5
   transition 400ms มาจาก .blog-metro figure img อยู่แล้ว จึงไม่ต้องประกาศซ้ำ */
.slide-img-list .grid-item figure > a.active img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    opacity: 0.5;
}
