.shadow--content {
  position: relative;
}

.shadow--content::before,
.shadow--content::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 30%;
  left: 0;
  right: 0;
  z-index: 1;
}

.shadow--content::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.shadow--content::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

/*********************
START: HERO
*********************/
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1),
    rgba(102, 102, 102, 0)
  );
}

/* the video covers the whole hero (in flow it stopped at its own 16:9 height);
   z-index -1 keeps it under the gradient and the content */
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero--content {
  /*     width: 32%; */
  position: absolute;
  top: 45%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.hero--content .title {
  margin-inline: auto;
}
.hero--content .search-header {
  margin-block-start: 15px;
}
.swiper {
  height: 100%;
  width: 100%;
}

/* thumbsSwiper */
.hero .swiper {
  height: 180px;
  margin-inline: auto;
  position: absolute !important;
  bottom: 0;
}

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

.hero .swiper .swiper-slide {
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero .swiper .swiper-slide > a > .content {
  position: absolute;
  bottom: 2rem;
  left: 1rem;
  right: 1rem;
  width: 80%;
  color: var(--baseLight-color);
  z-index: 2;
  line-height: var(--line-height150);
}

.hero .swiper .swiper-slide::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 13px;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

.hero .swiper .swiper-slide-thumb-active::before {
  background: none;
}

.hero .swiper .swiper-slide > a {
  display: block;
}

.hero .swiper .swiper-slide picture img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/2.5;
  border-radius: 17px;
}

/* scrollTo */
.scrollTo {
  padding-block: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrollTo img {
  cursor: pointer;
}

/*********************
END: HERO
*********************/

/*********************
START: 
*********************/
.results {
  min-height: 100vh;
  color: var(--baseLight-color);
  padding-block-end: 8.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  /* border: 3px solid yellow; */
}

.results--img {
  position: relative;
}

.results--img::before {
  position: absolute;
  content: "";
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(110px);
  background-color: rgba(29, 28, 48, 1);
  z-index: -1;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
}

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

.results--counter ul {
  display: flex;
  justify-content: space-between;
  width: 70%;
  margin-inline: auto;
  margin-block-start: 6rem;
}

.results--counter ul li {
  width: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.results--counter ul li > h3 {
  margin-block-end: 0.8rem;
  font-weight: 400;
}

.results--counter ul li > p {
  line-height: var(--line-height150);
}

.results--text {
  text-align: center;
  width: 55%;
  margin-block-start: 3.5rem;
  margin-inline: auto;
}
.mil-wrapper {
  display: flex;
  align-items: center;
  font-size: var(--text-3xl);
}
.mil-wrapper h3 {
  font-weight: 400;
  font-size: var(--text-3xl);
  margin-inline: 2px;
}
/*********************
END: 
*********************/

/*********************
START: 
*********************/
.properties {
  margin-block-end: 5rem;
}
.properties--title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 5rem;
}

.rechat-listing-card__price,
.rechat-listing-card__property-info,
.rechat-listing-card__address {
  color: var(--baseLight-color) !important;
}

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

/*********************
START: AGENTS
*********************/
.agents {
  margin-block-end: 5rem;
  overflow-x: hidden;
}

.agents--content {
  position: relative;
  margin-block-start: 2.5rem;
}

.agents--content ul {
  display: flex;
  justify-content: space-between;
  width: 110%;
  margin-inline-start: -5%;
  margin-inline-end: -5%;
  margin-block-end: 0.5rem;
}

.agents--content ul li {
  margin: 8px;
}

.agents--content ul:nth-child(odd) li {
  flex-basis: calc(33.33% - 16px);
}

.agents--content ul:not(even) li {
  flex-basis: calc(25% - 16px);
}

.agents--content ul li img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/4;
  object-fit: cover;
  border-radius: 24px;
  object-position: top;
}

.agents--content > a.btn {
  position: relative;
  margin-block-start: 5rem;
  margin-inline: auto;
  z-index: 2;
}

/*********************
END: AGENTS
*********************/

/*********************
START: 
*********************/
.featured {
  padding-block-start: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

ul.featured--list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--baseLight-color);
  margin-block: 2.5rem;
}

ul.featured--list > li {
  margin: 8px;
  flex-basis: calc(33.33% - 16px);
}

ul.featured--list > li picture > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--border-radius15);
}

ul.featured--list > li h5 {
  text-align: left;
  margin-block: 1.5rem 0.75rem;
  font-weight: 500;
  font-size: var(--text-lg);
}

ul.featured--list > li p {
  margin-block-end: 1.5rem;
  line-height: var(--line-height150);
}

ul.featured--list > li ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

ul.featured--list > li ul > li {
  background-color: #2e3440;
  border-radius: var(--border-radius10);
  padding: 0.5rem 0.75rem;
  margin-block-end: 0.75rem;
}

ul.featured--list > li ul > li:not(:last-child) {
  margin-inline-end: 0.5rem;
}

ul.featured--list > li ul > li img {
  margin-inline-end: 0.25rem;
  width: 1rem;
}

