/* ===== Styles for Offer Cards (index.php) ===== */
.offers-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    gap: 30px;
    width: 100%;
    padding: 10px 5px 30px 5px;
    -webkit-overflow-scrolling: touch;
}
.offers-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.new-offer-card {
    flex: 0 0 380px;
    max-width: 90vw;
    scroll-snap-align: start;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0px; /* Sharp corners */
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-family: inherit;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.new-offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.noc-header { 
    padding: 20px 20px 15px 20px; 
}
.noc-title {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: #333;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.noc-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
    row-gap: 8px;
}
.noc-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.noc-link {
    margin-left: auto;
    color: #a47665;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.noc-link:hover { 
    text-decoration: underline; 
    color: #8c6354;
}

/* Swiper Customizations */
.noc-swiper {
    width: 100%;
    height: 280px;
    position: relative;
}
.noc-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.noc-nav {
    color: #fff !important;
    background: rgba(0,0,0,0.3) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    transition: background 0.3s ease;
}
.noc-nav:hover {
    background: rgba(0,0,0,0.6) !important;
}
.noc-nav::after { 
    font-size: 16px !important; 
    font-weight: bold; 
}
.noc-swiper .swiper-pagination-bullet { 
    background: #fff; 
    opacity: 0.6; 
}
.noc-swiper .swiper-pagination-bullet-active { 
    background: #fff; 
    opacity: 1; 
    transform: scale(1.2); 
}

.noc-footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    border-top: 1px solid #f5f5f5;
}
.noc-urgency {
    color: #a47665;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 20px;
}
.noc-price-wrap { 
    color: #333; 
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.noc-price-val { 
    font-size: 26px; 
    font-weight: bold; 
    line-height: 1;
}
.noc-price-currency { 
    font-size: 16px; 
    font-weight: 500; 
}
.noc-per-night { 
    font-size: 14px; 
    color: #666; 
    margin-top: 4px; 
}
.noc-btn {
    background-color: #bfa08e;
    color: #fff;
    padding: 12px 20px;
    border-radius: 0px; /* Sharp corners */
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.noc-btn:hover { 
    background-color: #8c6354; /* Darker on hover */
    color: #fff;
    transform: scale(1.02); /* Slight scale up */
}
.noc-btn svg {
    transition: transform 0.3s ease;
}
.noc-btn:hover svg {
    transform: translateX(4px); /* Arrow moves right on hover */
}
.offers-wid{
    width: 92% !important;
    padding: 0 15px;
    position: relative;
}

/* Offers Navigation Buttons */
.offers-nav-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
    padding-right: 5px;
}

.offers-scroll-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.offers-scroll-btn:hover {
    background-color: #bfa08e;
    color: #fff;
    border-color: #bfa08e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-section {
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin-top: 100px;
}
/* Responsive adjustments */
@media (max-width: 991px) {
    .new-offer-card {
        flex: 0 0 320px;
    }
}

@media (max-width: 576px) {
    .offers-wid{
        width: 100% !important;
        padding : unset !important;
    }
    .offers-nav-buttons {
        /* Optional: hide buttons on mobile or adjust them */
        padding-right: 15px;
        margin-top: -10px;
        margin-bottom: 20px;
    }
    .offers-grid {
        gap: 20px;
        padding: 0 15px;
        margin-top: 5px !important;
        padding-bottom: 15px;
    }
    
    .new-offer-card {
        flex: 0 0 calc(100% - 30px); /* Leave small gap for next card */
        scroll-snap-align: center;
        max-width: 100%;
    }

    .noc-swiper {
        height: 220px;
    }
    .noc-header {
        padding: 15px;
    }
    .noc-title { 
        font-size: 20px; 
        min-height: auto;
    }
    .noc-price-val { 
        font-size: 22px; 
    }
    .noc-footer {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .noc-footer-right {
        width: 100%;
    }
    .noc-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Accommodation Section (เหมือนตัวอย่าง) ===== */
.accom-section {
    padding: 80px 0;
    background-color: #fff;
    overflow: hidden;
}

.accom-header {
    text-align: center;
    margin-bottom: 40px;
}

.accom-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    color: #666;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.accom-title {
    font-size: 36px;
    font-weight: 300;
    color: #a47665;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.accom-container {
    width: 92%;
    margin: 0 auto;
    padding: 0 15px;
}

.accom-tabs {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    /* เพิ่ม padding-bottom เผื่อพื้นที่ให้ลูกศรย้อยลงมาไม่ถูกตัด และใช้ margin ติดลบเพื่อดึงคอนเทนต์ด้านล่างขึ้นมาให้ชิดกัน */
    padding-bottom: 15px; 
    margin-bottom: -15px;
    z-index: 10;
    position: relative;
}

.accom-tab {
    padding: 15px 30px;
    background-color: #d1c8c1;
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    border: none;
    /* ยืดหยุ่นบนหน้าจอเล็ก */
    flex-shrink: 0;
}

.accom-tab.active {
    background-color: #a48e82;
}
/* เปลี่ยนเป็นลูกศรย้อยลงมาออกแนวไทยๆ อ่อนช้อย */
.accom-tab.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 14px;
    background-color: #a48e82;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 2;
}
.accom-tab.active::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 10px;
    background-color: #a48e82;
    border-radius: 0 0 50% 50%;
    z-index: 1;
}

