/* Color Palette: ใช้สีที่เข้ากันมากขึ้น */
:root {
  --primary-color: #38a800;
  /* สีเขียวเข้มสำหรับแบรนด์ */
  --primary-hover: #2e8506;
  --secondary-color: #f1ffe5;
  /* สีเขียวอ่อนสำหรับพื้นหลัง */
  --accent-color: #bfff95;
  /* สีเขียวอ่อนสำหรับเน้นข้อความ */
  --text-dark: #1C2B28;
  --text-muted: #5C706A;
  --text-light: #ffffff;
  --bg-light: #fdfdfd;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Prompt', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  scroll-behavior: smooth;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-weight: 600;
}

/* Navbar */
/* Navbar พื้นฐาน */
.custom-navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* โลโก้ */
.custom-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary-color) !important;
  letter-spacing: 0.5px;
}

/* เมนู */
.custom-navbar .nav-link {
  position: relative;
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 18px !important;
  transition: color 0.3s ease;
}

/* เส้นใต้แบบ Hover */
.custom-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #38a800, #bfff95);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* Hover */
.custom-navbar .nav-link:hover {
  color: var(--primary-color);
}

.custom-navbar .nav-link:hover::after {
  width: 80%;
}

/* Active */
.custom-navbar .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.custom-navbar .nav-link.active::after {
  width: 80%;
}


.hero-section {
  position: relative;
  background: url('img/BGNamNueResort.webp') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-buttons .btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
}

/* Sections */
section {
  padding: 80px 0;
}

section#facilities {
  background-color: var(--secondary-color);
}

/* Room Cards */
.card {
  border: none;
  border-radius: 20px;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  height: 100%;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.card-text {
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-text i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.btn-outline-success {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-success:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Facilities Card */
.facilities-card {
  padding: 30px 20px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}



.icon-box {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(56, 168, 0, 0.1), rgba(191, 255, 149, 0.2));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}



.icon-box .bi {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.4s ease;
}



.facilities-card h5 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.facilities-card p {
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Gallery */
.gallery img {
  border-radius: 20px;
  object-fit: cover;
  height: 300px;
  box-shadow: var(--card-shadow);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  width: 100%;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gallery img:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: var(--hover-shadow);
  z-index: 10;
}

/* Contact & Footer */
#contact {
  background-color: var(--primary-color);
  color: white;
}

#contact a {
  color: var(--accent-color);
}

#contact i {
  color: var(--accent-color);
}

footer {
  background-color: #0e3201;
  color: white;
}

footer h4 {
  color: var(--accent-color);
}

footer hr {
  border-color: var(--accent-color);
}

.map-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  /* 4:3 Aspect Ratio */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.btn-lux-green {
  background: linear-gradient(135deg, #38a800, #bfff95);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 30px;
  font-weight: 500;
  border: none;
  box-shadow: 0 10px 30px rgba(15, 61, 46, 0.35);
  transition: all 0.3s ease;
}

.btn-lux-green:hover {
  background: linear-gradient(135deg, #bfff95, #bfff95);
  box-shadow: 0 15px 40px rgba(15, 61, 46, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-eco {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  gap: 8px;

  padding: 10px 15px;
  border-radius: 999px;

  background-color: transparent;
  color: #38a800;
  border: 1.5px solid #38a800;

  font-weight: 500;
  text-decoration: none;

  transition: all 0.25s ease;
}

.btn-eco i {
  font-size: 1rem;
}

/* Hover เรียบหรู */
.btn-eco:hover {
  background-color: #38a800;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 61, 46, 0.25);
  transform: translateY(-1px);
}

.btn-eco:hover i {
  transform: translateX(4px);
  transition: transform 0.25s ease;
}



.contact-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f1ffe5, #ffffff);
}

.contact-icon {
  font-size: 3rem;
  color: #38a800;
}

.contact-title {
  font-size: 2.4rem;
  font-weight: 600;
  margin-top: 10px;
}

.contact-subtitle {
  color: #444;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Card */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Icon Circle */
.icon-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
}

.icon-circle.blue {
  background: #0d8cf0;
}

.icon-circle.green {
  background: #38a800;
}


/* Button */
.contact-btn {
  padding: 10px 26px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
}

.contact-btn.blue {
  background: #0d8cf0;
}

.contact-btn.green {
  background: #38a800;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.call-modal {
  border-radius: 20px;
  padding-bottom: 10px;
}

.call-modal .modal-title {
  font-weight: 600;
  color: #38a800;
}

/* ปุ่มโทรใน Modal */
.call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-bottom: 14px;
  padding: 14px 20px;

  border-radius: 999px;
  background: linear-gradient(135deg, #38a800, #51dc06);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;

  transition: all 0.25s ease;
}

.call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15, 61, 46, 0.4);
  color: #ffffff;
}

.call-person {
  margin-bottom: 18px;
}

.call-name {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #24580f;
  text-align: center;
}

.call-name::before {
  content: "ผู้ติดต่อ:";
  margin-right: 4px;
  color: #28690b;
}

/* Card Style */
.attraction-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .08);
  transition: transform .35s ease, box-shadow .35s ease;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.attraction-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .14);
}

/* Mobile Responsive */
@media (max-width: 767px) {

  /* Navbar Logo Mobile Size */
  .custom-navbar .navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 0;
  }

  /* Compact Attractions for Mobile */
  .attractions-scroll {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    /* Add negative margin to make scroll go to edge of screen */
    margin-right: -15px;
    margin-left: -15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .attractions-scroll>div {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: center;
  }

  /* Hide scrollbar */
  .attractions-scroll::-webkit-scrollbar {
    display: none;
  }

  .attractions-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* Reduce card sizes */
  .attractions-scroll .attraction-card {
    padding: 1.25rem !important;
    /* override p-4 */
  }

  .attractions-scroll .attraction-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .attractions-scroll .attraction-card p.small {
    font-size: 0.8rem;
    margin-bottom: 0.75rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .attractions-scroll .attraction-card .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }

  .attractions-scroll .attraction-card .btn {
    width: 100%;
    text-align: center;
  }
}