/* NAVBAR */
.z-nav {
  background: white;
  padding: 15px 0;
}

.nav-logo {
  height: 100px;
}

.nav-link:hover{
  color: teal;
}


/* HERO SECTION */
.hero {
  background-image: url('images/nicate-lee-kT-ZyaiwBe0-unsplash.jpg');
  background-size: cover;
  background-position: center;
  height: 60vh; 
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  
}

.hero-overlay h1 {
  font-size: 40px;
  font-weight: 800;
}


/* SEARCH BOX */
.hero-search {
  margin-top: 20px;
  display: flex;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  width: 90%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
 

.hero-search input {
  flex: 1;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  outline: none;
}

.hero-search button {
  border: none;
  background: none;
  padding: 0 20px;
}

/* Hide the X icon by default */
.close-icon {
  display: none;
  font-size: 28px;
}

/* Style icons */
.navbar-toggler .toggler-icon {
  font-size: 28px;
  line-height: 1;
  filter: invert(1); 

}

/* When navbar is OPEN, show X and hide hamburger */
.navbar-toggler[aria-expanded="true"] .open-icon {
  display: none;
}

.navbar-toggler[aria-expanded="true"] .close-icon {
  display: inline-block;
}

/* Optional: make toggle button background clear */
.navbar-toggler {
  border: none;
  background: none;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    


  .z-nav {
    background: transparent !important;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 50;
    box-shadow: none;
  }


  .hero {
    height: 55vh; /* slightly smaller */
  }

  .hero-overlay h1 {
    font-size: 28px;
  }

  .hero-search {
    width: 95%;
  }

  .nav-logo {
    height: 30px;
  }
}

@media (max-width: 768px) {
  .navbar-collapse {
    background: white;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
  }

  .nav-link {
    color: black !important;
    font-size: 18px;
    margin: 8px 0;
  }
}

@media (max-width: 576px) { /* Extra small screens */
  .features-icon i {
    font-size: 1rem; /* smaller icon */
  }
  .features-icon h4 {
    font-size: 1rem; /* smaller text */
  }
  .features-container {
    gap: 1rem; /* reduce spacing */
  }
}

.hover-shadow:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  transform: translateY(-3px);
  transition: 0.3s;
}

/* Responsive scaling for small screens */
@media (max-width: 576px) {
  .hover-shadow i {
    font-size: 2rem; /* shrink icon */
  }
  .flex-basis-45 {
    flex-basis: 45%; /* reduce width for small screens */
  }
}

/* =========================
   BODY
========================= */
body {
  background-color: #f5f7fa;
  font-family: Arial, sans-serif;
  padding: 20px 0;
}

/* =========================
   ADS GRID CONTAINER
========================= */
.ads-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two cards per row */
  gap: 20px;
  padding: 20px 0;
}

@media (max-width: 768px) {
  .ads-container {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}

/* =========================
   AD CARD
========================= */
.ad-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.ad-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

/* =========================
   IMAGE
========================= */
.ad-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* =========================
   CARD BODY
========================= */
.ad-card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.ad-card-body h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: capitalize;
}

.ad-card-body .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #20c997;
  margin-top: 6px;
}

/* =========================
   CATEGORY BADGE
========================= */
.badge-category {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 8px;
}

.badge-item {
  background-color: #e7f5ff;
  color: #1c7ed6;
}

.badge-accommodation {
  background-color: #e6fcf5;
  color: #0ca678;
}
