.SHOW_MORE_POOLVILLA_LAYOUT {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: unset;
  padding: 0;
}

.BOX_SHOW_MORE_POOLVILLA {
  position: relative;
  width: 32%;
  /* height: 500px !important; */
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

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

.poolvilla-detail {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  color: #000000;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.booking-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.LABEL_BOOK {
  font-size: 0.95rem;
  color: #967c69;
  opacity: 0.9;
}

.poolvilla-detail h3 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
}
.poolvilla-detail p {
  color: #fff;
}

.SHOW_MORE_POOLVILLA {
  width: 100%;
}

.BOOKING_GROUP {
  border: 1px solid #fff;
  padding: 20px;
}

.GROUP_MAIN_ROOM_1 {
  display: flex;
  justify-content: center;
}

.H2_CONTENT_FIX_INSITEROOM {
  font-size: 1.8rem;
  border-left: 3px solid #c28559;
  padding-left: 10px;
}

.button-container {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.book-button {
  padding: 5px 15px 5px;
  border: none;
  cursor: pointer;
  color: white;
  background: #c28559;
  transition: all 0.4s ease;
}

.book-button:hover {
  transform: scale(1.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #0a4f5f;
  --secondary-color: #f7a948;
  --text-color: #333;
  --bg-light: #f4f4f4;
  --bg-dark: #1a1a1a;
  --white: #fff;

  --primary-color: #c28559;
  --secondary-color: #f7f1e3;
  --text-color: #3d3d3d;
  --heading-color: #4b2e20;
  --accent-color: #8a6a57;
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

h1,
h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

p {
  margin-bottom: 15px;
}

hr {
  border: 0;
  height: 1px;
  background-color: #ddd;
  margin: 50px 0;
}

.btn {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 50px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #e69a37;
}

.hero-section {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
}
.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-fit: cover;
  filter: brightness(0.9);
}

.hero-content {
  z-index: 10;
  background: #00000059;
  padding: 38px;
  border-radius: 3px;
}

.hero-content h1 {
  font-size: 50px;
  font-weight: 100;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-content p {
  color: #fff;
  font-size: 22px;
  margin-top: 31px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ส่วน About */
.about-section {
  padding: 80px 200px;
  display: flex;
  justify-content: center;
}

.about-flex {
  display: flex;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  /* color: #333333; */
  color: #967c69;
  margin-top: 20px;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
}

/* ส่วนแกลเลอรี */
.gallery-section {
  padding: 80px 0;
  /* background: var(--bg-light); */
  display: flex;
  justify-content: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 5px;
}

.gallery-item {
  overflow: hidden;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

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

figure {
  margin-bottom: unset !important;
}

figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  padding: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.gallery-item:hover figcaption {
  opacity: 1;
  cursor: pointer;
}

/* Room Details - Minimal Style */
.room-details-section {
  padding: 40px 0;
  background: #fff;
}

.room-details-section .container {
  max-width: 1000px;
}

.room-details-section h2.card-title {
  color: #333;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 0.5px;
}

.list-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-details li {
  background: #fff;
  margin: 0;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.list-details li:last-child {
  border-bottom: none;
}

.list-details li i {
  color: #c28559;
  font-size: 1.1rem;
  margin-right: 12px;
  min-width: 24px;
  text-align: center;
}

.list-details li span {
  color: #444;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}
main.ts-altbg > section {
  position: relative;
  z-index: 0;
  padding-block: clamp(24px, 4vw, 56px);
}
main.ts-altbg > section.ts-has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgb(0 0 0 / 0%)),
    var(--bg-url-current, var(--bg-url, var(--bg-desktop))) center / cover
      no-repeat;
  width: 100%;
}

main.ts-altbg > section.ts-has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.35);
}

.ts-stitched-bg {
  position: relative;
  z-index: 0;
}
.ts-stitched-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--bg-url-current, var(--bg-url, var(--bg-desktop)));
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
}
.ts-stitched-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.ts-stitched-bg .ts-has-bg::before,
.ts-stitched-bg .ts-has-bg::after {
  display: none !important;
}

.ts-noalt.ts-has-bg::before,
.ts-noalt.ts-has-bg::after {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .BOX_SHOW_MORE_POOLVILLA {
    width: 100%;
    height: 260px;
  }
  .ts-stitched-bg {
    padding: 0 20px;
  }
  .room-details-section {
    padding: 30px 0;
  }

  .room-details-section h2.card-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .list-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .list-details li {
    padding: 10px 12px;
  }
}

/* ส่วนจองห้องพัก */
.booking-section {
  background: var(--primary-color);
  color: var(--white);
  padding: 20px 0;
  text-align: center;
  display: flex;
  justify-content: center;
}

.booking-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.booking-form input {
  padding: 12px;
  border: none;
  border-radius: 5px;
  flex: 1 1 200px;
}

.booking-form .btn {
  width: 100%;
  background: var(--secondary-color);
}

.content_1_room_width {
  width: 90%;
}

.content_1_room_width h2 {
  color: #c28559;
  font-size: 22px;
}

.BAGDROUND_ROOM {
  background: #d38e5c;
  width: 100%;
  height: 3px;
}

.content_1_room_width_h2 {
  color: #fff !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-size: 4rem;
  color: white;
  text-shadow: var(--shadow-light);
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #e0e0e0;
}

.room-details-section {
  margin-top: 20px;
  width: 90%;
}

.amenities-section {
  margin-top: 40px;
  width: 90%;
}

.section-title {
  font-size: 1.5rem;
  color: #c28559;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.PAD_LEFT {
  /* padding-left: 40px; */
}

.card {
  background: white;
  padding: 30px;
  /* box-shadow: var(--shadow-light); */
  margin-bottom: 20px;
  width: 100%;
}

.card-title {
  font-size: 1.5rem;
  color: #c28559 !important;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  margin-top: 20px;
  font-weight: 400;
}

.list-details {
  color: #967c69;
  list-style: none;
  padding-left: 0;
}

.list-details li {
  font-size: 16px;
  padding: 0.5rem 22px;
  display: flex;
  align-items: center;
  border-bottom: 1px dashed #e0e0e0;
}

.list-details li:last-child {
  border-bottom: none;
}

/* ส่วน Icon */
.list-details i,
.amenity-card i {
  font-size: 16px;
  color: var(--primary-color);
  margin-right: 15px;
  width: 25px;
  text-align: center;
  vertical-align: middle;
}

.amenity-card:hover {
  transform: translateY(-3px);
}

.amenity-card i {
  font-size: 3rem;
  margin-bottom: 15px;
}

.amenity-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #967c69;
  padding-bottom: 20px;
}

