/* ===== นำเข้าฟอนต์ที่ต้องการใช้ทั้งหมดในบรรทัดเดียว ===== */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&family=Kanit:wght@400;600&display=swap');

/* ===== รีเซ็ตเบื้องต้น ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* กำหนดฟอนต์หลักเป็น Sarabun สำหรับทั้งหน้า */
  font-family: 'Sarabun', sans-serif;
  background: #f3f4f6;
  color: #222;
}

/* ===== Navbar ===== */
.navbar {
  background: linear-gradient(90deg, #035103, #0d800d);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgb(8, 71, 17);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
}

.logo-img {
  height: 40px;
  transition: transform 0.3s;
}

.logo-img:hover {
  transform: rotate(15deg);
}

.logo-text {
  /* ใช้ฟอนต์ Kanit เพื่อให้เข้ากับ Navbar */
  font-family: 'Kanit', sans-serif;
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 12px;
  white-space: nowrap;
}

.hamburger {
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
  /* nav-link จะใช้ฟอนต์ Kanit ตาม .navbar */
  font-family: 'Kanit', sans-serif;
}

.nav-link:hover {
  color: #bed134;
}

/* ===== สไลด์และแบนเนอร์ ===== */
.main-banner {
  position: relative;
  width: 100vw;
  height: 60vh;
  min-height: 280px;
  max-height: 720px;
  overflow: hidden;
  background: #f4f5f6;
  margin-bottom: 0;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.slide.is-active {
  opacity: 1;
}

/* --- จุดสไลด์ --- */
.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.dot.is-active {
  background: #fff;
}

/* ===== Welcome Section ===== */
.slide-text-inline-container {
  width: 100%;
  background: black;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

/* ===== Card Section (background-image) ===== */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.clickable-card {
  position: relative;
  display: block;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.clickable-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55));
  z-index: 1;
  transition: background 0.2s;
}

.clickable-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px;
  background: none;
}

.card-content .icon-left {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.card-content h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.card-content p {
  margin: 4px 0 0;
  font-size: 0.98rem;
  color: #eaf6e6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* ===== Map Embed ===== */
.virtual-tour-section {
  text-align: center;
}

.map-embed {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.map-embed iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

/* ===== Footer ===== */

.footer {
  background-color: #084d03;
  color: #fff;
  padding: 20px 20px;
  font-size: 16px;
  margin-top: 80px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-left,
.footer-center,
.footer-right {
  width: 100%;
  max-width: 600px;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.social-icon {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: transform 0.3s, color 0.3s;
  display: inline-block;
}

.social-icon:hover {
  color: #bed134;
  transform: scale(1.15);
}

/* ===== Facilities Section ===== */

.facilities-section {
  max-width: 500px;
  margin: 20px auto;
  padding: 14px;
}

.facilities-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 28px;
  color: #35532a;
  letter-spacing: 1px;
}

.facility-card {
  background: #5a7d4c;
  color: #fff;
  padding: 28px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 140px;
  box-shadow: 0 2px 8px rgba(60, 80, 50, 0.06);
  text-decoration: none;
}

.facility-card .icon-left {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: #fff;
}

.facility-card h3 {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  font-weight: bold;
  color: #fff;
}

.facility-card p {
  margin: 0;
  font-size: 1rem;
  color: #eaf6e6;
}

/* ===== 360 Row Layout ===== */

.vr-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.vr-col {
  display: flex;
}

.frame {
  position: relative;
  border-radius: 18px;
  width: 100%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.vr-media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f6f8;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 16px rgba(71, 49, 49, 0.08);
  aspect-ratio: 16 / 9;
}

.kuula-frame .vr-media iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.frame:hover {
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

/* ===== Highlight Section ===== */

.section-fullbleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.highlight-wrap {
  max-width: none;
  margin: 0 auto;
  padding: 0;
}
.highlight-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap; /* ให้ responsive */
}

.highlight-grid .item {
  flex: 0 0 auto;
  width: 250px;   /* กำหนดความกว้างแต่ละการ์ด */
}

.highlight-grid .item {
  flex: 0 0 auto;
  width: 250px;   /* กำหนดความกว้างแต่ละการ์ด */
}
.highlight-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.highlight-grid img:hover {
  transform: scale(1.05);
}

.left,
.right {
  display: grid;
  gap: 12px;
}

.highlight-title {
  grid-area: title;
  text-align: center;
  padding: 16px 0 12px;
  font-size: clamp(20px, 3.5vw, 34px);
}

.left {
  grid-area: left;
  display: grid;
  gap: 0;
}

.right {
  grid-area: right;
  display: grid;
  gap: 0;
}

.center {
  grid-area: center;
}

/* ===== Card (Highlight) ===== */

figure.card {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 220px;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.center .card {
  min-height: 460px;
}

/* ===== Booking Button ===== */

.booking-btn {
  display: inline-block;
  background-color: #28a745;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.booking-btn:hover {
  background-color: #218838;
}

/* ===== Responsive Design ===== */

@media (max-width: 980px) {
  .vr-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .card-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    padding: 10px;
  }

  .clickable-card {
    height: 160px;
  }

  .logo-text {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .slides {
    height: 60vh;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    background: #2d3748;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgb(4, 4, 4);
    text-align: center;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }

  .logo-text {
    font-size: 18px;
  }
}

@media (max-width: 700px) {
  .card-container {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .clickable-card {
    height: 140px;
  }

  .facility-card {
    min-height: 110px;
    padding: 18px 10px 14px 10px;
  }
  
}

@media (max-width: 600px) {
  .card-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .clickable-card {
    height: 140px;
  }

  .footer {
    font-size: 14px;
  }

  .facility-card {
    min-height: 90px;
    padding: 12px 8px 10px 8px;
  }
}

@media (max-width: 480px) {
  .card-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .clickable-card {
    height: 120px;
  }

  .footer {
    font-size: 14px;
  }

  .facility-card {
    min-height: 90px;
    padding: 12px 8px 10px 8px;
  }
  
}
/* === แบนเนอร์สไลด์โชว์ === */
.main-banner {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

.slide {
  width: 100%;
  height: auto;
  object-fit: cover;   /* ปรับภาพให้ครอบพอดี */
  display: none;
}

.slide.is-active {
  display: block;
}

/* จุดเล็กๆ สำหรับเลื่อนสไลด์ */
.dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  margin: 0 5px;
  background: #ccc;
}

.dot.is-active {
  background: #333;
}
