/* Google Map custom styles for realEstate.html */
#objectsOnTheMap {
  margin-bottom: 50px;
  overflow: hidden;
  max-height: 770px;
  border-bottom: 1px solid var(--light-grey);
  position: relative;
}

#objectsOnTheMap .title-h2 {
  margin-bottom: 50px;
  color: var(--gold);
  text-align: left;
}

.objects-map-block {
  display: flex;
  width: 100%;
  border: 1px solid var(--light-grey);
  max-height: 770px;
}

.objects-map-block__map {
  max-width: 610px;
  width: 100%;
}

.objects-map-block__sidebar {
  flex: 1 1 40%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
}

.objects-map-block__tabs {
  display: flex;
  height: 36px;
  border-bottom: 1px solid #DCD5CA;
}

.objects-map-block__tab {
  flex: 1 1 0;
  background: var(--beige);
  color: var(--grey);
  border: none;
  outline: none;
  padding: 10px 14.83px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-transform: math-auto;
}

.objects-map-block__tab:not(:last-child) {
  border-right: 1px solid var(--light-grey);
}

.objects-map-block__tab.active {
  background: var(--gold);
  color: #fff;
}

.objects-map-block__list {
  display: flex;
  border-left: 1px solid #DCD5CA;
  flex-direction: column;
  overflow-y: auto;
  max-height: 620px;
  /* -webkit-overflow-scrolling: touch;
  scrollbar-width: none; */
}

/* .objects-map-block__list::-webkit-scrollbar {
  display: none;
} */

.objects-map-block__card {
  display: flex;
  gap: 15px;
  background: #fff;
  padding: 15px;
  align-items: flex-start;
}

.objects-map-block__card.active {
  background: var(--beige);
}

.objects-map-block__card:not(:last-child) {
  border-bottom: 1px solid var(--light-grey);
}

.objects-map-block__card-img {
  width: 97px;
  height: 130px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.objects-map-block__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.objects-map-block__card-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

.objects-map-block__card-title {
  color: var(--gold);
  text-transform: uppercase;
}

.objects-map-block__card-desc {
  margin: 10px 0 37px 0;
  color: var(--grey);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 2.8em;
}

.objects-map-block__card-details {
  display: inline-flex;
  align-items: flex-start;
  color: var(--gold);
  justify-content: flex-start;
  text-transform: uppercase;
  transition: color 0.2s;
  background-color: unset;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.objects-map-block__card-details .arrow {
  margin-left: 8px;
  transition: margin-left 0.2s;
  display: flex;
  flex-direction: column;
}

.objects-map-block__card-details:hover {
  color: #746751;
}

.objects-map-block__card-details:hover .arrow {
  margin-left: 12px;
}

#objectsOnTheMap .map,
.objects-map-block__map .map {
  width: 100%;
  min-height: 770px;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.map-projects-title {
  height: 36px;
  color: var(--grey);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 19px;
}

.custom-map-marker {
  background-color: #79797B;
  color: white;
  padding: 8px 16px;
  border-radius: 90px;
  font-weight: 500;
  font-size: 12px;
  line-height: 120%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-family: inherit;
}

.custom-map-marker:hover {
  background-color: #6a6a6c;
}

/* Мобильный попап */
.mobile-project-popup {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-left: 1px solid var(--light-grey);
  border-right: 1px solid var(--light-grey);
}

.mobile-project-popup.active {
  display: block;
}

.mobile-popup__content {
  padding-top: 55px;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  overflow: hidden;
  position: relative;
}

.mobile-project-popup.slide-in .mobile-popup__content {
  transform: translateY(0);
}

.mobile-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
}

.mobile-popup__card .objects-map-block__card {
  background-color: white !important;
}

.estate-modal__map-container {
  margin: 24px 0;
  overflow: hidden;
}

.estate-modal__map {
  width: 100%;
  height: 590px;
}

.estate-modal__subtitle {
  margin-bottom: 16px;
}

@media (max-width: 1200px) {
  .objects-map-block {
    flex-direction: column-reverse;
    gap: 0;
  }

  .objects-map-block__sidebar {
    max-width: 100%;
    min-width: 0;
  }

  .objects-map-block__map,
  #dukleyMap {
    height: 690px;
  }

  .objects-map-block__list {
    display: none;
  }

  .map-projects-title {
    display: none;
  }

  .objects-map-block__map {
    max-width: 100%;
  }
}

@media (min-width: 1201px) {
  .mobile-project-popup {
    display: none !important;
  }
}
@media (max-width: 600px) {
  #objectsOnTheMap {
    margin-right: -16px;
    margin-left: -16px;
  }
  #objectsOnTheMap .title-h2 {
    text-align: center;
  }
}