/* General Styles */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Open Sans", sans-serif;
}

/* Content Wrapper */
.content-wrapper {
  display: flex;
  position: relative;
  overflow-y: visible;
}

/* Sidebar */
.sidebar {
  width: 40vw;
  height: 100vh;
  background: #f8f8f8;
  overflow-y: auto;
  position: relative;
  transition: all 0.3s ease;
}
.footer-section {
  margin-top: 0 !important;
}

.cd-filter {
  position: relative;
  
}

.filters {
  padding: 20px;
}
.cd-filter-trigger {
  height: 50px;
  line-height: 50px;
  width: 60px;
  /* image replacement */
  overflow: hidden;
  position: fixed;
  text-indent: 100%;
  color: #383838;
  white-space: nowrap;
  background: #ffffff14 url("../../images/svg/cd-icon-filter.svg") no-repeat center center;
  z-index: 990;
  display: none;
}
.cd-filter-trigger:hover {
  color: #6b6b6b;
  text-decoration: none;
}
.cd-filter-trigger.filter-is-visible {
  pointer-events: none;
}

@media only screen and (max-width: 768px) {
  .cd-filter-trigger {
      position: fixed;

      display: block;

      width: auto;
      left: 2%;
      text-indent: 0;
      color: #383838;
      text-transform: uppercase;
      font-size: 1.3rem;
      font-weight: 700;
      background-position: left center;
      -webkit-transition: color 0.3s;
      -moz-transition: color 0.3s;
      transition: color 0.3s;
      padding-left: 34px;

  }
  .no-touch .cd-filter-trigger:hover {
      color: #6b6b6b;
  }
  .cd-filter-trigger.filter-is-visible, .cd-filter-trigger.filter-is-visible:hover {
      color: #383838;
  }
}
.cd-filter-block {
  margin-bottom: 20px;
}

.cd-filter-block h4 {
  margin-bottom: 15px;
  color: #333;
  font-size: 18px;
  font-weight: bold;
}

.cd-filter-content {
  margin-left: 10px;
}

.cd-filter-content ul {
  list-style: none;
  padding: 0;
}

.cd-filter-content ul li {
  margin-bottom: 10px;
}

.cd-filter-content ul li label {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #555;
  cursor: pointer;
}

.cd-filter-content ul li input[type="checkbox"] {
  margin-right: 10px;
  width: 16px;
  height: 16px;
}

.price-range {
  margin-bottom: 20px;
}

#slider-range {
  margin-top: 10px;
}

.map {
  height: 200px;
  background-color: #eaeaea;
  margin-bottom: 20px;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 20px;
  overflow-y:visible;
}


/* Item Grid */
.itemssP {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  overflow-y: auto;

}

.item-wrapper {
  width: 100%;
}

.card {
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 15px;
}

.card-title {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

.card-text {
  font-size: 14px;
  color: #777;
}

.a-nodeco {
  text-decoration: none;
  color: inherit;
}

.a-nodeco:hover {
  text-decoration: none;
  color: inherit;
}

/* No Bikes Message */
.NoBikes {
  display: none;
  text-align: center;
  padding: 50px;
}

.NoBikes h2 {
  font-size: 24px;
  color: #333;
}

.NoBikes h5 {
  font-size: 18px;
  color: #777;
}

/* Stars */
.fa-star.y {
  color: #ffc107;
}

.fa-star.g {
  color: #ddd;
}

body.no-scroll {
  overflow: hidden;
}

/* Media Queries */

/* Tablet */
@media (max-width: 1135px) {
  .itemssP {
      grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .itemssP {
      grid-template-columns: repeat(1, 1fr);
  }

  .sidebar {
      position: fixed;
      left: -100%;
      width: 100%;
      z-index: 99;
      overflow-y: auto;
  }

  .sidebar.active {
      left: 0;
  }



  .main-content {
      padding-top: 60px;
  }

  .map {
      height: 150px;
  }
      /* Overlay */
      .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 98;
    }

    .overlay.active {
        display: block;
    }
}
