:root {
  --primary: #1A2C24;   /* Deep Jungle Green */
  --gold: #D4AF37;      /* Luxury Gold */
  --light: #F4F4F4;
  --text: #333;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Manrope', sans-serif; color: var(--text); background: #fff; line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--primary); }

/* NAVBAR & RESPONSIVE MENU */
.navbar {
  position: fixed; width: 100%; top: 0; z-index: 1000;
  padding: 1.2rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container { width: 90%; max-width: 1200px; margin: auto; display: flex; justify-content: space-between; align-items: center; }

.logo { font-weight: 700; font-size: 1.4rem; color: var(--primary); text-decoration: none; letter-spacing: 1px; }
.logo span { color: var(--gold); }

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { 
  text-decoration: none; 
  color: var(--primary); 
  font-weight: 600; 
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-2px);
}

.nav-links a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  font-weight: 700;
}

/* Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.hero-content { text-align: center; color: white; max-width: 700px; padding: 20px; z-index: 3; position: relative; }
.hero-content h1 { font-size: 3.5rem; color: white; margin-bottom: 1rem; line-height: 1.1; }
.hero-content p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }
.subtitle { letter-spacing: 4px; font-size: 0.8rem; text-transform: uppercase; display: block; margin-bottom: 10px; }

/* BUTTONS */
.btn-gold {
  background: var(--gold); color: white; padding: 12px 30px; 
  text-decoration: none; border-radius: 4px; font-weight: 600;
  transition: 0.3s; display: inline-block; border: none; cursor: pointer;
}
.btn-gold:hover { background: #b89628; }

/* SECTIONS */
.section { 
  padding: 80px 0; 
  border-top: 1px solid #e0d5c8;
  position: relative;
}
.bg-light { background: var(--light); }
.container { width: 90%; max-width: 1100px; margin: auto; }
.section-title { font-size: 2.2rem; margin-bottom: 1.5rem; }
.center { text-align: center; margin-bottom: 3rem; }

/* ABOUT GRID */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: 10px 10px 0 var(--gold); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }

.features span { display: flex; align-items: center; font-size: 0.95rem; font-weight: 600; color: var(--primary); gap: 8px; }

.features i { color: var(--gold); min-width: 20px; }

/* ================= GALLERY GRID MASONRY ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 10px; /* base row height */
  gap: 15px;
}

.g-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.g-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.4s;
  object-fit: cover;
  min-height: 200px;
}

.g-item:hover img {
  transform: scale(1.05);
}

/* masonry trick */
.g-item {
  display: block;
}

.g-item img {
  display: block;
  width: 100%;
}

/* calculate how many rows an item should span based on image height */
.g-item {
  grid-row-end: span 1;
}

/* ================= GALLERY FILTER BUTTONS ================= */
.gallery-filters {
  text-align: center;
  margin-bottom: 25px;
}

.gallery-filters button {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  border: 1px solid var(--gold);
  background-color: white;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filters button:hover {
  background-color: var(--gold);
  color: white;
  transform: translateY(-2px);
}

.gallery-filters button.active {
  background-color: var(--gold);
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ================= GALLERY SHOW ALL BUTTON ================= */
.gallery-show-more-container {
  text-align: center;
  margin-top: 40px;
  display: none;
}

.btn-show-all {
  padding: 12px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-show-all:hover {
  background: #b89628;
  transform: translateY(-2px);
}

.btn-show-all.active {
  background: #b89628;
}

/* Desktop (desktop): Hide show all button */
@media (min-width: 769px) {
  .gallery-show-more-container {
    display: none !important;
  }
}

/* Mobile: Show limited images and show button */
@media (max-width: 768px) {
  .gallery-show-more-container {
    display: block;
  }
  
  .g-item:nth-child(n+9) {
    display: none;
  }
  
  .g-item:nth-child(n+9).show-all {
    display: block;
  }
}

/* ================= POLICIES ================= */
.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.policy {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.policy:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}
.policy h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary);
}
.policy h3 i {
  color: var(--gold);
  margin-right: 8px;
}
.policy p {
  font-size: 0.95rem;
  color: var(--text);
}

.justify-text {
  text-align: justify;
  line-height: 1.6;
  font-size: 0.95rem;
  color: var(--text);
}

/* ================= ROOM ARRANGEMENT ================= */
.room-details {
  display: grid;
  gap: 20px;
}
.room {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}
.room h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* ================= VILLA ARRANGEMENT ================= */
.villa-arrangement-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 50px; 
  align-items: center; 
}

