.location-selector-section {
  --location-accent: #7c3cff;
  --location-card: #101426;
  position: relative;
  display: flex;
  min-height: 720px;
  align-items: center;
  overflow: hidden;
  padding: 32px 0;
  background: #070a12;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
}

.location-selector-section .container {
  position: relative;
  width: calc(100% - 40px);
  max-width: 1280px;
  margin-inline: auto;
}

body.location-selector-visible .floating-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 16px);
}

body.location-selector-visible .support-widget {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

.location-selector-head {
  margin-bottom: 20px;
}

.location-selector-head h2 {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.18;
}

.location-selector-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, .36);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.location-selector-eyebrow i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--location-accent);
  box-shadow: 0 0 8px var(--location-accent), 0 0 20px rgba(124, 60, 255, .45);
}

.location-selector-layout {
  display: flex;
  height: 464px;
  gap: 20px;
}

.location-map-shell {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(18, 24, 46, .55), rgba(9, 12, 24, .9));
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.location-map-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse 94% 92% at 50% 48%, transparent 52%, rgba(7, 10, 18, .55) 100%);
  pointer-events: none;
}

.location-map-shell.is-dragging {
  cursor: grabbing;
}

.location-map-shell svg.location-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
  fill: none !important;
  stroke: none !important;
  stroke-width: 0 !important;
  stroke-linecap: butt !important;
  stroke-linejoin: miter !important;
  overflow: hidden;
}

.location-map-country {
  outline: none;
  transition: fill .25s ease, stroke .25s ease;
}

.location-map-globe-ocean {
  fill: url(#location-globe-ocean);
  stroke: rgba(124, 60, 255, .28);
  stroke-width: 1.2;
}

.location-map-globe-rim {
  fill: none;
  stroke: rgba(124, 60, 255, .18);
  stroke-width: 6;
  filter: blur(4px);
  pointer-events: none;
}

.location-map-marker {
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.location-map-marker circle {
  transform-box: fill-box;
  transform-origin: center;
  transition: all .18s ease;
}

.location-marker-hit {
  fill: transparent;
  pointer-events: all;
}

.location-marker-pulse {
  fill: none;
  stroke: var(--location-accent);
  stroke-width: 1.4;
  animation: location-pulse 2.4s ease-out infinite;
}

.location-marker-pulse.is-delayed {
  stroke: #a876ff;
  stroke-width: 1;
  animation-delay: 1.2s;
}

@keyframes location-pulse {
  0% { transform: scale(1); opacity: 0; }
  8% { opacity: .6; }
  100% { transform: scale(3.6); opacity: 0; }
}

.location-marker-halo {
  fill: var(--location-accent);
}

.location-marker-ring {
  fill: none;
}

.location-marker-core {
  transition: all .18s ease;
}

.location-marker-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease;
}

.location-map-marker.is-hovered .location-marker-tooltip,
.location-map-marker:focus-visible .location-marker-tooltip {
  opacity: 1;
}

.location-map-loading {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 10, 18, .82);
  color: rgba(255, 255, 255, .56);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: opacity .24s ease, visibility .24s ease;
}

.location-map-loading[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.location-map-loading.is-error {
  color: #ffb8b8;
}

.location-zoom {
  position: absolute;
  top: 50%;
  right: 4px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
}

.location-zoom button {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .75);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.location-zoom button:hover:not(:disabled),
.location-zoom button:focus-visible {
  border-color: rgba(124, 60, 255, .5);
  background: rgba(124, 60, 255, .22);
  color: #fff;
  outline: none;
}

.location-zoom button:disabled {
  color: rgba(255, 255, 255, .22);
  cursor: default;
}

.location-zoom-range {
  position: relative;
  display: flex;
  height: 116px;
  align-items: center;
  justify-content: center;
}

.location-zoom input[type="range"] {
  width: 116px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .12);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transform: rotate(-90deg);
  cursor: pointer;
}

.location-zoom input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--location-accent);
  box-shadow: 0 0 8px rgba(124, 60, 255, .7);
  appearance: none;
  -webkit-appearance: none;
}

.location-zoom input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--location-accent);
  box-shadow: 0 0 8px rgba(124, 60, 255, .7);
}

.location-view-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(14, 18, 38, .72);
  color: rgba(255, 255, 255, .7);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.location-view-toggle:hover,
.location-view-toggle:focus-visible {
  border-color: rgba(124, 60, 255, .5);
  background: rgba(124, 60, 255, .22);
  color: #fff;
  outline: none;
}

.location-view-toggle.is-globe {
  color: #c9aeff;
  box-shadow: 0 0 18px rgba(124, 60, 255, .35);
}

.location-view-toggle svg {
  width: 20px;
  height: 20px;
}

