:root {
  --bg-color: #E0F7FF; 
  --glass-bg: rgba(255, 255, 255, 0.45); 
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 12px 48px 0 rgba(0, 50, 100, 0.15);
  --primary-blue: #4DB7FE; 
  --dark-navy: #0B162C;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --live-green: #22C55E;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Kanit', sans-serif;
}

body {
  background: #F8FAFC;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text-dark);
  padding-top: 100px;
}

.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  margin-top: -100px;
  padding-top: 140px;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 17, 47, 0.25) 0%, rgba(8, 17, 47, 0.45) 100%);
  z-index: 1;
}
.hero-wrapper > .hero-content {
  position: relative;
  z-index: 2;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
}

/* Page Hero Banner (shared across pages) */
.page-hero {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #1a2d50 100%);
  padding: 60px 24px 48px;
  padding-top: 148px;
  margin-top: -100px;
  text-align: center;
  color: white;
}
.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
}
.page-hero p {
  font-size: 1.1rem;
  color: #94A3B8;
  max-width: 550px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero { padding-top: 100px; padding-bottom: 36px; }
}
@media (max-width: 600px) {
  body { padding-top: 74px; }
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero p { font-size: 0.95rem; }
  .page-hero { padding: 40px 16px 32px; padding-top: 114px; margin-top: -74px; }
}

/* Top Navbar - Full Width */
.top-navbar {
  background: var(--white);
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s;
}

/* Transparent state (at top on hero pages) */
.top-navbar.navbar-transparent {
  background: rgba(11, 22, 44, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
}
.top-navbar.navbar-transparent .nav-logo h1,
.top-navbar.navbar-transparent .nav-logo h1 a {
  color: white !important;
}
.top-navbar.navbar-transparent .nav-logo span {
  color: rgba(255,255,255,0.85);
}
.top-navbar.navbar-transparent .nav-menu a {
  color: rgba(255,255,255,0.9);
}
.top-navbar.navbar-transparent .nav-menu a:hover,
.top-navbar.navbar-transparent .nav-menu a.nav-active {
  color: white;
}
.top-navbar.navbar-transparent .nav-right .btn-icon {
  background: rgba(255,255,255,0.15);
  color: white;
}
.top-navbar.navbar-transparent .nav-toggle span {
  background: white;
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}
.nav-logo h1 {
  font-size: 1.6rem;
  color: var(--dark-navy);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo span {
  color: var(--primary-blue);
}
.nav-logo a { display: flex; align-items: center; }
.nav-logo-img {
  height: 80px;
  width: auto;
  display: block;
  transition: transform 0.3s;
}
.nav-logo-img:hover { transform: scale(1.04); }
.nav-menu {
  display: flex;
  gap: 32px;
}
/* Mobile drawer sections — hidden on desktop */
.nav-mobile-header,
.nav-mobile-contact { display: none; }
.nav-mobile-links { display: contents; }
/* Hide mobile-only icons/chevron inside links on desktop */
.nav-menu a:not(.nav-contact-icon) > i,
.nav-menu a > .nav-arrow { display: none; }
.nav-menu a > span { display: inline; }
.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: var(--primary-blue);
}
.nav-menu a.nav-active {
  color: var(--primary-blue);
}
.nav-right {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-right .btn-icon {
  background: #F1F5F9;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark-navy);
  text-decoration: none;
  font-size: 1.1rem;
}

/* Footer - Full Width Dark Solid */
.footer-panel {
  background: var(--dark-navy);
  color: var(--white);
  width: 100%;
  padding: 60px 0 20px 0;
  margin-top: 0;
}
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 0 24px;
}
.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--white);
  font-weight: 500;
}
.footer-logo-box {
  margin-bottom: 20px;
}
.footer-logo-box h1 {
  font-size: 1.8rem;
  color: var(--white);
  display: flex; align-items: center; gap: 12px;
}
.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
  background: rgba(255,255,255,0.95);
  padding: 10px 14px;
  border-radius: 14px;
}
.footer-desc {
  color: #94A3B8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
.footer-socials {
  display: flex; gap: 12px;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.footer-socials a.line { background: #00B900; }
.footer-links-col {
  display: flex; flex-direction: column; gap: 8px;
}
.footer-links-col a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #CBD5E1;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.footer-links-col a::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: #64748B;
  transition: transform 0.25s ease, color 0.25s ease;
}
.footer-links-col a:hover {
  color: var(--white);
  background: rgba(77, 183, 254, 0.12);
  border-color: rgba(77, 183, 254, 0.35);
  transform: translateX(2px);
}
.footer-links-col a:hover::after {
  color: var(--primary-blue);
  transform: translateX(3px);
}
.footer-contact-item {
  display: flex; align-items: center; gap: 12px; color: #94A3B8; margin-bottom: 16px;
}
.footer-contact-item i { color: var(--primary-blue); }
.footer-bottom {
  max-width: 1400px;
  margin: 60px auto 0 auto;
  padding: 20px 24px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between;
  color: #64748B; font-size: 0.85rem;
}

/* Page Wrapper for Normal Pages */
.page-wrapper {
  flex: 1;
  width: 100%;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-container {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
}
.section-title {
  font-size: 2.2rem;
  color: var(--dark-navy);
  font-weight: 600;
  margin-bottom: 32px;
  text-align: center;
}

/* Rest of the UI elements (Booking Bar, Cards, etc.) */
.top-booking-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  width: 95%;
  max-width: 1400px;
  border-radius: 50px;
  margin-top: 40px;
  margin-bottom: 32px;
  align-self: center;
  position: relative;
  z-index: 50;
  overflow: visible;
}
.booking-title { font-weight: 600; letter-spacing: 1px; color: var(--dark-navy); font-size: 1.25rem; }
.booking-controls { display: flex; gap: 16px; align-items: center; }
.booking-input {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255,255,255,0.8);
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-navy);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  user-select: none;
  min-width: 160px;
}
.booking-input:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--primary-blue);
}
.date-hidden-input {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
}

