/* Homepage — Global locations (editorial layout) */

.rx-loc {
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 45%, #ffffff 100%);
  overflow: visible;
  padding-bottom: 60px;
}

.rx-loc.section-padding {
  padding-bottom: 60px;
}

/* ─── Intro (centered in container) ─── */
.rx-loc__intro {
  margin-bottom: 0;
}

.rx-loc__header {
  max-width: 900px;
  margin: 0 auto 36px;
}

.rx-loc__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rx-loc__title-top {
  display: block;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--theme, #F16B27);
}

.rx-loc__title-bottom {
  display: block;
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #0a0a0a;
}

.rx-loc__rule {
  display: block;
  width: min(100%, 680px);
  height: 1px;
  margin: 28px auto 0;
  background: linear-gradient(90deg, transparent, #c8c8c8 15%, #c8c8c8 85%, transparent);
}

/* ─── Gradient banner (centered) ─── */
.rx-loc__banner {
  max-width: 1080px;
  margin: 0 auto 40px;
  padding: 26px 40px;
  border-radius: 999px;
  background: linear-gradient(90deg, #F16B27 0%, #d4561f 38%, #3d1810 72%, #120806 100%);
  box-shadow:
    0 20px 60px rgba(241, 107, 39, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.rx-loc__banner p {
  font-size: clamp(15px, 1.75vw, 18px);
  line-height: 1.7;
  color: #fff;
  text-align: center;
  font-weight: 400;
}

/* ─── Full-width map (breaks out of any container) ─── */
.global-map-section,
.rx-loc__map-stage {
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
  margin-bottom: 0;
}

.rx-loc__map-inner {
  position: relative;
  width: 100%;
  line-height: 0;
}

.global-map-section svg,
.global-map-section canvas,
.global-map-section img,
.rx-loc__map-dots {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
}

.rx-loc__pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Pin with pulse rings */
.rx-loc__pin {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  pointer-events: auto;
}

.rx-loc__pin--link {
  text-decoration: none;
  z-index: 3;
}

.rx-loc__pin-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--theme, #F16B27);
  box-shadow: 0 0 12px rgba(241, 107, 39, 0.55);
  z-index: 2;
}

.rx-loc__pin--primary .rx-loc__pin-core {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
}

.rx-loc__pin-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 1px solid rgba(241, 107, 39, 0.45);
  animation: rx-loc-ring 2.4s ease-out infinite;
}

.rx-loc__pin-ring--2 {
  animation-delay: 1.2s;
}

.rx-loc__pin--primary .rx-loc__pin-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
}

.rx-loc__pin:not(.rx-loc__pin--primary) .rx-loc__pin-ring--2 {
  display: none;
}

.rx-loc__pin--link:hover .rx-loc__pin-core,
.rx-loc__pin--link:focus-visible .rx-loc__pin-core {
  transform: scale(1.2);
  background: #ff7d3d;
}

@keyframes rx-loc-ring {
  0% {
    transform: scale(0.35);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ─── Location cards ─── */
.rx-loc__footer {
  margin-top: 8px;
}

.rx-loc__cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.rx-loc__card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.rx-loc__card:hover {
  border-color: var(--theme, #F16B27);
  box-shadow: 0 12px 32px rgba(241, 107, 39, 0.12);
  transform: translateY(-3px);
}

.rx-loc__card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(241, 107, 39, 0.1);
  color: var(--theme, #F16B27);
  font-size: 15px;
}

.rx-loc__card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rx-loc__card-city {
  font-size: 16px;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.2;
}

.rx-loc__card-label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.5);
}

.rx-loc__card-arrow {
  flex-shrink: 0;
  margin-left: auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0a0a0a;
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.rx-loc__card:hover .rx-loc__card-arrow {
  opacity: 1;
  transform: translate(0, 0);
  background: var(--theme, #F16B27);
}

/* ─── Responsive ─── */
@media (max-width: 1199px) {
  .rx-loc__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .rx-loc__banner {
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 32px;
  }

  .global-map-section,
  .rx-loc__map-stage {
    padding-bottom: 28px;
  }

  .rx-loc__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .rx-loc__pin {
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
  }

  .rx-loc__pin-core {
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
  }
}

@media (max-width: 575px) {
  .rx-loc.section-padding {
    padding-bottom: 48px;
  }

  .rx-loc__rule {
    margin-top: 20px;
  }

  .rx-loc__banner {
    margin-bottom: 24px;
  }

  .global-map-section,
  .rx-loc__map-stage {
    width: 100vw;
    max-width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-bottom: 24px;
  }

  .rx-loc__cards {
    grid-template-columns: 1fr;
  }

  .rx-loc__card-arrow {
    opacity: 1;
    transform: none;
  }

  .rx-loc__pin:not(.rx-loc__pin--primary):not(.rx-loc__pin--link) {
    display: none;
  }
}
