/* --- Fully Responsive CSS Rewrite --- */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body > *:not(footer) {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}


/* Backgrounds */
.background {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Sections */
section {
  min-height: 80vh;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  text-align: center;
}

#section1 {
  padding-top: 140px;
}

/* LOCATION FIX */
#section5 .location-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Image + Map side-by-side */
#section5 .location-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
  align-items: start;
}

/* Image */
#section5 .location-media img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}







/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background: rgba(3, 92, 18, 0.685);
  z-index: 10;
  overflow: hidden;
  box-sizing: border-box;
}

nav .logo img {
  height: 80px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.25);
}

header {
  height: auto;
}

/* Footer */
.footer {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.25rem;
}

/* Footer2*/
.footer2 {
  width: 100%;
  margin-left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background-color: rgba(0,0,0,0.6);
  color: white;
  padding: 0.25rem;
  font-size: 0.9rem;
}
/* When modal is open, keep footer aligned with content */
body.modal-open .footer {
  right: var(--scrollbar-width);
}


/* --- Content Boxes (Global) --- */
.content-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 900px;
  width: 90%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: #333;
}

.content-box img {
  width: 100%;
  height: auto;
  max-width: 350px;
  border-radius: 10px;
  object-fit: cover;
}

.content-box.reverse {
  flex-direction: row-reverse;
}

.content-box .text {
  flex: 1;
  text-align: left;
}

.content-box h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #1f4e1f;
}

/* --- CONTENT BOX WITH RIGHT-HAND GALLERY --- */
.content-box.with-gallery {
  display: grid;                    /* switch from flex to grid for this box only */
  grid-template-columns: 1fr 1.3fr; /* text | gallery */
  align-items: start;
  gap: 2rem;
}

/* Make gallery sit neatly on the right inside the content box */
.content-box.with-gallery .gallery {
  display: grid;
  grid-template-columns: 1fr;  /* ONE IMAGE PER ROW */
  gap: 12px;
  justify-self: end;           /* sticks it to the right */
  width: 50%;
  max-width: 100%;            /* controls how big the column gets */
}

/* === 2x2 GALLERY ONLY WHEN INSIDE CONTENT BOX === */
.content-box.with-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 images per row */
  gap: 12px;
  justify-self: end;      /* keeps gallery to the right */
  width: 90%;
  max-width: 420px;       /* controls overall gallery size */
}

/* make sure images fill their grid cells */
.content-box.with-gallery .gallery img {
  width: 100%;
}


/* Keep your existing image styling but ensure full width */
.content-box.with-gallery .gallery img {
  width: 100%;
}


/* Section-specific styling */
#section2 .content-box,
#section3 .content-box,
#section4 .content-box {
  background: rgba(255, 255, 255, 0.8);
}

/* --- Gallery Wrapper --- */
#gallery-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 2rem auto;
}

/* --- DESKTOP: 4-wide grid --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1000px;
}

/* --- Shared image styling --- */
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* --- TEXT UNDER GALLERY --- */
.gallery-text {
  background: rgba(255,255,255,0.7);
  padding: 1rem 2rem;
  margin-top: 1rem;
  border-radius: 12px;
  max-width: 700px;
  color: #105a02;
}

/* --- TABLET / SMALL LAPTOP: 3-wide grid --- */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- MOBILE: 2×2 grid --- */
@media (max-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery img {
    border-width: 2px;
  }
}

/* --- VERY SMALL PHONES: 1 image per row --- */
@media (max-width: 400px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .content-box.with-gallery {
    grid-template-columns: 1fr; /* stack on mobile */
  }

  .content-box.with-gallery .gallery {
    justify-self: center;
    width: 100%;
    max-width: 400px;
  }
}


/* --- Booking Modal --- */

/* Freeze background when modal open */
body.modal-open .background {
    right: var(--scrollbar-width);
}
body.modal-open .background {
    opacity: 1 !important;
    transition: none !important;
    left: 0 !important;
    transform: none !important;
}




/* Dim + blur content boxes when modal is open */
body.modal-open .content-box {
  filter: blur(3px) brightness(0.5);
  transition: filter 0.25s ease;
}

/* Keep modal content sharp */
.modal-content {
  filter: none !important;
}

.book-btn {
  background-color: #007bff;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  color: #333;
  box-shadow: 0 6px 25px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  z-index: 3001;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

.modal-content form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  box-sizing: border-box;
}

/* Modal Input Styling */
.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.modal-content button[type="submit"] {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 1rem;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }
}
body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width);
}
/* Prevent background images from shifting when body is fixed */
.background {
  background-attachment: fixed;
  left: 0 !important;
  top: 0 !important;
}
.content-box {
  margin-bottom: 5%;
}


/* ================================
   FULL MOBILE RESPONSIVE FIXES
   ================================ */

/* Small tablets & large phones */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .content-box,
    .content-box.reverse {
        flex-direction: column;
        text-align: center;
    }

    .content-box img {
        max-width: 90%;
    }

    /* UPDATED MOBILE GALLERY FIX */
    .gallery {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery img {
        max-width: 160px;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
}


/* Very small phones (iPhone SE, older Android) */
@media (max-width: 480px) {

  nav ul {
    flex-direction: column;
    gap: 0.3rem;
    background: rgba(0,0,0,0.4);
    padding: 0.5rem;
    border-radius: 10px;
  }

  nav a {
    font-size: 0.8rem;
  }

  section {
    padding: 3rem 0.5rem;
  }

  .gallery img {
    width: 80%;
    height: auto;
  }
}
@media (max-width: 480px) {
  nav ul {
    flex-direction: row !important;
    gap: 0.6rem;
    background: none !important;
    padding: 0 !important;
  }

  nav a {
    font-size: 0.8rem;
    padding: 0.3rem 0.4rem;
  }
}

/* FORCE smaller navbar on phones */
@media screen and (max-width: 500px) {

  nav {
    padding: 4px 6px !important;
  }

  nav .logo img {
    height: 45px !important;
  }

  nav ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.3rem !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
  }

  nav ul li {
    margin: 0 !important;
    padding: 0 !important;
  }

  nav a {
    font-size: 0.70rem !important;
    padding: 0.2rem 0.25rem !important;
    white-space: nowrap !important;
  }
}
/* Fix blurry background images on mobile */
.background {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  transform: translateZ(0);
  will-change: transform;
}

/* FIX MOBILE BACKGROUNDS ------------------------ */
@media (max-width: 600px) {
  .background {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: fixed !important;            /* KEEP FIXED */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
}
@media (max-width: 600px) {
  #section1 {
    padding-top: 0 !important;
  }
}
@media (max-width: 600px) {
  header {
    height: 50px !important;
  }
}

/*Map style------------------*/
.map-square {
   display: block;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;   /* makes it a perfect square */
  border: 3px solid #105a02;
  border-radius: 10px;
  display: block;         /* prevents inline whitespace issues */
}
@media (max-width: 600px) {
 .map-square {
  width: 88%;
  }
}
@media (max-width: 768px) {
  #section5 .location-media {
    grid-template-columns: 1fr;
  }
}
/* Hide on phones */
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
}
.policy-link {
  margin-top: 12px;
  text-align: center;
}

.policy-link a {
  color: #302f2f;
  font-size: 14px;
  text-decoration: underline;
}

.policy-link a:hover {
  color: #1e05ff;
}