/* Guests Dropdown */
#guests-box { position: relative; }
.guests-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
  padding: 20px 24px;
  min-width: 220px;
  z-index: 200;
}
.guests-dropdown.open { display: block; }
.guests-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.guests-row span { font-size: 1rem; font-weight: 500; color: var(--dark-navy); }
.guests-counter { display: flex; align-items: center; gap: 14px; }
.counter-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  background: var(--white);
  font-size: 1.1rem;
  color: var(--dark-navy);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.counter-btn:hover { border-color: var(--primary-blue); color: var(--primary-blue); }
.guests-counter span { font-weight: 600; font-size: 1.05rem; min-width: 20px; text-align: center; }
.btn-primary { background: var(--dark-navy); color: var(--white); border: none; padding: 14px 32px; border-radius: 24px; font-weight: 500; font-size: 1.05rem; cursor: pointer; transition: all 0.3s ease; }

.main-container {
  display: grid;
  grid-template-columns: 90px minmax(550px, 1fr) 420px;
  gap: 28px;
  width: 95%;
  max-width: 1400px;
  align-items: start;
  align-self: center;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; align-items: center; padding: 28px 0; gap: 36px; border-radius: 24px; background: rgba(255, 255, 255, 0.4); }
.nav-icon { font-size: 1.4rem; color: var(--dark-navy); cursor: pointer; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 14px; transition: all 0.3s ease; text-decoration: none; }
.nav-icon.active { background: var(--dark-navy); color: var(--white); box-shadow: 0 4px 12px rgba(8, 17, 47, 0.3); }

/* Villa Overview */
.villa-overview { padding: 32px 36px; display: flex; flex-direction: column; gap: 24px; }
.overview-header { display: flex; justify-content: space-between; align-items: center; }
.overview-title { font-weight: 600; font-size: 1.05rem; color: var(--dark-navy); letter-spacing: 0.5px; }
.overview-nav { display: flex; align-items: center; gap: 12px; }
.villa-nav-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  background: var(--white);
  color: var(--dark-navy);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all 0.3s;
}
.villa-nav-btn:hover { border-color: var(--primary-blue); color: var(--primary-blue); background: rgba(77,183,254,0.08); }
.villa-counter { font-weight: 600; font-size: 0.95rem; color: var(--text-muted); min-width: 40px; text-align: center; }