.villa-image img { 
  width: 100%; 
  border-radius: 10px; 
  box-shadow: -10px 10px 0 var(--gold); 
}

.villa-details {
  padding-left: 20px;
}

.villa-details .room h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.villa-details .section-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.room-list {
  list-style: disc;
  margin-top: 10px;
  padding-left: 20px;
  line-height: 1.8;
}

/* ================= HOUSE RULES ================= */
.house-rules-intro {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  font-weight: 500;
}

.house-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.rule-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--gold);
}

.rule-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

.rule-header {
  background: linear-gradient(135deg, var(--primary) 0%, #2a4033 100%);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.rule-header i {
  font-size: 1.8rem;
  color: var(--gold);
  min-width: 30px;
  text-align: center;
}

.rule-header h3 {
  color: white;
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
}

.rule-details {
  padding: 20px;
}

.rule-details p {
  margin: 10px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.rule-details p:first-child {
  margin-top: 0;
}

.rule-details p strong {
  color: var(--primary);
  font-weight: 600;
}

.house-rules-cta {
  text-align: center;
  margin-top: 40px;
}

.house-rules-cta .btn-gold {
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
}

/* Responsive: Stack to 1 column on mobile */
@media (max-width: 768px) {
  .house-rules-grid {
    grid-template-columns: 1fr;
  }
  
  .rule-header {
    flex-direction: column;
    text-align: center;
  }
}

/* ================= FAQ ================= */
.faq-container {
  display: grid;
  gap: 15px;
  max-width: 800px;
  margin: auto;
}

.faq-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--light);
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}
.faq-question:hover {
  background: #f0f0f0;
}
.faq-answer {
  display: none;
  padding: 15px 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}
.faq-question .plus {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s;
}
.faq-question.active .plus {
  transform: rotate(45deg);
  color: var(--gold);
}


/* ================= PACKAGES SECTION ================= */
.packages-content {
  max-width: 900px;
  margin: 0 auto;
}

.package-highlight {
  text-align: center;
  margin-bottom: 40px;
}

.package-crown {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.rates-section {
  margin-bottom: 40px;
}

.rates-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 10px;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.rates-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-weight: 600;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.rate-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.rate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

.rate-label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1rem;
}

.rate-price {
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
}

.availability-section {
  text-align: center;
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.availability-text {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 600;
}


/* CONTACT SECTION */
.contact-section {
  background: #f6f6f6;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* CONTACT CARD */
.contact-card {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  box-sizing: border-box;
  max-width: 100%;
}

.contact-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: var(--primary);
}

/* CONTACT ROW */
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #eee;
  text-decoration: none;
  background: #fff;
  margin-bottom: 12px;
  transition: 0.3s ease;
  box-sizing: border-box;
  min-width: 0;
  flex-wrap: wrap;
}

