/*********************
START: HERO
*********************/
.hero {
  min-height: 100vh;
  /* svh = smallest viewport height: avoids the hero jumping when mobile
     browser toolbars collapse. Falls back to the vh line above. */
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
  /* keeps ::before reading as a tint rather than grey-on-white
     in the moment before the video paints (or if it fails to load) */
  background-color: var(--baseDark-color);
  /* content sits in normal flow and is centred here, so the hero can still
     grow past 100svh on short viewports (landscape phones) instead of the
     copy overflowing into the next section */
  display: flex;
  align-items: center;
  padding-block: 2rem;
}

.hero > .container {
  flex: 1 1 auto;
}

.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
  background: rgba(52, 52, 54, 0.2);
}

/* Absolute (not relative) so height:100% resolves against .hero even though
   .hero only has a min-height; object-fit: cover then makes the 16:9 source
   fill any viewport ratio instead of letterboxing and exposing ::before. */
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero--content {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  width: 60%;
  color: var(--baseLight-color);
  text-align: center;
  z-index: 2;
}

.search-header {
  margin-top: 2rem;
  width: 100%;
  margin-inline: auto;
}

.hero--content > h1 > span {
  background-color: var(--box-color-1);
  border-radius: var(--border-radius10);
  padding: 0.2rem 0.75rem;
  font-weight: 400;
  line-height: var(--line-height150);
}

.hero--content > p {
  font-weight: 500;
  margin-block-start: 1rem;
  line-height: var(--line-height150);
}

.search_address_input__field_wrapper {
  border: none;
}

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

.property-search-form .rechat-popover__trigger > .rechat-component {
  text-align: left;
}
/*********************
END: HERO
*********************/

/*********************
START: TRENDING
*********************/
.trending--title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 3rem;
}

.trending .swiper {
  width: 100%;
  height: 100%;
  min-height: 20vh;
}

.trending .swiper-wrapper {
  display: flex;
  align-items: center;
  transition-timing-function: linear !important;
}

.trending .swiper-slide {
  display: flex;
  flex-direction: column;
}

.trending .swiper-slide picture img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius10);
  object-fit: cover;
  max-height: 350px;
}

.trending .swiper-slide > a {
  display: block;
  width: 100%;
  height: 100%;
}

.trending .swiper-slide picture.rch-fallback-logo-listing {
  display: block;
  width: 100%;
  height: 100%;
  padding-block: 10rem;
  padding-inline: 2rem;
  background: var(--baseDark-color);
  border-radius: var(--border-radius10);
}

.trending .swiper-slide h5,
.trending .swiper-slide .properties > h3 {
  font-weight: 600;
  margin-block: 1rem 0.5rem;
}

.trending .swiper-slide .properties--features {
  font-size: 14px;
}

.trending .swiper-slide .properties--price {
  margin-block-start: 1rem;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.trending .swiper-slide .arrow--more {
  display: none;
}
/*********************
END: TRENDING
*********************/

/*********************
START: ABOUT US
*********************/
.about--content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about--img {
  width: 45%;
}

.about--img img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius10);
}

.about--text {
  width: 50%;
}

.about--text h3 {
  margin-block: 1rem 1.25rem;
}

.about--text p {
  margin-block-end: 1.5rem;
}
/*********************
END: ABOUT US
*********************/

/*********************
START: TESTIMONIALS
*********************/
.testimonials {
  padding-block: 5rem;
  background-color: #fef2f2;
}

.testimonials.swiper {
  width: 100%;
  height: 100%;
}

.testimonials h3 {
  text-align: center;
  margin-block-end: 2rem;
}

.testimonials .swiper-wrapper {
  display: flex;
  align-items: center;
}

.testimonials .swiper-slide {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  justify-content: center;
  align-items: center;
  padding-inline: 10rem;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--baseDark-color) !important;
  background: var(--baseLight-color);
  border-radius: 50%;
  width: 50px !important;
  height: 50px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1rem !important;
}
/*********************
END: TESTIMONIALS
*********************/

/*********************
START: NEIGHBORHOODS
*********************/
.neighborhoods--content h3 {
  margin-block-end: 3rem;
}
.neighborhoods--content ul {
  display: flex;
  justify-content: center;
}

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

.neighborhoods--content ul li img {
  width: 100%;
  height: auto;
  aspect-ratio: 426/600;
  object-fit: cover;
  border-radius: 16px;
}

