/*********************
START: HERO
*********************/
.hero {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 55%;
}

.hero::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: rgba(33, 37, 41, 0.5);
}

.hero--content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  z-index: 1;
}

.hero--content h1 {
  margin-block-start: 343px;
}

.hero--content a.btn--gray-7 {
  margin-block-start: 3rem;
  width: 340px;
  height: 48px;
  padding: 16px 32px;
}

.hero--content > p {
  color: var(--Gray-2);
  font-size: var(--text-xl);
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.14px;
  width: 60%;
  margin-block: 2rem;
}

.hero .scrollTo {
  cursor: pointer;
  margin-block: 23px 48px;
}

.search_address_input__field_wrapper {
  border: none;
}

.property-search-form .rechat-popover__trigger {
  display: flex;
  align-items: center;
  position: relative;
}

.search-header {
  width: 100%;
}
/*********************
END: HERO
*********************/

/*********************
START: RESULTS
*********************/
.results {
  background-color: var(--Gray-1);
  padding-block: 105px 123px;
}

.results--title {
  display: flex;
  justify-content: space-between;
  margin-block-end: 2.5rem;
}

.results--title h2 {
  font-weight: 600;
}

.results--title > div {
  width: 44.25%;
}

.results--title > div p {
  margin-block-start: 1rem;
}

.results ul {
  display: flex;
  justify-content: center;
  column-gap: 24px;
}

.results ul li {
  min-height: 227px;
  border-radius: 2px;
  background: var(--Gray-2);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.results ul li:not(:last-child) {
  width: 27%;
}

.results ul li:last-child {
  width: 46%;
}

.results ul li > img {
  width: 60px;
  height: 66px;
}

.results ul li > div {
  display: flex;
  margin-block: 4.5rem 1rem;
}

.results ul li > div span {
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.results ul li > div span.count {
  margin-inline: 0.3rem;
}

.results ul li p {
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/*********************
END: RESULTS
*********************/

/*********************
START: ABOUT
*********************/
.about {
  position: relative;
  background-position: center;
  background-size: cover;
}

.about::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: rgba(0, 0, 0, 0.5);
}

.about--text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
  margin-block: 302px;
}

.about--text p {
  margin-block: 1.5rem 4rem;
  width: 47%;
}

.about--text a.btn {
  display: block;
  width: 242px;
  height: 48px;
}

/*********************
END: ABOUT
*********************/

/*********************
START: PROPERTIES
*********************/
.properties {
  padding-block: 72px 56px;
  background-color: var(--Gray-3);
}

.properties--content {
  position: relative;
}

.properties--content p.text--medium {
  margin-block-start: 1rem;
}

.properties--content > ul {
  margin-block: 4rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 16px;
  column-gap: 16px;
}

.properties--content > ul > li {
  position: relative;
}

.properties--content > ul > li::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 2px;
  background: rgba(33, 37, 41, 0.3);
}

.properties--content > ul > li img.imageIndex {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 440/412;
  border-radius: 2px;
}

.properties--content > ul > li div.info {
  border-radius: 2px;
  background: var(--Gray-2);
  padding: 1rem;
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 13px;
}

.properties--content > ul > li div.info h4 {
  color: var(--Gray-9);
  font-size: var(--text-base);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: 0.16px;
}

.properties--content > ul > li div.info p {
  color: var(--Gray-7);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: 0.14px;
  margin-block: 0.5rem 1rem;
}

.properties--content > ul > li div.info > ul {
  display: flex;
  flex-wrap: wrap;
}

.properties--content > ul > li div.info > ul > li:not(:last-child) {
  padding-inline-end: 0.5rem;
  margin-inline-end: 0.5rem;
  border-right: 2px solid #adb5bd;
}

.properties--content > ul > li div.info > ul > li span {
  color: var(--Gray-7);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0.14px;
}

.properties--content a.btn {
  width: 278px;
  padding: 16px 24px;
  margin-inline: auto;
}

.listing-card .listing-card__image {
  border-radius: 16px;
}

