/* =========================
   HOME HERO
========================= */

.home-hero {
  background: var(--color-green02);
  padding: 24px 0 40px;
}

.home-hero__container {
  width: min(95% - 40px, 1700px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 0;
  align-items: stretch;
}

.home-hero__content {
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 36px 8px 0;
  }

.home-hero__top {
  display: flex;
  flex-direction: column;
  align-items: end;
}

.home-hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 2.2vw, 5rem);
  line-height: 0.92;
  font-weight: 300;
  text-transform: uppercase;
  text-align: right;
  letter-spacing: -0.03em;
}

.home-hero__title span {
  display: inline-block;
  font-weight: 700;
}

.home-hero__cta {
  margin-top: 42px;
  display: inline-block;
  transition: var(--transition-medium);
}

.home-hero__cta img {
  width: clamp(180px, 13vw, 320px);
  height: auto;
  display: block;
}

.home-hero__cta:hover {
  transform: translateY(-2px);
}

.home-hero__bottom {
  max-width: 530px;
  margin: 0 auto;
  text-align: right;
}

.home-hero__subtitle {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 1.4vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
}

.home-hero__description {
  margin: 0;
  font-size: clamp(1.2rem, 1vw, 2rem);
  line-height: 1.15;
  font-weight: 400;
}

.home-hero__media {
  min-height: 40vh;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* =========================
   HOME HERO RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .home-hero__container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-hero__content {
    min-height: auto;
    padding: 0;
    gap: 40px;
  }

  .home-hero__top {
    align-items: center;
  }

  .home-hero__bottom {
    max-width: 100%;
  }

  .home-hero__media {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 32px 0 28px;
  }

  .home-hero__container {
    width: min(100% - 24px, 1600px);
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .home-hero__content {
    display: contents;
  }

  .home-hero__top {
    display: contents;
  }

  .home-hero__media {
    order: 1;
    min-height: 150px;
    position: relative;
    z-index: 1;
  }

  .home-hero__cta {
    order: 2;
    display: flex;
    justify-content: center;
    margin-top: -9vw;
    position: relative;
    z-index: 2;
  }

  .home-hero__cta img {
    width: auto;
    height: 18vw;
    display: block;
  }

  .home-hero__title {
    order: 3;
    margin-top: 24px;
    font-size: clamp(1.5rem, 6vw, 3.6rem);
    line-height: 0.95;
    text-align: center;
  }

  .home-hero__bottom {
    order: 4;
    max-width: 100%;
    margin: 24px auto 0;
    text-align: center;
  }

  .home-hero__subtitle {
    font-size: 1.2rem;
    line-height: 1.08;
    text-align: center;
  }

  .home-hero__description {
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: center;
  }
}


/* =========================
   HOME HIGHLIGHT BAR
========================= */

.home-highlight-bar {
  background: var(--color-white);
  padding: 45px 0 42px;
}

.home-highlight-bar__container {
  width: min(92% - 40px, 1600px);
  margin: 0 auto;
}

.home-highlight-bar__text {
  margin: 0;
  color: var(--color-secondary);
  font-size: clamp(1.4rem, 2.1vw, 3rem);
  line-height: 1.1;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.home-highlight-bar__text strong {
  font-weight: 700;
}

@media (max-width: 640px) {
  .home-highlight-bar {
    padding: 25px 0 22px;
  }

  .home-highlight-bar__container {
    width: min(100% - 24px, 1600px);
  }

  .home-highlight-bar__text {
    font-size: 1.1rem;
    line-height: 1.2;
  }
}

/* =========================
   HOME BALANCE
========================= */

.home-balance {
  position: relative;
  background: var(--color-bg);
}

.home-balance__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--color-accent) 0%,
    var(--color-accent) 67%,
    var(--color-bg) 67%,
    var(--color-bg) 100%
  );
  z-index: 0;
}

.home-balance__container {
  position: relative;
  z-index: 1;
  width: min(95% - 40px, 1700px);
  margin: 0 auto;
  padding: 48px 0 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 40px;
  align-items: start;
}

.home-balance__left img,
.home-balance__photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.home-balance__left {
  align-self: stretch;
}

.home-balance__left img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.home-balance__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 38px;
  height: 100%;
}

.home-balance__photo {
  width: 100%;
}

.home-balance__photo img {
  aspect-ratio: 0.95 / 1;
  object-fit: cover;
}

.home-balance__text {
  width: 100%;
  margin-top: auto;
}

.home-balance__title {
  margin: 0 0 18px;
  color: var(--color-white);
  font-size: clamp(2rem, 2vw, 3.6rem);
  line-height: 1.02;
  font-weight: 400;
}

.home-balance__title span {
  font-weight: 700;
  color: var(--color-white);
}