.neighborhoods--content ul li a > p {
  color: var(--baseDark-color);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-block-start: 1.25rem;
  text-align: center;
  font-size: var(--text-xl);
}

.neighborhoods--content a.btn {
  margin-inline: auto;
  margin-block-start: 3.75rem;
}

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

/*********************
START: CONVERSATION
*********************/
.conversation {
  position: relative;
  background-image: url(../img/bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  padding-block: 8rem;
  z-index: 1;
}

.conversation p {
  text-align: center;
  line-height: var(--line-height150);
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  margin-block: 2rem;
}

.conversation a {
  margin-inline: auto;
}

/*********************
END: CONVERSATION
*********************/
/*********************
START: OFFICE
*********************/
.office {
  display: none;
}

.office--video {
  position: relative;
  height: 500px;
  z-index: 1;
  border-radius: var(--border-radius30);
  background-color: var(--baseDark-color);
}

.office--video > video {
  height: 100%;
  width: 100%;
  border-radius: var(--border-radius30);
}

.office--content {
  width: 33%;
  color: var(--baseLight-color);
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  z-index: 5;
  left: 100px;
}

.office--content p {
  margin-block: 1.5rem;
}

/*********************
END: OFFICE
*********************/

/*********************
START: EXPERIENCE
*********************/
.experience {
  position: relative;
}

.experience--content {
  /*     height: 100vh; */
  position: relative;
}

.experience--content picture img {
  width: 1000px;
  height: 510px;
  object-fit: cover;
  margin-inline: auto;
  display: block;
  border-radius: 300px;
  transition:
    width 1.5s,
    height 1.5s,
    border-radius 1.5s;
}

.experience--content h2 {
  width: 50%;
  margin-inline-start: auto;
  font-weight: 400;
  position: absolute;
  top: 100px;
  right: 100px;
  color: var(--baseLight-color);
  font-size: var(--text-7xl);
  opacity: 0;
  transition: opacity 1s;
}

.experience.active .experience--content h2 {
  opacity: 1;
}

.experience.active .experience-img {
  width: 100%;
  height: 100vh;
  border-radius: 0;
}

/*********************
END: EXPERIENCE
*********************/

/*********************
START: AGENTS
*********************/
.agents {
  overflow-x: hidden;
}

.agents--content .head,
.agents--content .title {
  font-weight: 500;
}

.agents--content .title {
  margin-block: 1rem;
}

.agents--content .text {
  width: 30%;
  font-weight: 400;
  margin-block-end: 1rem;
}

/* agents--images */
.agents--images ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-block-start: 2rem;
}

.agents--images ul li {
  margin: 8px;
  flex-basis: calc(25% - 16px);
}

.agents--images ul li {
  margin-block-end: 1rem;
  position: relative;
  border-radius: var(--border-radius10);
}

.agents--images ul li a {
  display: block;
  cursor: pointer;
}

.agents--images ul li a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: var(--border-radius10);
  background: linear-gradient(
    to top,
    rgba(229, 228, 223, 0.9),
    rgba(229, 228, 223, 0)
  );
}

.agents--images ul li img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius10);
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  object-position: top;
}

.notFoundAgents {
  text-align: center;
  padding-block: 2rem;
  font-weight: 700;
  font-size: 24px;
  margin-inline: auto;
}
/*********************
END: AGENTS
*********************/

/*********************
START: MEDIA
*********************/
@media screen and (min-width: 1440px) {
  .hero--content > h1 {
    font-size: var(--text-4xl);
  }

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

  .trending .swiper-slide h5,
  .trending .swiper-slide .properties > h3 {
    font-size: var(--text-2xl);
  }

  .conversation p {
    font-size: var(--text-2xl);
  }

  .experience--content h2 {
    font-size: var(--text-7xl);
  }

  .agents--content .head,
  .agents--content .text {
    font-size: var(--text-xl);
  }
}

@media screen and (min-width: 1320px) and (max-width: 1439px) {
  .hero--content > h1 {
    font-size: var(--text-5xl);
  }

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

  .trending .swiper-slide h5,
  .trending .swiper-slide .properties > h3 {
    font-size: var(--text-2xl);
  }

  .conversation p {
    font-size: var(--text-xl);
  }

  .office--content {
    width: 35%;
  }

  .experience--content h2 {
    font-size: var(--text-6xl);
    top: 80px;
  }

  .agents--content .head,
  .agents--content .text {
    font-size: var(--text-xl);
  }
}

