/* 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;
  }
}
.destination-header {
  padding: 1.5rem 2rem;
  margin-top: 0px; /* Ensure space below navbar */
  border-top: 1px solid #ccc;
}

.destination-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.destination-title {
  font-size: 2rem;
  color: #152802;
  margin: 0;
  font-weight: bold;
}

/* Sort Dropdown */
.sort-dropdown {
  position: relative;
}

.sort-toggle {
  background: white;
  font-family: Cambria, "Times New Roman", serif;
  border: 2px solid #152802;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: bold;
  color: #152802;
  cursor: pointer;
  box-shadow: 0 2px 6px #152802;
}

.sort-menu {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 1000;
  min-width: 260px;
}

.sort-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sort-option:hover {
  background-color: #cec48b;
}

.sort-option.active {
  background-color: #cec48b;
}

.icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.label-group {
  display: flex;
  flex-direction: column;
}

.label {
  font-weight: bold;
}

.sub-label {
  font-size: 13px;
  color: #152802;
}

/* Responsive */
@media (max-width: 768px) {
  .destination-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

@media (max-width: 768px) {
  .destination-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem; /* Reduce gap if needed */
  }

  .sort-dropdown {
    width: 100%;             /* Optional: Full width dropdown */
    margin-top: 0.5rem;
  }

  .sort-toggle {
    width: 100%;             /* Optional: Make button span full width */
    text-align: center;        /* Align text for better UX */
  }

  .sort-menu {
    left: 0;                 /* Ensure dropdown aligns left on mobile */
    right: auto;
  }
}
}



.villa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 4rem;
  row-gap: 3rem;
  padding: 1rem 3rem 2rem 3rem; /* Reduced top padding */
  justify-content: center;
}

@media (max-width: 1024px) {
  .villa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .villa-grid {
    grid-template-columns: 1fr;
  }
}

.villa-card {
  background-color: #c2e59c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  min-height: 300px;
  /* Removed broken margin-top */
}


.villa-card:hover {
  transform: scale(1.03);
}

.villa-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.villa-info {
  padding: 1rem;
}

.villa-info h3 {
  margin: 0;
  font-size: 5rem;
  font-weight: 700;
}

.villa-info p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.enquire {
  color: #ff3c3c;
  font-weight: bold;
  cursor: pointer;
}

/* Image container (same as before) */
.image-container {
  position: relative;
}
.image-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

/* Beds | Baths | Guests Text */
.villa-details-text {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: #152802;
  color: #ffffff;
  padding: 4px 8px;
  font-size: 0.85rem;
  border-radius: 5px;
}

/* Heart Icon (Wishlist) */
.wishlist-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: white;
  color: #ff3c3c;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.wishlist-icon:hover {
  transform: scale(1.2);
}

/* Villa info styling */
.villa-info {
  padding: 1rem;
  background-color: #fff;
  border-radius: 0 0 10px 10px;
}


/* Heading and star side-by-side */
.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-header h3 {
  margin: 0;
  font-size: 1rem;
}

.location {
  font-size: 0.9rem;
  color: #444;
  margin: 2px 0 8px;
}

/* Star icon and number */
.star-section {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
  font-size: 1.1rem;
  cursor: pointer;
  user-select: none;
}
.star-section i {
  font-size: 1.2rem;
  color: #888;
  transition: color 0.3s ease;
}
.star-section.active i {
  color: gold; /* yellow star when active */
}

/* Enquire Now */
.enquire {
  color: #ff3c3c;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 6px;
}


/* 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%;
  }
}