.toggle-mobile-filters svg {
  height: 20px;
  width: 20px;
  color: #881337;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99999999;
}

.modal-content {
  background-color: #fff;
  margin: 0 auto;
  /* border-radius: 10px; */
  width: 100%;
  height: 100%;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Close button */
.close-modal {
  align-self: flex-end;
  margin: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: none;
  border: 2px solid black;
  font-size: 24px;
  cursor: pointer;
}

#mobile-filters #filters {
  position: relative;
  /* top: 50px; */
  margin-bottom: 30px;
}

.mobile-filter-title {
  border: 1px solid rgba(0, 0, 0, 0.6);
  padding: 15px 0;
  text-align: center;
  width: 240px;
  cursor: pointer;
  font-size: large;
  font-weight: 500;
}

/* Extra Small Devices, Phones */
@media only screen and (max-width: 650px) {
  .toggle-mobile-filters {
    display: block;
  }

  /* #filters {
    display: none;
  } */
  .mobile-filter-title {
    width: 95vw;
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  }

  #mobile-filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 2em;
    font-size: 12px;
    font-family: monospace;
    margin: 5px 0 15px;
  }

  .mobile-filter-item {
    display: flex;
    width: 300px;
    height: fit-content;
    justify-content: space-between;
    align-items: center;
    padding: 3px 5px;
    border: 1px solid rgba(0, 0, 0, 0.2);
  }

  .mobile-filter-item span {
    max-width: 90%;
  }

  .toggle-mobile-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px;
    padding: 10px;
    border: 2px solid #881336;
    background-color: transparent;
    color: #000000;
    cursor: pointer;
  }

  .view {
    display: none;
  }

  #filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 10px;
    width: 100vw;
    /* position: absolute; */
    z-index: 2000;
  }

  .filter-title {
    position: relative;
    width: 95vw;
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  }

  .filter-title::after {
    content: "<";
    display: inline-block;
    transform: rotate(var(--rotate-angle, 90deg)); /* Default is 90deg */
    transition: transform 0.3s ease; /* Optional: Smooth transition */
  }

  .range-slider-container {
    position: relative;
    width: 200px;
    height: 20px;
    margin-bottom: 20px;
  }

  .range-box {
    position: relative;
    display: none;
    box-shadow: none;
    border-bottom: 1px solid #88133676;
  }

  .selected-filter {
    background: radial-gradient(
      circle at top left,
      #881337 3%,
      transparent 3.2%
    );
  }
}

@media only screen and (min-width: 601px) {
  .toggle-mobile-filters {
    display: none;
  }

  .modal {
    display: none !important;
  }
}
