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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #111827;
  background: #f3f4f6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #ffffff;
}

.section-title {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #6b7280;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  background-image: url('http://phaheefarmstay.com/ก้อย2/H2.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.3));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem 7rem;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  margin-bottom: 0.85rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #1e4fd4;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.6);
}

/* Nav */
.main-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Mobile nav button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.about-grid h2 {
  margin-bottom: 1rem;
}

.about-grid p + p {
  margin-top: 1rem;
}

.about-image-wrap {
  max-width: 460px;
  margin-inline: auto;
}

/* Highlight */
.highlight-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.highlight-text h2 {
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  margin-top: 1rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.35rem;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #2563eb;
}

/* Room cards */
.room-card {
  margin-bottom: 2.5rem;
  padding: 1.8rem 1.5rem;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.room-header h3 {
  margin-bottom: 0.35rem;
}

.room-header p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.room-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
}

/* Generic image cards */
.img-card {
  overflow: hidden;
  border-radius: 1.1rem;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* View gallery */
.view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

/* Customers */
.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.contact-title {
  text-align: left;
  margin-bottom: 1rem;
}

.contact-text {
  margin-bottom: 0.75rem;
}

.contact-image-wrap {
  max-width: 420px;
  margin-inline: auto;
}

/* Helpers */
.rounded {
  border-radius: 1.25rem;
}

.shadow {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.clickable-image {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.clickable-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3);
}

/* Footbar */
.footbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.15);
  z-index: 50;
  flex-wrap: wrap;
}

.footbar-btn {
  flex: 1 1 120px;
  text-align: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.footbar-btn.phone { background: #2563eb; }
.footbar-btn.line { background: #22c55e; }
.footbar-btn.facebook { background: #1877f2; }

/* Back to top */
#backToTop {
  position: fixed;
  right: 1.25rem;
  bottom: 4.6rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.55);
  z-index: 60;
}

#backToTop.show {
  display: flex;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: min(900px, 100%);
  max-height: 90vh;
}

.lightbox img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.75rem;
}

.lightbox-close {
  position: absolute;
  top: -1.8rem;
  right: -0.4rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.97);
    padding: 0.8rem 1rem;
    border-radius: 0.9rem;
    margin-top: 0.5rem;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 0.15rem 0.1rem;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .contact-title,
  .section-title {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .hero-content {
    padding-left: 3rem;
  }

  .about-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .highlight-grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn-primary,
  .clickable-image {
    transition: none;
  }
}

/* Video section */
.video-section {
  position: relative;
  background-image: url('http://phaheefarmstay.com/ก้อย2/H3.jpg'); /* เปลี่ยนภาพพื้นหลังได้ */
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
}

.video-section .container {
  position: relative;
  z-index: 1;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 1rem;
}


/* Van Rent Promotion - Improved Design */
.van-rent-box {
  margin-top: 2rem;
  padding: 1.8rem;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border-radius: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.van-rent-img img {
  border-radius: 1.2rem;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.van-rent-text {
  flex: 1;
}

.van-rent-text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #ea580c;
}

.van-rent-text p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.btn-van {
  display: inline-block;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(234,88,12,0.45);
  transition: all 0.2s ease;
}

.btn-van:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(234,88,12,0.6);
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .van-rent-box {
    justify-content: center;
    text-align: center;
  }

  .van-rent-img img {
    max-width: 100%;
  }
}





/* Floating Van Banner UPDATED - SMALLER & LEFT */
.floating-van-banner {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 999;
  background: linear-gradient(135deg, #0284c7, #f97316);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: floatIn 0.6s ease;
}

.floating-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-van-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
}

.floating-btn {
  background: #ffffff;
  color: #0284c7;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.75rem;
}

.close-banner {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
  .floating-van-banner {
    top: 60px;
    left: 10px;
  }
}

}

}

}


/* Mobile Fullscreen Van Image Fix */
@media (max-width: 768px) {
  .van-rent-img img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
  }
}
