/* === BASE VARIABLES & RESET === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary-green: #1A4731;
  --warm-gold: #C9A96E;
  --cream-bg: #FAF7F2;
  --body-text: #333333;
  --white: #ffffff;
  --hero-subtext: #e0e0e0;
  
  /* Hover States */
  --green-hover: #2D6A4F;
  --gold-hover: #B8860B;
  
  /* Utilities */
  --whatsapp-btn: #25D366;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
}

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

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background-color: var(--cream-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-green);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 500;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-gold {
  background-color: var(--warm-gold);
  color: var(--primary-green);
}

.btn-gold:hover {
  background-color: var(--gold-hover);
}

.btn-green {
  background-color: var(--primary-green);
  color: var(--white);
}

.btn-green:hover {
  background-color: var(--green-hover);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary-green);
}

/* === NAVIGATION HEADER === */
.navbar {
  background-color: var(--primary-green);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand img {
  height: 50px;
}

.nav-brand span {
  color: var(--warm-gold);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links li a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--warm-gold);
}

.mobile-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* === HERO SECTION === */
.hero {
  height: 100vh;
  min-height: 600px;
  background-image: linear-gradient(rgba(26, 71, 49, 0.7), rgba(26, 71, 49, 0.7)), url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?w=1600');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 80px; 
}

.hero .container {
  max-width: 800px;
}

.hero-location {
  color: var(--warm-gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-headline {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero-subtext {
  color: var(--hero-subtext);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 50px;
}

/* === TRUST BADGES === */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: var(--warm-gold);
  font-weight: 500;
  font-size: 1.1rem;
}

/* === ROOM CARDS === */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.room-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.room-card:hover {
  transform: translateY(-5px);
}

.room-img-wrapper {
  height: 250px;
  overflow: hidden;
}

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

.room-content {
  padding: 25px;
}

.room-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.room-desc {
  font-size: 0.95rem;
  color: var(--body-text);
  margin-bottom: 20px;
}

.room-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.room-amenity {
  background-color: var(--cream-bg);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary-green);
  border: 1px solid var(--warm-gold);
}

.room-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--warm-gold);
  margin-bottom: 20px;
  font-weight: 600;
}

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 300px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 71, 49, 0.95); /* brand green translucent */
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border: 2px solid var(--warm-gold);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--warm-gold);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.instagram-banner {
  background-color: var(--primary-green);
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
  border-radius: 8px;
}

/* === ABOUT PAGE === */
.about-hero {
  background-image: linear-gradient(rgba(26, 71, 49, 0.8), rgba(26, 71, 49, 0.8)), url('https://images.unsplash.com/photo-1551882547-ff40c63fe5fa?w=800');
  background-size: cover;
  background-position: center;
  padding: 150px 0 80px;
  text-align: center;
  color: var(--white);
}

.about-hero h1 {
  color: var(--warm-gold);
  font-size: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.value-card {
  background: var(--white);
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  border-bottom: 4px solid var(--warm-gold);
}

.value-card i {
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.pull-quote {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-green);
  text-align: center;
  max-width: 800px;
  margin: 60px auto;
  line-height: 1.4;
  font-style: italic;
  position: relative;
}
.pull-quote::before {
  content: '"';
  color: var(--warm-gold);
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: -30px;
  opacity: 0.5;
}

/* === FOOTER === */
.footer {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  color: var(--warm-gold);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer-text {
  color: var(--white);
  opacity: 0.9;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--warm-gold);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* === WHATSAPP FLOATING BUTTON === */
.wa-float {
  position: fixed;
  width: max-content;
  padding: 0 20px;
  height: 50px;
  bottom: 40px;
  right: 40px;
  background-color: var(--whatsapp-btn);
  color: #FFF;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.wa-float:hover {
  background-color: var(--green-hover);
  transform: scale(1.05);
}

.wa-icon {
  font-size: 24px;
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 900px) {
  .gallery-grid, .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 3rem;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .trust-badges {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--primary-green);
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .wa-float {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 500px) {
  .gallery-grid, .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--primary-green);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease-out;
}
#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.logo-loader {
  height: 160px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ================= CUSTOM SCROLLBAR ================= */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--cream-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--warm-gold);
}

/* ================= BACK TO TOP ================= */
#backToTop {
  position: fixed;
  bottom: 30px;
  left: 30px; /* Kept on left to avoid WhatsApp button on right */
  background: var(--warm-gold);
  color: var(--primary-green);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 998;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}
#backToTop:hover {
  background: var(--gold-hover);
  color: var(--white);
  transform: translateY(-3px);
}
@media (max-width: 768px) {
  #backToTop {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ================= LIGHTBOX MODAL ================= */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  border: 2px solid var(--warm-gold);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
.lightbox-close:hover {
  color: var(--warm-gold);
}
