/* ========================================
   FONTS
======================================== */

@font-face {
    font-family: "League Gothic";
    src: url('../fonts/LeagueGothic-Regular-VariableFont_wdth.ttf')format("truetype");
}

@font-face {
    font-family: "Niconne";
    src: url('../fonts/Niconne-Regular.ttf')format("truetype");
}

/* ========================================
   BASE STYLES & TYPOGRAPHY
======================================== */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.section-title {
    font-size: 2.5rem;
}

/* ========================================
   UTILITY CLASSES
======================================== */

/* Icons */
.icon { 
    width: 21px; 
    height: 21px; 
    margin-right: 4px; 
    margin-bottom: 4px;
}

.icon-sm { 
    width: 19px; 
    height: 19px; 
    margin-right: 7px; 
    opacity: .8;
}

.icon-secondary {
    color: var(--color-secondary) !important;
}

/* Colors */
.text-orange { 
    color: var(--color-orange) !important; 
}

.text-secondary-custom { color: var(--color-secondary); }
.text-muted-999 { color: #999; }
.text-dark-444 { color: #444; }
.text-dark-222 { color: #222; }

/* Backgrounds */
.bg-black { background: #000; }
.bg-fafafa { background: #fafafa; }

/* Typography Utilities */
.fs-0-875 { font-size: 0.875rem; }
.fs-0-9 { font-size: 0.9rem; }
.fs-0-95 { font-size: 0.95rem; }
.fs-0-98 { font-size: 0.98rem; }
.fs-1-03 { font-size: 1.03rem; }
.fs-1-05 { font-size: 1.05rem; }
.fs-1-08 { font-size: 1.08rem; }
.fs-1-1 { font-size: 1.1rem; }
.fs-1-13 { font-size: 1.13rem; }
.fs-1-15 { font-size: 1.15rem; }
.fs-1-2 { font-size: 1.2rem; }
.fs-1-22 { font-size: 1.22rem; }
.fs-1-25 { font-size: 1.25rem; }
.fs-1-28 { font-size: 1.28rem; }
.fs-1-3 { font-size: 1.3rem; }
.fs-1-35 { font-size: 1.35rem; }
.fs-1-5 { font-size: 1.5rem; }
.fs-2-5 { font-size: 2.5rem; }
.fs-2-6 { font-size: 2.6rem; }
.fs-3-1 { font-size: 3.1rem; }

.lh-1-06 { line-height: 1.06; }
.lh-1-1 { line-height: 1.1; }
.lh-1-22 { line-height: 1.22; }

.letter-spacing-sm { letter-spacing: 0.01em; }
.letter-spacing-md { letter-spacing: 0.02em; }

/* Layout Utilities */
.h-130px { height: 130px; }
.h-176px { height: 176px; }
.h-178px { height: 178px; }
.h-195px { height: 195px; }
.h-218px { height: 218px; }
.h-280px { height: 280px; }
.h-32px { height: 32px; }
.h-34px { height: 34px; }
.h-38px { height: 38px; }
.h-400px { height: 400px; }
.h-541px { height: 541px; }

.w-32px { width: 32px; }
.w-34px { width: 34px; }
.w-50px { width: 50px; }

/* Display & Position */
.object-cover { object-fit: cover; }
.z-10 { z-index: 10; }
.z-11 { z-index: 11; }
.aspect-ratio-2-2-1 { aspect-ratio: 2.2/1; }

/* Border & Effects */
.rounded-18 { border-radius: 18px; }
.rounded-50 { border-radius: 50%; }
.opacity-80 { opacity: 0.8; }
.opacity-88 { opacity: 0.88; }
.shadow-gallery-modal { box-shadow: 0 2px 16px rgba(30,26,14,0.03); }

/* Small Elements */
.dot-6 { 
  width: 6px; 
  height: 6px; 
}

.dropdown-dots {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

/* Overlay & Badge Elements */
.img-overlay-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  margin-bottom: 2px;
  margin-right: 2px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-weight: bold;
}

.gallery-overlay-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 6px 12px;
}

/* ========================================
   BUTTON COMPONENTS
======================================== */

/* Primary Buttons */
.find-room-btn {
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 25px;
    padding: 10px 32px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.15s;
}

.find-room-btn:hover {
    background: var(--color-button-hover);
    color: var(--color-white);
}

.room-booking-btn {
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 25px;
    padding: 10px 32px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.15s;
}

.room-booking-btn:hover {
    background: var(--color-button-hover);
    color: var(--color-white);
}

/* CTA Buttons */
.btn-signup {
    background: var(--color-secondary);
    color: #fff;
    font-weight: 600;
    border-radius: 24px;
    padding: 0.6rem 2.2rem;
    font-size: 1.2rem;
    border: none;
}

.btn-download {
    background: #fff;
    color: #333;
    font-weight: bold;
    border-radius: 24px;
    font-size: 1.15rem;
    padding: 0.6rem 2.2rem;
    border: 1px solid #ddd;
}

/* Themed Buttons */
.btn-orange {
    background: var(--color-orange);
    color: #fff;
    border: none;
    font-weight: bold;
    transition: background .18s;
}

.btn-orange:hover { 
    background: var(--color-orange-dark); 
    color: #fff; 
}

.btn-outline-orange {
    border: 2px solid var(--color-orange);
    color: var(--color-orange);
    background: #fff;
    font-weight: bold;
    transition: background .15s, color .15s;
}

.btn-outline-orange:hover {
    background: var(--color-orange);
    color: #fff;
    border-color: var(--color-orange);
}

.btn-signin{
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-signin:hover {
    background: transparent;
    border: 1px solid var(--color-accent);
}

/* Secondary Button Styles */
.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #6ba888;
    border-color: #6ba888;
    color: white;
}

.btn-outline-secondary {
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    background-color: transparent;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}

/* Button Utilities */
.btn-secondary-custom {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.btn-outline-secondary-custom {
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  background: transparent;
}

.btn-outline-filter {
    border: 1.4px solid #e2e2e2;
    color: #222;
    background: #fff;
    border-radius: 18px;
    font-weight: 500;
    padding: 7px 18px 7px 18px;
    font-size: 1rem;
    transition: all .13s;
    box-shadow: none;
    outline: none;
}

.btn-outline-filter:focus,
.btn-outline-filter.active,
.btn-outline-filter:hover {
    border-color: #f26421;
    color: #f26421;
    background: #fff5ed;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Special Buttons */
.destination-btn,
.trip-plan-btn,
.area-preference-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50px !important;
    color: #495057;
    font-size: 0.875rem;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.destination-btn:hover,
.trip-plan-btn:hover,
.area-preference-btn:hover {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.close-dropdown-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50px !important;
    color: #495057;
    font-size: 0.875rem;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.close-dropdown-btn:hover {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.room-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
  border-radius: 50%;
  opacity: 0.8;
  z-index: 10;
  border: none;
}

/* ========================================
   TAB COMPONENTS
======================================== */

/* Standard Tabs */
.btn-tab {
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    height: 86px;
    transition: background 0.15s, transform 0.15s;
}

.btn-tab.active {
    border: 1px solid var(--color-secondary);
    background: transparent;
    color: var(--color-primary);
}

.btn-tab:hover {
    background: transparent;
}

/* City Tabs */
.city-tab-menu {
    background: #fff;
    border: 2px solid #ececec;
    overflow: hidden;
}

.city-tab-btn {
    border: none;
    background: transparent;
    color: #111;
    font-weight: bold;
    font-size: 1.35rem;
    padding: 8px 30px;
    border-radius: 999px;
    transition: background .18s, color .18s;
    outline: none;
}

.city-tab-btn.active,
.city-tab-btn:focus-visible {
    background: var(--color-secondary);
    color: #fff;
    box-shadow: 0 2px 14px 0 rgba(0,0,0,0.06);
}

.city-tab-btn:not(:last-child) {
    margin-right: 2px;
}

/* Overview Tabs */
.overview-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    color: #666;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.overview-tab.active {
    color: var(--color-secondary);
    background-color: rgba(var(--color-secondary-rgb), 0.05);
}

.overview-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.overview-tab:hover {
    color: var(--color-secondary);
    background-color: rgba(var(--color-secondary-rgb), 0.05);
}

.sticky-tabs {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Gallery Tabs */
.gallery-tab-bar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-tab-bar::-webkit-scrollbar {
    display: none;
}

.gallery-tab-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.gallery-tab-btn:hover {
    opacity: 0.8;
}

.gallery-tab-btn.active {
    opacity: 1;
}

.gallery-tab-btn .tab-thumb {
    margin-bottom: 8px;
}

.gallery-tab-btn .tab-thumb img {
    width: 150px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.gallery-tab-btn .tab-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.gallery-tab-btn .tab-label span {
    color: #666;
    font-weight: normal;
}

/* แก้ไข navbar */
.navbar.sticky-top {
    z-index: 1030 !important;
}

/* ลบ sticky properties ออก ใช้แค่ basic styling */
.sticky-tabs-container {
    background-color: white;
    padding: 8px 0;
    margin-bottom: 0;
}

/* ========================================
   HERO SECTION & SLIDESHOW
======================================== */
.hero-top {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

@media (max-width: 575px) {
    .hero-top {
        height: calc(100% - 66px);
    }
}

.hero-content {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index:1;
    width: 100%;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-headline {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.explore-btn {
    margin-bottom: 28px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 25px;
    border: none;
    padding: 12px 36px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    /*transition: opacity 1.5s ease-in-out;*/
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.3);*/
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    height: 50%;
    display: flex;
    flex-direction: column;
}

/* Hero Navigation Bullets */
.hero-bullets {
    position: absolute;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9 !important;
    display: flex !important;
    gap: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.bullet {
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.bullet.active {
    border: 3px solid var(--color-accent) !important;
    transform: scale(1.2) !important;
    padding: 1px !important;
}

.bullet:hover {
    border: 2px solid var(--color-accent);
}

/* ========================================
   NAVIGATION COMPONENTS
======================================== */
.navbar-custom {
    background: transparent;
}

/* Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 30vw;
    height: 100vh;
    background: var(--color-primary);
    color: var(--color-white);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    padding-left: min(3vw, 70px);
    padding-top: 7vh;
}

.overlay-menu.show {
    transform: translateX(0);
}

.overlay-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.overlay-link {
    display: block;
    color: var(--color-white);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1.1rem;
    text-decoration: none;
    transition: color .2s;
}

.overlay-link:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

.overlay-submenu a {
    font-size: 1rem;
    letter-spacing: .01em;
    color: var(--color-white);
    text-decoration: none;
}

.overlay-submenu a:hover {
    color: var(--color-secondary) !important;
}

/* Breadcrumb Navigation */
.breadcrumb-item a {
    color: var(--color-secondary) !important;
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">" !important;
    font-weight: normal !important;
    margin-left: 10px;
    margin-right: 10px;
    color: var(--color-secondary) !important;
}

/* District Links */
.district-links {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 5px;
    margin-left: 0 !important;
    margin-right: 0;
}

.district-links::-webkit-scrollbar {
    display: none;
}

.district-link {
    white-space: nowrap;
    font-size: 1.25rem;
    font-weight: 500;
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
}

/* ========================================
   FORM COMPONENTS
======================================== */
/* Booking Components */
.booking-box {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 10px 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    width: 1000px;
    max-width: 95vw;
}

.booking-fields {
    gap: 20px;
}

.booking-where {
    flex: 2;
    min-width: 200px;
}

.booking-checkin,
.booking-checkout {
    flex: 1.2;
    min-width: 140px;
}

.booking-guests {
    flex: 1;
    min-width: 120px;
}

.booking-button {
    margin-left: 20px;
}

.booking-box input, .booking-box select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    width: 100%;
}

.booking-label {
    font-size: 0.95rem;
    color: var(--color-secondary);
    font-weight: 600;
}

/* ========================================
   CARD COMPONENTS
======================================== */
.card {
    background: #f7f7f7;
    border-radius: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-img-fixed {
    height: 195px;
    object-fit: cover;
    overflow: hidden;
}

.card-img-fixed-2 {
    height: 176px;
    object-fit: cover;
    overflow: hidden;
}

.card-img-wrapper {
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}

.card-text {
    font-size: 0.9rem;
    color: var(--color-primary);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: transparent;
    border: none;
}

/* Room & Hotel Cards */
.room-choice-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(50,35,10,0.06);
    border: none;
    overflow: hidden;
    transition: box-shadow .18s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.room-img {
    height: 178px;
    object-fit: cover;
}

.price-main { 
    color: var(--color-secondary); 
    font-weight: bold; 
    font-size: 1.5rem; 
}

.room-info { 
    color: var(--color-primary); 
    font-size: 1.08rem; 
    font-weight: 500; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px;
}

.amenity-icon img { 
    border-radius: 8px; 
    background: #fff4ee; 
    padding: 4px; 
}

/* Room Modal Thumbnails */
.room-modal-thumbs {
    display: flex;
    gap: 8px;
    background: #000;
    padding: 20px 8px;
    overflow-x: auto;
    align-items: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.room-modal-thumbs::-webkit-scrollbar {
    display: none;
}

.room-modal-thumb {
    width: 152px !important;
    height: 82px !important;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.room-modal-thumb.active {
    opacity: 1;
    border: 2px solid var(--color-secondary);
}

.room-modal-thumb:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* ========================================
   BADGE & LABEL COMPONENTS
======================================== */

.badge-pop {
    font-size: .98rem;
    border-radius: 7px;
    padding: 1.5px 7.5px 1.5px 7.5px;
    font-weight: 500;
    margin-right: 3px;
    background: #ecf2fd;
    color: #2583f7;
    border: none;
    letter-spacing: 0.02em;
}

.badge-leisure { background: #ecf2fd; color: #2583f7;}
.badge-biz { background: #eaf7ed; color: #21a26b;}
.badge-staycation { background: #eaf2fc; color: #2186be;}

.hotel-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    margin-right: 4px;
    margin-bottom: 2px;
}

.hotel-badge-leisure {
    background-color: #e3f2fd;
    color: #1976d2;
}

.hotel-badge-business {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.hotel-badge-staycation {
    background-color: #e8f5e8;
    color: #388e3c;
}

.price-currency { 
  color: var(--color-secondary); 
  font-size: 0.875rem; 
}

.price-period { 
  color: #999; 
  font-size: 0.875rem; 
}

.booking-label {
    font-size: 0.95rem;
    color: var(--color-secondary);
    font-weight: 600;
}

.dropdown-section-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #666;
    letter-spacing: .5px;
    font-size: 0.875rem;
}

.border-light-custom {
    border-color: #f0f0f0 !important;
}

/* ========================================
   MODAL & DROPDOWN COMPONENTS
======================================== */

.modal-content {
    box-shadow: 0 4px 36px 0 rgba(30,26,14,0.13);
}

.modal-content-18 { border-radius: 18px; overflow: hidden; }
.modal-header-clean { border: 0; padding-bottom: 0.5rem; background: white; }

/* Datepicker Dropdown */
.datepicker-dropdown {
    display: none;
    position: absolute;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    top: 100%;
    left: 0;
    width: 768px;
    z-index: 3;
    border: 1px solid #e0e0e0;
    margin-top: 30px;
}

.datepicker-dropdown-2 {
    display: none;
    position: absolute;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    left: 16%;
    width: 768px;
    z-index: 3;
    border: 1px solid #e0e0e0;
    margin-top: 30px;
}

/* Guest Selector Dropdown */
.guest-selector-box {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    right: 15%;
    width: 350px;
    z-index: 3;
    border: 1px solid #e0e0e0;
    margin-top: 30px;
}

.guest-selector-box-2 {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 350px;
    z-index: 3;
    border: 1px solid #e0e0e0;
    margin-top: 30px;
}

/* ========================================
   CUSTOM DATEPICKER COMPONENTS
======================================== */
.custom-datepicker-wrap {
  border-radius: 22px;
  max-width: 790px;
  margin: 18px auto;
  font-family: 'Inter', Arial, sans-serif;
}
.datepicker-input-box {
  background: #fff;
  border-radius: 14px;
  border: 2px solid #ececec;
  width: 100%;
  padding: 8px 17px 4px 17px;
}
.datepicker-input-box.active,
.datepicker-input-box:focus-within {
  border-color: var(--color-secondary);
}
.datepicker-label {
  font-size: 1.01rem;
  color: #555;
  font-weight: 500;
}
.datepicker-value {
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: 2px;
  letter-spacing: .02em;
}
.datepicker-nights-bar {
  background: #f6f6f6;
  border-radius: 13px;
  color: #444;
  font-size: 1.12rem;
  font-weight: 500;
  padding: 7px 0 7px 0;
  margin-bottom: 20px;
}
.custom-datepicker-calendar {
  gap: 16px;
  align-items: flex-start;
}
.calendar-arrow {
  border: none;
  background: #fff;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  border: 1px solid rgba(0,0,0,0.07);
  color: #444;
  transition: background .13s;
}
.calendar-arrow:hover { background:#78be9c42;}
.calendar-month { min-width: 252px;}
.calendar-title {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #191919;
  text-align: center;
  margin-bottom: 2px;
}
.calendar-header {
  font-size:0.8rem;
  color: #868686;
  font-weight: 500;
  gap: 6px;
}
.calendar-week {
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: #333;
  font-weight: 500;
}
.calendar-week > div {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background .12s, color .14s;
  background: none;
}
.calendar-week > div.selected {
  background: var(--color-secondary) !important;
  color: #fff !important;
  font-weight: 700;
}
.calendar-week > div.selected.start { box-shadow: 0 2px 9px 0 var(--color-accent);}
.calendar-week > div.selected.end { box-shadow: 0 2px 9px 0 var(--color-accent);}
.calendar-week > div:not(.selected):hover {
  background: #f7f4f1;
}
.calendar-header > div {
    width: 32px;
    height: 32px;
}
.guest-selector-box {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 28px 0 rgba(40,38,44,.10);
    max-width: 350px;
    padding: 22px 24px 18px 24px;
    margin: 16px auto;
    font-family: 'Inter', Arial, sans-serif;
  }
  .guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0;
  }
  .guest-title {
    font-size: 1.18rem;
    font-weight: bold;
    color: #191919;
    margin-bottom: 0;
  }
  .guest-desc {
    font-size: 0.9rem;
    color: #444;
    margin-top: 2px;
  }
  .guest-counter {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 108px;
    justify-content: flex-end;
  }
  .guest-btn {
    border: none;
    background: #f7f7f7;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.58rem;
    color: #888;
    transition: background .14s, color .14s;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
  }
  .guest-btn:active,
  .guest-btn:focus {
    background: #ececec;
  }
  .guest-btn.guest-plus {
    color: #222;
  }
  .guest-value {
    min-width: 26px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    letter-spacing: .02em;
    display: inline-block;
  }
  hr {
    margin: 10px 0 10px 0;
    border: none;
    border-top: 1.7px solid #ededed;
  }
.guest-divider {
    margin: 12px 0;
    border-color: var(--color-primary);
    opacity: 0.5;
}

/* ========================================
   PAGINATION COMPONENT
======================================== */
.pagination .page-link.rounded-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50% !important;
    color: var(--color-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
    border: 1px solid var(--color-secondary);
}

.pagination .page-item:not(.active) .page-link {
    border: none;
}

.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border: none;
    color: #6c757d;
    cursor: not-allowed;
}

.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f8f9fa;
    color: var(--color-secondary);
}

/* ========================================
   GALLERY COMPONENTS
======================================== */
/* Gallery Modal */
.gallery-modal-body {
    max-height: 700px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.gallery-modal-body::-webkit-scrollbar {
    width: 8px;
}

.gallery-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-modal-body::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.gallery-modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

/* Masonry Layout for Gallery Modal - True Pinterest Style */
.gallery-modal-grid {
  column-count: 4;
  column-gap: 1rem;
  line-height: 0;
}

.gallery-modal-grid > div {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

/* Remove all fixed heights and let images be natural */
.modal-img {
  width: 100%;
  height: auto; /* Let the image determine its own height */
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  object-fit: cover;
  /* Add min/max heights for some control */
  min-height: 150px;
  max-height: 400px;
}

.modal-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Remove all the old grid and nth-child rules */
.gallery-modal-grid div:nth-child(8n+1),
.gallery-modal-grid div:nth-child(8n+2),
.gallery-modal-grid div:nth-child(8n+3),
.gallery-modal-grid div:nth-child(8n+4),
.gallery-modal-grid div:nth-child(8n+5),
.gallery-modal-grid div:nth-child(8n+6),
.gallery-modal-grid div:nth-child(8n+7),
.gallery-modal-grid div:nth-child(8n+8) {
  grid-row: unset !important;
}
/* Fix modal body for masonry */
.gallery-modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 1rem 0;
}

/* Mobile Gallery Carousel */
#mobileGalleryCarousel .carousel-inner {
    height: 280px;
    min-height: 280px;
}

#mobileGalleryCarousel .carousel-item {
    height: 280px;
}

#mobileGalleryCarousel .carousel-item img {
    height: 280px !important;
    object-fit: cover;
}

#mobileGalleryCarousel .carousel-control-prev,
#mobileGalleryCarousel .carousel-control-next {
    width: auto;
    opacity: 1;
    z-index: 10;
    display: flex !important;
}

#mobileGalleryCarousel .carousel-control-prev {
    left: 12px;
}

#mobileGalleryCarousel .carousel-control-next {
    right: 12px;
}

#mobileGalleryCarousel .carousel-control-prev-icon,
#mobileGalleryCarousel .carousel-control-next-icon {
    display: none;
}

/* Carousel Bullet Navigation */
.carousel-bullets {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-bullet {
    width: 8px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: white;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.carousel-bullet.active {
    opacity: 1 !important;
}

.carousel-bullet:hover {
    opacity: 0.8;
}

.mobile-gallery-badge:hover {
    opacity: 1 !important;
}

/* Custom Carousel Arrow Buttons */
.carousel-arrow-btn {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.carousel-arrow-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Custom Gallery Grid */
.custom-gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    height: 750px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Mobile layout - 2 columns, 6 images total */
.img1 { grid-column: 1; grid-row: 1 / 3; }
.img2 { grid-column: 1; grid-row: 3 / 4; }
.img3 { grid-column: 1; grid-row: 4 / 6; }
.img4 { grid-column: 2; grid-row: 1 / 2; }
.img5 { grid-column: 2; grid-row: 2 / 4; }
.img6 { grid-column: 2; grid-row: 4 / 6; }

/* ========================================
   CAROUSEL COMPONENTS
======================================== */
/* Village Carousel */
#villageCarousel {
    overflow: hidden;
}

#villageCarousel .carousel-inner {
    transition: transform 0.6s ease-in-out;
    overflow: visible;
}

.carousel-row {
    flex-wrap: nowrap;
    width: calc(100% * 1);
    display: flex;
}

.carousel-row .col-md-4 {
    flex: 0 0 calc(100% / 6);
    max-width: calc(100% / 6);
    padding: 0 10px;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    opacity: 0.8;
    background-color: #d4d4d4;
    border-radius: 50%;
    width: 50px !important;
    height: 50px !important;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

/* Mobile Carousel */
.mobile-carousel {
  position: relative;
  overflow: hidden;
}

.mobile-carousel-container {
  position: relative;
  width: 100%;
  height: auto;
}

.mobile-card-slide {
  display: none;
  width: 100%;
}

.mobile-card-slide.active {
  display: block;
}

.mobile-nav-arrows {
  display: flex;
  justify-content: end;
  margin-top: 1rem;
}

.mobile-nav-arrow {
  background: var(--color-secondary);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.mobile-nav-arrow:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

/* ========================================
   MEMBER SECTION COMPONENTS
======================================== */
.member-section {
    position: relative;
    width: 100%;
    min-height: 550px;
    background: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1920&q=80') center center/cover no-repeat;
}

.member-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.member-content {
    position: relative;
    z-index: 1;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.member-title {
    color: #fff;
    font-size: 3rem;
    text-shadow: 0 4px 22px rgba(0,0,0,0.35);
}

.member-subtitle {
    color: #e3e3e3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

/* ========================================
   HOTEL & LISTING COMPONENTS
======================================== */

.popular-hotel-item {
    display: flex;
    align-items: start;
}

.hotel-thumbnail {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 11px;
    margin-right: 14px;
}

.hotel-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.hotel-location {
    font-size: 0.85rem;
    font-weight: 600;
    color: #28a745;
}

/* ========================================
   FOOTER COMPONENTS
======================================== */
.footer-section {
    width: 400px;
    margin-bottom: 1.5rem;
}

/* ========================================
   JAVASCRIPT ENHANCED STYLES
======================================== */
.js .hero-slide {
    position: relative;
}

.js .hero-slide::before {
    content: none;
}

.js .navbar-custom {
    background: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(10px);
}

.js .hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.citytabbar {
  background: #fff;
  border-bottom: 1.7px solid #eee;
  padding-bottom: 0;
  margin-bottom: 2px;
  position: relative;
  font-family: 'Inter', Arial, sans-serif;
}
.citytab-menu {
  gap: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #bbb;
  padding-left: 0;
  display: flex;
  width: 100%;
}
.citytab-item {
  position: relative;
  color: #aaa;
  padding-bottom: 10px;
  font-weight: 600;
  transition: color .18s;
  cursor: pointer;
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.citytab-item.active {
  color: #191919;
}
.citytab-item.active::after {
  content: "";
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 4px 4px 0 0;
}
.citytab-badge {
  display: inline-block;
  background: #e8f5e8;
  color: var(--color-secondary);
  font-size: .95rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 0 7px;
  margin-left: 2.5px;
  transform: translateY(-2px);
  letter-spacing: .01em;
}
.citytab-item:not(:first-child) { margin-left: 0;}
.citytab-underline {
  position: absolute; left: 0; right: 0; bottom: -2px;
  border-bottom: 1.5px solid #ececec;
  z-index: 0;
}
.cityfilterbar {
  margin-top: 9px;
  font-size: 1.14rem;
  font-family: 'Inter', Arial, sans-serif;
  gap: 0;
  overflow: hidden;
  position: relative;
}

.cityfilter-scrollable {
  overflow-x: auto;
  flex: 1;
  transition: transform 0.3s ease;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.cityfilter-scrollable::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.cityfilter-link {
  color: #232323;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 22px;
  background: transparent;
  transition: color .15s, background .13s, border .13s;
  display: inline-block;
  cursor: pointer;
  font-size: 0.8rem;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.cityfilter-link.fixed-all {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  padding-right: 8px;
  margin-right: 4px;
}

.cityfilter-btn {
  border: 1.7px solid var(--color-secondary);
  color: var(--color-secondary);
  background: #fff;
  margin: 0 4px;
  font-weight: 700;
  padding: 10px 20px;
}

.cityfilter-divider {
  width: 1.5px;
  height: 23px;
  background: #ececec;
  margin: 0 2px;
  display: inline-block;
  border-radius: 1px;
  flex-shrink: 0;
}

.cityfilter-nextbtn {
  border: 1.5px solid #ececec;
  border-radius: 50%;
  width: 38px; 
  height: 38px;
  background: #fff;
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin-left: 7px;
  cursor: pointer;
  transition: border .14s, background .14s;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cityfilter-nextbtn:hover {
  background: #f6f6f6;
  border-color: var(--color-secondary);
}

.cityfilter-nextbtn svg { 
  vertical-align: middle;
}

/* Add these styles for sticky navbar */
.navbar-custom {
    z-index: 1000;
}

.navbar-custom.navbar-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    padding-left: 16%;
    padding-right: 16%;
}

.navbar-custom.navbar-scrolled .navbar-brand,
.navbar-custom.navbar-scrolled .text-light {
    color: var(--color-primary) !important;
}

.navbar-custom.navbar-scrolled .btn-link {
    color: var(--color-primary) !important;
}

.navbar-custom.navbar-scrolled svg {
    stroke: var(--color-primary) !important;
}

/* Add top margin to body when navbar is fixed to prevent content jump */
body.navbar-fixed {
    margin-top: 80px;
}

/* Sticky Booking Box - แทนที่ navbar */
.booking-box.sticky {
    position: fixed !important;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1070; /* สูงกว่า navbar */
    width: calc(100% - 2rem);
    max-width: 1620px;
    border-radius: 0;
    background: white;
    box-shadow: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .booking-box{
        top: 60%;
    }

    .booking-box.sticky {
        width: calc(100% - 1rem);
        margin: 5px auto;
        padding: 0.75rem 1rem;
    }
    
    .booking-box.sticky .find-room-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Sticky Tabs */
.sticky-tabs {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mobile-gallery-carousel{
    margin-top: 60px;
}