.amenity-list li {
  padding: 0.5rem 0;
  color: #666;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.amenity-list li::before {
  content: "✓";
  color: #c28559;
  position: absolute;
  left: 0;
  font-weight: bold;
}
.list-details li::before {
  /* content: '✓'; */
  color: #c28559;
  position: absolute;
  left: 0;
  font-weight: bold;
}
.amenity-list li i {
  font-size: 1.2rem;
  margin-right: 10px;
}
.content_1_room_width_text {
  list-style: inside;
  color: #967c69;
  font-family: "Kanit", Sans-serif;
}
.content_1_room_width_text1 {
  /* list-style: inside;  */
  color: #967c69;
  font-family: "Kanit", Sans-serif;
}
/* Amenities Section Styling */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(237px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.amenity-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
  transition: all 0.3s ease;
  border: 1px solid rgba(194, 133, 89, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.amenity-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); */
  border-color: rgba(194, 133, 89, 0.3);
}

.amenity-card i {
  font-size: 2.5rem !important;
  color: #c28559;
  margin-bottom: 1.5rem !important;
  background: rgba(194, 133, 89, 0.1);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.amenity-card:hover i {
  background: #c28559;
  color: #fff;
  transform: scale(1.1);
}

.amenity-title {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.8rem;
}

.amenity-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: #c28559;
  transition: width 0.3s ease;
}

.amenity-card:hover .amenity-title::after {
  width: 80px;
}

.amenity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}
.DETAIL_TEXT_CONTENT1 {
  text-align: justify !important;
}

/* ===================== GALLERY CSS ===================== */
.ts-gallery {
  display: grid;
  width: 100%;
}
.ts-gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: unset; /* box-shadow: 0 5px 15px rgba(0,0,0,.08); */
}
.ts-main-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #f3f3f3;
  cursor: zoom-in;
}
.ts-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s;
}
.ts-nav:hover {
  background: rgba(0, 0, 0, 0.5);
}

.ts-zoom {
  position: static !important;
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.65rem;
  background: #f5ecdf;
  color: #c28559;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, color 0.2s, /* box-shadow 0.2s,  transform 0.1s*/;
}
.ts-zoom:hover {
  background: #fff8f3;
  color: #a86a44;
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); */
}
.ts-zoom:active {
  transform: translateY(1px);
}
.ts-zoom:focus-visible {
  outline: 2px solid #c28559;
  outline-offset: 3px;
}
.ts-zoom .ts-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.ts-zoom-text {
  font-family: "Kanit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.ts-prev {
  left: 10px;
}
.ts-next {
  right: 10px;
}

