/*
  Theme Name: Reveal
  Theme URL: https://bootstrapmade.com/reveal-bootstrap-corporate-template/
  Author: BootstrapMade.com
  License: https://bootstrapmade.com/license/
*/
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  background: #fff;
  color: #444;
  font-family: "Krub", sans-serif;
}

a {
  color: #50d8af;
  transition: 0.5s;
}

a:hover, a:active, a:focus {
  color: #51d8af;
  outline: none;
  text-decoration: none;
}

p {
  padding: 0;
  margin: 0 0 30px 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Krub", sans-serif;
  font-weight: 400;
  margin: 0 0 20px 0;
  padding: 0;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  display: none;
  background: #50d8af;
  color: #fff;
  padding: 6px 12px 9px 12px;
  font-size: 16px;
  border-radius: 2px;
  right: 15px;
  bottom: 15px;
  transition: background 0.5s;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 15px;
  }
}

.back-to-top:focus {
  background: #50d8af;
  color: #fff;
  outline: none;
}

.back-to-top:hover {
  background: #0c2e8a;
  color: #fff;
}

/* Back to top button */
.btn-search-room {
  position: fixed;
  display: none;
  background: #0000ff;
  color: #fff;
  padding: 6px 12px 9px 12px;
  font-size: 16px;
  border-radius: 2px;
  right: 15px;
  bottom: 70px;
  transition: background 0.5s;
}

.btn-message-rimtan {
  position: fixed;
  padding: 6px 12px 9px 12px;
  font-size: 16px;
  border-radius: 2px;
  right: 150px;
  bottom: 60px;
  width: 230px;
  transition: background 0.5s;
}

.btn-line-rimtan {
  position: fixed;
  padding: 6px 12px 9px 12px;
  font-size: 16px;
  border-radius: 2px;
  right: 400px;
  bottom: 60px;
  width: 230px;
  transition: background 0.5s;
}

@media (max-width: 768px) {
  .btn-search-room {
    bottom: 70px;
  }
  .btn-message-rimtan {
    width: 170px !important;
    right: 5px !important;
    bottom: 110px;
  }
  .btn-line-rimtan {
    width: 170px !important;
    right: 5px !important;
    bottom: 160px;
  }
}

.btn-search-room:focus {
  background: #50d8af;
  color: #fff;
  outline: none;
}

.btn-search-room:hover {
  background: #50d8af;
  color: #fff;
}

/*--------------------------------------------------------------
# Top Bar
--------------------------------------------------------------*/
#topbar {
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

#topbar .contact-info a {
  line-height: 1;
  color: #555;
}

#topbar .contact-info a:hover {
  color: #50d8af;
}

#topbar .contact-info i {
  color: #50d8af;
  padding: 4px;
}

#topbar .contact-info .fa-phone {
  padding-left: 20px;
  margin-left: 20px;
  border-left: 1px solid #e9e9e9;
}

#topbar .social-links a {
  color: #555;
  padding: 4px 12px;
  display: inline-block;
  line-height: 1px;
  border-left: 1px solid #e9e9e9;
}

#topbar .social-links a:hover {
  color: #50d8af;
}

#topbar .social-links a:first-child {
  border-left: 0;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  padding: 20px 0;
  height: 84px;
  transition: all 0.5s;
  z-index: 997;
  background: #fff;
  box-shadow: 0px 6px 9px 0px rgba(0, 0, 0, 0.06);
}

#header #logo h1 {
  font-size: 42px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-family: "Krub", sans-serif;
  font-weight: 700;
}

#header #logo h1 a {
  color: #0c2e8a;
  line-height: 1;
  display: inline-block;
}

#header #logo h1 a span {
  color: #50d8af;
}

#header #logo img {
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  #header {
    padding: 20px 0;
    height: 74px;
  }
  #header #logo h1 {
    font-size: 34px;
  }
  #header #logo img {
    max-height: 40px;
  }
}

/*--------------------------------------------------------------
# Intro Section
--------------------------------------------------------------*/
#intro {
  width: 100%;
  height: 60vh;
  position: relative;
  background: url("../img/intro-carousel/1.jpg") no-repeat;
  background-size: cover;
}

#intro .intro-content {
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

#intro .intro-content h2 {
  color: #0c2e8a;
  margin-bottom: 30px;
  font-size: 64px;
  font-weight: 700;
}

#intro .intro-content h2 span {
  color: #50d8af;
  text-decoration: underline;
}

@media (max-width: 767px) {
  #intro .intro-content h2 {
    font-size: 34px;
  }
}

#intro .intro-content .btn-get-started, #intro .intro-content .btn-projects {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 32px;
  border-radius: 2px;
  transition: 0.5s;
  margin: 10px;
  color: #fff;
}