.listing-card
  .listing-card__properties
  .listing-card__attributes-splitter:last-child {
  display: none;
}
/*********************
END: PROPERTIES
*********************/

/*********************
START: NEIGHBORHOODS
*********************/
.neighborhoods {
  background: var(--Gray-1);
  padding-block: 120px;
}

.neighborhoods--title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-block-end: 3rem;
}

.neighborhoods--title > div p {
  margin-block-start: 1rem;
}

.neighborhoods--title a.btn {
  width: 278px;
  padding: 16px 24px;
}

.neighborhoods--content ul {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1rem;
}

.neighborhoods--content ul li {
  position: relative;
}

.neighborhoods--content ul li img {
  width: 100%;
  height: 589px;
  border-radius: 2px;
  object-fit: cover;
}

.neighborhoods--content ul li div {
  border-radius: 2px;
  background: var(--Gray-2);
  padding: 1rem;
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 21px;
  color: var(--Gray-9);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: 0.18px;
}

/*********************
END: NEIGHBORHOODS
*********************/

/*********************
START: WORK WITH US
*********************/
.workUs {
  padding-block: 90px;
  background-color: var(--Gray-3);
}

.workUs--content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workUs--text {
  width: 46%;
}

.workUs--text p {
  margin-block: 1.5rem 3.5rem;
  line-height: 140%;
}

.workUs--text .workUs--text__btn {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.workUs--text .workUs--text__btn a.btn {
  width: 49%;
}

.workUs--img {
  width: 50%;
  position: relative;
}

.workUs--img img {
  width: 100%;
  height: auto;
  aspect-ratio: 706/800;
  object-fit: cover;
  border-radius: 4px;
}

/*********************
END: WORK WITH US
*********************/

/*********************
START: 
*********************/
.featured {
  padding-block: 146px 162px;
}

.featured--content p.text--medium {
  margin-block-start: 1rem;
}

.featured .featured-listing.swiper {
  margin-block: 3.5rem;
  min-height: 300px;
}

.featured .featured-listing .swiper-wrapper {
  transition-timing-function: linear;
}

.featured .featured-listing .swiper-slide {
  position: relative;
}

.featured .featured-listing .swiper-slide::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 2px;
  background: rgba(33, 37, 41, 0.3);
}

.featured .featured-listing .swiper-slide img.imageIndex {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 446.667 / 416;
  border-radius: 2px;
}

.featured .featured-listing .swiper-slide div.info {
  border-radius: 2px;
  background: var(--Gray-2);
  padding: 1rem;
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 13px;
}

.featured .featured-listing .swiper-slide div.info h4 {
  color: var(--Gray-9);
  font-size: var(--text-base);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: 0.16px;
}

.featured .featured-listing .swiper-slide div.info p {
  color: var(--Gray-7);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: 0.14px;
  margin-block: 0.5rem 1rem;
}

.featured .featured-listing .swiper-slide div.info ul {
  display: flex;
  flex-wrap: wrap;
}

.featured .featured-listing .swiper-slide div.info ul li:not(:last-child) {
  padding-inline-end: 0.5rem;
  margin-inline-end: 0.5rem;
  border-right: 2px solid #adb5bd;
}

.featured .featured-listing .swiper-slide div.info ul li span {
  color: var(--Gray-7);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0.14px;
}

.featured a.btn {
  width: 299px;
  padding: 16px 24px;
  margin-inline: auto;
}
/*********************
END: 
*********************/

/*********************
START: MEDIA
*********************/
@media screen and (min-width: 1440px) {
  .results ul li > div span {
    font-size: 40px;
  }

  .results ul li p {
    font-size: var(--text-xl);
  }

  .properties--content p.text--medium,
  .neighborhoods--title > div,
  .featured--content p.text--medium {
    width: 66%;
  }

  .properties--content > ul {
    row-gap: 32px;
    column-gap: 32px;
  }

  .neighborhoods--content ul li div {
    font-size: var(--text-lg);
  }
}

