/* Base styles */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Open Sans', sans-serif;
}
body {
  opacity: 0;
  transition: opacity 1s ease;
}

body.loaded {
  opacity: 1;
}

/* Font styles */
.bebas {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  word-spacing: 4px;
  letter-spacing: 2px;
}
.bebas-link {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.sofia {
  font-family: "Sofia", cursive;
  font-weight: 400;
  font-style: normal;
}
.arapey-regular {
  font-family: "Arapey", serif;
  font-weight: 400;
  font-style: normal;
}
.arapey-regular-italic {
  font-family: "Arapey", serif;
  font-weight: 400;
  font-style: italic;
}

/* Colors */
.text-g {
  color: #107232;
}
.green-bg {
  background-color: #107232;
}

/* Image adjustment */
.h-adjust {
  object-fit: cover;
  height: 400px;
  border-radius: 12px;
}

/* Responsive image adjustment */
@media (max-width: 991.98px) {
  .h-adjust {
    height: auto;
    object-fit: contain;
    margin-top: 1rem;
  }
  .top-mobile {
    margin-top: 2rem;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .h-adjust {
    height: 450px;
    object-fit: cover;
  }
}

/* Room feature items */
.room-feature-item {
  background-color: #e6f0e9;
  border: 2px solid #107232;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0.75rem;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}
.room-feature-item:hover {
  background-color: #cce5d1;
  border-color: #38a169;
  cursor: default;
}
.room-feature-item i {
  font-size: 1.5rem;
  color: #107232;
}
.room-feature-item small {
  font-size: 0.5rem;
  color: #4a5a43;
  text-align: center;
  display: block;
  user-select: none;
  line-height: 1.1;
}

/* Facilities section layout */
.facilities-section {
  padding: 4rem 2rem;
  margin: 3rem auto;
  max-width: 1100px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Facility card styling */
.facility-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(16, 114, 50, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(16, 114, 50, 0.15);
}

/* Facility icon */
.facility-icon-lg {
  font-size: 2.5rem;
  color: #107232;
  transition: color 0.3s ease;
}
.facility-card:hover .facility-icon-lg {
  color: #38a169;
}

/* Titles and underlines */
.facility-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #107232;
}
.underline {
  width: 40px;
  height: 3px;
  background-color: #38a169;
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* Facility description */
.facility-desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Navbar base */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1100;
  background-color: transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
  backdrop-filter: none;
  box-shadow: none;
}
.navbar.navbar-green {
  background-color: rgba(16, 114, 50, 0.85) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.navbar-dark {
  background-color: transparent !important;
}
.navbar .nav-link {
  position: relative;
  color: white !important;
  font-weight: 500;
  font-size: larger;
  padding-bottom: 4px;
  margin-left: 10px;
  margin-right: 10px;
  transition: color 0.3s ease;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #d0e7d5;
  transition: width 0.3s ease;
  border-radius: 2px;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #d0e7d5 !important;
}
.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after {
  width: 100%;
}

/* Hero section */
.hero {
  height: 100vh;
  background: url('../img/hero.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-position-y: 0;
  transition: background-position 0.2s ease-out;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.hero-content {
  position: relative;
  z-index: 1001;
}
.hero h1 {
  font-size: 3rem;
  font-weight: bold;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

/* Buttons */
.btn-outline-light {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border-radius: 6px;
}
.btn-outline-light:hover {
  background: linear-gradient(45deg, #107232, #38a169);
  color: white !important;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(16, 114, 50, 0.5);
}

/* About section */
.about-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}
.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Carousel */
.carousel-inner img {
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

/* Contact section */
.contact-section {
  margin: 6rem auto;
  padding: 4rem 2rem;
  background-color: #f5fdf8;
  border: 2px solid #cce5d1;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(16, 114, 50, 0.1);
  max-width: 1100px;
}
@media (max-width: 1025px) {
  .contact-section {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}
.contact-section .facility-icon {
  font-size: 2.5rem;
  color: #107232;
  transition: transform 0.3s ease, color 0.3s ease;
}
.contact-section .facility-icon:hover {
  transform: scale(1.2);
  color: #38a169;
}
.contact-section p {
  font-size: 1rem;
  color: #333;
}
.contact-section input.form-control,
.contact-section textarea.form-control {
  border: 1px solid #107232;
  transition: border-color 0.3s ease;
  box-shadow: none;
}
.contact-section input.form-control:focus,
.contact-section textarea.form-control:focus {
  border-color: #38a169;
  box-shadow: 0 0 5px rgba(56, 161, 105, 0.5);
  outline: none;
}

/* Text alignment */
.text-left {
  text-align: left;
}

/* Thank you message */
#thankYouMsg {
  font-size: 1rem;
  color: #107232;
}

/* Fade in effect */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  background-color: rgba(16, 114, 50, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 12px 12px 0 0;
  padding: 1rem;
  color: #d0e7d5;
  text-align: center;
  position: relative;
  z-index: 1050;
}
.footer .container {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}
.footer h5 {
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  color: #e0f2e9;
}
.footer p {
  font-weight: 300;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.footer a {
  color: #d0e7d5;
  margin: 0 1rem;
  font-size: 1.8rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer a:hover {
  color: #ffffff;
  transform: scale(1.2);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: #d0e7d5;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 1200;
}
.back-to-top:hover {
  color: #ffffff;
  transform: scale(1.3);
}

/* Burger menu */
.menu-toggle {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1150;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.bar {
  width: 100%;
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-origin: center;
  position: relative;
}
.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translateY(14px);
}
.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-14px);
}

/* Room heading */
.room-heading h2 {
  font-size: 3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  margin-top: 3rem;
}
.room-heading p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

/* Overlay menu (mobile) */
@media (max-width: 991.98px) {
  .overlay-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    background-color: #107232;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease, visibility 0.5s;
    z-index: 1050;
    padding-top: 8rem;
    overflow-y: auto;
  }
  .overlay-menu.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  .overlay-menu .nav-link {
    font-size: 1.5rem;
    color: white !important;
    padding: 1rem 2rem;
    display: block;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .overlay-menu.show .nav-link {
    opacity: 1;
    transform: translateX(0);
  }
  .overlay-menu.show .nav-link:first-of-type {
    border-top: 1px solid white;
  }
  .overlay-menu.show .nav-link:last-of-type {
    border-bottom: 1px solid white;
  }
  .about-section {
    padding: 2rem 0;
  }

  /* Reduce padding and margin for main sections on mobile */
  section,
  .restaurant-section,
  .beach-bar-section,
  .weddings-section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Override Bootstrap spacing */
  .mb-5 {
    margin-bottom: 1.5rem !important;
  }
  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Reduce margin between rows or fade-in containers */
  .row.fade-in,
  .fade-in {
    margin-bottom: 1.5rem !important;
  }

  /* Tighten heading margin */
  .room-heading {
    margin-bottom: 1rem !important;
  }
}

/* Overlay menu (desktop) */
@media (min-width: 992px) {
  .overlay-menu {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    transform: none;
    padding-top: 0;
    overflow: visible;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
  }
  .overlay-menu .nav-link {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Menu section */
.menu-section {
  text-align: center;
  margin: 4rem auto 6rem;
  padding: 2rem;
}
.menu-section h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  color: #107232;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}
.menu-section .btn {
  background-color: #107232;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.menu-section .btn:hover {
  background-color: #38a169;
}

/* Unified image size for sections */
.img-unified {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .img-unified {
    height: auto;
    object-fit: contain;
  }
}
