.hostel__heading {
  display: flex;
  width: 100%;
  padding: 5rem 6.375rem;
  justify-content: space-between;
  align-items: center;
}
.hostel__heading .heading-1 {
  margin-top: 0.5rem;
  color: var(--Green, #0B6836);
}
.hostel__heading .content {
  color: var(--Green, #0b6836);
  width: 42.75rem;
  font-family: 'Big Shoulders';
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 2.25rem */
}

.hostel__list {
  width: 100%;
  padding: 0rem 6.25rem 5rem 6.25rem;
}

.hostel__list__filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hostel__list__filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.hostel__filter__wrapper {
  display: flex;
  align-items: center;
}

.hostel__filter {
  display: inline-flex;
  height: 2.75rem;
  padding: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0px 3px 40px 1px rgba(214, 214, 221, 0.4);

  color: #727272;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 1.05rem */
  letter-spacing: 0.00875rem;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  position: relative;
  border: 3px solid #fff;
}

.hostel__filter.active {
  color: #fff;
  border: 3px solid #3ba959;
  background: var(--Green, #0b6836);
}
.hostel__filter.active::before {
  content: '';
  position: absolute;
  right: -0.5rem;
  top: -0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: url('/wp-content/uploads/2025/05/Frame-2147259234.svg') no-repeat center
    center / contain;
}
.hostel__filter img {
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
  margin-right: 0.625rem;
}
.hostel__filter.active img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(0deg) brightness(104%)
    contrast(103%);
}

.sort {
  display: flex;
  width: 17rem;
  height: 2.75rem;
  padding: 0.75rem 1rem;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--Black, #000);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 1.05rem */
  letter-spacing: 0.00875rem;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  z-index: 2;
}

.sort img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.sort .sort-by-value {
  color: #727272;
}

.sort .sort__list {
  display: flex;
  width: 100%;
  flex-direction: column;
  border-radius: var(--12, 0.75rem);
  background: #fff;
  box-shadow: 0px 3px 40px 1px rgba(214, 214, 221, 0.4);
  position: absolute;
  top: 100%;
  left: 0;
  overflow: hidden;
  margin-top: 0.5rem;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.sort .sort__list.open {
  visibility: visible;
  opacity: 1;
}

.sort .sort__list .item {
  padding: 0.75rem 1.25rem;
  border-radius: var(--12, 0.75rem);
  background: #fff;
  transition: all 0.3s ease-in-out;
  color: #6b7280;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 1.4rem */
}
.sort .sort__list .item.active {
  background: #d0efd0;
  color: #252c32;
}

.list-item {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.hostel__filter-mb {
  display: none;
}

.pagination__list {
  margin-top: 3.75rem;
}

@media (max-width: 639.98px) {
  .hostel__list {
    width: 100%;
    padding: 0rem 1.25rem;
  }
  .hostel__heading {
    display: flex;
    width: 100%;
    padding: 0 1.25rem;
    flex-direction: column;
        align-items: start;
  }
  .hostel__heading .content {
    font-size: 1.125rem;
    width: 100%;
    margin-top: 1rem;
    letter-spacing: -0.0125rem;
  }

  .hostel__list__filter {
    display: none;
  }

  .hostel__filter-mb {
    position: relative;
    display: block;
  }

  .hostel__filter-mb__trigger {
    display: flex;
    margin-top: 2rem;
    height: 2.75rem;
    padding: 0.75rem 1rem;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.5rem;
    background: #fff;
    color: #727272;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; /* 1.05rem */
    letter-spacing: 0.00875rem;
    text-transform: uppercase;
  }

  .hostel__filter-mb__trigger img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
  }

  .filter-mobile {
    padding: 0.75rem 0rem;
    border-radius: 0.75rem 0.75rem 0rem 0rem;
    border: 1px solid #dcdcdc;
    background: #fff;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.04);
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 99;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
  }
  .filter-mobile.open {
    visibility: visible;
    transform: translateY(0);
  }
  .filter-mobile__title {
    display: flex;
    padding: 0rem 1.25rem;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    color: var(--titile, #1c1c1c);
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 1.5rem */
    margin-bottom: 1.5rem;
  }

  .filter-mobile .btn-close {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
  }

  .hostel__list__filter-wrap {
    padding: 0 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }

  .sort__list-mb {
    margin-bottom: 1.5rem;
  }
  .sort__list-mb .item {
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    color: var(--Body-text, #333);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: 160%; /* 1.4rem */
    letter-spacing: -0.03125rem;
    transition: all 0.3s ease-in-out;
  }
  .sort__list-mb .item.active {
    background: #edf8f2;
    color: var(--Green, #0b6836);
  }
  .filter-mobile .btn {
    width: calc(100% - 2.5rem);
    margin: 1.25rem;
  }

  .list-item {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pagination__list {
      margin-top: 2rem;
    }
}

/* skeleton card */
.card-loading {
  height: 18.8125rem;
  width: 100%;
  border-radius: 1rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.2s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}