@media screen and (min-width: 1320px) and (max-width: 1439px) {
  .results ul {
    column-gap: 20px;
  }

  .results ul li > div span {
    font-size: var(--text-4xl);
  }

  .results ul li p {
    font-size: var(--text-lg);
  }

  .properties--content > ul {
    row-gap: 24px;
    column-gap: 24px;
  }

  .properties--content p.text--medium,
  .neighborhoods--title > div,
  .featured--content p.text--medium {
    width: 67%;
  }

  .neighborhoods--content ul li img {
    height: 550px;
  }
}

@media screen and (max-width: 1319px) {
  .results--title > div {
    width: 44%;
  }

  .results ul {
    column-gap: 18px;
  }

  .results ul li > div span {
    font-size: var(--text-3xl);
  }

  .results ul li p {
    font-size: var(--text-lg);
  }

  .about--text {
    margin-block: 280px;
  }

  .about--text p {
    width: 55%;
  }

  .properties--content p.text--medium,
  .neighborhoods--title > div,
  .featured--content p.text--medium {
    width: 77%;
  }

  .neighborhoods--title {
    flex-direction: column;
    align-items: flex-start;
  }

  .neighborhoods--title > div p {
    margin-block: 1rem;
  }

  .neighborhoods--content ul li img {
    height: 530px;
  }
}

@media screen and (max-width: 1200px) {
  .results ul li {
    padding: 1.5rem;
  }

  .results ul li p {
    font-size: var(--text-base);
  }

  .about--text {
    margin-block: 250px;
  }

  .about--text p {
    width: 60%;
  }

  .properties--content > ul {
    margin-block: 2rem;
  }

  .properties--content p.text--medium,
  .neighborhoods--title > div,
  .featured--content p.text--medium {
    width: 91%;
  }

  .properties--content > ul > li div.info p,
  .featured--content .swiper-slide > div.info p {
    margin-block: 0.5rem;
  }

  .neighborhoods--content ul {
    grid-template-columns: repeat(3, 1fr);
  }

  .neighborhoods--content ul li img {
    height: 500px;
  }

  .workUs--img,
  .workUs--text {
    width: 48%;
  }
}

@media screen and (max-width: 992px) {
  .property-search-form .rcw-search-bar {
    flex-direction: column;
  }

  .property-search-form .rcw-search {
    width: 100%;
  }

  .property-search-form .search_address_input {
    width: 100%;
    border-bottom: 1px solid #e1e1e1 !important;
  }

  .property-search-form .rcw-search-btn {
    margin-inline: auto;
  }
  .hero--content > p {
    width: 65%;
  }

  .results--title {
    flex-direction: column;
  }

  .results--title > div {
    width: 100%;
    margin-block-start: 2.5rem;
  }

  .results ul {
    column-gap: unset;
  }

  .results ul li {
    padding: 1.5rem 1rem;
    width: auto !important;
    margin: 8px;
    flex-basis: calc(33.33% - 16px);
  }

  .results ul li > div span {
    font-size: var(--text-2xl);
  }

  .about--text {
    margin-block: 220px;
  }

  .about--text p {
    width: 80%;
  }

  .properties--content p.text--medium,
  .neighborhoods--title > div,
  .featured--content p.text--medium {
    width: 100%;
  }

  .properties--content > ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .neighborhoods--content ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: unset;
  }

  .neighborhoods--content ul li {
    margin: 8px;
    flex-basis: calc(50% - 16px);
  }
}

@media screen and (max-width: 768px) {
  .property-search-form {
    width: auto;
  }

  .property-search-form .rcw-search-bar {
    flex-direction: column;
  }

  .rcw-filters {
    flex-direction: column;
    width: 100%;
  }
  .property-search-form .rcw-filters > *,
  .property-search-form .rcw-search-btn,
  .rcw-filter,
  .rechat-filter-templated .rcw-pop,
  .rechat-filter-templated .rcw-trigger {
    width: 100%;
  }

  .rechat-filter-templated .rcw-chevron {
    margin-inline-start: auto;
  }

  .hero--content > p {
    width: 90%;
  }

  .hero--content > p {
    font-size: var(--text-lg);
  }

  .results,
  .properties,
  .neighborhoods,
  .workUs,
  .featured {
    padding-block: 80px;
  }

  .about--text {
    margin-block: 200px;
  }

  .about--text p {
    width: 100%;
  }

  .workUs--content {
    flex-direction: column;
  }

  .workUs--text {
    width: 100%;
  }

  .workUs--img {
    width: 70%;
    margin-block-end: 2rem;
  }
}

