.home-villages-hub {
  margin: 0 0 34px;
  padding: 42px 0 46px;
  overflow: hidden;
  color: #1f2b24;
  background: #f3f5f1;
}

.home-villages-hub,
.home-villages-hub * {
  box-sizing: border-box;
}

.home-villages-hub__inner.vd_container,
.home-villages-hub__inner {
  width: calc(100% - 32px);
  max-width: 1500px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

.home-villages-hub__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.home-villages-hub__title {
  margin: 0;
  color: #1f2d25;
  font-family: Arial, sans-serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.08;
}

.home-villages-hub__title a,
.home-villages-hub__title a:hover,
.home-villages-hub__title a:focus,
.home-villages-hub__title a:active {
  color: inherit;
  text-decoration: none;
}

.home-villages-hub__all,
.home-villages-hub__all:hover,
.home-villages-hub__all:focus,
.home-villages-hub__all:active {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  color: #f8fff8;
  background: #243f2e;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(36, 63, 46, .18);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.home-villages-hub__all:hover,
.home-villages-hub__all:focus {
  background: #1a3123;
}

.home-villages-hub__directions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.home-villages-hub__card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(35, 47, 39, .12);
}

.home-villages-hub__hero,
.home-villages-hub__hero:hover,
.home-villages-hub__hero:focus,
.home-villages-hub__hero:active {
  position: relative;
  display: block;
  min-height: 264px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.home-villages-hub__hero-image,
.home-villages-hub__hero-shade {
  position: absolute;
  inset: 0;
  display: block;
}

.home-villages-hub__hero-image {
  background-image: var(--village-bg);
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
  transition: transform .45s ease;
}

.home-villages-hub__hero:hover .home-villages-hub__hero-image,
.home-villages-hub__hero:focus .home-villages-hub__hero-image {
  transform: scale(1.045);
}

.home-villages-hub__hero-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .36) 60%, rgba(0, 0, 0, .68) 100%),
    linear-gradient(90deg, rgba(8, 24, 16, .68) 0%, rgba(8, 24, 16, .30) 48%, rgba(8, 24, 16, .02) 100%);
}

.home-villages-hub__hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 520px;
  min-height: 264px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 30px 30px 34px;
}

.home-villages-hub__hero-copy::before {
  content: "";
  position: absolute;
  bottom: 33px;
  left: 22px;
  width: 2px;
  height: 72px;
  background: var(--village-accent);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(var(--village-accent-rgb), .64);
}

.home-villages-hub__count {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.home-villages-hub__direction-title {
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.04;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .36);
}

.home-villages-hub__direction-text {
  display: block;
  max-width: 470px;
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  line-height: 1.32;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .44);
}

.home-villages-hub__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px 20px 22px;
}

.home-villages-hub__body-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  color: #718074;
  border-bottom: 1px solid rgba(39, 67, 47, .10);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.home-villages-hub__body-head span:last-child {
  color: #2d4233;
  white-space: nowrap;
}

.home-villages-hub__villages {
  display: grid;
  gap: 8px;
}

.home-villages-hub__card--izhs .home-villages-hub__villages {
  grid-template-columns: minmax(0, 1fr);

}

.home-villages-hub__card--snt .home-villages-hub__villages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-villages-hub__village,
.home-villages-hub__village:hover,
.home-villages-hub__village:focus,
.home-villages-hub__village:active {
  display: grid;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 9px;
  color: #233329;
  background: linear-gradient(180deg, #fbfcfa 0%, #f5f8f2 100%);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(41, 73, 48, .08);
  text-decoration: none;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-villages-hub__village:hover,
.home-villages-hub__village:focus {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--village-accent-rgb), .28), 0 10px 18px rgba(28, 47, 34, .09);
  transform: translateY(-1px);
}

.home-villages-hub__mark {
  display: flex;
  width: 28px;
  height: 28px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: rgba(var(--village-accent-rgb), .11);
  border-radius: 50%;
  color: #1f3c2b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.home-villages-hub__village--logo .home-villages-hub__mark {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(32, 54, 37, .08);
}

.home-villages-hub__mark img {
  display: block;
  max-width: 22px;
  max-height: 22px;
  object-fit: contain;
}

