/* Bildfokus-popup för Visbymäklarnas OpenLayers 2-karta. */

.vm-ol-popup {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  filter: none !important;
}

.vm-ol-popup > div,
.vm-ol-popup .vm-ol-popup__content {
  overflow: visible !important;
}

.vm-ol-popup .vm-ol-popup__content {
  box-sizing: border-box;
  padding: 0 !important;
  background: transparent !important;
  font-family: futura-pt, "Century Gothic", Avenir, sans-serif;
}

.vm-map-popup-shell,
.vm-map-popup-shell *,
.vm-map-popup-shell *::before,
.vm-map-popup-shell *::after {
  box-sizing: border-box;
}

.vm-map-popup-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.vm-map-popup-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 18px;
  height: 18px;
  background: #ffffff;
  transform: rotate(45deg);
  box-shadow: 6px 6px 14px rgba(49, 45, 40, 0.10);
}

.vm-popup-pos-tl .vm-map-popup-shell::after {
  right: 12px;
  bottom: -8px;
  border-right: 1px solid #e7e7e4;
  border-bottom: 1px solid #e7e7e4;
}

.vm-popup-pos-tr .vm-map-popup-shell::after {
  left: 12px;
  bottom: -8px;
  border-right: 1px solid #e7e7e4;
  border-bottom: 1px solid #e7e7e4;
}

.vm-popup-pos-bl .vm-map-popup-shell::after {
  right: 12px;
  top: -8px;
  border-left: 1px solid #e7e7e4;
  border-top: 1px solid #e7e7e4;
}

.vm-popup-pos-br .vm-map-popup-shell::after {
  left: 12px;
  top: -8px;
  border-left: 1px solid #e7e7e4;
  border-top: 1px solid #e7e7e4;
}

.vm-map-popup {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e7e7e4;
  border-radius: 16px;
  background: #ffffff;
  color: #3b3b3b;
  box-shadow: 0 18px 48px rgba(49, 45, 40, 0.22);
  font-family: futura-pt, "Century Gothic", Avenir, sans-serif;
  font-weight: 400;
  text-align: left;
}

.vm-map-popup__close {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #3b3b3b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  font: 400 25px/1 futura-pt, "Century Gothic", Avenir, sans-serif;
  transition: background-color 160ms ease, transform 160ms ease;
}

.vm-map-popup__close:hover {
  background: #f3f3f1;
  transform: translateY(-1px);
}

.vm-map-popup__close:focus-visible,
.vm-map-popup__cta:focus-visible {
  outline: 3px solid #00adee;
  outline-offset: 2px;
}

.vm-map-popup__media {
  position: relative;
  flex: 0 0 184px;
  overflow: hidden;
  background: #f8f8f8;
}

.vm-map-popup__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.vm-map-popup__image.is-missing {
  visibility: hidden;
}

.vm-map-popup__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #eff4ed, #d9e7d4);
}

.vm-map-popup__body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px 24px 22px;
}

.vm-map-popup__dots {
  display: flex;
  gap: 5px;
  margin: 0 0 13px;
}

.vm-map-popup__dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.vm-map-popup__dots i:nth-child(1) { background: #00adee; }
.vm-map-popup__dots i:nth-child(2) { background: #40ac47; }
.vm-map-popup__dots i:nth-child(3) { background: #ee3a42; }
.vm-map-popup__dots i:nth-child(4) { background: #f16520; }
.vm-map-popup__dots i:nth-child(5) { background: #fff100; }

.vm-map-popup__eyebrow {
  margin: 0;
  color: #6d6d6d;
  font-size: 12px;
  font-weight: 300;
  font-family: "futura-pt", sans-serif;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.vm-map-popup__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: #3b3b3b;
  font-family: "futura-pt", sans-serif;
  font-size: 25px;
  font-weight: 300;
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vm-map-popup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
}

.vm-map-popup__price {
  color: #3b3b3b;
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  font-family:"futura-pt", sans-serif;
}

.vm-map-popup__cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 6px;
  border:1px solid #F16521;
  background: #fff;
  color: #F16521 !important;
  font-family: "futura-pt", sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background-color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.vm-map-popup__cta:hover {
  background: #F16521;
  color: #fff !important;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .vm-map-popup__media {
    flex-basis: 154px;
  }

  .vm-map-popup__body {
    padding: 18px 20px 20px;
  }

  .vm-map-popup__title {
    font-size: 23px;
  }

  .vm-map-popup__footer {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .vm-map-popup__cta {
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
	.vm-ol-popup { top:340px !important; }
	.vm-ol-popup .vm-ol-popup__content { height:220px !important; }
	.vm-map-popup-shell { width:71%; height:82%; }
	.vm-map-popup__title { font-size:20px; } 
	.vm-map-popup__price { font-size:16px; }
	.vm-map-popup__footer { margin-top:0px; }
	.olControlAttribution { display:none; }
	.vm-map-popup__media { display:none; }
}

@media (prefers-reduced-motion: reduce) {
  .vm-map-popup__close,
  .vm-map-popup__cta {
    transition: none;
  }
}
