.map.map-2gis {
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  align-items: stretch;
  justify-content: stretch;
  min-height: 420px;
  padding: 0;
  overflow: hidden;
  background: #e9ece4;
}

.map-2gis iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.map-2gis .map-route {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-top: 1px solid #d9ded4;
  background: #fffdf8;
  color: #173e42;
  font: 700 14px/1.3 Arial, sans-serif;
  text-decoration: none;
}

.map-2gis .map-route:hover {
  background: #f2eee4;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.contact-lines a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 12px 14px;
  border: 1px solid #d9ded4;
  border-radius: 12px;
  background: #fffdf8;
  color: #173e42;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.contact-lines a:hover {
  border-color: #bdc8bd;
  background: #f2eee4;
}

.contact-lines strong {
  font: 700 17px/1.2 Arial, sans-serif;
  white-space: nowrap;
}

.contact-lines span {
  color: #657071;
  font-size: 13px;
}

/* Keep Майса's face level with Даулет's inside the shared card crop. */
.person img.portrait-maysa {
  object-position: 50% 53%;
}

/* The single wide Merey card needs a higher focal point than portrait cards. */
.person img.portrait-merey {
  object-position: 50% 8%;
}

.team.team-single {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
}

.gallery.gallery-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resort-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(32px, 7vw, 90px);
  align-items: center;
  padding: 60px clamp(24px, 5vw, 72px);
  border-radius: 8px;
  background: #173e42;
  color: #fffdf8;
  overflow: hidden;
}

.resort-video .eyebrow {
  color: #d9c69b;
}

.resort-video h2 {
  max-width: 620px;
}

.resort-video-copy > p:last-child {
  max-width: 540px;
  margin-bottom: 0;
  color: #d6dfdc;
}

.resort-video-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  border-radius: 110px 8px 8px 8px;
  overflow: hidden;
  background: #0e292c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.resort-video-frame.video-portrait-3-4 {
  max-width: 520px;
  border-radius: 100px 8px 8px 8px;
}

.resort-video video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.resort-video-frame.video-portrait-3-4 video {
  aspect-ratio: 3 / 4;
}

@media (max-width: 650px) {
  .map.map-2gis {
    min-height: 430px;
  }

  .map-2gis iframe {
    min-height: 370px;
  }

  .contact-lines a {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .team.team-single {
    grid-template-columns: 1fr;
  }

  .team.team-single > div:first-child {
    grid-column: auto;
  }

  .resort-video {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px 20px;
  }

  .resort-video-frame {
    max-width: none;
    border-radius: 70px 7px 7px 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resort-video video {
    display: none;
  }

  .resort-video-frame {
    min-height: 420px;
    background: #0e292c url('/assets/almaty-resort-cover.jpg') center / cover no-repeat;
  }

  .resort-video.koktem-video .resort-video-frame {
    background-image: url('/assets/koktem-resort-cover.jpg');
  }
}