.location-selected-card {
  display: flex;
  width: 334px;
  flex: 0 0 334px;
  flex-direction: column;
  align-items: stretch;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  background: var(--location-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(124, 60, 255, .07);
}

.location-selected-main {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  animation: location-card-in .28s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes location-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.location-selected-flag {
  display: flex;
  width: 112px;
  height: 112px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(124, 60, 255, .24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 60, 255, .14), rgba(124, 60, 255, .04));
  box-shadow: 0 0 48px rgba(124, 60, 255, .14), inset 0 0 28px rgba(124, 60, 255, .05);
}

.location-selector-section svg.location-flag-svg {
  display: block;
  flex: 0 0 auto;
  border-radius: 6px;
  fill: none !important;
  stroke: none !important;
  stroke-width: 0 !important;
  stroke-linecap: butt !important;
  stroke-linejoin: miter !important;
}

.location-selected-flag svg.location-flag-svg {
  width: 72px !important;
  height: 48px !important;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}

.location-selected-copy {
  text-align: center;
}

.location-selected-copy span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, .34);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.location-selected-copy strong {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.22;
}

.location-connect-button {
  display: flex;
  width: 100%;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3cff, #6228d8 55%, #9b6dff);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 60, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .12);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: all .22s ease;
  -webkit-tap-highlight-color: transparent;
}

.location-connect-button:hover,
.location-connect-button:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
  outline: none;
}

.location-connect-button:active {
  filter: brightness(.94);
  transform: translateY(0);
}

.location-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.location-marquee-track {
  display: flex;
  width: max-content;
  gap: 8px;
  animation: location-marquee 38s linear infinite;
}

.location-marquee:hover .location-marquee-track {
  animation-play-state: paused;
}

@keyframes location-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.location-country-button {
  display: flex;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 0 18px 0 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .46);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.location-country-button svg.location-flag-svg {
  width: 22px !important;
  height: 15px !important;
  border-radius: 3px;
}

.location-country-button:hover,
.location-country-button:focus-visible {
  border-color: rgba(124, 60, 255, .4);
  background: rgba(124, 60, 255, .1);
  color: rgba(255, 255, 255, .82);
  outline: none;
}

.location-country-button.is-active {
  border-color: rgba(124, 60, 255, .65);
  background: rgba(124, 60, 255, .16);
  color: #dcc8ff;
  box-shadow: 0 0 18px rgba(124, 60, 255, .2), inset 0 0 14px rgba(124, 60, 255, .07);
  font-weight: 600;
}

@media (max-width: 900px) {
  .location-selector-section {
    min-height: 0;
    padding: 72px 0;
  }

  .location-selector-layout {
    height: auto;
    flex-direction: column;
  }

  .location-map-shell {
    width: 100%;
    height: clamp(360px, 58vw, 464px);
    flex: 0 0 auto;
  }

  .location-selected-card {
    width: 100%;
    min-height: 190px;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 24px;
  }

  .location-selected-main {
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
  }

  .location-selected-flag {
    width: 96px;
    height: 96px;
    flex: 0 0 auto;
  }

  .location-selected-copy {
    text-align: left;
  }

  .location-connect-button {
    width: min(280px, 38%);
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .location-selector-section {
    padding: 64px 0;
  }

  .location-selector-section .container {
    width: calc(100% - 32px);
  }

  .location-selector-head {
    margin-bottom: 16px;
  }

  .location-selector-head h2 {
    max-width: 340px;
    font-size: clamp(27px, 8vw, 30px);
  }

  .location-selector-eyebrow {
    font-size: 10px;
    letter-spacing: .13em;
  }

  .location-selector-layout {
    gap: 14px;
  }

  .location-map-shell {
    height: clamp(300px, 88vw, 380px);
    border-radius: 17px;
  }

  .location-zoom {
    top: auto;
    right: 66px;
    bottom: 13px;
    left: 13px;
    flex-direction: row-reverse;
    gap: 8px;
    transform: none;
  }

  .location-zoom button {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(14, 18, 38, .78);
  }

  .location-zoom-range {
    height: 44px;
    flex: 1 1 auto;
  }

  .location-zoom input[type="range"] {
    width: 100%;
    min-width: 64px;
    transform: none;
  }

  .location-view-toggle {
    right: 13px;
    bottom: 13px;
    width: 44px;
    height: 44px;
  }

  .location-selected-card {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
    border-radius: 17px;
  }

  .location-selected-main {
    min-height: 104px;
    justify-content: flex-start;
    gap: 18px;
  }

  .location-selected-flag {
    width: 88px;
    height: 88px;
  }

  .location-selected-flag svg.location-flag-svg {
    width: 58px !important;
    height: 39px !important;
  }

  .location-selected-copy strong {
    font-size: 22px;
  }

  .location-connect-button {
    width: 100%;
    height: 52px;
  }

  .location-marquee {
    overflow-x: auto;
    margin-right: -16px;
    margin-left: -16px;
    padding: 2px 16px 10px;
    mask-image: none;
    -webkit-mask-image: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .location-marquee::-webkit-scrollbar {
    display: none;
  }

  .location-marquee-track {
    animation: none;
  }

  .location-country-button {
    height: 48px;
    scroll-snap-align: center;
  }

  .location-country-button[data-duplicate="true"] {
    display: none;
  }
}

@media (max-width: 380px) {
  .location-map-shell {
    height: 292px;
  }

  .location-selected-main {
    gap: 14px;
  }

  .location-selected-flag {
    width: 80px;
    height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-marker-pulse,
  .location-marquee-track,
  .location-selected-main {
    animation: none !important;
  }

  .location-map-country,
  .location-map-marker circle,
  .location-country-button,
  .location-connect-button {
    transition: none !important;
  }
}
