:root {
  --container: 1200px;
  --padding: 15px;
  --padding-inner-section: 60px;

  --color-primary: #FA6742;
  --color-secondary: #222222;
  --color-tertiary: #F7F7F7;

  --color-white: #fff;

  --color-text: #3C3C40;

  --testimonials-font-size: 22px;

  @media screen and (max-width: 768px) {
    --padding-inner-section: 40px;
  }
}

body.home-page {
  @media screen and (max-width: 1000px) {
    .site-navbar-wrap.v2.style2 {
      padding: 0;
      padding-top: 0;

      .top-search {
        display: none;
      }
    }
  }
}


.out {
  font: 400 18px/26px 'Roboto', sans-serif;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  @media screen and (max-width: 768px) {
    font-size: 16px;
    line-height: 1.4;
  }
}

.title-h1 {
  font: 800 72px/64px 'Montserrat', sans-serif;
  margin: 0;
  color: inherit;

  @media screen and (max-width: 1024px) {
    font-size: 48px;
    line-height: 58px;
  }

  @media screen and (max-width: 768px) {
    font-size: 40px;
    line-height: 1.2;
  }
}

.title-h2 {
  font: 800 48px/58px 'Montserrat', sans-serif;
  margin: 0;
  color: inherit;

  @media screen and (max-width: 1024px) {
    font-size: 36px;
    line-height: 46px;
  }

  @media screen and (max-width: 768px) {
    font-size: 32px;
    line-height: 1.2;
  }
}

.title-h3 {
  font: 900 28px/32px 'Montserrat', sans-serif;
  margin: 0;
  color: inherit;

  @media screen and (max-width: 1024px) {
    font-size: 24px;
    line-height: 28px;
  }
}

.text {
  font: 400 20px/30px 'Roboto', sans-serif;
  color: inherit;

  &.text--sm {
    font-size: 18px;

    @media screen and (max-width: 768px) {
      font-size: 16px;
      line-height: 24px;
    }
  }

  @media screen and (max-width: 768px) {
    font-size: 16px;
    line-height: 24px;
  }
}

.button {
  font: 600 16px/1.2 'Roboto', sans-serif;
  background-color: var(--color-primary);
  border: 0;
  color: var(--color-white);
  padding: 0 32px;
  height: 60px;
  line-height: 60px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  display: inline-block;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);

  &:hover {
    opacity: 0.8;
    color: var(--color-white);
  }

  @media screen and (max-width: 1024px) {
    padding: 0 24px;
  }

  @media screen and (max-width: 768px) {
    font-size: 16px;
  }
}

.inner {
  max-width: calc(var(--container) + (2 * var(--padding)));
  padding: 0 var(--padding);
  width: 100%;
  margin: 0 auto;
}

.inner--padding {
  padding: var(--padding-inner-section) var(--padding);
}

.slider-arrows {
  display: flex;
  align-items: center;

  --swiper-navigation-size: 0;

  .swiper-button-next,
  .swiper-button-prev {
    transition: all 0.25s;
    width: 40px;
    height: 40px;
    position: static;
    background: transparent;
    margin: 0;
    &:hover {
      opacity: 0.5;
    }
  }
}

/* Hero section */
.s-hero {
  color: var(--color-white);
  background: url(../images/home/bg1.webp) no-repeat center center / cover;
}

.s-hero__in {
  height: 100svh;
  min-height: 600px;
  display: flex;
}

.s-hero-content {
  max-width: 794px;
  width: 100%;
  margin: auto;
  text-align: center;
}

.s-hero-content__title {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.s-hero-content__text {
  margin: 20px 0 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);

  @media screen and (max-width: 768px) {
    margin: 16px 0 0;
  }
}

.s-hero-content__buttons {
  margin: 40px 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;

  @media screen and (max-width: 768px) {
    flex-direction: column;
    gap: 16px;
    max-width: 200px;
    margin: 28px auto 0;
  }
}

/* Evaluation section */
.evaluation {
  background-color: #F7F7F7;
}

.evaluation-content {
  max-width: 794px;
  width: 100%;
  margin: auto;
  text-align: center;
}

.evaluation-content__text {
  margin: 20px 0 0;

  @media screen and (max-width: 768px) {
    margin: 16px auto 0;
    max-width: 230px;
  }
}