#intro .intro-content .btn-get-started {
  background: #0c2e8a;
  border: 2px solid #0c2e8a;
}

#intro .intro-content .btn-get-started:hover {
  background: none;
  color: #0c2e8a;
}

#intro .intro-content .btn-projects {
  background: #50d8af;
  border: 2px solid #50d8af;
}

#intro .intro-content .btn-projects:hover {
  background: none;
  color: #50d8af;
}

#intro #intro-carousel {
  z-index: 8;
}

#intro #intro-carousel::before {
  content: '';
  /* background-color: rgba(255, 255, 255, 0.7); */
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 7;
}

#intro #intro-carousel .item {
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-transition-property: opacity;
  transition-property: opacity;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Nav Menu Essentials */
.nav-menu, .nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu ul {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  z-index: 99;
}

.nav-menu li {
  position: relative;
  white-space: nowrap;
}

.nav-menu > li {
  float: left;
}

.nav-menu li:hover > ul,
.nav-menu li.sfHover > ul {
  display: block;
}

.nav-menu ul ul {
  top: 0;
  left: 100%;
}

.nav-menu ul li {
  min-width: 180px;
}

/* Nav Menu Arrows */
.sf-arrows .sf-with-ul {
  padding-right: 22px;
}

.sf-arrows .sf-with-ul:after {
  content: "\f107";
  position: absolute;
  right: 8px;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
}

.sf-arrows ul .sf-with-ul:after {
  content: "\f105";
}

/* Nav Meu Container */
#nav-menu-container {
  float: right;
  margin: 0;
}

@media (max-width: 768px) {
  #nav-menu-container {
    display: none;
  }
}

/* Nav Meu Styling */
.nav-menu a {
  padding: 10px 8px;
  text-decoration: none;
  display: inline-block;
  color: #555;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 14px;
  outline: none;
}

.nav-menu li:hover > a, .nav-menu > .menu-active > a {
  color: #50d8af;
}

.nav-menu > li {
  margin-left: 10px;
}

.nav-menu ul {
  margin: 4px 0 0 0;
  padding: 10px;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  background: #fff;
}

.nav-menu ul li {
  transition: 0.3s;
}

.nav-menu ul li a {
  padding: 10px;
  color: #333;
  transition: 0.3s;
  display: block;
  font-size: 13px;
  text-transform: none;
}

.nav-menu ul li:hover > a {
  color: #50d8af;
}

.nav-menu ul ul {
  margin: 0;
}

/* Mobile Nav Toggle */
#mobile-nav-toggle {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 999;
  margin: 20px 20px 0 0;
  border: 0;
  background: none;
  font-size: 24px;
  display: none;
  transition: all 0.4s;
  outline: none;
  cursor: pointer;
}

#mobile-nav-toggle i {
  color: #555;
}

@media (max-width: 768px) {
  #mobile-nav-toggle {
    display: inline;
  }
}

/* Mobile Nav Styling */
#mobile-nav {
  position: fixed;
  top: 0;
  padding-top: 18px;
  bottom: 0;
  z-index: 998;
  background: rgba(52, 59, 64, 0.9);
  left: -260px;
  width: 260px;
  overflow-y: auto;
  transition: 0.4s;
}

#mobile-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#mobile-nav ul li {
  position: relative;
}

#mobile-nav ul li a {
  color: #fff;
  font-size: 16px;
  overflow: hidden;
  padding: 10px 22px 10px 15px;
  position: relative;
  text-decoration: none;
  width: 100%;
  display: block;
  outline: none;
}

#mobile-nav ul li a:hover {
  color: #fff;
}

#mobile-nav ul li li {
  padding-left: 30px;
}

#mobile-nav ul .menu-has-children i {
  position: absolute;
  right: 0;
  z-index: 99;
  padding: 15px;
  cursor: pointer;
  color: #fff;
}

#mobile-nav ul .menu-has-children i.fa-chevron-up {
  color: #50d8af;
}

#mobile-nav ul .menu-item-active {
  color: #50d8af;
}

#mobile-body-overly {
  width: 100%;
  height: 100%;
  z-index: 997;
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(52, 59, 64, 0.9);
  display: none;
}

/* Mobile Nav body classes */
body.mobile-nav-active {
  overflow: hidden;
}

body.mobile-nav-active #mobile-nav {
  left: 0;
}

body.mobile-nav-active #mobile-nav-toggle {
  color: #fff;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
/* Sections Header
--------------------------------*/
.section-header {
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 32px;
  color: #0c2e8a;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
}