.home-villages-hub__village-copy {
  display: block;
  min-width: 0;
}

.home-villages-hub__village-name {
  display: block;
  min-width: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.home-villages-hub__village-meta {
  display: block;
  min-width: 0;
  margin-top: 2px;
  overflow: hidden;
  color: #758078;
  font-size: 10px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1250px) {
  .home-villages-hub__directions {
    gap: 18px;
  }

  .home-villages-hub__card--snt .home-villages-hub__villages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home-villages-hub {
    padding: 34px 0 38px;
  }

  .home-villages-hub__directions {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-villages-hub__hero,
  .home-villages-hub__hero:hover,
  .home-villages-hub__hero:focus,
  .home-villages-hub__hero:active,
  .home-villages-hub__hero-copy {
    min-height: 236px;
  }

  .home-villages-hub__card--snt .home-villages-hub__villages,
  .home-villages-hub__card--izhs .home-villages-hub__villages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-villages-hub {
    margin-bottom: 26px;
    padding: 28px 0 32px;
  }

  .home-villages-hub__inner.vd_container,
  .home-villages-hub__inner {
    width: calc(100% - 28px);
  }

  .home-villages-hub__top {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .home-villages-hub__title {
    font-size: 30px;
  }

  .home-villages-hub__all,
  .home-villages-hub__all:hover,
  .home-villages-hub__all:focus,
  .home-villages-hub__all:active {
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
  }

  .home-villages-hub__hero,
  .home-villages-hub__hero:hover,
  .home-villages-hub__hero:focus,
  .home-villages-hub__hero:active,
  .home-villages-hub__hero-copy {
    min-height: 220px;
  }

  .home-villages-hub__hero-copy {
    padding: 24px 24px 25px 32px;
  }

  .home-villages-hub__hero-copy::before {
    bottom: 28px;
    left: 20px;
    height: 64px;
  }

  .home-villages-hub__direction-title {
    font-size: 25px;
  }

  .home-villages-hub__direction-text {
    font-size: 14px;
  }

  .home-villages-hub__body {
    padding: 16px;
  }

  .home-villages-hub__card--snt .home-villages-hub__villages,
  .home-villages-hub__card--izhs .home-villages-hub__villages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-villages-hub__village {
    min-height: 44px;
  }
}

@media (max-width: 430px) {
  .home-villages-hub__title {
    font-size: 26px;
  }

  .home-villages-hub__body-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .home-villages-hub__direction-title {
    font-size: 23px;
  }
}

@media (max-width: 360px) {
  .home-villages-hub__card--snt .home-villages-hub__villages,
  .home-villages-hub__card--izhs .home-villages-hub__villages {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Home villages embedded in realty hub */
.home-realty-hub .home-villages-hub--embedded {
  position: relative;
  margin: 0;
  padding: 22px 0 0;
  overflow: visible;
  background: transparent;
}

.home-realty-hub .home-villages-hub--embedded .home-villages-hub__directions {
  gap: 16px;
}

.home-realty-hub .home-villages-hub--embedded .home-villages-hub__hero,
.home-realty-hub .home-villages-hub--embedded .home-villages-hub__hero:hover,
.home-realty-hub .home-villages-hub--embedded .home-villages-hub__hero:focus,
.home-realty-hub .home-villages-hub--embedded .home-villages-hub__hero:active,
.home-realty-hub .home-villages-hub--embedded .home-villages-hub__hero-copy {
  min-height: 232px;
}

.home-realty-hub .home-villages-hub--embedded .home-villages-hub__village-meta {
  display: block;
}

@media (max-width: 980px) {
  .home-realty-hub .home-villages-hub--embedded {
    margin-top: 0;
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  .home-realty-hub .home-villages-hub--embedded .home-villages-hub__hero,
  .home-realty-hub .home-villages-hub--embedded .home-villages-hub__hero:hover,
  .home-realty-hub .home-villages-hub--embedded .home-villages-hub__hero:focus,
  .home-realty-hub .home-villages-hub--embedded .home-villages-hub__hero:active,
  .home-realty-hub .home-villages-hub--embedded .home-villages-hub__hero-copy {
    min-height: 220px;
  }

  .home-realty-hub .home-villages-hub--embedded .home-villages-hub__village-meta {
    display: block;
    max-height: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}


/* Home villages meta readability */
.home-realty-hub .home-villages-hub--embedded .home-villages-hub__card--snt .home-villages-hub__village {
  min-height: 54px;
  align-items: start;
}

.home-realty-hub .home-villages-hub--embedded .home-villages-hub__card--snt .home-villages-hub__mark {
  margin-top: 1px;
}

.home-realty-hub .home-villages-hub--embedded .home-villages-hub__card--snt .home-villages-hub__village-meta {
  max-height: 2.28em;
  white-space: normal;
}


/* Home villages final mobile overrides */
.home-realty-hub .home-villages-hub--embedded {
  margin-top: 0;
}

@media (max-width: 768px) {
  .home-realty-hub .home-villages-hub--embedded {
    margin-top: 0;
  }

  .home-realty-hub .home-villages-hub--embedded .home-villages-hub__village-meta,
  .home-realty-hub .home-villages-hub--embedded .home-villages-hub__card--snt .home-villages-hub__village-meta {
    max-height: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

/* Home villages banner and map modal */
.home-villages-hub__banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 172px;
  margin-bottom: 18px;
  overflow: hidden;
  background-image: var(--village-banner-bg);
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(22, 48, 36, .12);
}

.home-villages-hub__banner::before,
.home-villages-hub__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-villages-hub__banner::before {
  background:
    linear-gradient(90deg, rgba(14, 57, 35, .58) 0%, rgba(14, 57, 35, .26) 46%, rgba(14, 57, 35, .06) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 100%);
}

.home-villages-hub__banner::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .36);
  border-radius: inherit;
}

.home-villages-hub__banner-link,
.home-villages-hub__banner-link:hover,
.home-villages-hub__banner-link:focus,
.home-villages-hub__banner-link:active {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 760px;
  padding: 30px 34px;
  color: #fff;
  text-decoration: none;
}

.home-villages-hub__banner-title {
  display: block;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.02;
  text-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.home-villages-hub__banner-text {
  position: relative;
  display: block;
  max-width: 560px;
  padding-left: 16px;
  color: rgba(255, 255, 255, .95);
  font-size: 15px;
  line-height: 1.28;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.home-villages-hub__banner-text::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 2px;
  background: #62e59e;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(98, 229, 158, .55);
}

.home-villages-hub__map-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 190px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-right: 28px;
  padding: 0 20px;
  color: #173a2b;
  background: rgba(255, 255, 255, .94);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(18, 55, 36, .24);
  cursor: pointer;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.home-villages-hub__map-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #45a66d;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.home-villages-hub__map-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  background: #45a66d;
  border-radius: 50%;
}

.home-villages-hub__hero-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .16) 60%, rgba(0, 0, 0, .45) 100%),
    linear-gradient(90deg, rgba(8, 24, 16, .50) 0%, rgba(8, 24, 16, .18) 52%, rgba(8, 24, 16, .02) 100%);
}

.home-villages-hub__hero-copy::before {
  display: none;
}

.home-villages-hub__direction-text {
  position: relative;
  padding-left: 16px;
}

.home-villages-hub__direction-text::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 2px;
  background: var(--village-accent);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(var(--village-accent-rgb), .55);
}

.home-villages-map-modal[hidden] {
  display: none !important;
}

.home-villages-map-modal {
  position: fixed;
  z-index: 10050;
  inset: 20px;
  display: block;
}

.home-villages-map-modal__panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.home-villages-map-modal__close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #173a2b;
  background: rgba(255, 255, 255, .94);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.home-villages-map-modal__map-wrap,
.home-villages-map-modal__map,
.home-villages-map-modal #big_map {
  width: 100%;
  height: 100%;
}

.home-villages-map-modal__map {
  position: relative;
  margin: 0;
}

.home-villages-map-modal #how_come {
  margin-top: -517px;
}

