/* ===== Location Section ===== */
.section-location{
  --location-map-size: min(62vw, 980px);
  --location-map-shift-x: -14%;
  --location-map-shift-factor: -0.14;
  background: #f8f5ef;
  color: #0b1d2a;
  min-height: clamp(620px, 72vh, 920px);
  position: relative;
  overflow: hidden;
}

.section-location::before{
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: var(--location-map-size);
  height: var(--location-map-size);
  transform: translate(var(--location-map-shift-x), -50%);
  opacity: 0.14;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right center;
  background-image: url("../../img/europe.svg");
  pointer-events: none;
}

.section-location::after{
  content: "";
  position: absolute;
  left: -6%;
  top: 8%;
  width: 520px;
  height: 520px;
  opacity: 0.08;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  background-image: url("../../img/compass.svg");
  pointer-events: none;
}

.location-map-marker{
  --marker-line-w: clamp(190px, 22vw, 320px);
  --marker-line-h: clamp(90px, 11vw, 150px);
  position: absolute;
  width: 0;
  height: 0;
  right: calc(var(--location-map-size) * (0.521 + (0.08 - var(--location-map-shift-factor))));
  top: calc(50% + (var(--location-map-size) * 0.211));
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.location-map-marker-label{
  position: absolute;
  right: calc(var(--marker-line-w) * 0.72 + 12px);
  bottom: calc(var(--marker-line-h) + 0.3em);
  font-size: clamp(0.95rem, 1.2vw, 1.4rem);
  line-height: 1;
  color: rgba(11, 29, 42, 0.76);
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 520ms ease 180ms;
}

.location-map-marker-line{
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--marker-line-w);
  height: var(--marker-line-h);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none' shape-rendering='geometricPrecision'%3E%3Cpath d='M0 0 H72' fill='none' stroke='%230b1d2a' stroke-opacity='0.48' stroke-width='2' stroke-linecap='butt' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M72 0 L100 100' fill='none' stroke='%230b1d2a' stroke-opacity='0.48' stroke-width='2' stroke-linecap='butt' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  opacity: 0;
  transform: scaleX(0.9);
  transform-origin: right bottom;
  transition: opacity 520ms ease 90ms, transform 520ms ease 90ms;
}

.section-location.is-inview .location-map-marker{
  opacity: 1;
  transform: translateY(0);
}

.section-location.is-inview .location-map-marker-label{
  opacity: 1;
}

.section-location.is-inview .location-map-marker-line{
  opacity: 1;
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce){
  .location-map-marker,
  .location-map-marker-label,
  .location-map-marker-line{
    transition: none;
  }
}

.location-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.location-grid.is-single{
  grid-template-columns: 1fr;
}

.location-kicker{
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #cfa75f;
  margin-bottom: 14px;
}

.location-copy h2{
  margin: 0 0 12px 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.location-copy p{
  margin: 0 0 22px 0;
  color: rgba(11, 29, 42, 0.75);
  line-height: 1.7;
  max-width: 48ch;
}

.location-card{
  background: #ffffff;
  border: 1px solid rgba(11, 29, 42, 0.12);
  border-radius: 12px;
  padding: 18px 20px;
  display: grid;
  gap: 6px;
  max-width: 360px;
  box-shadow: 0 18px 36px rgba(7, 18, 26, 0.08);
}

.location-label{
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 29, 42, 0.6);
}

.location-link{
  color: #1a8acb;
  text-decoration: none;
  font-weight: 600;
}

.location-map{
  min-height: 320px;
}

.location-embed{
  position: relative;
  padding-top: 62%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(11, 29, 42, 0.12);
  box-shadow: 0 18px 36px rgba(7, 18, 26, 0.08);
  background: #ffffff;
}

.location-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px){
  .section-location{
    --location-map-size: 96vw;
    --location-map-shift-x: 2%;
    --location-map-shift-factor: 0.02;
  }

  .section-location::before{
    opacity: 0.1;
  }

  .section-location::after{
    left: -20%;
    top: 2%;
    width: 420px;
    height: 420px;
    opacity: 0.06;
  }

  .location-map-marker{
    --marker-line-w: 156px;
    --marker-line-h: 84px;
    right: calc(var(--location-map-size) * (0.381 + (0.22 - var(--location-map-shift-factor))));
    top: calc(50% + (var(--location-map-size) * 0.211));
  }

  .location-grid{
    grid-template-columns: 1fr;
  }

  .location-map{
    width: 100%;
  }
}
