.piw-widget {
  width: 100%;
}

.piw-map-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.piw-map-image {
  display: block;
  width: 100%;
  height: auto;
}

.piw-point {
  position: absolute;
  transform: translate(-50%, -100%) rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50% 50% 50% 0;
  background: #e74c3c;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  line-height: 1;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.piw-point::before {
  content: "";
  position: absolute;
  width: 40%;
  height: 40%;
  left: 30%;
  top: 30%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.piw-point:hover,
.piw-point:focus-visible,
.piw-point.is-active {
  transform: translate(-50%, -100%) rotate(-45deg) scale(1.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.piw-widget .piw-point.is-active {
  background-color: #7ead36 !important;
}

.piw-point:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}

.piw-point-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: piwPulse 1.8s infinite;
  background: currentColor;
  opacity: 0.4;
  z-index: 0;
}

.piw-point-number {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  transform: rotate(45deg);
  pointer-events: none;
}

@keyframes piwPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

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

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.piw-point-detail {
  position: relative;
  width: min(94%, 760px);
  margin: 0 auto;
  transform: translateY(-25%);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
  z-index: 3;
  overflow: hidden;
}

.piw-point-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 32%, 320px);
  gap: 0;
  align-items: stretch;
}

.piw-point-detail-inner h3 {
  grid-column: 1;
  margin: 0 0 10px;
  padding: 24px 24px 0;
  line-height: 1.2;
}

.piw-point-detail-inner img {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  background: #fff;
  border-radius: 0 18px 18px 0;
  box-shadow: none;
}

.piw-point-description {
  grid-column: 1;
  padding: 0 24px 24px;
  font-size: 1rem;
  line-height: 1.55;
}

.piw-point-description > :first-child {
  margin-top: 0;
}

.piw-point-description > :last-child {
  margin-bottom: 0;
}

.piw-point-description p {
  margin: 0 0 0.9em;
  font-size: inherit;
  line-height: inherit;
}

.piw-point-description h1,
.piw-point-description h2,
.piw-point-description h3,
.piw-point-description h4,
.piw-point-description h5,
.piw-point-description h6 {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1249px) {
  .piw-map-wrapper {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .piw-point-detail {
    width: 100%;
    transform: none;
    margin: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .piw-point-detail-inner {
    grid-template-columns: minmax(0, 1fr) clamp(220px, 34%, 280px);
  }

  .piw-point-detail-inner h3 {
    padding: 20px 20px 0;
  }

  .piw-point-description {
    padding: 0 20px 20px;
    font-size: 0.96rem;
  }

}

@media (max-width: 767px) {
  .piw-point-detail {
    width: 100%;
    margin: 0;
  }

  .piw-point-detail-inner {
    grid-template-columns: 1fr;
  }

  .piw-point-detail-inner h3 {
    grid-column: 1;
    grid-row: 1;
  }

  .piw-point-description {
    grid-column: 1;
    grid-row: 2;
  }

  .piw-point-detail-inner img {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0 0 18px 18px;
    object-fit: unset;
    transform: none;
  }
}