.home-villages-map-modal #how_come_legend {
  margin-top: -720px;
}

html.home-map-modal-open,
body.home-map-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .home-villages-hub__banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    min-height: 210px;
    align-items: end;
  }

  .home-villages-hub__banner-link,
  .home-villages-hub__banner-link:hover,
  .home-villages-hub__banner-link:focus,
  .home-villages-hub__banner-link:active {
    padding: 24px 24px 8px;
  }

  .home-villages-hub__banner-title {
    font-size: 28px;
  }

  .home-villages-hub__banner-text {
    max-width: 300px;
    font-size: 14px;
  }

  .home-villages-hub__map-button {
    justify-self: start;
    min-height: 44px;
    margin: 0 0 24px 24px;
    padding: 0 17px;
    font-size: 14px;
  }

  .home-villages-map-modal {
    inset: 10px;
  }

  .home-villages-map-modal__panel {
    border-radius: 8px;
  }

  .home-villages-map-modal #how_come,
  .home-villages-map-modal #how_come_legend {
    display: none;
  }
}

.home-villages-map-modal .outer.map,
.home-villages-map-modal #big_map {
  height: 100% !important;
  min-height: 0 !important;
}

/* Home villages map v3 */
.home-villages-hub__banner::before {
  background:
    linear-gradient(90deg, rgba(14, 57, 35, .48) 0%, rgba(14, 57, 35, .18) 46%, rgba(14, 57, 35, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 100%);
}

.home-villages-hub__map-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-right: 28px;
}

