/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Cambria, "Times New Roman", serif;
  background:  linear-gradient(to right, #cec48b, #c2e59c);
  color: #000000;
}

/* Header & Nav */
header {
 background: linear-gradient(to right, #829169, #152802);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  color: #ffffff;
  flex-wrap: wrap;
}



/* Responsive adjustments */
@media (max-width: 600px) {
  header .logo {
    font-size: 1.2rem;
    padding: 0.3rem 0.8rem;
    margin: 0 auto;             /* Center the logo */
    display: block;
  }

  header {
    justify-content: center;
  }
}

.logo {
  margin-right: auto; /* Push everything else to the right */
}

.logo img {
  height: 96px;   /* Adjust as needed */
  width: 120px;    /* Maintains aspect ratio */
  margin-left: 20px; /* Optional: push away from edge */
}



nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-size: 1.1rem;
}

/* Reset button-like appearance */
.dropbtn {
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

/* On hover - optional underline or change color */
.dropbtn:hover {
  text-decoration: underline;
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 1000;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #152802; /* ✅ Set correct background */
  color: #fff; /* Optional: white text for better contrast */
  min-width: 280px;
  z-index: 1001;
  margin-top: 5px;
  border-radius: 5px;
  max-height: 800px;
  overflow-y: auto;
}



.dropdown-content a {
  color: rgb(255, 254, 254);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #d8f0fd;
}

.show {
  display: grid;
}


/* Base menu toggle style */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  background: none;
  border: none;
  z-index: 999; /* Keep it on top */
}

/* Responsive styling */
@media (max-width: 768px) {
  header {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* below header */
    right: 0;
    background-color: #152802;
    width: 100%;
    z-index: 998;
    padding: 1rem 0;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    border-top: 1px solid #333;
    color: white;
    text-align: left;
  }
}

.villa-hero {
  padding: 20px 30px;
  background-color: linear-gradient(to right, #cec79ca8, #c2e59c);
  font-family: Cambria, "Times New Roman", serif;
}

.villa-info h2 {
font-family: Cambria, "Times New Roman", serif;
  font-size: 28px;
  margin-bottom: 5px;
  color: #152802;
}




.villa-info p {
  font-family: Cambria, "Times New Roman", serif;
  font-size: 16px;
  font-weight: bold;
  color: #152802;
}
.photo-gallery {
  padding: 5px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.gallery-large {
  grid-row: 1 / span 2;
  position: relative;
}

.gallery-large img,
.gallery-small img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* Or use 4 / 3 or 3 / 2 depending on your content */
  object-fit: cover;     /* Still keeps clean layout */
  border-radius: 12px;
  display: block;
  margin-top: 1px;
}


.view-photos {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-small {
  position: relative;
  height: 100%;
}

.gallery-small.top {
  grid-row: 1 / 2;
}

.gallery-small.bottom {
  grid-row: 2 / 3;
  
}
.gallery-small.bottom img,
.gallery-small.bottom .overlay,
.gallery-small.bottom a {
  border-radius: 12px;
  overflow: hidden;
  height:auto ;
}


.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.overlay a {
  text-decoration: none;
  color: white;
  font-size: x-large;
  font-weight: bold; 
}

/* Responsive layout */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-large {
    grid-row: auto;
  }

  .gallery-small.top,
  .gallery-small.bottom {
    grid-row: auto;
  }
}

.about-villa {
  padding: 30px 20px 10px 20px; /* Reduced bottom space */
  font-family: Cambria, "Times New Roman", serif;
  color: #152802;
  text-align: center;
}

.about-container {
  font-family: Cambria, "Times New Roman", serif;
  padding: 10px;
  color: #152802;
  max-width: 1000px;
  margin: 0 auto;              /* ✅ centers the block itself */
  text-align: center;          /* ✅ centers the text inside */
}

.about-container h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

.about-container p {
  font-size: 20px;
  font-weight: 500;
  color: #152802;
  line-height: 1.5;
  margin-bottom: 1px;
}



/* Headers */

.amenities-section {
  font-family: Cambria, "Times New Roman", serif;
  padding: 10px;
  color: #152802;
}
.amenities-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}
.popular-amenities {
  margin-bottom: 20px;
}
.popular-label {
  display: inline-block;
  background-color: #152802;
  color: white;
  padding: 6px 14px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
}
.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
  font-size: 18px;
}
.icon-row div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #152802;
  font-weight: 100;
}
.amenity-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.group {
  flex: 2 1 220px;
}
.group h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #ffffff;
  font-weight: 100;
}
.group ul {
  list-style: none;
  padding-left: 0;
}
.group li {
  margin-bottom: 6px;
  color: #152802;
  font-size: 14px;
}
.show-more, .show-less {
  color: #152802;
  text-decoration: none;
  font-weight: 100;
  margin-top: 20px;
  display: inline-block;
}
.show-more:hover, .show-less:hover {
  text-decoration: underline;
}
.nearby {
  font-family: Cambria, "Times New Roman", serif;
  color: #152802;
}

.nearby h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.nearby-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nearby-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  background-color: #a7bc92;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.nearby-item i {
  color: #152802;
  font-size: 18px;
}

.nearby-item:hover {
  transform: translateY(-3px);
  color: #152802;
}

.villa-layout-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  align-items: flex-start;
}

.villa-layout-wrapper .amenities-section,
.villa-layout-wrapper .nearby {
  flex: 1 1 500px;
  max-width: 600px;
}




/* FOOTER */

.site-footer {
  background:linear-gradient(to right, #829169, #152802); /* Dark blue background */
  color: white;
  padding: 3rem 2rem;
  font-family: Cambria, "Times New Roman", serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  
}

.footer-column {
  min-width: 180px;
  flex: 1;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  color: #ffcc66; /* Gold-yellow heading */
}

.footer-column h4::after {
  content: "";
  display: block;
  width: 200px;
  height: 2px;
  background: #ffcc66;
  margin-top: 0.5rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.6rem;
}

.footer-column ul li a {
  text-decoration: none;
  color: #ddd;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #fff;
}




@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 20px;
    padding: 20px 10px;
  }

  .logo {
    position: static;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
  }

  .search-container {
    padding: 8px 20px;
    width: 100%;
    max-width: 300px;
  }

  .search-container input {
    width: 100%;
  }
}