.search-content {
  position: relative;
  width: 100%;

  .search-box {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background-color: var(--accent);
    color: var(--accent-foreground);

    #search {
      width: 100%;
      background-color: transparent;
      border: none;
      outline: none;
      color: #fff;
      font-size: 1.2rem;
    }

    .search-btn {
      width: 2rem;
      height: 2rem;
      border: none;
      background: none;
      outline: none;
      background-image: url('../images/search-btn_4a177b2e.webp');
      background-size: 80%;
      background-repeat: no-repeat;
      background-position: center;
      cursor: pointer;
    }
  }

  .property {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin-top: 1rem;
    align-items: center;

    &:before {
      content: 'LOCATION:';
      font-weight: 700;
    }
  }

  .search-cat {
    display: flex;
    margin-top: 1rem;
    align-items: center;
    gap: 2rem;

    a {
      padding: 0.5rem 0;
      font-weight: 700;
      text-transform: uppercase;
      cursor: pointer;

      &.active {
        border-bottom: solid 2px var(--primary);
      }
    }

    &:before {
      content: 'FILTER:';
      font-weight: 700;
    }
  }

  .filter-container {
    grid-column: 1 / span 2;
    margin: 1rem 0;
    background-color: var(--accent);

    .cat-group {
      display: flex;
      padding: 0 1rem;
      gap: 1rem 2rem;
      flex-wrap: wrap;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition-property: max-height, padding, opacity;
      transition: 0.3s $ease;

      &.active {
        opacity: 1;
        padding: 1rem;
        max-height: 50vh;
      }
    }
  }

  input[type='checkbox'],
  input[type='radio'] {
    display: none;
  }

  input[type='checkbox'] + label,
  input[type='radio'] + label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;

    &::before {
      content: '';
      border: solid 2px var(--primary);
      width: 1rem;
      height: 1rem;
    }
  }

  input[type='radio'] + label::before {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 100vmax;
    /* outline: solid 2px var(--primary); */
    border: solid 1.5px var(--foreground);
  }

  input[type='checkbox']:checked + label::before {
    background-image: url('../images/check_9084ea86.png');
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
  }

  input[type='radio']:checked + label::before {
    background-color: var(--primary);
  }
}

.store-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem 1rem;

  .store-content {
    img {
      width: 100%;
      /* max-height: 204px; */
      aspect-ratio: 4/3;
    }

    .contents {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: 1rem 0;

      .title {
        margin: 0 0 0.25rem;
        font-size: var(--text-lg);
        font-weight: 600;
        text-align: left;
      }

      .location {
        margin: 0 0 0.25rem;
        font-size: var(--text-sm);
        font-weight: 700;
        text-transform: uppercase;
        text-align: left;
      }

      .location {
        font-weight: 400;
      }

      .benefits {
        margin: 1rem 0 0;
        font-style: italic;
        font-weight: 400;
        font-size: var(--text-sm);
        text-align: left;
      }
    }
  }
}

@media (max-width: 900px) {
  .search-content .property,
  .search-content .search-cat {
    flex-wrap: wrap;
    gap: 1rem;

    &::before {
      display: block;
      width: 100%;
      text-align: center;
    }
  }

  .search-content .search-cat {
    padding-top: 1rem;
    border-top: solid 1px #555;
  }

  .store-container {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .store-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .store-container {
    grid-template-columns: 1fr;
  }
}