/* Villa Slider */
.villa-slider { position: relative; }
.villa-slide {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: villaFadeIn 0.4s ease;
}
.villa-slide.active { display: flex; }
@keyframes villaFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.villa-main-info { display: flex; gap: 24px; align-items: center; }
.villa-main-image { width: 440px; height: 260px; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.villa-text-content h2 { font-size: 2.2rem; color: var(--dark-navy); font-weight: 600; margin-bottom: 2px; }
.villa-price { font-size: 1.8rem; font-weight: 600; color: var(--dark-navy); margin-top: 4px; }
.villa-price span { font-size: 1.1rem; font-weight: 400; color: var(--text-muted); }
.villa-desc { font-size: 1rem; color: var(--text-dark); line-height: 1.6; margin-top: 8px; }

/* Features */
.features-section { margin-top: 16px; }
.features-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 16px; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-box { background: rgba(255,255,255,0.6); padding: 18px 10px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; border: 1px solid rgba(255,255,255,0.5); }
.feature-box i { font-size: 1.6rem; color: var(--dark-navy); }

/* Right Column Widgets */
.right-column { display: flex; flex-direction: column; gap: 28px; }
.widget-panel { padding: 28px; }
.widget-title { font-size: 1rem; font-weight: 600; color: var(--dark-navy); margin-bottom: 24px; letter-spacing: 0.5px; }

.timeline { display: flex; flex-direction: column; position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 3px; top: 8px; bottom: 24px; width: 2px; border-left: 2px dashed rgba(77, 183, 254, 0.6); }
.timeline-item { position: relative; margin-bottom: 28px; display: flex; justify-content: space-between; align-items: flex-start; }
.timeline-item::before { content: ''; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--white); border: 2px solid var(--primary-blue); z-index: 1; }
.timeline-item.active::before { background: var(--primary-blue); box-shadow: 0 0 10px var(--primary-blue); }
.timeline-content h4 { font-weight: 500; font-size: 1.1rem; margin-bottom: 6px; }