.section-header h2::before {
  content: '';
  position: absolute;
  display: block;
  width: 100%;
  height: 3px;
  background: #50d8af;
  bottom: 0;
  left: 0;
}

.title-accommodation:hover {
  background: #50d8af;
  color: #0c2e8a;
  cursor: pointer;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.card-type-room:hover {
  cursor: pointer;
}

.card-type-room .title-accommodation {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* เมื่อ hover ที่การ์ด เปลี่ยนสีพื้นหลังและตัวอักษร */
.card-type-room:hover .title-accommodation {
  background-color: #50d8af;
  color: #0c2e8a;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.section-header p {
  padding: 0;
  margin: 0;
}

/* About Section
--------------------------------*/
#about {
  padding: 60px 0 30px 0;
}

#about .about-img {
  overflow: hidden;
}

#about .about-img img {
  margin-left: -15px;
  max-width: 100%;
}

@media (max-width: 768px) {
  #about .about-img {
    height: auto;
  }
  #about .about-img img {
    margin-left: 0;
    padding-bottom: 30px;
  }
}

#about .content h2 {
  color: #0c2e8a;
  font-weight: 700;
  font-size: 36px;
  font-family: "Raleway", sans-serif;
}

#about .content h3 {
  color: #555;
  font-weight: 300;
  font-size: 18px;
  line-height: 26px;
  font-style: italic;
}

#about .content p {
  line-height: 26px;
}

#about .content p:last-child {
  margin-bottom: 0;
}

#about .content i {
  font-size: 20px;
  padding-right: 4px;
  color: #50d8af;
}

#about .content ul {
  list-style: none;
  padding: 0;
}

#about .content ul li {
  padding-bottom: 10px;
}

/* Services Section
--------------------------------*/
#services {
  padding: 30px 0 0 0;
}

#services .box {
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 10px 10px 15px rgba(73, 78, 92, 0.1);
  background: #fff;
  transition: 0.4s;
}

#services .box:hover {
  box-shadow: 0px 0px 30px rgba(73, 78, 92, 0.15);
  transform: translateY(-10px);
  -webkit-transform: translateY(-10px);
  -moz-transform: translateY(-10px);
}

#services .box .icon {
  float: left;
}

#services .box .icon i {
  color: #444;
  font-size: 64px;
  transition: 0.5s;
  line-height: 0;
  margin-top: 34px;
}

#services .box .icon i:before {
  background: #0c2e8a;
  background: linear-gradient(45deg, #50d8af 0%, #a3ebd5 100%);
  background-clip: border-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#services .box h4 {
  margin-left: 100px;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 22px;
}

#services .box h4 a {
  color: #444;
}

#services .box p {
  font-size: 14px;
  margin-left: 100px;
  margin-bottom: 0;
  line-height: 24px;
}

@media (max-width: 767px) {
  #services .box .box {
    margin-bottom: 20px;
  }
  #services .box .icon {
    float: none;
    text-align: center;
    padding-bottom: 15px;
  }
  #services .box h4, #services .box p {
    margin-left: 0;
    text-align: center;
  }
}

/* Clients Section
--------------------------------*/
#clients {
  padding: 30px 0;
}

#clients img {
  max-width: 100%;
  opacity: 0.5;
  transition: 0.3s;
  padding: 15px 0;
}

#clients img:hover {
  opacity: 1;
}

#clients .owl-nav, #clients .owl-dots {
  margin-top: 5px;
  text-align: center;
}

#clients .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
}

#clients .owl-dot.active {
  background-color: #50d8af;
}

/* Our Portfolio Section
--------------------------------*/
#portfolio {
  background: #fff;
  padding: 30px 0;
}

#portfolio .portfolio-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  -webkit-transition: all ease-in-out 0.4s;
  transition: all ease-in-out 0.4s;
}

#portfolio .portfolio-item {
  overflow: hidden;
  position: relative;
  padding: 0;
  vertical-align: middle;
  text-align: center;
}

#portfolio .portfolio-item h2 {
  color: #ffffff;
  font-size: 24px;
  margin: 0;
  text-transform: capitalize;
  font-weight: 700;
}

#portfolio .portfolio-item img {
  -webkit-transition: all ease-in-out 0.4s;
  transition: all ease-in-out 0.4s;
  width: 100%;
}

#portfolio .portfolio-item:hover img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

#portfolio .portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
}

#portfolio .portfolio-info {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/* Testimonials Section
--------------------------------*/
#testimonials {
  padding: 30px 0;
}

#testimonials .testimonial-item {
  box-sizing: content-box;
  padding: 30px 30px 0 30px;
  margin: 30px 15px;
  text-align: center;
  min-height: 350px;
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
  #testimonials .testimonial-item {
    margin: 30px 10px;
  }
}

#testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin: 0 auto;
}

#testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #111;
}

#testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0;
}

#testimonials .testimonial-item .quote-sign-left {
  margin-top: -15px;
  padding-right: 10px;
  display: inline-block;
  width: 37px;
}

#testimonials .testimonial-item .quote-sign-right {
  margin-bottom: -15px;
  padding-left: 10px;
  display: inline-block;
  max-width: 100%;
  width: 37px;
}

#testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
}

#testimonials .owl-nav, #testimonials .owl-dots {
  margin-top: 5px;
  text-align: center;
}

#testimonials .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
}

#testimonials .owl-dot.active {
  background-color: #50d8af;
}

/* Call To Action Section
--------------------------------*/
#call-to-action {
  background: #081e5b;
  background-size: cover;
  padding: 40px 0;
}

#call-to-action .cta-title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

#call-to-action .cta-text {
  color: #fff;
}

@media (min-width: 769px) {
  #call-to-action .cta-btn-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}

#call-to-action .cta-btn {
  font-family: "Krub", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 26px;
  border-radius: 3px;
  transition: 0.5s;
  margin: 10px;
  border: 3px solid #fff;
  color: #fff;
}

#call-to-action .cta-btn:hover {
  background: #50d8af;
  border: 3px solid #50d8af;
}

/* Our Team Section
--------------------------------*/
#team {
  background: #fff;
  padding: 30px 0 0 0;
}

#team .member {
  text-align: center;
  margin-bottom: 20px;
}

#team .member .pic {
  overflow: hidden;
  text-align: center;
}

#team .member .pic img {
  max-width: 100%;
}

#team .member .details {
  background: #50d8af;
  color: #fff;
  padding: 15px;
  border-radius: 0 0 3px 3px;
}

#team .member h4 {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 18px;
}

#team .member span {
  font-style: italic;
  display: block;
  font-size: 13px;
}

#team .member .social {
  margin-top: 5px;
}

#team .member .social a {
  color: #fff;
}

#team .member .social i {
  font-size: 16px;
  margin: 0 2px;
}

/* Contact Section
--------------------------------*/
#contact {
  padding: 30px 0;
}

#contact .contact-info {
  margin-bottom: 20px;
  text-align: center;
}

#contact .contact-info i {
  font-size: 48px;
  display: inline-block;
  margin-bottom: 10px;
  color: #50d8af;
}

#contact .contact-info address, #contact .contact-info p {
  margin-bottom: 0;
  color: #000;
}

#contact .contact-info h3 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
  text-transform: uppercase;
  color: #999;
}

#contact .contact-info a {
  color: #000;
}

#contact .contact-info a:hover {
  color: #50d8af;
}

#contact .contact-address, #contact .contact-phone, #contact .contact-email {
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  #contact .contact-address, #contact .contact-phone, #contact .contact-email {
    padding: 20px 0;
  }
}

@media (min-width: 768px) {
  #contact .contact-phone {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
  }
}

#contact #google-map {
  height: 290px;
  margin-bottom: 20px;
}

@media (max-width: 576px) {
  #contact #google-map {
    margin-top: 20px;
  }
}

#contact .form #sendmessage {
  color: #50d8af;
  border: 1px solid #50d8af;
  display: none;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

#contact .form #errormessage {
  color: red;
  display: none;
  border: 1px solid red;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

#contact .form #sendmessage.show, #contact .form #errormessage.show, #contact .form .show {
  display: block;
}

#contact .form .validation {
  color: red;
  display: none;
  margin: 0 0 20px;
  font-weight: 400;
  font-size: 13px;
}

#contact .form input, #contact .form textarea {
  padding: 10px 14px;
  border-radius: 0;
  box-shadow: none;
  font-size: 15px;
}

#contact .form button[type="submit"] {
  background: #50d8af;
  border: 0;
  border-radius: 3px;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  cursor: pointer;
}

#contact .form button[type="submit"]:hover {
  background: #2dc899;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: #f2f5f8;
  padding: 0 0 30px 0;
  font-size: 14px;
}

#footer .copyright {
  text-align: center;
  padding-top: 30px;
}

#footer .credits {
  text-align: center;
  font-size: 13px;
  color: #555;
}

#footer .credits a {
  color: #0c2e8a;
}

