/* Premium finish for the location section. The desktop geometry stays intact. */
.location-section {
  --location-gold: #aa8648;
  --location-gold-light: #d8c18d;
  --location-gold-dark: #74572b;
  isolation: isolate;
  border-color: rgba(170, 134, 72, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.location-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0.75rem;
  pointer-events: none;
  border-top: 1px solid rgba(216, 193, 141, 0.38);
  border-right: 1px solid rgba(116, 87, 43, 0.2);
  clip-path: polygon(0 0, 18% 0, 18% 1px, 82% 1px, 82% 0, 100% 0, 100% 28%, calc(100% - 1px) 28%, calc(100% - 1px) 72%, 100% 72%, 100% 100%, 0 100%);
}

.location-section .area-copy::after {
  content: "";
  display: block;
  width: 4.25rem;
  height: 1px;
  margin-top: 2rem;
  background: var(--location-gold);
  box-shadow: 1.35rem 0 0 rgba(216, 193, 141, 0.65);
}

.location-section .eyebrow {
  color: var(--location-gold-dark);
}

.location-section .area-all-poland::before {
  background: var(--location-gold);
  box-shadow: 1rem 0 0 rgba(216, 193, 141, 0.68);
}

.location-section .poland-outline {
  stroke: var(--location-gold);
}

.location-section .map-connection {
  stroke: rgba(170, 134, 72, 0.28);
}

.location-section .region-focus {
  fill: rgba(170, 134, 72, 0.055);
  stroke: rgba(170, 134, 72, 0.44);
}

.location-section .map-city circle:not(.map-halo) {
  fill: var(--location-gold-light);
  stroke: var(--location-gold-dark);
  stroke-width: 1.25;
  filter: drop-shadow(0 1px 1px rgba(87, 62, 25, 0.22));
}

.location-section .map-city-primary circle:not(.map-halo) {
  fill: var(--location-gold);
}

.location-section .map-city-primary:nth-of-type(2) circle:not(.map-halo) {
  fill: #c6a967;
  stroke: #684a20;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 4px rgba(170, 134, 72, 0.42));
}

.location-section .map-city-primary:nth-of-type(2) .map-halo {
  stroke: rgba(170, 134, 72, 0.55);
  transform-box: fill-box;
  transform-origin: center;
}

.location-section .map-caption span {
  border-color: rgba(170, 134, 72, 0.65);
  background: rgba(170, 134, 72, 0.1);
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.72);
}

.location-section .area-map-wrap.reveal.visible .poland-outline {
  animation: location-line-reveal 1.35s ease-out both;
}

.location-section .area-map-wrap.reveal.visible .map-city {
  animation: location-point-in 0.55s ease-out both;
}

.location-section .area-map-wrap.reveal.visible .map-city:nth-of-type(2) { animation-delay: 0.12s; }
.location-section .area-map-wrap.reveal.visible .map-city:nth-of-type(3) { animation-delay: 0.18s; }
.location-section .area-map-wrap.reveal.visible .map-city:nth-of-type(4) { animation-delay: 0.24s; }
.location-section .area-map-wrap.reveal.visible .map-city:nth-of-type(5) { animation-delay: 0.3s; }
.location-section .area-map-wrap.reveal.visible .map-city:nth-of-type(6) { animation-delay: 0.36s; }
.location-section .area-map-wrap.reveal.visible .map-city:nth-of-type(7) { animation-delay: 0.42s; }
.location-section .area-map-wrap.reveal.visible .map-city:nth-of-type(8) { animation-delay: 0.48s; }
.location-section .area-map-wrap.reveal.visible .map-city:nth-of-type(9) { animation-delay: 0.54s; }

.location-section .area-map-wrap.reveal.visible .map-city-primary:nth-of-type(2) .map-halo {
  animation: location-halo 1.8s ease-out 0.5s 1 both;
}

@keyframes location-line-reveal {
  from { opacity: 0.45; stroke-dasharray: 5 5; }
  to { opacity: 1; stroke-dasharray: 640 0; }
}

@keyframes location-point-in {
  from { opacity: 0; translate: 0 5px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes location-halo {
  0% { opacity: 0; scale: 0.7; }
  45% { opacity: 0.9; scale: 1.16; }
  100% { opacity: 0.55; scale: 1; }
}

@media (max-width: 640px) {
  .location-section {
    width: calc(100% - 1.5rem);
    margin-block: 2.25rem;
    padding: 1.35rem 0.85rem 1rem;
    gap: 0.55rem;
    border-color: rgba(170, 134, 72, 0.42);
  }

  .location-section::before {
    display: none;
  }

  .location-section::after {
    inset: 0.38rem;
  }

  .location-section .area-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.6rem;
    align-items: end;
  }

  .location-section .area-copy .eyebrow,
  .location-section .area-copy h2,
  .location-section .area-copy > p:not(.area-all-poland) {
    grid-column: 1 / -1;
  }

  .location-section .area-copy .eyebrow {
    margin-bottom: 0.32rem;
    font-size: 0.65rem;
  }

  .location-section .area-copy h2 {
    max-width: 19ch;
    margin-bottom: 0.65rem;
    font-size: clamp(1.45rem, 7.1vw, 1.85rem);
    line-height: 1.04;
  }

  .location-section .area-copy > p:not(.area-all-poland) {
    max-width: none;
    margin: 0 0 0.48rem;
    font-size: 0.78rem;
    line-height: 1.48;
  }

  .location-section .area-copy::after {
    display: none;
  }

  .location-section .area-all-poland {
    grid-column: 1 / -1;
    width: fit-content;
    margin: 0.25rem 0 0;
    gap: 0.45rem;
    font-size: 0.88rem !important;
    line-height: 1.2;
  }

  .location-section .area-all-poland::before {
    width: 1.3rem;
  }

  .location-section .area-map-wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    min-height: 0;
    border-top: 1px solid rgba(170, 134, 72, 0.2);
    padding-top: 0.25rem;
  }

  .location-section .area-map {
    grid-column: 1 / -1;
    width: min(100%, 20rem);
    max-height: 16.5rem;
    margin: -0.35rem auto -0.75rem;
  }

  .location-section .map-city text {
    font-size: 16px;
  }

  .location-section .map-city-primary text {
    font-size: 16.5px;
  }

  .location-section .map-caption {
    grid-column: 1 / -1;
    justify-content: center;
    margin: 0 !important;
    padding: 0;
    font-size: 0.62rem !important;
    line-height: 1.25;
    text-align: center;
  }

  .location-section .map-caption span {
    width: 0.48rem;
    height: 0.48rem;
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-section .poland-outline,
  .location-section .map-city,
  .location-section .map-halo {
    animation: none !important;
  }
}