.home-villages-hub__map-button {
  margin-right: 0;
}

.home-villages-hub__map-button--3d {
  min-width: 132px;
  color: #fff;
  background: rgba(35, 139, 97, .92);
  box-shadow: 0 16px 32px rgba(18, 55, 36, .28);
}

.home-villages-hub__map-button--3d:hover,
.home-villages-hub__map-button--3d:focus {
  background: rgba(27, 124, 86, .98);
}

.home-villages-hub__map-icon--3d {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  transform: none;
}

.home-villages-hub__map-icon--3d::before,
.home-villages-hub__map-icon--3d::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: currentColor;
  clip-path: polygon(50% 0, 92% 24%, 92% 72%, 50% 100%, 8% 72%, 8% 24%);
  opacity: .95;
}

.home-villages-hub__map-icon--3d::after {
  inset: 6px 5px 5px;
  background: rgba(35, 139, 97, .92);
  opacity: 1;
}

.home-villages-map-modal {
  top: calc(45px + 20px);
  right: 20px;
  bottom: 20px;
  left: 20px;
  inset: calc(45px + 20px) 20px 20px;
}

.home-villages-map-modal__close {
  top: 16px;
  right: 16px;
}

.home-villages-map-modal__map-3d {
  display: none;
  width: 100%;
  height: 100%;
  background: #dfe6dc;
}

.home-villages-map-modal__mode-label {
  position: absolute;
  z-index: 4;
  left: 16px;
  top: 16px;
  display: none;
  padding: 9px 13px;
  color: #173a2b;
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.home-villages-map-modal.is-3d .home-villages-map-modal__map {
  display: none !important;
}

.home-villages-map-modal.is-3d .home-villages-map-modal__map-3d,
.home-villages-map-modal.is-3d .home-villages-map-modal__mode-label {
  display: block;
}

.home-villages-map-modal.is-map .home-villages-map-modal__map-3d,
.home-villages-map-modal.is-map .home-villages-map-modal__mode-label {
  display: none;
}

.home-villages-map-modal__map-wrap,
.home-villages-map-modal__map,
.home-villages-map-modal__map-3d,
.home-villages-map-modal #big_map,
.home-villages-map-modal #home_map_3d {
  width: 100%;
  height: 100%;
}

.home-map3d-marker,
.home-map3d-marker:hover,
.home-map3d-marker:focus,
.home-map3d-marker:active {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 150px;
  max-width: 220px;
  padding: 7px 9px 7px 7px;
  color: #173a2b;
  background: rgba(255, 255, 255, .94);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  font-family: "Roboto Condensed", sans-serif;
  text-decoration: none;
  transform: translate(-50%, -100%);
}

.home-map3d-marker img {
  grid-row: 1 / 3;
  display: block;
  width: 34px;
  height: 42px;
  object-fit: contain;
}

