﻿/* ============================================
   FILTER POPUP COMPONENT
   ============================================ */
#filterPopup {
  position: fixed;
  z-index: 9999;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 57px);
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  background-color: #fff;
}

#filterPopup.top {
  top: 80px;
}

#filterPopup.filter-open {
  transform: translateY(0);
}

#filterPopup.filter-closed {
  transform: translateY(100%);
}

/* ============================================
   SEARCH TITLE CONTAINER
   ============================================ */
#filterPopup .filter-title-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex: 0 0 56px;
  box-shadow: 0px 4px 4px 0 rgba(0, 0, 0, 0.05);
  line-height: 56px;
}

#filterPopup .filter-title-container .back-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

#filterPopup .filter-title-container h3 {
  width: 100%;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 18px;
}

/* ============================================
   FILTER CONTENT
   ============================================ */
#filterPopup .filter-content {
  padding-top: 20px;
  padding-inline: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

/* ============================================
   CHECKBOX COMPONENT
   ============================================ */
#filterPopup .filter-content #filter-by-section {
  margin: 50px 0 20px 0;
}

#filterPopup .filter-content #filter-by-section .DoubleDropDown .first-label {
  width: 50%;
}

#filterPopup .filter-content #filter-by-section .DoubleDropDown .second-label {
  width: 50%;
}

#filterPopup .filter-content #filter-by-section .filter-checkboxes {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: auto;
  gap: 10px;
}

#filterPopup .filter-content #filter-by-section .filter-checkboxes .filter-btn {
  display: block;
  flex: 1 1 calc(50% - 5px);
  height: 48px;
  margin: 0;
  padding: 10px 10px;
  border: none;
  color: black;
  border-radius: 4px;
  cursor: pointer;
  text-align: right;
  border: 1px solid var(--medium-grey, #767676);
}

#filterPopup .filter-content #filter-by-section .filter-checkboxes .filter-btn.selected {
  border: 1px solid var(--violet, #ff4382);
  background-color: rgba(255, 67, 130, 0.1);
}

#filterPopup .filter-content #filter-by-section .filter-checkboxes .filter-btn img {
  margin-left: 5px;
}

#filterPopup .filter-content #filter-by-section .filter-checkboxes .icon {
  width: 24px;
  height: 24px;
}

/* ============================================
   FILTER SUBMIT CONTAINER
   ============================================ */
#filterPopup .filter-submit-container {
  width: 100%;
  padding: 20px;
}

#filterPopup .filter-submit-container #filter-submit {
  line-height: 48px;
  width: 100%;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: var(--supernova);
  color: var(--Shark);
  cursor: pointer;
  border: 0;
  font-size: 28px;
  font-weight: 600;
  box-shadow: 0px 4px 3px 0 rgba(254, 199, 0, 0.12);
}


/* ============================================
  FILTER BACKDROP
  ============================================ */
.filter-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  -moz-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  -webkit-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.filter-backdrop.show {
  opacity: 1;
  visibility: visible;
}