.ts-next {
  right: 10px;
}
.ts-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(90px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.ts-controls {
  display: flex !important;
  justify-content: end !important;
  align-items: end !important;
  gap: 0.75rem;
  background: #f5ecdf;
  height: 100px;
}

.ts-thumb {
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  border-radius: unset !important;
}

.ts-thumb img {
  width: 100%;
  /* height: 90px; */
  object-fit: cover;
  display: block;
  border-radius: unset !important;
}
.ts-thumb.is-active {
  border-color: #c28559;
}
.ts-thumb:focus-visible {
  outline: 2px solid #c28559;
  outline-offset: 2px;
}

.ts-gallery-main:has(+ .ts-thumbs) .ts-nav[hidden] {
  display: none;
}
@media (hover: hover) {
  .ts-gallery-main:hover .ts-nav {
    display: grid !important;
  }
}

/* Lightbox */
.ts-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.ts-lightbox.is-open {
  display: flex;
}
.ts-lightbox img {
  width: 100%;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); */
}
.ts-lightbox-close,
.ts-lightbox-prev,
.ts-lightbox-next {
  position: absolute;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
}
.ts-lightbox-close {
  top: 18px;
  right: 18px;
  border-radius: 8px;
}
.ts-lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
}
.ts-lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
}
.ts-lightbox-close:hover,
.ts-lightbox-prev:hover,
.ts-lightbox-next:hover {
  background: rgba(0, 0, 0, 0.65);
}

.highlight-section {
  display: flex;
  flex-wrap: wrap;
  padding: 80px;
}
.highlight-section1 {
  flex: 1;
  padding-right: 20px;
}
.highlight-section2 {
  flex: 1;
  /* padding-left: 20px; */
}
.highlight-section2-content {
  display: flex;
  flex-wrap: wrap;
}
.highlight-section2-content1 {
  /* width: 108px;
    padding: 10px 10px 10px 0px; */
  padding: 10px;

  /* เพิ่ม/แก้ไข: */
  flex: 0 0 auto; /* ให้ขนาดพอดีคอนเทนต์ */
  min-width: 180px; /* กันบีบจนเล็กไป (ปรับได้) */
  text-align: center; /* ตัวหนังสือกึ่งกลาง */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.highlight-section2-content2 {
  text-align: center;
  width: max-content;
  padding: 16px 46px 0px 0px;
}
.DETAIL_TEXT_CONTENT1 {
  text-align: justify;
}
.highlight-section2-content1-img svg {
  width: 30px;
  height: 30px;
  color: #967c69;
  display: block;
  margin: 0 auto;
}
.highlight-section2-content1-img-active svg {
  margin-left: 8px;
}
.highlight-section2-content1-p {
  font-size: 16px;
  margin-top: 10px;
}
.highlight-section2-content2-p {
  line-height: 30px !important;
}
.highlight-line {
  width: 100%;
  height: 1px;
  background-color: #967c692e;
  margin-top: 20px;
  margin-bottom: 40px;
}
.highlight-line1 {
  width: 100%;
  height: 1px;
  background-color: #967c692e;
  margin-top: 40px;
  margin-bottom: 40px;
}

.H3_TEXT_EDIT {
  font-size: 1.5rem;
  color: #c28559;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}
.hero-content h1:lang(th) {
  font-weight: 800;
}

@media (max-width: 768px) {
  .H3_TEXT_EDIT {
    text-shadow: unset;
  }
  .highlight-section2-content2 {
    padding: 16px 20px 0px 0px;
  }
  .about-flex {
    flex-direction: column; /* ซ้อนลงมาเป็นคอลัมน์ */
  }
  .about-image {
    order: -1; /* ย้ายรูปขึ้นไปอยู่บนสุด */
  }
  .highlight-section {
    padding: 20px;
  }
  .highlight-section1 {
    flex: auto;
    padding-right: unset;
  }
  .highlight-section2 {
    flex: auto;
    padding-left: unset;
    width: 100%;
  }
  .amenities-grid {
    gap: 1rem;
  }

  .amenity-card {
    padding: 1.2rem;
  }

  .amenity-card i {
    width: 50px;
    height: 50px;
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
  }

  .amenity-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .amenity-list li {
    font-size: 0.8rem;
    padding-left: 1.2rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 คอลัมน์ต่อแถว */
  }
}
@media screen and (max-width: 1100px) {
  .hero-content {
    padding: 0px;
    width: 80%;
  }
  .hero-section {
    height: 50vh !important;
  }
  .BOX_SHOW_MORE_POOLVILLA {
    width: 30% !important;
  }
  .about-section {
    padding: 80px 21px;
  }
}
/* Responsive สำหรับหน้าจอโทรศัพท์ */
@media screen and (max-width: 768px) {
  .BOX_SHOW_MORE_POOLVILLA {
    width: 100% !important;
  }

  .content_1_room_width h2 {
    font-size: 1.5rem;
    text-shadow: unset;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 2fr));
  }

  .gallery-section {
    padding: 33px 0;
  }

  .book-button {
    padding: 7px 15px 10px;
  }

  .about-section {
    padding: 33px 0;
  }

  .hero-section {
    height: 37vh;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .about-flex {
    flex-direction: column;
  }

  .booking-form .btn {
    flex: 1 1 100%;
  }
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Lazy Load Image Animation */
.lazy-load {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.lazy-load.loaded {
  opacity: 1;
}