.accom-content {
    display: flex;
    flex-wrap: wrap;
    background-color: #f1f2f2;
    width: 100%;
}

.accom-image-col {
    flex: 1 1 60%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

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

.accom-text-col {
    flex: 1 1 40%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.accom-text-title {
    font-size: 24px;
    font-weight: 300;
    color: #333;
    margin-bottom: 20px;
}

.accom-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.accom-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}
.accom-list li {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.accom-list li::before {
    content: '•';
    color: #a48e82;
    font-weight: bold;
    display: inline-block;
    width: 1em;
}

.accom-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #a48e82;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.accom-btn:hover {
    background-color: #8c6354;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .accom-tab {
        padding: 8px 18px;
        background-color: #d1c8c1;
        color: #fff;
        font-size: 10px;
        letter-spacing: 1px;
        text-transform: uppercase;
        cursor: pointer;
        transition: background 0.3s ease;
        position: relative;
        border: none;
        flex-shrink: 0;
    }
    .accom-content {
        flex-direction: column;
    }
    .accom-image-col, .accom-text-col {
        flex: 1 1 100%;
        height: auto;
        min-height:unset !important;    
    }
    .accom-text-col {
        padding: 30px 20px;
    }
    .accom-title {
        font-size: 0.95rem;
    }
    .accom-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .accom-tabs::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 576px) {
    .accom-container {
        width: 100% !important;
        padding: 0 !important;
    }
    .accom-header {
        padding: 0 0px;
        text-align: left;
    }
    /* Offers */
    .offers-header {
                padding: 0px 0px 0px 0px !important;
        width: 100% !important;
    }
    .offers-grid{
        padding-left: unset !important;
    }
    .PAGE-3-P-P {
                margin-top: 10px !important;
    }
    .accom-title{
        font-size: 0.95rem !important;
    }
    .mobile_data_index{
        margin-top: 40px !important;
    }
     .PAGE6_CONTENT_ROW {
        margin-top: unset !important;
    }
    .CONTENT_PAGE6_1 img ,.PAGE6_CONTENT2_SETTING{
        padding: unset !important;
    }
    .SETTIG_LINEHIGHT_PAGE6{
        margin-top: 1px !important;
    }
    .PAGE6_CONTENT2_SETTING p{
        margin-top: 10px !important;
    }
    .PAGE5_CONTENT_TESX{
        padding: unset !important;
        width: 100% !important;
        text-align: left !important;
    }
    .PAGE5_CONTENT_TESX h2{
        text-align: left !important;
    }
    .PAGE5_LINE_page7{
        margin-top: unset !important;
    }
    main section {
        padding: 15px 28px 15px 28px !important; 
        box-sizing: border-box !important;
        width: 100% !important;
        overflow: hidden !important;
    }
}