.evaluation-content__buttons {
  margin: 40px 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Properties section */
.properties {
  align-items: center;
  padding: 40px 0 80px;

  @media screen and (max-width: 768px) {
    padding: 20px 20px 40px;
  }
}

.properties-swiper {
  height: 350px;

  display: none;
  &[data-listings-type="new"] {
    display: block;
  }

  &.is-init {
    position: relative;
    height: auto;

    @media screen and (max-width: 768px) {
      height: 400px;
    }

    .swiper-slide {

      &::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 25%;
        background: linear-gradient(to top, #262322 0%, transparent 100%);
        z-index: 0;
      }
    }
  }

  .swiper-slide {
    img {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 16/9;
      object-fit: cover;

      @media screen and (max-width: 768px) {
        aspect-ratio: 39/40;
      }
    }
  }

  .swiper-lazy-preloader::after {
    display: none;
  }
}

.properties-nav-wrp {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.properties-nav {
  display: flex;
  justify-content: center;
  gap: 20px;

  @media screen and (max-width: 1000px) {
    gap: 16px;
  }

  @media screen and (max-width: 768px) {
    gap: 12px;
  }
}

.properties-nav__link {
  font: 500 16px/1.2 'Montserrat', sans-serif;
  color: var(--color-text);
  transition: all 0.25s;
  display: inline-block;
  padding: 4px 0;
  border-bottom: 2px solid transparent;


  &.is-active {
    font-weight: 800;
    color: var(--color-primary);
    border-color: var(--color-primary);
  }
}

.slide-details {
  display: grid;
  grid-template-columns: 60% 20% 20%;
  backdrop-filter: blur(2px);
  background: rgba(0,0,0,0.4);

  @media screen and (max-width: 768px) {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: none;
  }
}

.slide-details {
  font: 400 12px/1.2 'Montserrat', sans-serif;
  color: var(--color-white);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  border-top: 1px solid var(--color-white);
}

.slide-details__col1 {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;

  @media screen and (max-width: 768px) {
    width: 100%;
    border-bottom: 1px solid var(--color-white);
  }
}

.slide-details__col2 {
  display: flex;
  padding: 10px;
  border-left: 1px solid var(--color-white);
  border-right: 1px solid var(--color-white);

  @media screen and (max-width: 768px) {
    width: 50%;
    flex-grow: 0;
    height: 60px;
  }
}

.slide-details__col3 {
  display: flex;
  padding: 10px;

  @media screen and (max-width: 768px) {
    width: 50%;
    flex-grow: 0;
    height: 60px;
  }
}

.slide-details__price {
  font: 900 28px/1.2 'Montserrat', sans-serif;
}

.slide-details__beds,
.slide-details__baths {
  font: 900 16px/1.2 'Montserrat', sans-serif;
  margin: auto;
}

/* Why choose section */
.why-choose {
  color: var(--color-white);
  background-color: var(--color-secondary);
}

.choose-content {
  max-width: 794px;
  width: 100%;
  margin: auto;
  text-align: center;

  + .choose-list {
    margin-top: 32px;

    @media screen and (max-width: 768px) {
      margin-top: 40px;
    }
  }
}

.choose-content__text {
  margin: 20px 0 0;

  @media screen and (max-width: 768px) {
    margin: 16px 0 0;
  }
}

.choose-list {
  color: var(--color-white);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;

  @media screen and (max-width: 1024px) {
    grid-template-columns: 1fr 1fr;
  }

  @media screen and (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.choose-list__item {
  padding: 28px;
  border: 1px solid #DFDFE1;
  text-align: center;

  @media screen and (max-width: 768px) {
    padding: 24px;
  }
}

.choose-list__title {
  font: 800 28px/32px 'Montserrat', sans-serif;

  @media screen and (max-width: 768px) {
    font-size: 24px;
    line-height: 1.2;
  }
}

.choose-list__txt {
  margin: 20px 0 0;

  @media screen and (max-width: 768px) {
    margin: 16px 0 0;
  }
}

/* Person section */
.person {
  background-color: var(--color-white);
}

.person-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 562px;

  @media screen and (max-width: 1024px) {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
}

.person-content__photo {
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media screen and (max-width: 1024px) {
    display: none;
  }
}

.person-content__details {
  padding: 40px 0 40px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;

  @media screen and (max-width: 1024px) {
    padding: 0;
  }

  @media screen and (max-width: 768px) {
    padding: 0;
    justify-content: center;
    align-items: flex-start;
  }
}

.person-content__info {
  max-width: 500px;

  img {
    display: none;

    @media screen and (max-width: 1024px) {
      display: block;
    }
  }

  @media screen and (max-width: 1024px) {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin: auto;
  }
}

.person-content__text {
  margin: 20px 0 0;

  @media screen and (max-width: 1024px) {
    margin: 0;
  }
}

/* Cities section */
.cities {
  --spacing: 10px;

  background-color: var(--color-white);

  @media screen and (max-width: 1024px) {
    --spacing: 4px;
  }
}

.cities-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 45px;

  @media screen and (max-width: 1024px) {
    gap: 20px;
  }
}

.city-pictures {
  display: flex;
  flex-wrap: wrap;
  margin-inline: calc(var(--spacing) * -1);
  margin-top: calc(var(--spacing) * -1);
}

.city-pictures__item {
  position: relative;
  width: 25%;
  height: 300px;
  flex-grow: 1;
  padding: var(--spacing);

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  &::before {
    content: '';
    position: absolute;
    bottom: var(--spacing);
    left: var(--spacing);
    right: var(--spacing);
    height: 40%;
    background: linear-gradient(to top, #262322 0%, transparent 100%);
    z-index: 0;
  }

  &:first-of-type {
    @media screen and (max-width: 768px) {
      width: 100%;
      height: 260px;
    }
  }

  @media screen and (max-width: 1024px) {
    width: 50%;
    flex-grow: 0;
  }

  @media screen and (max-width: 768px) {
    height: 160px;
  }
}

.city-pictures__name {
  position: absolute;
  z-index: 1;
  bottom: var(--spacing);
  left: var(--spacing);
  right: var(--spacing);
  padding: 20px;

  text-align: center;
  font: 900 32px/1.2 'Montserrat', sans-serif;
  color: var(--color-white);

  @media screen and (max-width: 768px) {
    font-size: 20px;
  }
}

/* Marketing section */
.marketing {
  color: var(--color-white);
  background-color: var(--color-secondary);
  position: relative;
}

.marketing-content {
  display: grid;
  grid-template-columns: 50%;

    @media screen and (max-width: 1024px) {
      grid-template-columns: 1fr;
    }
}

.marketing-content__details {
  padding-block: var(--padding-inner-section);
}

.marketing-content__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;

  @media screen and (max-width: 1024px) {
    max-width: 100%;
  }

  @media screen and (max-width: 768px) {
    text-align: center;
  }
}

.marketing-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50vw;
  background: url("../images/home/marketing.webp") no-repeat bottom center;
  background-size: cover;

  @media screen and (max-width: 1024px) {
    position: static;
    width: 100%;
    margin: 0 auto;
    height: 560px;
  }

  @media screen and (max-width: 768px) {
    max-width: 100%;
    height: 300px;
    background-size: cover;
  }
}

/* Popular cities section */
.popular-cities {
  background-color: #F7F7F7;
}

.popular-cities-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cities-list {
  column-width: 250px;
  column-gap: 20px;

  @media screen and (max-width: 768px) {
    column-count: 2;
    column-width: auto;
  }

  a {
    font: 400 18px/26px 'Roboto', sans-serif;

    @media screen and (max-width: 768px) {
      font-size: 14px;
      line-height: 1.2;
    }
  }
}


/* Testimonials section */
.testimonials {
  padding-block: var(--padding-inner-section);
  background-color: var(--color-tertiary);
  min-height: 526px;

  @media screen and (max-width: 1024px) {
    min-height: auto;
  }

  h3 {
    text-align: center;
  }

  .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition-property: transform, color;
    transition-duration: 0.3s;

    color: #ACACAD;

    &.swiper-slide-active {
      color: var(--color-text);
    }
  }
}

.testimonials-swiper {
  transition: all 0.3s;
  opacity: 0;

    &.is-init {
      opacity: 1;
    }
}

.testimonials__top {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: flex-end;

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

.testimonials__quotes {
  position: absolute;
  left: 0;
  top: 0;

  @media screen and (max-width: 768px) {
    width: 112px;
    height: 88px;
  }
}

.testimonial {
  max-width: 600px;
  margin: 0 auto;

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

.testimonial__text {
  font: 900 28px/1.2 'Roboto', sans-serif;
  text-align: justify;

  @media screen and (max-width: 1024px) {
    font-size: 22px;
  }

  @media screen and (max-width: 768px) {
    font-size: 18px;
  }
}

.testimonial__person {
  margin-top: 20px;
  font: 400 22px/1.2 'Montserrat', sans-serif;

  @media screen and (max-width: 1024px) {
    font-size: 18px;
  }

  @media screen and (max-width: 768px) {
    font-size: 16px;
  }
}
