/* Hartă Arhiva Ion V. Giurgea — lightbox + download newsletter-gated */
.igloo-map-trigger {
  font-family: inherit;
  cursor: pointer;
}

.igloo-map-lightbox {
  width: min(1560px, calc(100vw - 36px));
  max-width: none;
  height: fit-content;
  max-height: calc(100vh - 36px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #252525;
  background: #fff;
  color: #17181e;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .35);
}

.igloo-map-lightbox:not([open]) { display: none; }
.igloo-map-lightbox::backdrop { background: rgba(10, 10, 10, .82); }

.igloo-map-lightbox__panel {
  display: flex;
  max-height: calc(100vh - 38px);
  flex-direction: column;
}

.igloo-map-lightbox__header,
.igloo-map-lightbox__footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  background: #fff;
}

.igloo-map-lightbox__header { border-bottom: 1px solid #dedede; }
.igloo-map-lightbox__footer { border-top: 1px solid #dedede; }

.igloo-map-lightbox__eyebrow {
  margin: 0 0 3px;
  color: #8b5e3c;
  font-size: 9px !important;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.igloo-map-lightbox__header h2 {
  margin: 0;
  font-size: 20px !important;
  line-height: 1.15 !important;
}

.igloo-map-lightbox__tools,
.igloo-map-lightbox__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.igloo-map-lightbox__tools button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #17181e;
  border-radius: 0;
  background: #fff;
  color: #17181e;
  font-family: inherit;
  font-size: 20px !important;
  line-height: 1;
  cursor: pointer;
}

.igloo-map-lightbox__tools button:hover,
.igloo-map-lightbox__tools button:focus-visible {
  background: #17181e;
  color: #fff;
}

.igloo-map-lightbox__viewport {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  align-items: center;
  overflow: auto;
  background: #efefed;
  overscroll-behavior: contain;
}

.igloo-map-lightbox__viewport img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: auto;
  transform-origin: top left;
}

.igloo-map-lightbox__footer > p {
  max-width: 74ch;
  margin: 0;
  color: #555;
  font-size: 11px !important;
  line-height: 1.45;
}

.igloo-map-download {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid #17181e;
  background: #17181e;
  color: #fff !important;
  font-size: 10px !important;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.igloo-map-download:hover,
.igloo-map-download:focus-visible { background: #8b5e3c; border-color: #8b5e3c; }

.igloo-map-subscribe {
  flex: 0 0 auto;
  padding: 18px;
  border-top: 1px solid #dedede;
  background: #f5f3ef;
}

.igloo-map-subscribe[hidden] { display: none; }
.igloo-map-subscribe h3 { margin: 0 0 6px; font-size: 18px !important; }
.igloo-map-subscribe > p { margin: 0 0 12px; color: #555; font-size: 11px !important; }
.igloo-newsletter-form--map .igloo-newsletter-fields { grid-template-columns: minmax(220px, 440px) auto; }
.igloo-newsletter-form--map .igloo-newsletter-fields button { border-color: #17181e; background: #17181e; color: #fff; }

body.igloo-map-open { overflow: hidden; }
body.igloo-map-open .igloo-newsletter-popup { display: none !important; }

@media (max-width: 680px) {
  .igloo-map-lightbox {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
  .igloo-map-lightbox__panel { max-height: calc(100vh - 18px); }
  .igloo-map-lightbox__header,
  .igloo-map-lightbox__footer { padding: 10px; gap: 10px; }
  .igloo-map-lightbox__header h2 { font-size: 15px !important; }
  .igloo-map-lightbox__eyebrow { display: none; }
  .igloo-map-lightbox__tools { gap: 4px; }
  .igloo-map-lightbox__tools button { width: 34px; height: 34px; font-size: 18px !important; }
  .igloo-map-lightbox__viewport { min-height: 210px; }
  .igloo-map-lightbox__footer { align-items: stretch; flex-direction: column; }
  .igloo-map-lightbox__footer > p { font-size: 10px !important; }
  .igloo-map-download { width: 100%; }
  .igloo-map-subscribe { padding: 14px 10px; overflow-y: auto; }
  .igloo-newsletter-form--map .igloo-newsletter-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .igloo-map-lightbox { scroll-behavior: auto; }
}
