* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr)); /* Responsive columns */
    gap: 1.25em; /* Space between the cards */
    margin: 2%; /* Optional margin for the container */
    /grid-auto-rows: minmax(15%, auto); /* Ensure consistent row height */
    grid-auto-rows: 0.85fr;

}


.card {
    background-color: #fff; /* Background color of each card */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Card shadow */
    transition: transform 0.3s ease-in-out; /* Smooth hover effect */
    overflow: hidden;
    min-width: 240px;

}


.card:hover {
   / transform: scale(1.01);
}

.card-image {
    height: 50%;
    max-height: 50%;
}

.card-image img {
    min-width: 100%;
    height: auto;
    /object-fit: cover;
}

.card-details {
    padding: 0.75em;
    height: 50%;
    cursor: pointer;

}
.card-details a { text-decoration: none;} /* to hide the underline */

.card-price {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0.25em;
    height: 20%;
    max-height: 20%;
    color: #2a2b25;
}

.card-info {
    margin-bottom: 0.1em;
    height: 50%;
    max-height: 50%;
}

.card-title {
    font-size: 1.3em;
    line-height: 110%;
    /margin-bottom: 0.1em;
    font-weight: normal;
    overflow: hidden;
    height: 70%;
    max-height: 70%;
    color: #2a2b25;
}

.card-location, .card-size {
    color: #454931;

}
.card-location img, .card-footer img {
    height: 1em;
    max-height: 1em;
    margin-left: 0.5em;
    margin-right: 0.5em;

}

.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 1em;
    color: #454931;
    height: 30%;
    max-height: 30%;
}

.card-footer .symbol {
    margin-right: 16px;
}

.bedrooms,
.bathrooms,
.area {
    display: flex;
    align-items: center;
}


@media (max-width: 1024px) {
   .card-container {
      grid-template-columns: repeat(auto-fill, minmax(42.5%, 1fr)); /* Responsive columns */
      /margin: 5%; /* Optional margin for the container */
      /grid-auto-rows: auto; /* Ensure consistent row height */

   }
    .card {
        width: 100%;
    }
}

@media (max-width: 538px) {
   .card-container {
      grid-template-columns: repeat(auto-fill, minmax(90%, 1fr)); /* Responsive columns */
      margin: 5%; /* Optional margin for the container */
      /grid-auto-rows: minmax(7.5%, auto); /* Ensure consistent row height */



   }
    .card {
        width: 100%;
    }
}

/* ---------------------------------------------------------------------------- */
    /* Card image container */
.card-image {
    position: relative;
    width: 100%;
    overflow: hidden; /* Hide images that overflow */
    height: 60%;
}

/* Image slider container (will hold all images) */
.image-slider {
    display: flex;
    transition: transform 0.5s ease; /* Smooth transition for sliding images */
    /height: 100%;
    /max-height: 100%;

}

/* Individual images inside the slider */
.slider-image {
    width: 100%;
    height: 100%;
    /object-fit: cover; /* Ensure images cover the container */
}

/* Navigation arrows (for desktop) */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
    display: none;
}
/* Show the arrows when the user hovers over the card (on PC) */
.card-image:hover .prev, .card-image:hover .next {
    display: block; /* Make the arrows visible when the card is hovered */
}

.prev {
    right: 10px;  /* ar */
}

.next {
    left: 10px;   /* ar */
}

/* Hide navigation arrows on mobile and enable swipe functionality */
@media (max-width: 768px) {
    .prev, .next {
        display: none; /* Hide arrows on mobile */
    }
}
/* ------------------------------------------------------------------------------------ */

/* design main and side div in for products category view */
.frame {
  display: flex;
}
.main {
flex: 83%;
  max-width: 83%;
  min-width: 83%;
}
.side {
  flex: 17%;
  max-width: 17%;
  min-width: 17%;
  background-color: #f9ffe6;
  opacity: 70%;
  padding: 20px;
}
/* mobile side is autodiv x appear only on mobiles */
.mobile_side {
  display: none;
}


@media screen and (max-width: 700px) {
  .frame {
    display: block;
    max-width: 100%;
  }
  .card-container {
    max-width: 100%;
  }
  .main {
  min-width: 100%;
  }
  .side {
    display: none;
  }
  .mobile_side {
    display: block;
    overflow-x: auto;
}
  /* button to show or hide departments @ mobile view */
  .mobile_side button {
  text-align: center;
  width: 100%;
  max-width: 100%;
  background: green;
  font-size: 1.25em;
  // font-weight: bold;
  color: white;
  padding: 0.25em;
  border: none;
  }
}
/* ----------------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------- */
/* design category side div */
.side .department h4 { margin:0%; color: #004d4d; }
.side a { margin:0%; margin-left:12%; text-decoration: none; color: #264d00; font-size: 17; }
.side a:hover { color: green;}
.side .department a h4 { margin: 0%; margin-left:6%; color: #264d00;  }
.side .department a h4:hover { color: green; }
.side .multi_filter { text-align : center; margin-top: 1em;}
.side .multi_filter label { float: left; margin-left: 10%;}
.side .multi_filter input[type=submit] { margin-top: 0.5em; padding: 0.3em; }

/* design mobile side only div */
.mobile_side .department h4 { margin:0%; color: #004d4d; }
.mobile_side a { margin:0%; margin-right:12%; text-decoration: none; color: #264d00; font-size: 17; }
.mobile_side a:hover { color: green;}
.mobile_side .department a h4 { margin: 0%; margin-left:6%; color: #264d00;  }
.mobile_side .department a h4:hover { color: green; }

/* --------------------------------------------------------------------------------------------------------- */
/* breadcrumb */
/* bread crumb css ( the reference navigation under navigation bar )   */

ul.breadcrumb {
  padding: 10px 16px;
  list-style: none;
  /background-color: green;
}
ul.breadcrumb li {
  display: inline;
  font-size: 20px;
}
ul.breadcrumb li+li:before {
  padding: 8px;
  color: black;
  content: ">\00a0";

}
ul.breadcrumb li a {
  color: green;
  background-color: white;
  padding: 0.35em;
  border-radius: 40px;
  opacity: 67%;
  text-decoration: none;
}
ul.breadcrumb li a:hover {
  color: #01447e;
  text-decoration: underline;
}
/* --------------------------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* pagination design */

.pagination{
text-align: center;
margin-top: 1em;
margin-bottom: 1em;
}

/* Pagination links */
.pagination a {
  color: green;
  float: center;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  border-radius: 50%;
  font-family: inherit;
  font-size: 17px;
  font-weight: bold;

}

/* Style the active/current link */
.pagination a.active {
  background-color: #70db70;
  color: white;
}

/* Add a grey background color on mouse-over */
.pagination a:hover:not(.active) {background-color: #ddd;}

/* ----------------------------------------------------------------------------------------------------------- */
/* design of star favorite on image cards */
    .fav-div-2 {
      position: absolute;
      top: 1em;
      right: 1em;
      cursor: pointer;
    }

    .fav-div-2 img {
      width: 1.3em;
      height: 1.3em;
      cursor: pointer;
    }