.contact-row:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ICONS */
.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.whatsapp { background: #e9f8f0; color: #25d366; }
.email { background: #f2f2f2; color: #555; }
.facebook { background: #eef2ff; color: #1877f2; }
.instagram { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4); color: #fff; }

/* TEXT */
.contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #777;
  font-weight: 600;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* MAP */
.map-card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.map-card iframe {
  width: 100%;
  height: 340px;
  border: none;
  border-radius: 10px;
}

.map-card small {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* ================== FOOTER SECTION ================== */
.footer {
  background: var(--primary);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.f-brand {
  text-align: center;
}

/* Footer Logo: same style as header, but white */
.footer-logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: #ffffff; /* white for footer */
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.footer-logo span {
  color: var(--gold);
}

.footer-logo:hover {
  color: #ffffff; /* maintain white on hover */
}

/* Footer description text */
.f-brand p {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer bottom copyright */
.f-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.4;
}

.f-bottom a {
  display: inline;
  margin: 0 5px;
}

/* Footer social links (optional if you add icons) */
.f-socials {
  margin-top: 15px;
}

.f-socials a {
  color: white;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: 0.3s;
}

.f-socials a:hover {
  color: var(--gold);
}

/* ================== RESPONSIVE HERO ================== */
/* Desktop: Show image, hide video */
@media (min-width: 769px) {
  .hero-image {
    display: block;
  }

  .hero-video {
    display: none;
  }
}

/* Mobile: Show video, hide image */
@media (max-width: 768px) {
  .hero-image {
    display: none;
  }

  .hero-video {
    display: block;
  }

  .hero-content h1 { font-size: 2.5rem; }
}

/* ================== RESPONSIVE FOOTER ================== */
@media (max-width: 768px) {
  .footer-flex {
    flex-direction: column;
    gap: 10px;
  }

  .footer-logo {
    font-size: 1.3rem;
  }

  .f-brand p {
    font-size: 0.85rem;
  }

  .f-bottom {
    font-size: 0.65rem;
    line-height: 1.5;
  }
  
  .f-bottom a {
    margin: 0 3px;
  }

  /* Mobile: Villa Arrangement */
  .villa-arrangement-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .villa-details {
    padding-left: 0;
    order: -1;
  }

  .villa-image img {
    box-shadow: none;
    margin-bottom: 20px;
  }

  .villa-details .section-title {
    font-size: 1.8rem;
  }

  .room {
    padding: 15px;
  }

  .room-list {
    padding-left: 20px;
    font-size: 0.95rem;
  }

  .room-list li {
    margin-bottom: 8px;
  }
}

/* LIGHTBOX (IMPROVED) */
.lightbox {
  display: none; position: fixed; z-index: 2000; left: 0; top: 0;
  width: 100%; height: 100%; background-color: rgba(0,0,0,0.9);
  justify-content: center; align-items: center; flex-direction: column;
}
.lightbox-content { max-width: 85%; max-height: 80vh; border-radius: 5px; animation: zoom 0.3s; }
.close-lightbox {
  position: absolute; top: 20px; right: 35px; color: white;
  font-size: 40px; font-weight: bold; cursor: pointer; z-index: 2001;
}

/* Lightbox Nav Buttons */
.prev, .next {
  cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px;
  margin-top: -50px; color: white; font-weight: bold; font-size: 30px;
  transition: 0.3s ease; border-radius: 0 3px 3px 0; user-select: none;
  background-color: rgba(0,0,0,0.5); border: none; z-index: 2002;
  pointer-events: auto;
}
.next { right: 20px; border-radius: 3px 0 0 3px; }
.prev { left: 20px; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }

/* RESPONSIVE & MOBILE MENU */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .about-grid, .contact-dashboard, .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .tall, .wide { grid-column: span 1; grid-row: span 1; }
  
  /* Gallery fixes for mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }
  
  .g-item img {
    min-height: 220px;
    height: auto;
  }
  
  /* Contact card mobile fixes */
  .contact-card {
    padding: 20px;
  }
  
  .contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .contact-row {
    padding: 10px;
    gap: 12px;
    margin-bottom: 10px;
  }
  
  .contact-label {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }
  
  .contact-value {
    font-size: 0.9rem;
  }
  
  /* Map card mobile fixes */
  .map-card {
    padding: 15px;
  }
  
  .map-card iframe {
    height: 280px;
  }
  
  .map-card small {
    font-size: 0.8rem;
  }
  
  .footer-flex { flex-direction: column; gap: 20px; }

  .footer-logo {
    font-size: 1.3rem;
  }

  .f-brand p {
    font-size: 0.85rem;
  }

  .f-bottom {
    font-size: 0.75rem;
  }

  /* Mobile Menu Styles */
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    right: 0;
    top: 60px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: translateY(-150%); /* Hide by sliding up */
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
  }
  .nav-links.active {
    transform: translateY(0); /* Show by sliding down */
  }
}