/* Why Us Widget */
.why-us-list { display: flex; flex-direction: column; gap: 18px; }
.why-us-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  transition: background 0.3s;
}
.why-us-item:hover { background: rgba(77, 183, 254, 0.08); }
.why-us-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(77, 183, 254, 0.15);
  color: var(--primary-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.why-us-text h4 { font-size: 1rem; font-weight: 600; color: var(--dark-navy); margin-bottom: 2px; }
.why-us-text p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

/* Map Widget */
.map-widget { height: 280px; display: flex; flex-direction: column; }
.map-container { flex: 1; background: #E8F0F2; border-radius: 16px; position: relative; overflow: hidden; margin-top: 12px; }
.map-placeholder { width: 100%; height: 100%; background: radial-gradient(circle at center, #E8F0F2 0%, #D1E1E8 100%); position: relative; }
.map-road { position: absolute; top: 30%; left: -10%; width: 120%; height: 10px; background: var(--white); border-radius: 10px; transform: rotate(15deg); }
.map-route-line { position: absolute; top: 40%; left: 20%; width: 50%; height: 30%; border-bottom: 4px solid var(--primary-blue); border-right: 4px solid var(--primary-blue); border-radius: 0 0 16px 0; }
.map-pin { position: absolute; width: 32px; height: 32px; background: var(--primary-blue); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; border: 4px solid var(--white); }
.map-pin.start { top: 32%; left: 16%; }
.map-pin.end { top: 61%; left: 65%; background: var(--dark-navy); }

/* ===== Stats Section ===== */
.stats-section { background: var(--dark-navy); margin-top: 40px; padding: 40px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-item { padding: 10px 0; }
.stat-icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: rgba(77, 183, 254, 0.15);
  color: var(--primary-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 1rem;
  color: #94A3B8;
  font-weight: 400;
}

/* ===== Villa Cards ===== */
.villa-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.villa-card {
  background: #F8FAFC;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.villa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.villa-card-img { width: 100%; height: 250px; object-fit: cover; }
.villa-card-body { padding: 20px; }
.villa-card-body h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--dark-navy); }
.villa-card-location { color: var(--text-muted); margin-bottom: 15px; }
.villa-card-body .btn-primary { text-decoration: none; display: inline-block; }

/* ===== Promo Section ===== */
.promo-section { background: #F0F9FF; }
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.promo-card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.promo-highlight {
  border: 2px solid var(--primary-blue);
}
.promo-badge {
  display: inline-block;
  background: rgba(77, 183, 254, 0.15);
  color: var(--primary-blue);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.promo-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: rgba(77, 183, 254, 0.12);
  color: var(--primary-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.promo-card h3 {
  font-size: 1.3rem;
  color: var(--dark-navy);
  margin-bottom: 12px;
  font-weight: 600;
}
.promo-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.promo-card .btn-primary { text-decoration: none; display: inline-block; }

/* ===== Reviews Section ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.review-card {
  background: #F8FAFC;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.review-card:hover { transform: translateY(-4px); }
.review-stars {
  color: #FBBF24;
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex; gap: 3px;
}
.review-text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.review-author h4 {
  font-size: 1rem;
  color: var(--dark-navy);
  font-weight: 600;
  margin-bottom: 2px;
}
.review-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== FAQ Section ===== */
.faq-section { background: #F8FAFC; }
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  border: none;
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Kanit', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark-navy);
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(77, 183, 254, 0.05); }
.faq-question i {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px 24px;
}
.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #1a2d50 100%);
  padding: 80px 24px;
  text-align: center;
}
.cta-content {
  max-width: 700px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: 2.2rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 16px;
}
.cta-content p {
  font-size: 1.1rem;
  color: #94A3B8;
  line-height: 1.7;
  margin-bottom: 36px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  padding: 16px 40px;
  border-radius: 24px;
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ===== Villa Detail Modal ===== */
.villa-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1000;
}
.villa-modal.open { display: flex; align-items: center; justify-content: center; }
.villa-modal-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.villa-modal-content {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  width: 95%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  animation: modalSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.villa-modal-content::-webkit-scrollbar {
  display: none;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.villa-modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin-right: 16px;
  margin-top: 16px;
  margin-bottom: -56px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.villa-modal-close:hover { background: rgba(0,0,0,0.85); transform: scale(1.1); }

/* Gallery */
.villa-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #F1F5F9;
}
.villa-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
  cursor: zoom-in;
}

/* Image Lightbox */
.image-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.image-lightbox.open { display: flex; }
.image-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.05); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 1;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 600px) {
  .image-lightbox { padding: 12px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 1.6rem; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--dark-navy);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.gallery-nav:hover { background: var(--white); transform: translateY(-50%) scale(1.05); }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-counter {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}
.villa-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  overflow-x: auto;
}
.gallery-thumb {
  width: 72px; height: 52px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.gallery-thumb:hover { opacity: 0.8; }
.gallery-thumb.active { opacity: 1; border-color: var(--primary-blue); }

/* Modal Info */
.villa-modal-info { padding: 28px 32px 32px; }
.villa-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}
.villa-modal-header h2 {
  font-size: 1.8rem;
  color: var(--dark-navy);
  font-weight: 600;
}
.villa-modal-location {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}
.villa-modal-location i { color: var(--primary-blue); margin-right: 4px; }
.villa-modal-price-box { text-align: right; flex-shrink: 0; }
.villa-modal-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-navy);
}
.villa-modal-price-box span {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.villa-modal-rating {
  margin-bottom: 20px;
  color: #FBBF24;
  font-size: 1rem;
}
.villa-modal-rating span { color: var(--dark-navy); font-weight: 600; margin-left: 4px; }
.villa-modal-rating .review-count { color: var(--text-muted); font-weight: 400; font-size: 0.9rem; }

.villa-modal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 20px;
}
.villa-spec {
  background: #F8FAFC;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--dark-navy);
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.villa-spec i { color: var(--primary-blue); }

.villa-modal-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.villa-modal-features h3 {
  font-size: 1.1rem;
  color: var(--dark-navy);
  font-weight: 600;
  margin-bottom: 14px;
}
.villa-features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.villa-feature-tag {
  background: rgba(77, 183, 254, 0.08);
  color: var(--dark-navy);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px;
}
.villa-feature-tag i { color: var(--primary-blue); font-size: 0.85rem; }

.villa-modal-actions {
  display: flex;
  gap: 14px;
}
.btn-book-modal {
  flex: 1;
  text-align: center;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 24px;
  font-size: 1.05rem;
}
.btn-outline-modal {
  flex: 1;
  text-align: center;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 24px;
  font-size: 1.05rem;
  background: transparent;
  color: var(--dark-navy);
  border: 2px solid #E2E8F0;
  border-radius: 24px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-outline-modal:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

/* Modal Responsive */
@media (max-width: 700px) {
  .villa-modal-content { width: 100%; max-height: 100vh; border-radius: 0; }
  .villa-gallery-main { border-radius: 0; aspect-ratio: 4/3; }
  .villa-modal-info { padding: 20px 20px 28px; }
  .villa-modal-header { flex-direction: column; gap: 8px; }
  .villa-modal-header h2 { font-size: 1.4rem; }
  .villa-modal-price { font-size: 1.4rem; }
  .villa-modal-price-box { text-align: left; }
  .villa-modal-specs { flex-wrap: wrap; gap: 8px; }
  .villa-spec { padding: 10px 12px; font-size: 0.85rem; }
  .villa-modal-actions { flex-direction: column; }
  .gallery-thumb { width: 60px; height: 44px; }
  .villa-gallery-thumbs { padding: 10px 16px; gap: 8px; }
  .villa-modal-close { top: 10px; margin-right: 10px; margin-top: 10px; }
  .villa-features-grid { gap: 8px; }
  .gallery-nav { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .villa-modal-info { padding: 16px 16px 24px; }
  .villa-modal-header h2 { font-size: 1.2rem; }
  .villa-modal-price { font-size: 1.2rem; }
  .villa-spec { padding: 8px 10px; font-size: 0.8rem; }
  .gallery-thumb { width: 52px; height: 38px; }
}

/* ===== Scroll Animations: Bounce from Left & Right ===== */
.fade-left,
.fade-right,
.fade-up {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.fade-left {
  transform: translateX(-80px);
}

.fade-right {
  transform: translateX(80px);
}

.fade-up {
  transform: translateY(60px);
}

.fade-left.visible,
.fade-right.visible,
.fade-up.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Bounce variation — stronger spring effect */
.bounce-left,
.bounce-right {
  opacity: 0;
  will-change: opacity, transform;
}

.bounce-left {
  animation: none;
  transform: translateX(-100px);
}

.bounce-right {
  animation: none;
  transform: translateX(100px);
}

.bounce-left.visible {
  animation: bounceInLeft 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bounce-right.visible {
  animation: bounceInRight 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bounceInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    transform: translateX(15px);
  }
  80% {
    transform: translateX(-6px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceInRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  60% {
    opacity: 1;
    transform: translateX(-15px);
  }
  80% {
    transform: translateX(6px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Stagger delay for child elements */
.stagger-1 { transition-delay: 0.1s; animation-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; animation-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; animation-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; animation-delay: 0.4s; }

/* ===== Mobile Menu Toggle ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
/* When menu is open, hide the hamburger — the drawer has its own × close button */
.nav-toggle.active {
  opacity: 0;
  pointer-events: none;
}

/* ===== Button Hover States ===== */
.btn-primary:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 183, 254, 0.35);
}
.btn-primary:active {
  transform: translateY(0);
}

/* ===== Responsive ===== */

/* --- Tablet Landscape & Small Desktop --- */
@media (max-width: 1200px) {
  .main-container { grid-template-columns: 80px 1fr; }
  .right-column { grid-column: 2; flex-direction: row; }
  .widget-panel, .map-widget { flex: 1; height: auto; }
}

/* --- Tablet Portrait --- */
@media (max-width: 900px) {
  /* Remove backdrop-filter on mobile: it creates a containing block
     that would trap the fixed-position .nav-menu inside the navbar */
  .top-navbar.navbar-transparent {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(11, 22, 44, 0.55);
  }

  /* Override transparent-navbar white link color — mobile slide-out menu has white background */
  .top-navbar.navbar-transparent .nav-menu a {
    color: var(--text-dark);
  }
  .top-navbar.navbar-transparent .nav-menu a:hover,
  .top-navbar.navbar-transparent .nav-menu a.nav-active {
    color: var(--primary-blue);
  }

  /* Navbar */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff !important;
    flex-direction: column;
    padding: 0;
    gap: 0;
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 106;
    overflow-y: auto;
    color: var(--text-dark);
  }
  .nav-menu.open {
    right: 0;
  }

  /* Top logo section */
  .nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #F1F5F9;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    position: relative;
  }
  .nav-mobile-logo {
    height: 60px;
    width: auto;
  }
  .nav-mobile-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0,0,0,0.05);
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--dark-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }
  .nav-mobile-close:hover { background: rgba(0,0,0,0.12); }

  /* Links section */
  .nav-mobile-links {
    display: flex;
    flex-direction: column;
    padding: 14px 14px;
    flex: 1;
    gap: 4px;
  }
  .nav-mobile-links a {
    padding: 13px 14px;
    font-size: 1rem;
    color: var(--text-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: none;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    position: relative;
  }
  .nav-mobile-links a > i:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(77,183,254,0.1);
    color: var(--primary-blue);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
  }
  .nav-mobile-links a > span {
    flex: 1;
    font-weight: 500;
  }
  .nav-mobile-links a > .nav-arrow {
    display: block;
    font-size: 0.75rem;
    color: #CBD5E1;
    transition: transform 0.2s, color 0.2s;
  }
  .nav-mobile-links a:hover {
    background: #F8FAFC;
  }
  .nav-mobile-links a:hover > .nav-arrow {
    color: var(--primary-blue);
    transform: translateX(3px);
  }
  .nav-mobile-links a.nav-active {
    background: linear-gradient(135deg, rgba(77,183,254,0.12), rgba(77,183,254,0.04));
    color: var(--primary-blue);
  }
  .nav-mobile-links a.nav-active > i:first-child {
    background: var(--primary-blue);
    color: white;
  }
  .nav-mobile-links a.nav-active > .nav-arrow {
    color: var(--primary-blue);
  }

  .nav-mobile-links a.nav-mobile-booking-btn {
    margin-top: 12px;
    background: var(--dark-navy);
    color: #ffffff !important;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(8, 17, 47, 0.25);
  }
  .nav-mobile-links a.nav-mobile-booking-btn > span {
    color: #ffffff;
  }
  .nav-mobile-links a.nav-mobile-booking-btn > i:first-child {
    width: auto;
    height: auto;
    background: transparent;
    color: #ffffff;
    font-size: 1rem;
  }
  .nav-mobile-links a.nav-mobile-booking-btn > span {
    flex: 0 0 auto;
  }
  .nav-mobile-links a.nav-mobile-booking-btn:hover {
    background: var(--primary-blue);
  }
  .nav-mobile-links a.nav-mobile-booking-btn:hover > i:first-child {
    background: transparent;
    color: #ffffff;
  }

  /* Bottom contact section */
  .nav-mobile-contact {
    display: block;
    padding: 20px 24px 28px;
    border-top: 1px solid #F1F5F9;
    background: #F8FAFC;
  }
  .nav-mobile-contact-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .nav-mobile-contact-icons {
    display: flex;
    gap: 10px;
  }
  .nav-menu a.nav-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border-bottom: none !important;
    padding: 0 !important;
  }
  .nav-menu a.nav-contact-icon > i { color: #ffffff; }
  .nav-contact-icon:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
  .nav-contact-icon.phone { background: var(--dark-navy); }
  .nav-contact-icon.line { background: #06C755; }
  .nav-contact-icon.fb { background: #1877F2; }
  .nav-contact-icon.ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

  /* Mobile Menu Overlay — transparent, sits below navbar (z:100) so drawer links stay clickable */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 90;
  }
  .menu-overlay.active {
    display: block;
  }

  /* Hero */
  .hero-wrapper { min-height: 70vh; padding: 30px 16px; }
  .hero-bg-img { object-position: center 30%; }
  .hero-content h1 { font-size: 2rem !important; }
  .hero-content p { font-size: 1.05rem !important; }

  /* Booking Bar */
  .top-booking-bar {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    width: 92%;
  }
  .booking-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  .booking-input { min-width: 140px; }

  /* Main Grid */
  .main-container {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    width: 92%;
  }
  .main-container > * {
    width: 100%;
    min-width: 0;
    grid-column: auto !important;
  }
  .sidebar {
    flex-direction: row;
    justify-content: center;
    padding: 14px 0;
    gap: 16px;
    border-radius: 16px;
    order: -1;
  }
  .nav-icon { width: 42px; height: 42px; font-size: 1.2rem; border-radius: 12px; }
  .right-column { flex-direction: column; }

  /* Villa Overview */
  .villa-main-info { flex-direction: column; }
  .villa-main-image { width: 100%; height: 220px; }
  .villa-text-content h2 { font-size: 1.6rem; }
  .villa-price { font-size: 1.4rem; }
  .feature-box { min-width: 0; }

  /* Grids */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .villa-cards-grid, .promo-grid, .reviews-grid { grid-template-columns: 1fr; }

  /* How it works */
  .how-it-works-grid { grid-template-columns: 1fr !important; max-width: 400px; margin-left: auto !important; margin-right: auto !important; }

  /* Section */
  .section-title { font-size: 1.7rem; }
  .section-container { width: 92%; }
  .page-wrapper { padding: 40px 0; }

  /* CTA */
  .cta-section { padding: 50px 20px; }
  .cta-content h2 { font-size: 1.7rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn-lg { padding: 14px 32px; font-size: 1rem; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; gap: 0; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .footer-col:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 24px;
  }
  .footer-col:first-child .footer-desc { max-width: 340px; }
  .footer-col:first-child .footer-socials { justify-content: center; }

  .footer-col-accordion {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-col-accordion:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-col-accordion h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin: 0;
    padding: 18px 0;
    font-size: 1rem;
    user-select: none;
  }
  .footer-col-accordion h3::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: #94A3B8;
    transition: transform 0.3s ease;
  }
  .footer-col-accordion.open h3::after {
    transform: rotate(180deg);
    color: var(--primary-blue);
  }
  .footer-col-accordion .footer-col-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  .footer-col-accordion.open .footer-col-body {
    max-height: 600px;
    padding-bottom: 18px;
  }
  .footer-col-accordion .footer-links-col { gap: 12px; }
  .footer-col-accordion .footer-contact-item { margin-bottom: 12px; }
}

/* --- Mobile --- */
@media (max-width: 600px) {
  /* Navbar */
  .nav-container { padding: 8px 16px; }
  .nav-logo h1 { font-size: 1.3rem; }
  .nav-logo-img { height: 58px; }
  .nav-right .btn-icon { width: 36px; height: 36px; font-size: 1rem; }

  /* Hero */
  .hero-wrapper { min-height: 55vh; margin-top: -74px; padding-top: 100px; }
  .hero-content h1 { font-size: 1.6rem !important; }
  .hero-content p { font-size: 0.95rem !important; max-width: 90% !important; }

  /* Booking Bar */
  .top-booking-bar { width: 95%; }
  .booking-controls { flex-direction: column; width: 100%; }
  .booking-input { width: 100%; min-width: unset; justify-content: center; }
  .booking-title { font-size: 1.05rem; }

  /* Main Container */
  .main-container { width: 95%; gap: 16px; }

  /* Villa */
  .villa-overview { padding: 20px; }
  .villa-main-image { height: 180px; }
  .villa-text-content h2 { font-size: 1.4rem; }
  .features-grid { gap: 10px; }
  .feature-box { padding: 14px 8px; font-size: 0.85rem; }

  /* Stats */
  .stats-section { padding: 30px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-number { font-size: 2rem; }
  .stat-icon { width: 48px; height: 48px; font-size: 1.2rem; }

  /* Cards */
  .villa-card-img { height: 200px; }
  .promo-card { padding: 28px 20px; }
  .review-card { padding: 24px 20px; }

  /* FAQ */
  .faq-question { padding: 16px 18px; font-size: 0.95rem; }

  /* CTA */
  .cta-section { padding: 40px 16px; }
  .cta-content h2 { font-size: 1.4rem; }
  .cta-content p { font-size: 0.95rem; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; gap: 30px; }
  .footer-panel { padding: 40px 0 16px; }

  /* Section Titles */
  .section-title { font-size: 1.4rem; margin-bottom: 24px; }

  /* Scroll Animations — reduce distance on mobile */
  .fade-left { transform: translateX(-40px); }
  .fade-right { transform: translateX(40px); }
  .fade-up { transform: translateY(30px); }
  .bounce-left { transform: translateX(-50px); }
  .bounce-right { transform: translateX(50px); }
  @keyframes bounceInLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    60% { opacity: 1; transform: translateX(8px); }
    80% { transform: translateX(-3px); }
    100% { opacity: 1; transform: translateX(0); }
  }
  @keyframes bounceInRight {
    0% { opacity: 0; transform: translateX(50px); }
    60% { opacity: 1; transform: translateX(-8px); }
    80% { transform: translateX(3px); }
    100% { opacity: 1; transform: translateX(0); }
  }
}

/* --- Small Phones (≤ 480px) --- */
@media (max-width: 480px) {
  /* Prevent horizontal overflow + better Thai text wrap */
  html, body { overflow-x: hidden; }
  body { word-break: break-word; overflow-wrap: break-word; }
  img, video, iframe { max-width: 100%; height: auto; }

  /* Grids: stack everything that was 2-col */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature-box { flex: 1 1 100%; min-width: 0; }
  .features-grid { gap: 8px; }

  /* Touch targets ≥ 44px */
  .nav-icon { width: 44px; height: 44px; }
  .filter-tag { padding: 10px 18px; min-height: 40px; display: inline-flex; align-items: center; }
  .faq-question { padding: 16px 16px; min-height: 52px; }

  /* Hero */
  .hero-content h1 { font-size: 1.5rem !important; line-height: 1.3; }
  .hero-content p { font-size: 0.9rem !important; }

  /* Section titles */
  .section-title { font-size: 1.3rem; }

  /* Cards padding tighter */
  .villa-card-img { height: 180px; }
  .promo-card { padding: 22px 16px; }
  .review-card { padding: 20px 16px; }

  /* Footer */
  .footer-panel { padding: 32px 0 12px; }
  .footer-container { padding: 0 16px; }
}

/* --- Extra Small Phones (≤ 360px, iPhone SE 1st gen etc.) --- */
@media (max-width: 360px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.3rem !important; }
  .section-title { font-size: 1.2rem; }
  .nav-container { padding: 6px 12px; }
  .nav-logo-img { height: 50px; }
  body { padding-top: 64px; }
  .nav-right .btn-icon { width: 34px; height: 34px; }
  .section-container { width: 94%; }
}

/* ============================================
   Floating LINE Button
   ============================================ */
.floating-line-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #06C755;
  color: white;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 6px 24px rgba(6, 199, 85, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: floatingPulse 3s ease-in-out infinite;
}
.floating-line-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 32px rgba(6, 199, 85, 0.5);
}
body:has(.nav-menu.open) .floating-line-btn {
  display: none;
}

@media (max-width: 900px) {
  body:has(.nav-menu.open) .top-navbar {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body:has(.nav-menu.open) .nav-logo,
  body:has(.nav-menu.open) .nav-right {
    visibility: hidden;
  }
}
.floating-line-btn i {
  font-size: 1.4rem;
}
@keyframes floatingPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(6, 199, 85, 0.4); }
  50% { box-shadow: 0 6px 32px rgba(6, 199, 85, 0.6); }
}
@media (max-width: 600px) {
  .floating-line-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    font-size: 0.9rem;
  }
  .floating-line-text { display: none; }
  .floating-line-btn { padding: 14px; border-radius: 50%; }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark-navy);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--dark-navy);
  color: white;
  padding: 20px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-text {
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Kanit', sans-serif;
  transition: transform 0.2s, opacity 0.2s;
}
.cookie-btn:hover {
  transform: translateY(-2px);
}
.cookie-btn-accept {
  background: var(--primary-blue);
  color: white;
}
.cookie-btn-decline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.cookie-btn-decline:hover {
  border-color: white;
}
@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-text { font-size: 0.85rem; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; padding: 12px 12px; min-height: 44px; font-size: 0.85rem; }
}
@media (max-width: 360px) {
  .cookie-btn { font-size: 0.78rem; padding: 11px 8px; }
  .cookie-banner { padding: 14px 12px; }
}
