@import "./global.css";
@import "./property-card.css";

.properties {
  background-color: #F6F6F6;
  padding: 2rem 1.25rem;
  flex: 1;
}

.propertiesContainer {
  max-width: 1200px;
  margin: auto;
}

.propertiesHeader {
  margin-bottom: 1rem;
}

.propertiesHeader h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.propertiesHeaderDetails {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #999;
}

.propertiesHeaderDetails p {
  line-height: 1.5;
}

.propertiesHeaderCount {
  color: #252525;
  font-weight: 600;
}

.propertiesList > .propertyCard {
  margin-bottom: 1.25rem;
}

.propertiesFooter {
  margin: 0.75rem -0.5rem 2rem;
  font-weight: 600;
  font-size: 13px;
}

.propertiesPagination {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}

.propertiesPagination a {
  color: inherit;
  text-decoration: none;
}

.propertiesNavButton {
  margin: 0 0.5rem;
}

.propertiesPageButton {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 0.5rem;
}

.propertiesPageButton.current {
  color: white;
}


@media screen and (min-width: 600px) {
  .propertiesList {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1.25rem;
  }

  .propertiesList > .propertyCard {
    flex: 50%;
    max-width: calc(50% - 2.5rem);
    margin: 0 1.25rem 40px;
  }
}

@media screen and (min-width: 800px) {
  .properties {
    padding: 3.75rem 1.25rem;
  }

  .propertiesHeader {
    margin-bottom: 1.25rem;
  }

  .propertiesFooter {
    margin-top: 0;
  }

  .propertiesPagination {
    max-width: 230px;
    margin: auto;
  }
}

@media screen and (min-width: 1000px) {
  .propertiesList > .propertyCard {
    flex: calc(100% / 3);
    max-width: calc(100% / 3 - 2.5rem);
  }
}