/* =========================================
   POINTIFY PINPOINT
========================================= */

.pointify-pinpoint {
  position: relative;
  width: 100%;
}

.pointify-pinpoint__image-wrap {
  position: relative;
  display: block;
  line-height: 0;
}

.pointify-pinpoint__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}


/* =========================================
   PIN
========================================= */

.pointify-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  transform: translate(-50%, -50%);

  background: #ffffff;
  border: 2px solid #6b46c1;
  border-radius: 999px;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);

  cursor: pointer;
  z-index: 2;
}

.pointify-pin.is-hidden-pin {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}


/* =========================================
   PIN DOT
========================================= */

.pointify-pin__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
}

.pointify-pin__dot .pk-dot {
  display: block;

  width: 40%;
  height: 40%;

  border-radius: 999px;
  background: #6b46c1;

  transition: background-color 0.18s ease;
}


/* =========================================
   PULSE ANIMATION
========================================= */

.pointify-pin.pulse::after {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  background: rgba(107, 70, 193, 0.35);

  z-index: -1;

  animation: pk-pulse 1.8s ease-out infinite;
}

@keyframes pk-pulse {
  0% {
    transform: translateZ(0) scale(1);
    opacity: 0.7;
  }

  70% {
    transform: translateZ(0) scale(1.9);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}


/* =========================================
   ICON MODE
========================================= */

.pointify-pin.pin--icon {
  width: auto;
  height: auto;

  padding: 0;

  background: transparent;
  border: 0;
  box-shadow: none;
}

.pointify-pin.pin--icon .pointify-pin__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
}

.pointify-pin.pin--icon.pulse::after {
  display: none;
}

.pointify-pin__icon svg {
  width: 15px;
  height: 15px;

  color: #6b46c1;
}


/* =========================================
   POPUP
========================================= */

.pointify-pin-popup {
  position: absolute;

  left: 50%;
  top: 100%;

  width: 260px;
  max-width: calc(100vw - 30px);

  box-sizing: border-box;

  padding: 18px 18px 16px;

  background: #ffffff;

  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  transform: translate(
    -50%,
    var(--pk-offset, 10px)
  );

  z-index: 3;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}


/* =========================================
   POPUP TITLE
========================================= */

.pointify-pin-popup__title {
  margin: 0 0 5px;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;

  color: #555555;
}


/* =========================================
   POPUP TEXT
========================================= */

.pointify-pin-popup__text {
  margin: 0;

  font-size: 15px;
  line-height: 1.45;

  color: #555555;
}


/* =========================================
   CTA CONTAINER
========================================= */

.pointify-pin-popup__cta {
  display: flex;
  justify-content: center;

  margin-top: 15px;
}


/* =========================================
   DAUGIAU BUTTON
========================================= */

.pointify-pin-popup__cta .pointify-pin-popup__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 140px;
  min-height: 44px;

  box-sizing: border-box;

  padding: 10px 22px;

  background: #c9a24d;

  border: 1px solid #c9a24d;
  border-radius: 8px;

  color: #ffffff !important;

  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.3px;

  text-decoration: none !important;

  cursor: pointer;

  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.pointify-pin-popup__cta .pointify-pin-popup__link:hover,
.pointify-pin-popup__cta .pointify-pin-popup__link:focus {
  background: #ad8736;
  border-color: #ad8736;

  color: #ffffff !important;

  text-decoration: none !important;

  transform: translateY(-1px);

  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.14);
}


/* =========================================
   POPUP ARROW
========================================= */

.pointify-pin-popup__arrow {
  position: absolute;

  width: 12px;
  height: 12px;

  background: #ffffff;

  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}


/* =========================================
   POPUP POSITION: BOTTOM
========================================= */

.pointify-pin-popup.pos-bottom {
  left: 50%;
  top: 100%;
  right: auto;
  bottom: auto;

  transform: translate(
    -50%,
    var(--pk-offset, 10px)
  );
}

.pointify-pin-popup.pos-bottom .pointify-pin-popup__arrow {
  left: 50%;
  top: -6px;
  right: auto;
  bottom: auto;

  transform: translateX(-50%) rotate(45deg);
}


/* =========================================
   POPUP POSITION: TOP
========================================= */

.pointify-pin-popup.pos-top {
  left: 50%;
  top: auto;
  right: auto;
  bottom: 100%;

  transform: translate(
    -50%,
    calc(-1 * var(--pk-offset, 10px))
  );
}

.pointify-pin-popup.pos-top .pointify-pin-popup__arrow {
  left: 50%;
  top: auto;
  right: auto;
  bottom: -6px;

  transform: translateX(-50%) rotate(225deg);
}


/* =========================================
   POPUP POSITION: LEFT
========================================= */

.pointify-pin-popup.pos-left {
  left: auto;
  top: 50%;
  right: 100%;
  bottom: auto;

  transform: translate(
    calc(-1 * var(--pk-offset, 10px)),
    -50%
  );
}

.pointify-pin-popup.pos-left .pointify-pin-popup__arrow {
  left: auto;
  top: 50%;
  right: -6px;
  bottom: auto;

  transform: translateY(-50%) rotate(135deg);
}


/* =========================================
   POPUP POSITION: RIGHT
========================================= */

.pointify-pin-popup.pos-right {
  left: 100%;
  top: 50%;
  right: auto;
  bottom: auto;

  transform: translate(
    var(--pk-offset, 10px),
    -50%
  );
}

.pointify-pin-popup.pos-right .pointify-pin-popup__arrow {
  left: -6px;
  top: 50%;
  right: auto;
  bottom: auto;

  transform: translateY(-50%) rotate(-45deg);
}


/* =========================================
   DEFAULT ARROW POSITION
========================================= */

.pointify-pin-popup:not(.pos-top):not(.pos-left):not(.pos-right):not(.pos-bottom)
.pointify-pin-popup__arrow {
  left: 50%;
  top: -6px;

  transform: translateX(-50%) rotate(45deg);
}


/* =========================================
   POPUP VISIBLE
========================================= */

.pointify-pin.is-open > .pointify-pin-popup {
  opacity: 1;
  visibility: visible;
}


/* =========================================
   HOVER / FOCUS TRIGGER
========================================= */

.pointify-pin[data-trigger="hover"]:hover > .pointify-pin-popup,
.pointify-pin[data-trigger="hover"]:focus > .pointify-pin-popup,
.pointify-pin[data-trigger="hover"]:focus-within > .pointify-pin-popup {
  opacity: 1;
  visibility: visible;
}


/* =========================================
   ELEMENTOR EDITOR
========================================= */

.elementor-editor-active .pointify-pin {
  outline: 0;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

  .pointify-pin-popup {
    width: 230px;

    padding: 16px 15px 14px;
  }

  .pointify-pin-popup__title {
    font-size: 14px;
  }

  .pointify-pin-popup__text {
    font-size: 14px;
  }

  .pointify-pin-popup__cta .pointify-pin-popup__link {
    min-width: 130px;
    min-height: 42px;

    padding: 9px 18px;

    font-size: 14px;
  }
}