.home-balance__title strong {
  font-weight: 700;
  color: var(--color-white);
}

.home-balance__description {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(1rem, 1vw, 1.4rem);
  line-height: 1.15;
  max-width: 80%;
}

/* =========================
   HOME BALANCE RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .home-balance__bg {
    background: linear-gradient(
      to bottom,
      var(--color-accent) 0%,
      var(--color-accent) 52%,
      var(--color-bg) 52%,
      var(--color-bg) 100%
    );
  }

  .home-balance__container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-balance__left img {
    min-height: 420px;
  }

  .home-balance__right {
    align-items: flex-start;
    gap: 24px;
  }

  .home-balance__photo {
    width: min(100%, 320px);
  }

  .home-balance__text {
    max-width: 100%;
  }

  .home-balance__description {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .home-balance__bg {
    background: linear-gradient(
      to bottom,
      var(--color-primary) 0%,
      var(--color-primary) 44%,
      var(--color-bg) 44%,
      var(--color-bg) 100%
    );
  }

  .home-balance__container {
    width: min(92% - 24px, 1600px);
    padding: 28px 0 28px;
    gap: 20px;
  }

  .home-balance__left img {
    min-height: 260px;
  }

   .home-balance__right {
    gap: 18px;
  }

  .home-balance__text {
    text-align: left;
  }

  .home-balance__title {
    font-size: 2rem;
    line-height: 1.02;
    margin-bottom: 14px;
  }

  .home-balance__description {
    font-size: 1rem;
    line-height: 1.2;
  }

  .home-balance__photo {
        width: 100%;
    }


    .home-balance__title {
  color: var(--color-primary);
}

.home-balance__title span {
  color: var(--color-primary);
}

.home-balance__title strong {
  color: var(--color-primary);
}

.home-balance__description {
  color: var(--color-text);
}


}

/* =========================
   HOME LOCATION
========================= */

.home-location {
  background: var(--color-bg);
  padding: 42px 0 40px;
}

.home-location__container {
  width: min(95% - 40px, 1700px);
  margin: 0 auto;
}

.home-location__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 26px;
}

.home-location__switch-btn.is-active {
  color: var(--color-white);
}

.home-location__iframe {
  width: 100%;
  height: 100%;
  min-height: 65svh;
  border: 0;
  display: block;
}


.home-location__switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: min(100%, 300px);
  height: 36px;
  border: 2px solid var(--color-secondary);
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
}

.home-location__switch-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: var(--color-secondary);
  border-radius: 999px;
  transition: transform 0.35s ease;
  z-index: 1;
}

.home-location__switch.is-map .home-location__switch-indicator {
  transform: translateX(100%);
}

.home-location__switch.is-360 .home-location__switch-indicator {
  transform: translateX(0);
}

.home-location__switch-btn {
  position: relative;
  z-index: 2;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--color-secondary);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.35s ease;
}

.home-location__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 26px;
  align-items: stretch;
}

.home-location__viewer {
  background: #ddd;
  
}