ul.featured--list > li ul > li span {
  font-size: var(--text-xs);
}

.featured a.btn {
  margin-bottom: 3rem;
  margin-inline: auto;
  text-align: center;
}

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

/*********************
START: ABOUT US
*********************/
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.about--img {
  width: 35%;
  position: relative;
}

.about--img::before {
  position: absolute;
  content: "";
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(110px);
  background-color: rgba(29, 28, 48, 1);
  z-index: -1;
  bottom: 0;
  left: 90%;
}

.about--img img {
  width: 100%;
}
.about--img .parallax {
  background-image: url(../img/about-img-2.jpg);
  min-height: 100vh;
  width: 100%;
  background-attachment: fixed;
  background-position: right;
  background-repeat: no-repeat;
  background-size: cover;
}

.about--text {
  width: 60%;
  padding-inline-end: 2rem;
}

.about--text p {
  width: 70%;
  margin-block: 1.5rem 2.5rem;
}

/*********************
END: ABOUT US
*********************/
/*********************
START: 
*********************/
.client {
  padding-block: 5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.client .title {
  margin-block-end: 3rem;
}

/* SDK testimonial cards ([rch_testimonials]): 3-col grid, dark rounded boxes, light text */
.client .testimonials__empty-state {
  color: var(--baseLight-color) !important;
}

.client .testimonials__list {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;
}

.client .testimonial-card {
  background: var(--box-color-2) !important;
  border: 0;
  border-radius: var(--border-radius40);
  color: var(--baseLight-color) !important;
}

.client .testimonial-card,
.client .testimonial-card p,
.client .testimonial-card h1,
.client .testimonial-card h2,
.client .testimonial-card h3,
.client .testimonial-card h4,
.client .testimonial-card cite,
.client .testimonial-card .testimonial-card__author,
.client .testimonial-card span:not(.testimonial-card__rating *) {
  color: var(--baseLight-color) !important;
}

/* keep the star rating gold */
.client .testimonial-card .testimonial-card__rating,
.client .testimonial-card .testimonial-card__rating * {
  color: #ffd700 !important;
}

@media screen and (max-width: 992px) {
  .client .testimonials__list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (max-width: 576px) {
  .client .testimonials__list {
    grid-template-columns: 1fr !important;
  }
}

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

/*********************
START: TaLK
*********************/
.talk--content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.talk--img,
.talk--form {
  width: 48%;
  position: relative;
}

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

.talk--img .parallax {
  background-image: url(../img/talk-img-2.jpg);
  min-height: 130vh;
  width: 100%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right;
}

.talk--form {
  padding-inline-start: 3rem;
}

.talk--form form {
  margin-block-start: 3rem;
  display: flex;
  flex-direction: column;
}

.talk--form form input,
.talk--form form textarea {
  margin-block: 0.5rem 1.5rem;
}

.talk--form form textarea {
  height: 150px;
}

.talk--form form p {
  width: 100%;
}

.talk--form form input[type="submit"],
.talk--form form button[type="submit"] {
  margin-inline-start: auto;
}

/*********************
END: TALK
*********************/

/*********************
START: MEDIA
*********************/
@media screen and (min-width: 1920px) {
  .hero--content {
    width: 38%;
  }

  .hero--content .title {
    font-size: var(--text-7xl);
  }

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

@media screen and (min-width: 1440px) and (max-width: 1919px) {
  .hero--content {
    width: 40%;
  }

  .hero--content .title {
    font-size: var(--text-6xl);
  }

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

@media screen and (min-width: 1440px) {
  .originalSwiper .swiper-slide > h2 {
    font-size: var(--text-7xl);
  }

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

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

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

  .originalSwiper .swiper-slide > h2 {
    font-size: var(--text-6xl);
  }

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

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

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

  .originalSwiper .swiper-slide > h2 {
    font-size: var(--text-5xl);
    width: 65%;
  }

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

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

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

  .thumbsSwiper .swiper-slide > a > .content {
    bottom: 1rem;
  }

  .thumbsSwiper .swiper-slide > a > .content > p {
    font-size: var(--text-sm);
  }

  .results--text {
    width: 65%;
  }
  .about--text p {
    width: 75%;
  }
}

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

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

  .originalSwiper .swiper-slide > h2 {
    font-size: var(--text-4xl);
    width: 70%;
  }

  .results--counter ul,
  .results--text {
    width: 85%;
  }

  .agents--content ul:not(even) {
    width: 160%;
    margin-inline-end: -30%;
    margin-inline-start: -30%;
  }

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

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

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

  .thumbsSwiper .swiper-slide > p {
    font-size: var(--text-sm);
    bottom: 1rem;
    width: 90%;
    left: 0.75rem;
    right: 0.75rem;
  }

  .thumbsSwiper {
    height: 150px;
  }

  .results--counter ul,
  .results--text {
    width: 100%;
  }

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

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

  .properties--title > a.btn {
    margin-block-start: 1rem;
  }

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

  .talk--content {
    flex-direction: column-reverse;
  }

  .talk--form {
    width: 80%;
    padding-inline-start: 0;
    margin-block-start: 2rem;
  }

  .talk--img {
    width: 70%;
    margin-block-start: 3rem;
  }

  .talk--img,
  .talk--img img {
    border-radius: var(--border-radius10);
  }

  .talk--form form button[type="submit"] {
    margin-block-end: 3rem;
  }

  .about {
    padding-block: 3rem;
  }

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

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

  .thumbsSwiper {
    height: 130px;
  }

  .thumbsSwiper .swiper-slide > p {
    font-size: var(--text-sm);
  }

  .agents--content ul li img {
    height: 160px;
  }

  .agents--content > a.btn {
    position: relative;
    bottom: 0;
    margin-block-start: 2rem;
  }

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

  .talk--img {
    width: 90%;
  }
}

@media screen and (max-width: 425px) {
  .thumbsSwiper .swiper-slide > p {
    font-size: var(--text-xs);
    bottom: 1rem;
  }

  .thumbsSwiper {
    height: 100px;
  }

  .thumbsSwiper .swiper-slide > p {
    font-size: var(--text-xs);
  }

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

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

  .agents--content ul li img {
    height: 130px;
    border-radius: var(--border-radius10);
  }

  ul.featured--list > li {
    flex-basis: calc(100% - 16px);
  }

  .about--img {
    display: none;
  }

  .about--text {
    width: 90%;
    margin-inline: auto;
    padding-inline-end: 0;
  }

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

@media screen and (max-width: 375px) {
  .originalSwiper .swiper-slide > h2 {
    font-size: var(--text-2xl);
    width: 90%;
  }

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

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

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

/* hero fallback image when no video is set (same box as the video) */
.hero--poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* under the hero gradient, like the video */
}

/* ---- Results: photo beside the numbers instead of a full-width image ---- */
.results {
    min-height: 0;
    padding-block: 6rem 7rem;
}

.results .container > div {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 4rem;
    row-gap: 2.5rem;
    align-items: center;
}

.results--img {
    grid-row: 1 / span 2;
    display: block;
}

.results--img::before {
    bottom: -120px;
    left: 50%;
}

.results--img picture {
    display: block;
    width: 100%;
    margin: 0;
}

.results--img img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 15%;
    border-radius: var(--border-radius15);
}

.results--text {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin: 0;
    text-align: left;
    font-size: var(--text-xl);
    line-height: var(--line-height160);
}

.results--counter {
    grid-column: 2;
    grid-row: 2;
}

.results--counter ul {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color-1);
    padding-block-start: 2rem;
}

.results--counter ul li {
    width: auto;
    flex: 1 1 0;
    align-items: flex-start;
    text-align: left;
}

.results--counter ul li > h3,
.results--counter ul li .mil-wrapper,
.results--counter ul li .percantage-wrapper {
    font-size: var(--text-4xl);
}

.results--counter ul li .mil-wrapper h3 {
    font-size: var(--text-4xl);
}

.results--counter ul li > p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

@media screen and (max-width: 992px) {
    .results .container > div {
        grid-template-columns: 1fr;
    }
    .results--img {
        grid-row: auto;
    }
    .results--img picture {
        max-width: 420px;
    }
    .results--text,
    .results--counter {
        grid-column: auto;
        grid-row: auto;
    }
    .results--counter ul {
        flex-wrap: wrap;
    }
    .results--counter ul li {
        flex: 1 1 40%;
    }
}

/* Results: text sits on the middle line, counters hang below it */
.results--text {
    align-self: end;
}

.results--counter {
    align-self: start;
}

.results--counter ul li .percantage-wrapper {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
}

.results--counter ul li .percantage-wrapper h3 {
    font-size: var(--text-4xl);
    font-weight: 400;
    margin-inline-end: 2px;
}

/* Agents mosaic: every tile reads as a tile, even a black or transparent photo
   (a black-background photo looked like a hole in the grid). */
.agents--content ul li img {
    background-color: var(--border-color-1);
    border: 1px solid var(--border-color-1);
}

/* The rows (3 · 4 · 3) fit the page at every size instead of bleeding off both
   edges, so every portrait is whole; photos are framed on the face, not the top edge. */
.agents .agents--content ul {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 2.5%;
    margin-block-end: 0;
    justify-content: center;
}

.agents .agents--content ul li {
    flex: 1 1 0;
    min-width: 0;
    margin: 8px;
}

.agents .agents--content ul:nth-child(even) li {
    max-width: calc(25% - 16px);
}

.agents .agents--content ul:nth-child(odd) {
    max-width: 1020px;
}

.agents .agents--content ul li img {
    height: auto;
    aspect-ratio: 1;
    object-position: center 22%;
    transition: transform 0.6s ease;
}

.agents .agents--content ul li a:hover img {
    transform: scale(1.03);
}

@media screen and (max-width: 992px) {
    .agents .agents--content ul li {
        margin: 4px;
    }

    .agents .agents--content ul li img {
        border-radius: 14px;
    }
}
