/* GeoPopup — frontend modal (Figma Card 16) */

html.geo-popup-open,
html.geo-popup-open body {
  overflow: hidden;
}

.geo-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.geo-popup[hidden] {
  display: none !important;
}

.geo-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 45, 114, 0.2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.geo-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 599px);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.geo-popup__card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(90deg, #ffffff 0%, #ccecf9 100%);
  box-shadow:
    0 12px 44px 0 rgba(13, 58, 128, 0.08),
    0 8px 32px 0 rgba(13, 58, 128, 0.08),
    0 0 1px 0 rgba(13, 58, 128, 0.08);
}

.geo-popup__card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 596px;
  height: 309px;
  transform: translate(-50%, -50%) rotate(77.94deg) scaleY(-1);
  background: radial-gradient(ellipse at center, rgba(204, 236, 249, 0.65) 0%, rgba(204, 236, 249, 0) 70%);
  pointer-events: none;
  mix-blend-mode: plus-lighter;
}

.geo-popup__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  box-sizing: border-box;
}

.geo-popup__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.geo-popup__title {
  margin: 0;
  font-family: 'Whitney', 'Soderberg Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: #002d72;
}

.geo-popup__content {
  margin: 0;
  font-family: 'Whitney', 'Soderberg Sans', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: #002d72;
}

.geo-popup__image-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.geo-popup__image {
  display: block;
  width: 100%;
  height: auto;
}

.geo-popup__actions {
  display: flex;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.geo-popup__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 28px;
  border-radius: 12px;
  border: 1px solid #004ba2;
  font-family: 'Whitney', 'Soderberg Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.geo-popup__btn:hover,
.geo-popup__btn:focus-visible {
  opacity: 0.9;
  outline: none;
}

.geo-popup__btn--secondary {
  background: transparent;
  color: #004ba2;
}

.geo-popup__btn--primary {
  background: #004ba2;
  color: #ffffff;
}

@media (max-width: 640px) {
  .geo-popup {
    padding: 16px;
  }

  .geo-popup__inner {
    padding: 24px;
    gap: 20px;
  }

  .geo-popup__title {
    font-size: 28px;
  }

  .geo-popup__content {
    font-size: 18px;
  }

  .geo-popup__image-wrap {
    width: calc(100% + 48px);
    max-width: none;
    margin-inline: -24px;
    border-radius: 0;
  }

  .geo-popup__actions {
    flex-direction: column;
    gap: 12px;
  }

  .geo-popup__btn {
    width: 100%;
  }
}
