/* =========================================
   LISTING TABS
========================================= */

.profile-listing-tabs {
  display:
    flex;

  align-items:
    center;

  gap:
    10px;

  width:
    100%;

  margin-top:
    14px;

  margin-bottom:
    20px;
}


.profile-listing-tab {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  min-width:
    145px;

  min-height:
    42px;

  padding:
    9px 18px;

  color:
    var(--navy);

  background-color:
    #ffffff;

  border:
    1px solid
    var(--border);

  border-radius:
    9px;

  font-size:
    0.82rem;

  font-weight:
    800;

  cursor:
    pointer;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}


.profile-listing-tab:hover {
  transform:
    translateY(-1px);

  border-color:
    var(--border-dark);

  background-color:
    #f8fafc;

  box-shadow:
    0 3px 10px
    rgba(
      15,
      23,
      42,
      0.06
    );
}


.profile-listing-tab.is-active {
  color:
    #ffffff;

  background-color:
    var(--navy);

  border-color:
    var(--navy);

  box-shadow:
    0 4px 12px
    rgba(
      15,
      23,
      42,
      0.14
    );
}


.profile-listing-tab-count {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  min-width:
    23px;

  height:
    23px;

  padding:
    0 7px;

  color:
    var(--navy);

  background-color:
    #eef2f7;

  border-radius:
    999px;

  font-size:
    0.68rem;

  font-weight:
    850;
}


.profile-listing-tab.is-active
.profile-listing-tab-count {
  color:
    var(--navy);

  background-color:
    #ffffff;
}


/* =========================================
   PANELS
========================================= */

.profile-listings-panel {
  display:
    none;

  width:
    100%;
}


.profile-listings-panel.is-active {
  display:
    block;
}


/* =========================================
   RESERVED SUBSECTION
========================================= */

.profile-listings-subsection {
  width:
    100%;

  margin-top:
    28px;

  padding-top:
    22px;

  border-top:
    1px solid
    #e2e8f0;
}


.profile-listings-subheading {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  margin-bottom:
    16px;
}


.profile-listings-subheading
.title {
  margin:
    0;
}


/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 900px) {

  .profile-listing-tabs {
    flex-wrap:
      wrap;
  }


  .profile-listing-tab {
    flex:
      1;

    min-width:
      120px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 768px) {

  .profile-listing-tabs {
    display:
      grid;

    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      );

    gap:
      6px;

    margin-bottom:
      18px;
  }


  .profile-listing-tab {
    min-width:
      0;

    min-height:
      42px;

    padding:
      8px 8px;

    font-size:
      0.74rem;
  }


  .profile-listing-tab-count {
    min-width:
      21px;

    height:
      21px;

    padding:
      0 6px;

    font-size:
      0.64rem;
  }


  .profile-listings-subsection {
    margin-top:
      22px;

    padding-top:
      18px;
  }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media screen and (max-width: 480px) {

  .profile-listing-tabs {
    grid-template-columns:
      1fr;
  }


  .profile-listing-tab {
    width:
      100%;
  }

}


/* =========================================
   SOLD SAVED LISTINGS
========================================= */

.saved-listing-card.is-sold {
  opacity:
    0.78;
}

.saved-listing-card.is-sold
.listing-card-photo {
  filter:
    grayscale(45%);
}

.saved-listing-card.is-sold
.listing-card-content {
  background-color:
    #f3f4f6;
}

.saved-listing-sold-message {
  margin-top:
    6px;

  margin-bottom:
    0;

  color:
    #6b7280;

  font-size:
    0.9rem;

  font-weight:
    700;
}



/* =========================================
   DESKTOP HOME LISTINGS POLISH
========================================= */

@media screen and (min-width: 1060px) {

  .profile-section {
    margin-top:
      0;
  }


  .profile-section-heading {
    margin-bottom:
      4px;
  }


  .profile-section-heading
  .title {
    margin-bottom:
      2px !important;

    font-size:
      1.7rem !important;
  }


  .profile-section-heading
  p {
    margin:
      0;

    color:
      var(--muted);

    font-size:
      0.82rem;
  }


  .profile-listing-tabs {
    gap:
      8px;

    margin-top:
      8px;

    margin-bottom:
      14px;
  }


  .profile-listing-tab {
    min-width:
      118px;

    min-height:
      36px;

    padding:
      7px 13px;

    font-size:
      0.76rem;
  }


  .profile-listing-tab-count {
    min-width:
      20px;

    height:
      20px;

    padding:
      0 6px;

    font-size:
      0.62rem;
  }


  .profile-listings-subsection {
    margin-top:
      20px;

    padding-top:
      16px;
  }


  .profile-listings-subheading {
    margin-bottom:
      12px;
  }

}