@media screen and (max-width: 576px) {
  .hero--content > p {
    width: 100%;
  }

  .results ul {
    flex-wrap: wrap;
  }

  .results ul li {
    flex-basis: calc(50% - 16px);
  }

  .properties--content > ul {
    grid-template-columns: repeat(1, 1fr);
  }

  .neighborhoods--content ul li {
    flex-basis: calc(100% - 16px);
  }

  .neighborhoods--content ul li img {
    height: auto;
    aspect-ratio: 4/4;
  }
}

@media screen and (max-width: 470px) {
  .results ul li {
    flex-basis: calc(100% - 16px);
  }

  .about--text {
    margin-block: 170px;
  }

  .workUs--img {
    width: 80%;
  }
}

@media screen and (max-width: 425px) {
  .workUs--img {
    width: 100%;
  }

  .workUs--text p {
    margin-block: 1.5rem;
  }

  .workUs--text .workUs--text__btn {
    flex-direction: column;
  }

  .workUs--text .workUs--text__btn a.btn {
    width: 251px;
  }
}

@media screen and (max-width: 375px) {
  .hero--content a.btn--gray-7 {
    width: 290px;
  }
}

@media screen and (max-width: 320px) {
  .hero--content a.btn--gray-7 {
    width: 200px;
  }
}

/*********************
START: AGENTS
*********************/
.agents {
  padding: 80px 0;
  background-color: var(--Gray-1);
}

.agents--head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.agents--head > div {
  max-width: 640px;
}

.agents--head h2 {
  margin-bottom: 12px;
}

.agents--head .btn {
  flex-shrink: 0;
}

.agents--grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.agents--card {
  background-color: var(--baseLight-color);
  border: 1px solid var(--Gray-2);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.agents--card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(33, 37, 41, 0.12);
}

.agents--card__img {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--Gray-2);
}

.agents--card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.agents--card:hover .agents--card__img img {
  transform: scale(1.05);
}

.agents--card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.agents--card__body h3 {
  font-family: var(--font-family-Playfair);
  font-size: var(--text-xl);
  line-height: 1.3;
  margin: 0;
}

.agents--card__body h3 a {
  color: var(--Gray-9);
  text-decoration: none;
}

.agents--card__body h3 a:hover {
  color: var(--Gray-7);
}

.agents--card__role {
  font-family: var(--font-family-Work);
  font-size: var(--text-sm);
  color: var(--Gray-6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agents--card__link {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-family-Work);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--Gray-9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agents--card__link::after {
  content: "\2192";
  transition: transform 0.3s ease;
}

.agents--card__link:hover::after {
  transform: translateX(4px);
}

@media screen and (max-width: 992px) {
  .agents--grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .agents {
    padding: 56px 0;
  }
  .agents--head {
    flex-direction: column;
    align-items: flex-start;
  }
  .agents--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .agents--grid {
    grid-template-columns: 1fr;
  }
}
/*********************
END: AGENTS
*********************/

/*********************
START: PROPERTIES LISTINGS SWIPER (MOBILE)
*********************/
/* On touch widths the SDK swiper uses swipe, and the absolutely-positioned
   prev/next arrows sit on top of the peeking card. Hide them on mobile. */
@media screen and (max-width: 768px) {
  .properties .swiper-button-prev,
  .properties .swiper-button-next {
    display: none;
  }
}
/*********************
END: PROPERTIES LISTINGS SWIPER (MOBILE)
*********************/

/*********************
END: MEDIA
*********************/

.hero--content, .search-header {
    width: min(1400px, calc(100vw - 48px)) !important;
}