@media screen and (max-width: 1319px) {
  .hero--content > h1 {
    font-size: var(--text-5xl);
  }

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

  .trending .swiper-slide h5 .trending .swiper-slide .properties > h3 {
    font-size: var(--text-xl);
  }

  .office--content {
    width: 40%;
  }

  .experience--content picture img {
    width: 900px;
    height: 500px;
  }

  .experience--content h2 {
    font-size: var(--text-6xl);
    top: 70px;
  }
}

@media screen and (max-width: 1200px) {
  .hero--content > h1 {
    font-size: var(--text-4xl);
  }

  .office--content {
    width: 45%;
  }

  .experience--content picture img {
    width: 850px;
    height: 480px;
  }

  .experience.active .experience-img {
    height: 90vh;
  }

  .experience--content h2 {
    font-size: var(--text-5xl);
    top: 60px;
  }

  .agents--content .text {
    width: 50%;
  }
}

@media screen and (max-width: 992px) {
  .hero--content {
    width: 70%;
  }

  .conversation p {
    font-size: var(--text-lg);
  }

  .office--content {
    width: 50%;
    left: 150px;
  }

  .experience--content picture img {
    width: 800px;
    height: 450px;
  }

  .experience.active .experience-img {
    height: 80vh;
  }

  .experience--content h2 {
    width: 97%;
    right: 0;
    left: 0;
    top: 50px;
    font-size: var(--text-4xl);
  }
}

@media screen and (max-width: 768px) {
  .hero--content {
    width: 80%;
  }

  .hero--content > h1 {
    font-size: var(--text-3xl);
  }

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

  .office--content {
    width: 55%;
    left: 50px;
  }

  .experience--content picture img {
    width: 550px;
    height: 350px;
  }

  .experience.active .experience-img {
    height: 70vh;
  }

  .experience--content h2 {
    top: 40px;
    font-size: var(--text-3xl);
  }

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

  .about--text {
    width: 100%;
    margin-block-start: 2rem;
  }

  .about--img {
    width: 100%;
  }

  .agents--content .text {
    width: 70%;
  }

  .agents--images ul li {
    flex-basis: calc(33.33% - 16px);
  }

  .neighborhoods--content ul li {
    margin: 10px;
    flex-basis: calc(33.33% - 20px);
  }

  .testimonials .swiper-slide {
    padding-inline: 8rem;
  }
}

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

  .hero--content > h1 {
    font-size: var(--text-xl);
  }

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

  .trending--title {
    flex-direction: column;
    margin-block-end: 1rem;
  }

  .trending--title .btn {
    margin-block-start: 1rem;
  }

  .office--content {
    width: 70%;
  }

  .agents--content .head,
  .agents--content .text {
    width: 100%;
    font-size: var(--text-lg);
  }

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

  .experience--content picture img {
    width: 400px;
    height: 250px;
  }

  .experience.active .experience-img {
    height: 60vh;
  }

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

  .testimonials .swiper-slide {
    padding-inline: 5rem;
  }
}

@media screen and (max-width: 425px) {
  .hero--content > h1 {
    font-size: var(--text-lg);
  }

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

  .trending .swiper-slide h5,
  .trending .swiper-slide .properties > h3 {
    font-size: var(--text-lg);
  }

  .office--content {
    width: 80%;
    left: 25px;
    right: 25px;
  }

  .agents--images {
    width: 100%;
    margin-block-start: 3rem;
    margin-inline: 0;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
  }

  .agents--images ul {
    width: auto;
    margin: 8px;
    flex-basis: calc(33.33% - 16px);
  }

  .agents--images ul li:last-child {
    margin-block-end: 0;
  }

  .experience--content picture img {
    width: 300px;
    height: 200px;
  }

  .experience.active .experience-img {
    height: 50vh;
  }

  .experience--content h2 {
    font-size: var(--text-2xl);
  }

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

@media screen and (max-width: 375px) {
  .agents--images ul {
    flex-basis: calc(100% - 16px);
  }

  .experience--content h2 {
    font-size: var(--text-xl);
  }

  .experience.active .experience-img {
    height: 40vh;
  }
}

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