/* --- GLOBAL VARIABLES --- */
:root {
  --primary-green: #225a2e;
  --secondary-green: #2d7a3e;
  --light-green-bg: #f0f5f1;
  --dark-text: #212121;
  --body-text: #424242;
  --light-text: #757575;
  --background-white: #ffffff;
  --light-gray-border: #e0e0e0;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --section-padding: 5rem 2rem;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-alt: "Lato", sans-serif;
}

/* --- BASE AND RESET STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--body-text);
  background: var(--background-white);
  font-size: 16px;
  transition: opacity 0.8s ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-links a,
.btn,
.room-price,
.testimonial-author {
  font-family: var(--font-heading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-text);
  font-weight: 600;
}

/* --- PRELOADER STYLES --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light-green-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease-out, visibility 0s 0.6s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  border: 5px solid var(--light-gray-border);
  border-top: 5px solid var(--primary-green);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.section-padding {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-green);
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: calc(var(--spacing-xs) * -1) auto var(--spacing-lg);
  color: var(--light-text);
}

/* --- HEADER AND NAVIGATION --- */
header {
  background: var(--background-white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 90px;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  height: 110px;
  width: auto;
  object-fit: contain;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--primary-green);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.3s;
  margin-left: 2rem;
}

.nav-phone:hover {
  color: var(--secondary-green);
}

.nav-phone i {
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 600;
  transition: color 0.3s;
  cursor: pointer;
  position: relative;
  padding-bottom: 5px;
  font-size: 0.9rem;
  font-family: var(--font-heading);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-green);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-green);
}

main {
  padding-top: 90px;
}

/* --- BUTTONS --- */
.btn-small {
  padding: 0.7rem 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.btn,
.btn-primary,
.btn-secondary {
  padding: 0.9rem 2.2rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--background-white);
  border-color: var(--primary-green);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: var(--secondary-green);
  border-color: var(--secondary-green);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: var(--background-white);
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background: var(--light-green-bg);
  transform: translateY(-3px);
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1540541338287-41700207dee6?w=1600&q=80")
      center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--background-white);
  background-size: 110%;
  transition: background-size 10s ease-out;
}

body.loaded .hero {
  background-size: 100%;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  color: var(--background-white);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 1.2s forwards;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-alt);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 1.4s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- ABOUT SECTION GRID (INDEX PAGE) --- */
.about-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
  text-align: left;
}

.about-eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--spacing-xs);
}

.about-text h2 {
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: var(--spacing-sm);
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* --- AMENITIES SECTION --- */
.amenities-section,
.testimonials-section {
  background-color: var(--light-green-bg);
}

.amenities-list-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md) 3rem;
  margin-top: 3rem;
}

.amenity-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: all 0.6s ease-out;
}

.amenity-list-icon {
  font-size: 1.8rem;
  color: var(--primary-green);
  width: 40px;
  min-width: 40px;
  text-align: center;
  transition: transform 0.3s;
}

.amenity-list-item:hover .amenity-list-icon {
  transform: scale(1.1);
}

.amenity-list-text h4 {
  font-size: 1.1rem;
  color: var(--dark-text);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.amenity-list-text p {
  font-size: 0.9rem;
  color: var(--light-text);
  line-height: 1.5;
  font-family: var(--font-alt);
}

/* --- MAP & CONTACT SECTION --- */
.map-contact-section {
  padding: var(--section-padding);
}

.map-contact-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  height: 450px;
}

.map-container {
  width: 100%;
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.form-on-map {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  z-index: 10;
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
}

/* --- TESTIMONIALS SECTION --- */
.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  min-width: 100%;
  padding: 2rem 4rem;
  text-align: center;
  box-sizing: border-box;
}

.testimonial-card p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--body-text);
  font-family: var(--font-alt);
}

/* --- ROOMS & GALLERY STYLING --- */
.rooms-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.room-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.room-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.room-info {
  padding: 2rem;
}

.room-info h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.room-info ul {
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
}

.room-info ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
  color: var(--body-text);
}

.room-info ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary-green);
}

.room-price {
  font-size: 1.4rem;
  color: var(--primary-green);
  font-weight: 700;
  margin: 1.5rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 250px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* --- CONTACT PAGE STYLING --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  background: var(--background-white);
  padding: 3rem;
  border-radius: 10px;
  border: 1px solid var(--light-gray-border);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-details h3 {
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  color: var(--body-text);
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--primary-green);
  margin-right: 1rem;
  width: 25px;
  margin-top: 5px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--light-gray-border);
  border-radius: 5px;
  font-size: 1rem;
  font-family: var(--font-alt);
  background: #fdfdfd;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px var(--light-green-bg);
}

/* ✅ Added rule for map margin */
.contact-wrapper + .map-container {
  margin-top: 5rem;
}

/* --- SCROLL ANIMATION UTILITY --- */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.animate-fade-up {
  transform: translateY(50px);
}
.animate-fade-left {
  transform: translateX(-50px);
}
.animate-fade-right {
  transform: translateX(50px);
}
.animate-scale {
  transform: scale(0.9);
}
.animated.animate-on-scroll {
  opacity: 1;
  transform: translate(0) scale(1);
}
.form-on-map.animated {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* --- FOOTER --- */
footer {
  background: var(--dark-text);
  color: #ccc;
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--background-white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-section p,
.footer-section li {
  color: var(--light-text);
  margin-bottom: var(--spacing-xs);
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
}

.footer-section ul li a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}

.footer-section a:hover {
  color: var(--background-white);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid #424242;
  color: var(--light-text);
  font-size: 0.9rem;
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
}

.whatsapp-button {
  width: 65px;
  height: 65px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: pulse 2s infinite;
}

.whatsapp-button:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
}

.whatsapp-button i {
  color: white;
  font-size: 32px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5),
      0 0 0 15px rgba(37, 211, 102, 0.15);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  }
}

.whatsapp-tooltip {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 968px) {
  .about-section-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    padding: 2rem;
  }
  .form-on-map {
    position: static;
    transform: none;
    margin: var(--spacing-md) auto 0;
    transition: none;
  }
  .map-contact-container {
    height: auto;
  }
  .map-container {
    height: 350px;
    margin-top: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }

  .logo {
    height: 80px;
  }

  main {
    padding-top: 70px;
  }

  nav {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-white);
    flex-direction: column;
    padding: var(--spacing-sm) 0 0 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    gap: 0;
    text-align: center;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--spacing-sm);
    width: 100%;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-phone {
    position: static;
    transform: none;
    font-size: 0.85rem;
    margin: 0;
    padding: var(--spacing-sm);
    justify-content: center;
    border-top: 1px solid var(--light-gray-border);
    width: 100%;
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .amenities-list-container {
    grid-template-columns: 1fr;
  }
  .about-image {
    order: -1;
  }
  .testimonial-card {
    padding: var(--spacing-md);
  }

  /* ✅ START: Added Responsive Contact Section Styles */
  .container {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }

  .section-title {
    font-size: 1.9rem;
  }

  .contact-wrapper {
    padding: 1.5rem;
  }

  .contact-wrapper + .map-container {
    margin-top: 3rem; /* Reduce margin on smaller screens */
  }
  /* ✅ END: Added Responsive Contact Section Styles */

  /* WhatsApp button adjustments for mobile */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-button {
    width: 55px;
    height: 55px;
  }
  .whatsapp-button i {
    font-size: 26px;
  }
  .whatsapp-tooltip {
    display: none;
  }
}