.home-location__label {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-location__label span {
  display: inline-block;
  color: var(--color-secondary);
  font-size: 11svh;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
}

/* =========================
   HOME LOCATION RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .home-location__content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-location__label {
    justify-content: flex-start;
  }

  .home-location__label span {
    writing-mode: initial;
    transform: none;
    font-size: 2.2rem;
  }

  .home-location__viewer,
  .home-location__iframe {
    min-height: 560px;
  }
}

@media (max-width: 640px) {
  .home-location {
    padding: 28px 0 28px;
  }

  .home-location__container {
    width: min(100% - 24px, 1700px);
    display: flex;
    flex-direction: column;
  }

   .home-location__viewer,
  .home-location__iframe {
    height: 60svh;
  }

  .home-location__content {
    display: contents;
  }

  .home-location__label {
    order: 1;
    justify-content: center;
  }

  .home-location__label span {
    writing-mode: initial;
    transform: none;
    font-size: 15vw;
    text-align: center;
    line-height: 0.9;
  }

  .home-location__top {
    order: 2;
    display: flex;
    justify-content: center;
    margin: 12px 0 18px;
  }

  .home-location__switch {
    width: min(100%, 320px);
    height: 46px;
  }

  .home-location__switch-btn {
    font-size: 0.8rem;
  }

  .home-location__viewer {
    order: 3;
  }

  .home-location__viewer,
  .home-location__iframe {
    min-height: 380px;
  }
}


/* =========================
   HOME COMMON AREAS
========================= */

.home-common-areas {
  background: var(--color-bg);
  padding: 48px 0 56px;
  overflow: hidden;
}

.home-common-areas__container {
  width: min(95% - 40px, 1700px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 38vw 1fr;
  grid-template-areas:
    "left right"
    "left content";
  column-gap: 56px;
  row-gap: 18px;
  align-items: start;
}

.home-common-areas__left {
  grid-area: left;
}

.home-common-areas__left img {
  width: 100%;
  height: auto;
  display: block;
  padding-top: 3vw;
}

.home-common-areas__right {
  grid-area: right;
  display: flex;
  justify-content: center;
}

.home-common-areas__collage {
  position: relative;
  width: 100%;
  max-width: 37vw;
  min-height: 30vw;
}

.home-common-areas__circle {
  position: absolute;
  width: 14vw;
  height: 14vw;
  border-radius: 50%;
  border: solid 3.5vw var(--color-green03);
  left: 5vw;
  top: 78px;
  z-index: 1;
}

.home-common-areas__small {
  position: absolute;
  z-index: 2;
}

.home-common-areas__small img {
  width: 100%;
  height: auto;
  display: block;
}

.home-common-areas__small--top {
  left: 0;
  top: 0;
  width: 15vw;
}

.home-common-areas__small--bottom {
  right: 0;
  top: 12vw;
  width: 25vw;
}

.home-common-areas__title {
  grid-column: 2;
  grid-row: 2;
  margin: 0 0 16px;
  color: var(--color-green02);
  font-size: clamp(3.4rem, 6.5vw, 8rem);
  line-height: 0.92;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  z-index: 3;
  margin-left: -15vw;
}

.home-common-areas__content {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 7vw;
}

.home-common-areas__description {
  margin: 0;
  max-width: 760px;
  color: var(--color-black);
  font-size: clamp(1rem, 1vw, 1.35rem);
  line-height: 1.1;
}

.home-common-areas__description--mobile {
  display: none;
}

/* =========================
   HOME COMMON AREAS RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .home-common-areas {
    padding: 40px 0 42px;
  }

  .home-common-areas__container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "content";
    gap: 22px;
  }

  .home-common-areas__left {
    max-width: 520px;
  }

  .home-common-areas__right {
    justify-content: flex-start;
  }

  .home-common-areas__collage {
    max-width: 420px;
    min-height: 280px;
  }

  .home-common-areas__circle {
    width: 180px;
    height: 180px;
    left: 90px;
    top: 56px;
  }

  .home-common-areas__small--top {
    width: 180px;
  }

  .home-common-areas__small--bottom {
    width: 240px;
    top: 130px;
  }

  .home-common-areas__content {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .home-common-areas {
    padding: 30px 0 34px;
  }

  .home-common-areas__container {
    width: min(95% - 24px, 1700px);
    display: grid;
    grid-template-columns: 55vw 1fr;
    grid-template-areas:
      "title title"
      "left content";
    column-gap: 18px;
    row-gap: 14px;
    align-items: start;
  }

  .home-common-areas__right,
  .home-common-areas__collage,
  .home-common-areas__circle,
  .home-common-areas__small,
  .home-common-areas__small--top,
  .home-common-areas__small--bottom {
    display: none;
  }

  .home-common-areas__title {
    grid-area: title;
    margin: 0;
    font-size: clamp(2.8rem, 14vw, 4.4rem);
    line-height: 0.9;
    text-align: right;
    margin-bottom: -12vw;
  }

  .home-common-areas__left {
    grid-area: left;
    max-width: 100%;
    width: 100%;
  }

  .home-common-areas__left img {
    width: 100%;
    height: auto;
    display: block;
  }

  .home-common-areas__content {
    grid-area: content;
    margin-top: 0;
    align-self: end;
  }

  .home-common-areas__description {
    font-size: 1rem;
    line-height: 1.12;
    margin: 0;
  }

  .home-common-areas__description--desktop {
    display: none;
  }

  .home-common-areas__description--mobile {
    display: block;
    max-width: 220px;
  }
}


/* =========================
   HOME GALLERY
========================= */

.home-gallery {
  background: var(--color-bg);
  padding: 80px 0 80px;
  overflow: hidden;
}

.home-gallery__container {
  width: 100%;
  margin: 0;
}

.home-gallery__viewport {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  min-height: var(--gallery-viewport-height, 520px);
}

.home-gallery__viewport.is-dragging {
  cursor: grabbing;
}

.home-gallery__track {
  display: flex;
  align-items: flex-start;
  gap: var(--gallery-gap, 10px);
  width: max-content;
  will-change: transform;
  transform: translateX(0);
}

.home-gallery__track.is-animating {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-gallery__slide {
  flex: 0 0 auto;
  width: var(--gallery-thumb-width, 220px);
  opacity: 0.92;
  transition:
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.home-gallery__slide.is-active {
  width: var(--gallery-active-width, 540px);
  opacity: 1;
}

.home-gallery__slide img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.home-gallery__footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition:
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    margin-left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-gallery__title {
  margin: 0;
  color: var(--color-secondary);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
}

.home-gallery__arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-gallery__arrow {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--transition-medium), transform var(--transition-medium);
  padding: 0;
}

.home-gallery__arrow span {
  font-size: 2.3rem;
  line-height: 1;
  display: block;
}

.home-gallery__arrow:hover {
  color: var(--color-green02);
}

.home-gallery__arrow:active {
  transform: scale(0.96);
}

/* =========================
   HOME GALLERY RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .home-gallery {
    padding: 34px 0 42px;
  }

  .home-gallery__title {
    font-size: 2rem;
  }

  .home-gallery__arrow span {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .home-gallery {
    padding: 28px 0 34px;
  }

  .home-gallery__title {
    font-size: 1.5rem;
  }

  .home-gallery__arrow span {
    font-size: 1.8rem;
  }

  .home-gallery__footer {
    gap: 12px;
  }
}

/* =========================
   HOME GALLERY IPHONE
========================= */

.home-gallery-iphone {
  display: none;
  background: var(--color-bg);
  padding: 52px 0;
}

.home-gallery-iphone__viewport {
  overflow: hidden;
  width: 100%;
}

.home-gallery-iphone__track {
  display: flex;
  gap: 12px;
  padding: 0 12%;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.home-gallery-iphone__track::-webkit-scrollbar {
  display: none;
}

.home-gallery-iphone__slide {
  flex: 0 0 76%;
  scroll-snap-align: center;
}

.home-gallery-iphone__slide img {
  width: 100%;
  height: auto;
  display: block;
}


/* =========================
   HOME APARTMENTS
========================= */

.home-apartments {
  background: var(--color-green02);
  position: relative;
  overflow: hidden;
}

.home-apartments__container {
  width: 100%;
  margin: 0 auto;
  position: relative;
  min-height: 65svh;
}

.home-apartments__shape {
  position: absolute;
  display: block;
  pointer-events: none;
}

.home-apartments__shape--top {
  top: -10px;
  left: 3vw;
  width: 40vw;
  height: auto;
  z-index: 1;
}

.home-apartments__shape--bottom {
  right: 0;
  bottom: -90px;
  width: 260px;
  height: auto;
  z-index: 1;
}

.home-apartments__image {
  position: relative;
  z-index: 2;
  width: min(100%, 40vw);
  margin: 0 auto;
  padding: 8vh 0;
}

.home-apartments__image img {
  width: 100%;
  height: auto;
  display: block;
}

.home-apartments__content {
  position: absolute;
  left: 72vw;
  bottom: 8vh;
  z-index: 3;
  max-width: 15vw;
}

.home-apartments__description {
  margin: 0 0 24px;
  color: var(--color-white);
  font-size: clamp(0.8rem, 0.9vw, 1.35rem);
  line-height: 1.15;
}

.home-apartments__cta {
  display: inline-block;
  transition: var(--transition-medium);
}

.home-apartments__cta img {
  width: clamp(180px, 11vw, 260px);
  height: auto;
  display: block;
}

.home-apartments__cta:hover {
  transform: translateY(-2px);
}

.home-apartments__title {
  position: absolute;
  left: 3vw;
  bottom: 40px;
  z-index: 3;
  margin: 0;
  color: var(--color-white);
  font-size: clamp(3.4rem, 7vw, 7.5rem);
  line-height: 0.9;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

/* =========================
   HOME APARTMENTS RESPONSIVE
========================= */


@media (max-width: 1100px) {
  .home-apartments__container {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-apartments__shape--top {
    width: 300px;
    left: -70px;
  }

  .home-apartments__shape--bottom {
    width: 200px;
    right: -80px;
    bottom: -70px;
  }

  .home-apartments__content,
  .home-apartments__title {
    position: relative;
    right: auto;
    top: auto;
    left: auto;
    bottom: auto;
  }

  .home-apartments__image {
    margin: 0 auto;
  }

  .home-apartments__content {
    max-width: 100%;
  }

  .home-apartments__title {
    margin-top: 8px;
  }
}

@media (max-width: 640px) {

  .home-apartments__shape--top {
    width: 60vw;
    left: -30vw;
    top: 0px;
  }

  .home-apartments__shape--bottom {
    width: 40vw;
    right: 0;
    bottom: 0;
  }

  .home-apartments__content {
  width: 90vw;
  padding-left: 5vw;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
 }

  .home-apartments__description {
    font-size: 1rem;
    line-height: 1.18;
    text-align: center;
  }

  .home-apartments__cta img {
    width: 180px;
  }

  .home-apartments__title {
    font-size: clamp(2.7rem, 11vw, 4.6rem);
    text-align: center;
    padding-bottom: 50px;
  }

  .home-apartments__image {
  width: 80vw;
  padding-top:8vh;
  padding-bottom: 2vh;
}
}