.home-map3d-marker span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-map3d-marker small {
  overflow: hidden;
  color: #607067;
  font: 11px/1.1 Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-map3d-controls {
  display: grid;
  gap: 6px;
}

.home-map3d-controls button {
  width: 38px;
  height: 38px;
  color: #173a2b;
  background: rgba(255, 255, 255, .94);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.home-villages-map-modal .outer.map,
.home-villages-map-modal #big_map,
.home-villages-map-modal #home_map_3d {
  height: 100% !important;
  min-height: 0 !important;
}

@media (max-width: 768px) {
  .home-villages-hub__map-actions {
    justify-content: flex-start;
    margin: 0 0 24px 24px;
  }

  .home-villages-hub__map-button {
    margin: 0;
  }

  .home-villages-map-modal {
    top: calc(45px + 10px);
    right: 10px;
    bottom: 10px;
    left: 10px;
    inset: calc(45px + 10px) 10px 10px;
  }

  .home-villages-map-modal__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 27px;
  }

  .home-villages-map-modal__mode-label {
    left: 10px;
    top: 10px;
    max-width: calc(100% - 62px);
    font-size: 12px;
  }

  .home-map3d-marker {
    min-width: 126px;
    max-width: 170px;
  }
}

/* Home villages map close control fix */
.home-villages-map-modal__close {
  z-index: 10020;
  top: 16px;
  right: 16px;
}

.home-map3d-controls {
  margin-top: 56px;
}

@media (max-width: 768px) {
  .home-villages-map-modal__close {
    top: 10px;
    right: 10px;
  }

  .home-map3d-controls {
    margin-top: 50px;
  }
}

.home-map3d-marker__pin {
  grid-row: 1 / 3;
  display: flex;
  width: 34px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(180deg, #3fbf82, #17845d);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 8px 18px rgba(16, 80, 52, .28);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.home-villages-map-modal {
  z-index: 10000000020;
}

.home-villages-map-modal__close {
  z-index: 10000000021;
}

.home-villages-map-modal__mode-label {
  z-index: 10000000021;
}

html.home-map-modal-open jdiv,
html.home-map-modal-open [id*="jivo"],
html.home-map-modal-open [class*="jivo"],
html.home-map-modal-open [class*="Jivo"],
html.home-map-modal-open iframe[src*="jivo"],
html.home-map-modal-open [class*="chat"],
html.home-map-modal-open [class*="Chat"] {
  display: none !important;
}

html.home-map-modal-open #messendger_fly,
html.home-map-modal-open .social_icons {
  display: none !important;
}



/* Home villages v4 banner and link refinements */
.home-villages-hub__banner {
  background-position: center 48%;
}

.home-villages-hub__banner::before {
  background:
    linear-gradient(90deg, rgba(11, 47, 32, .38) 0%, rgba(11, 47, 32, .13) 46%, rgba(11, 47, 32, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 100%);
}

.home-villages-hub__banner-link,
.home-villages-hub__banner-link:hover,
.home-villages-hub__banner-link:focus,
.home-villages-hub__banner-link:active {
  max-width: 840px;
}

.home-villages-hub__banner-text {
  max-width: 650px;
  font-size: 16px;
  line-height: 1.34;
}

.home-villages-hub__hero-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  text-decoration: none;
}

.home-villages-hub__hero-copy {
  z-index: 2;
  pointer-events: none;
}

.home-villages-hub__count,
.home-villages-hub__count:hover,
.home-villages-hub__count:focus,
.home-villages-hub__count:active,
.home-villages-hub__direction-title,
.home-villages-hub__direction-title:hover,
.home-villages-hub__direction-title:focus,
.home-villages-hub__direction-title:active {
  display: inline-flex;
  width: fit-content;
  pointer-events: auto;
  color: inherit;
  text-decoration: none;
}

.home-villages-hub__count,
.home-villages-hub__count:hover,
.home-villages-hub__count:focus,
.home-villages-hub__count:active {
  color: rgba(255, 255, 255, .84);
}

.home-villages-hub__direction-title,
.home-villages-hub__direction-title:hover,
.home-villages-hub__direction-title:focus,
.home-villages-hub__direction-title:active {
  color: #fff;
}

@media (max-width: 768px) {
  .home-villages-hub__banner-text {
    max-width: 330px;
    font-size: 14px;
  }
}