/* กรอบ Card ให้ดูมีมิติ */
.card.h-100 {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* เวลาชี้เมาส์ที่ Card */
.card.h-100:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ปรับรูปภาพให้กลมมน */
.card img {
  border-radius: 8px;
}

/* หัวข้อห้อง */
.card h5 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* ปุ่ม ดูรายละเอียด */
.card .btn {
  margin-top: 10px;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* ปุ่ม hover */
.card .btn:hover {
  background-color: #0069d9; /* Bootstrap Primary shade */
  transform: scale(1.05);
}

.card-type-room .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ปรับขอบรูปภาพ */
.card-type-room .card-img-top {
  object-fit: cover;
  height: 200px; /* บังคับให้สูงเท่ากัน */
}

/* ปรับข้อความหัวข้อ และรายละเอียด */
.card-type-room .card-title {
  margin-bottom: 10px;
}

.card-type-room .card-text {
  margin-bottom: 0;
}

/* ปรับขอบรูป */
.carousel-inner img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ปรับเงาใน Modal */
.modal-content {
  border-radius: 12px;
}

/* หัวข้อย่อย */
.room-detail h6, .room-price h6 {
  margin-bottom: 15px;
}

/* ตารางราคา */
.room-price table {
  margin-top: 10px;
}

/* ปุ่มข้อมูลเพิ่มเติม */
#btn-more-info {
  border-radius: 20px;
  transition: 0.3s;
}

#btn-more-info:hover {
  background-color: #0062cc;
  color: white;
}

