:root {
  --forest-green: #2d5a27;
  --spring-green: #4a7c59;
  --leaf-green: #8cb369;
  --water-blue: #4d9de0;
  --sky-blue: #a1c6ea;
  --earth-brown: #8b5a2b;
  --sand: #e6ccb2;
  --sunset: #e76f51;
  --deep-blue: #264653;
  --light-blue: #8ecae6;
  --resort-primary: #2d5a27;
  --resort-accent: #4a7c59;
  --white: #fff;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f9f9f9;
  /*overflow-x: hidden;*/
}

/* Nature-inspired elements */
.leaf-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232d5a27' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.water-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234d9de0' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Navbar */
.navbar {
  padding: 1rem;
  transition: all 0.4s ease;
  background-color: rgba(45, 90, 39, 0.95);
}

.navbar.sticky {
  background-color: rgba(45, 90, 39, 0.98);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--sand) !important;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin-left: 15px;
  transition: 0.3s;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--sand) !important;
}

.navbar .navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--sand);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar .navbar-nav .nav-link.active {
  color: var(--sand) !important;
}

.btn-reserve,
.btn-resort {
  background-color: var(--white);
  color: var(--resort-primary);
  border: none;
  transition: 0.3s;
  border-radius: 30px;
  padding: 10px 25px;
}

.btn-reserve:hover,
.btn-resort:hover {
  background-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../photo/g1.jpg") center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, #f9f9f9, transparent);
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-outline-light {
  border-radius: 30px;
  padding: 10px 25px;
  transition: 0.3s;
}

.btn-outline-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Section Titles */
.section-title {
  color: var(--resort-accent);
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--resort-primary),
    var(--leaf-green)
  );
  bottom: -10px;
  left: 25%;
  border-radius: 3px;
}

/* Cards */
.room-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: 0.3s;
  background-color: white;
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: white;
  transition: 0.3s;
  border-top: 4px solid var(--resort-primary);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  transition: 0.3s;
}

.gallery-item img {
  transition: 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
  opacity: 0;
  transition: 0.3s;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Booking Section */
.booking-section {
  background: linear-gradient(
    135deg,
    var(--resort-primary),
    var(--resort-accent)
  );
  color: white;
  padding: 60px 0;
}

.booking-section h2 {
  color: white;
}

.booking-section .btn-light {
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 600;
  transition: 0.3s;
}

.booking-section .btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background-color: var(--deep-blue);
  color: white;
  padding: 60px 0 30px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--resort-primary),
    var(--leaf-green)
  );
}

.footer h5 {
  color: var(--sand);
  margin-bottom: 1.5rem;
}

.footer a {
  color: #ddd;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: var(--sand);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: #fff;
  font-size: 1.2rem;
  transition: 0.3s;
}

.social-icons a:hover {
  background-color: var(--sand);
  color: var(--deep-blue);
  transform: translateY(-3px);
}

/* Modal */
.resort-modal .modal-content {
  border-radius: 15px;
  overflow: hidden;
  border: none;
}

.resort-modal-header {
  background-color: var(--resort-primary);
  color: white;
  border-bottom: none;
}

.resort-modal-input {
  border-radius: 8px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  transition: 0.3s;
}

.resort-modal-input:focus {
  border-color: var(--resort-primary);
  box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.25);
}

.resort-modal-btn {
  background-color: var(--white);
  color: var(--resort-primary);
  border-radius: 30px;
  padding: 8px 20px;
}

/* Nature elements */
.nature-badge {
  background-color: var(--leaf-green);
  color: white;
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: left;
  padding: 0;
  margin: 0;
  /* To ensure stars look clickable */
  cursor: pointer;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 2.5em; /* Large stars */
  color: #ccc;
  padding: 0 5px;
  transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: gold;
}

/* Form Specific Styles */
.testimonial-form-card {
  background-color: #f8f9fa; /* Light background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.form-group {
  margin-bottom: 20px;
}

.rating-star {
  color: gold;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .navbar-nav .nav-link {
    margin-left: 0;
    padding: 10px 0;
  }

  .section-title::after {
    width: 70%;
    left: 15%;
  }

  .booking-section .text-lg-end {
    text-align: left !important;
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .navbar.sticky {
    right: 0;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .btn-reserve,
  .btn-resort,
  .btn-outline-light {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .hero-content .btn {
    margin-right: 0 !important;
  }
}