/* Responsive: กรณีจอเล็ก รูปสไลด์จะลดขนาดนิดนึง */
@media (max-width: 576px) {
  .carousel-inner img {
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }
}
/* Resort gallery */
#portfolio.gallery-section {
  padding: 68px 0 88px;
  background: #fff;
  color: #444;
  scroll-margin-top: 84px;
}
.gallery-container { max-width: 1320px; }
.gallery-heading { max-width: 1110px; margin: 0 auto 42px; }
.gallery-heading h2 { font-size: 32px; }
.gallery-heading p { margin: 16px 0 0; color: #68727e; font-size: 15px; line-height: 1.8; }
.gallery-zone-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 46px; }
.gallery-zone-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 10px 15px 10px 10px;
  border: 1px solid #e5edf5;
  border-radius: 12px;
  background: #f9fbfd;
  color: #0c2e8a;
  box-shadow: 0 4px 18px rgba(12,46,138,.04);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.gallery-zone-link:hover, .gallery-zone-link:focus { color: #0c2e8a; border-color: #50d8af; box-shadow: 0 10px 26px rgba(12,46,138,.12); transform: translateY(-3px); }
.gallery-zone-link img { width: 62px; height: 62px; flex: 0 0 62px; object-fit: cover; border-radius: 8px; }
.gallery-zone-link span { display: grid; min-width: 0; gap: 4px; }
.gallery-zone-link strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.gallery-zone-link small { color: #788699; font-size: 12px; }
.gallery-zone-link i { margin-left: auto; color: #50d8af; }
.gallery-zone { margin-bottom: 76px; scroll-margin-top: 110px; }
.gallery-zone:last-child { margin-bottom: 0; }
.gallery-zone-heading { display: flex; align-items: center; gap: 17px; margin-bottom: 24px; }
.gallery-zone h3 { margin: 0; color: #0c2e8a; font-size: 23px; font-weight: 600; line-height: 1.3; }
.gallery-zone-count { padding: 5px 10px; border-radius: 100px; background: #eefbf7; color: #178f6c; font-size: 12px; font-weight: 600; white-space: nowrap; }
.gallery-zone-rule { flex: 1; height: 1px; margin-left: 8px; background: #c9eee2; }
.gallery-zone-share { position: relative; z-index: 2; }
.gallery-share-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid #0c2e8a; border-radius: 24px; background: #0c2e8a; box-shadow: 0 5px 14px rgba(12,46,138,.16); color: #fff; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer; white-space: nowrap; transition: background .2s, box-shadow .2s, transform .2s; }
.gallery-share-toggle:hover, .gallery-share-toggle:focus, .gallery-share-toggle[aria-expanded="true"] { background: #1746a8; box-shadow: 0 8px 20px rgba(12,46,138,.24); transform: translateY(-1px); }
.gallery-share-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 10; width: min(290px, calc(100vw - 34px)); padding: 9px; border: 1px solid #e1eaf2; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(12,46,138,.18); }
.gallery-share-menu[hidden] { display: none; }
.gallery-share-menu-heading { padding: 9px 10px 11px; color: #68798d; font-size: 12px; font-weight: 700; }
.gallery-share-option { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: #0c2e8a; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; text-align: left; cursor: pointer; }
.gallery-share-option:hover, .gallery-share-option:focus { background: #f0f8f6; color: #0c2e8a; }
.gallery-share-option > span:nth-child(2) { display: grid; gap: 2px; }
.gallery-share-option small { color: #788699; font-size: 11px; font-weight: 400; }
.gallery-share-option > .fa-chevron-right { margin-left: auto; color: #9baaba; font-size: 10px; }
.gallery-share-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 10px; font-size: 18px; }
.gallery-share-icon-line { background: #e9f9ed; color: #06a735; }
.gallery-share-icon-messenger { background: #ecf1ff; color: #2874dc; }
.gallery-share-icon-copy { background: #edf7f4; color: #168f70; }
.gallery-share-status { padding: 0 10px; color: #168f70; font-size: 11px; line-height: 1.4; }
.gallery-share-status:not(:empty) { padding-top: 8px; padding-bottom: 5px; }
.gallery-slider { max-width: 1320px; margin: 0 auto; --gallery-gap: 20px; --gallery-visible: 3; }
.gallery-slider-viewport { overflow: hidden; padding: 2px 1px 18px; }
.gallery-cards { position: relative; display: flex; align-items: flex-start; gap: var(--gallery-gap); transition: transform .48s cubic-bezier(.22,1,.36,1); will-change: transform; }
.gallery-card {
  flex: 0 0 calc((100% - (var(--gallery-visible) - 1) * var(--gallery-gap)) / var(--gallery-visible));
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5ebed;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(12, 46, 138, .055);
}
.gallery-pagination[hidden] { display: none !important; }
.gallery-media { position: relative; height: 215px; overflow: hidden; background: #0c2e8a; }
.gallery-media a, .gallery-media img, .gallery-media video, .gallery-media iframe { display: block; width: 100%; height: 100%; }
.gallery-media img { object-fit: cover; transition: transform .6s ease; }
.gallery-card:hover .gallery-media img { transform: scale(1.035); }
.gallery-media video { object-fit: contain; }
.gallery-media iframe { border: 0; }
.gallery-open-file { position: absolute; top: 15px; right: 15px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(12,46,138,.65); color: #fff; cursor: pointer; }
.gallery-open-file:hover, .gallery-open-file:focus { background: #0c2e8a; }
.gallery-embed-cover { position: relative; display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; overflow: hidden; border: 0; background: radial-gradient(circle at 75% 15%, rgba(80,216,175,.25), transparent 38%), linear-gradient(135deg, #102b56, #0c2e8a 55%, #146b78); color: #fff; cursor: pointer; text-align: left; }
.gallery-embed-cover::before { content: ''; position: absolute; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; transform: translate(130px, -80px); box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.025); }
.gallery-embed-cover .gallery-embed-bg { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; filter: blur(17px) brightness(.72); }
.gallery-embed-cover .gallery-embed-poster { position: absolute; left: 50%; width: auto; max-width: 100%; height: 100%; object-fit: contain; transform: translateX(-50%); }
.gallery-embed-cover[data-portrait="0"] .gallery-embed-poster { left: 0; width: 100%; max-width: none; object-fit: cover; transform: none; }
.gallery-embed-cover.has-cover::before { inset: 0; z-index: 1; width: auto; height: auto; border: 0; border-radius: 0; transform: none; box-shadow: none; background: linear-gradient(180deg, rgba(4,18,35,.42), transparent 42%, rgba(4,18,35,.58)); }
.gallery-embed-platform { position: absolute; top: 17px; right: 18px; z-index: 2; padding: 5px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; background: rgba(255,255,255,.1); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.gallery-embed-platform i { margin-right: 3px; }
.gallery-embed-play { z-index: 2; display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(255,255,255,.16); box-shadow: 0 10px 25px rgba(0,0,0,.12); font-size: 20px; transition: transform .2s, background .2s; }
.gallery-embed-cover.has-cover .gallery-embed-play { border: 2px solid #fff; background: rgba(12,46,138,.9); box-shadow: 0 8px 28px rgba(0,0,0,.4); }
.gallery-embed-play i { margin-left: 4px; }
.gallery-embed-cover:hover .gallery-embed-play, .gallery-embed-cover:focus .gallery-embed-play { transform: scale(1.1); background: #50d8af; }
.gallery-embed-title { position: absolute; right: 19px; bottom: 17px; left: 19px; z-index: 2; overflow: hidden; color: #fff; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gallery-media a::after { content: ''; position: absolute; inset: 48% 0 0; background: linear-gradient(transparent, rgba(8,28,70,.5)); opacity: .8; pointer-events: none; transition: opacity .25s; }
.gallery-card:hover .gallery-media a::after, .gallery-media a:focus::after { opacity: 1; }
.gallery-photo-action {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  text-shadow: 0 1px 5px rgba(0,0,0,.35);
  transition: transform .2s;
}
.gallery-photo-action i { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; }
.gallery-card:hover .gallery-photo-action, .gallery-media a:focus .gallery-photo-action { transform: translateX(3px); }
.gallery-card-index { position: absolute; top: 18px; left: 20px; z-index: 1; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-shadow: 0 1px 6px rgba(0,0,0,.65); pointer-events: none; }
.gallery-card-footer { padding: 16px 19px 18px; min-height: 67px; }
.gallery-caption { margin: 0; color: #263f66; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.gallery-viewer-open { overflow: hidden; }
.gallery-viewer[hidden] { display: none !important; }
.gallery-viewer { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 52px 76px 32px; background: rgba(4,18,35,.9); }
.gallery-viewer-dialog { width: min(1100px, 100%); min-width: 0; }
.gallery-viewer-stage { display: flex; align-items: center; justify-content: center; height: min(76vh, 760px); }
.gallery-viewer-stage img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 16px 50px rgba(0,0,0,.25); }
.gallery-viewer-stage iframe, .gallery-viewer-stage video { display: block; width: 100%; height: 100%; border: 0; border-radius: 10px; background: #000; }
.gallery-facebook-fallback { display: flex; width: 100%; height: 100%; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: linear-gradient(145deg, #102b56, #0c2e8a 65%, #146b78); color: #fff; text-align: center; }
.gallery-facebook-fallback > i { font-size: 44px; }
.gallery-facebook-fallback h3 { margin: 0; color: #fff; font-size: 22px; font-weight: 700; }
.gallery-facebook-fallback p { margin: 0 0 10px; color: rgba(255,255,255,.82); font-size: 14px; }
.gallery-facebook-fallback a { padding: 11px 20px; border-radius: 24px; background: #50d8af; color: #0c2e8a; font-weight: 700; }
.gallery-facebook-fallback a:hover, .gallery-facebook-fallback a:focus { background: #fff; color: #0c2e8a; }
.gallery-viewer:not(.is-image):not(.is-portrait) .gallery-viewer-dialog { width: min(960px, 100%); }
.gallery-viewer:not(.is-image):not(.is-portrait) .gallery-viewer-stage { height: auto; aspect-ratio: 16 / 9; max-height: 76vh; }
.gallery-viewer.is-portrait .gallery-viewer-dialog { width: min(430px, 100%); }
.gallery-viewer-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; min-height: 30px; margin-top: 10px; color: #fff; font-size: 13px; text-align: center; }
.gallery-viewer-count { flex: none; font-weight: 700; letter-spacing: .1em; }
.gallery-viewer-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .75; }
.gallery-viewer-source[hidden] { display: none; }
.gallery-viewer-source { flex: none; padding: 7px 12px; border: 1px solid rgba(255,255,255,.55); border-radius: 20px; color: #fff; font-weight: 700; }
.gallery-viewer-source:hover, .gallery-viewer-source:focus { background: #fff; color: #0c2e8a; }
.gallery-viewer-close, .gallery-viewer-prev, .gallery-viewer-next { position: fixed; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.gallery-viewer-close { top: 22px; right: 24px; }
.gallery-viewer-prev { top: 50%; left: 22px; transform: translateY(-50%); }
.gallery-viewer-next { top: 50%; right: 22px; transform: translateY(-50%); }
.gallery-viewer-close:hover, .gallery-viewer-prev:hover:not(:disabled), .gallery-viewer-next:hover:not(:disabled), .gallery-viewer-close:focus, .gallery-viewer-prev:focus, .gallery-viewer-next:focus { background: #fff; color: #0c2e8a; }
.gallery-viewer-prev:disabled, .gallery-viewer-next:disabled { opacity: .3; cursor: default; }
.gallery-slider-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 4px; }
.gallery-view-all { border: 0; border-radius: 30px; padding: 10px 24px; background: #50d8af; color: #0c2e8a; font-size: 13px; font-weight: 700; letter-spacing: .02em; cursor: pointer; }
.gallery-view-all:hover, .gallery-view-all:focus { background: #0c2e8a; color: #fff; }
.gallery-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 0 0 0 auto; }
.gallery-pagination button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #bfeadf; border-radius: 50%; background: #fff; color: #0c2e8a; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.gallery-pagination .gallery-page-next { background: #50d8af; border-color: #50d8af; }
.gallery-pagination button:hover:not(:disabled), .gallery-pagination button:focus:not(:disabled) { border-color: #0c2e8a; background: #0c2e8a; color: #fff; }
.gallery-pagination button:disabled { opacity: .35; cursor: default; }
.gallery-dots { display: flex; align-items: center; gap: 7px; }
.gallery-pagination .gallery-dot { display: block; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #cbd8e0; box-shadow: none; transition: width .2s, background .2s; }
.gallery-pagination .gallery-dot.active { width: 22px; border-radius: 8px; background: #50d8af; }
.gallery-pagination .gallery-dot:hover, .gallery-pagination .gallery-dot:focus { background: #0c2e8a; }
.gallery-slider.is-expanded .gallery-slider-viewport { overflow: visible; }
.gallery-slider.is-expanded .gallery-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); transform: none !important; }
.gallery-slider.is-expanded .gallery-card { width: auto; }
@media (max-width: 900px) {
  #portfolio.gallery-section { padding: 72px 0 84px; }
  .gallery-slider { --gallery-visible: 2; }
  .gallery-slider.is-expanded .gallery-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #portfolio.gallery-section { padding: 56px 0 68px; }
  .gallery-heading { margin-bottom: 48px; }
  .gallery-heading h2 { font-size: 32px; }
  .gallery-heading p { font-size: 14px; }
  .gallery-zone { margin-bottom: 56px; }
  .gallery-zone h3 { font-size: 21px; }
  .gallery-zone-heading { gap: 10px; }
  .gallery-zone-count { font-size: 11px; }
  .gallery-zone-rule { display: none; }
  .gallery-zone-share { flex-basis: 100%; }
  .gallery-share-menu { right: auto; left: 0; }
  .gallery-slider { --gallery-visible: 1; --gallery-gap: 14px; }
  .gallery-slider.is-expanded .gallery-cards { grid-template-columns: 1fr; }
  .gallery-pagination { gap: 12px; }
  .gallery-media { height: auto; aspect-ratio: 4 / 3; }
  .gallery-slider-footer { gap: 10px; }
  .gallery-view-all { padding: 9px 16px; font-size: 12px; }
  .gallery-card-footer { padding: 15px 16px 18px; }
  .gallery-photo-action { left: 16px; bottom: 15px; }
  .gallery-viewer { padding: 58px 43px 22px; }
  .gallery-viewer-stage { height: min(72vh, 680px); }
  .gallery-viewer-prev, .gallery-viewer-next { width: 32px; height: 42px; border: 0; background: transparent; }
  .gallery-viewer-prev { left: 4px; }
  .gallery-viewer-next { right: 4px; }
  .gallery-viewer-close { top: 10px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-cards, .gallery-media img, .gallery-zone-link, .gallery-photo-action { transition: none; }
}
.scrolling-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* ลื่นนิ้วใน iOS */
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none; /* Firefox */
}

/* ซ่อน scrollbar Chrome/Safari/Edge */
.scrolling-wrapper::-webkit-scrollbar {
  display: none;
}

/* แต่ละรูปต้องไม่ย่อขนาด */
.scrolling-wrapper a {
  flex: 0 0 auto;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  margin-right: 12px;
}

/* รูปภาพใน gallery */
.scrolling-wrapper img {
  height: 150px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

/* Hover effect ขยายเบาๆ */
.scrolling-wrapper img:hover {
  transform: scale(1.05);
}
/* กล่องครอบทุกปุ่ม */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  z-index: 9999;
}

/* ปุ่มแต่ละอัน */
.btn-floating {
  width: 44px;
  height: 44px;
  background: #0c2e8a;
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(12,46,138,.2);
  transition: all 0.3s ease;
}

.btn-floating:hover {
  background-color: #50cfa7;
  transform: translateY(-3px);
}

/* สีพิเศษให้เฉพาะ Messenger และ Line */
#btn-messenger {
  background: #0084ff;
}

#btn-line {
  background: #00c300;
}

/* Responsive มือถือ */
@media (max-width: 767px) {
  .floating-buttons {
    bottom: 12px;
    right: 12px;
    gap: 7px;
  }
  .btn-floating {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 5px!important;
    padding-left: 5px!important;
  }

  .card-type-room .card-img-top {
    object-fit: cover!important;
    height: 110px!important;
  }
}
.room-image {
  width: 100%;
  height: 180px; /* หรือสูงตามที่คุณต้องการ */
  object-fit: cover;
  border-radius: 8px;
}
@media (max-width: 767.98px) {
  .card-room {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .card-room > div:first-child {
    width: 100% !important;
    padding-right: 0 !important;
    margin-bottom: 10px;
  }

  .room-image {
    width: 100% !important;
    height: 200px; /* สามารถปรับให้สูงกว่าเดสก์ท็อปก็ได้ */
    object-fit: cover;
  }

  .card-room .btn {
    display: none !important;
  }
}

.modal-footer {
  justify-content: flex-start !important;
}


.scrolling-wrapper {
  white-space: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
}
.scrolling-wrapper img {
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.scrolling-wrapper img:hover {
  transform: scale(1.05);
}
