/* Shared globe / regions map */
:root {
  --globe-radius: 12px;
  --globe-orange: #fb8500;
}

section.locations-section,
#where-we-operate.sabahra-locations-patched {
  background: linear-gradient(155deg, #000a18 0%, #001230 42%, #002847 100%) !important;
  color: rgba(255, 255, 255, 0.82);
}

.locations-section .section-head--light { max-width: 720px; }

.locations-section .section-title,
#where-we-operate.sabahra-locations-patched .elementor-heading-title {
  color: #fff !important;
}

.locations-section .section-lead,
#where-we-operate.sabahra-locations-patched .elementor-element-24ad276 .elementor-heading-title {
  color: rgba(255, 255, 255, 0.68) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

#where-we-operate.sabahra-locations-patched {
  padding: clamp(3rem, 6vw, 5rem) clamp(16px, 3vw, 40px) !important;
}

#where-we-operate.sabahra-locations-patched .elementor-invisible {
  visibility: visible !important;
  animation: none !important;
}

#where-we-operate.sabahra-locations-patched .elementor-element-2e2264c h6 {
  color: var(--globe-orange) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#where-we-operate.sabahra-locations-patched .elementor-divider-separator {
  border-top-color: rgba(251, 133, 0, 0.45) !important;
}

.sabahra-globe-host {
  width: 100% !important;
  max-width: min(100%, 1140px);
  margin: 0 auto !important;
  padding: 0 !important;
}

.globe-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.globe-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}

/* Country check (under globe) */

.globe-country-form {
  padding: 1.1rem 1.25rem;
  border-radius: var(--globe-radius);
  border: 1px solid rgba(126, 184, 255, 0.16);
  background: rgba(0, 12, 32, 0.72);
  box-sizing: border-box;
}

.globe-country-form__label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.globe-country-form__row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.globe-country-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(126, 184, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 12, 32, 0.55);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.globe-country-form__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.globe-country-form__input:focus {
  outline: 2px solid rgba(251, 133, 0, 0.55);
  outline-offset: 1px;
  border-color: rgba(251, 133, 0, 0.45);
}

.globe-country-form__submit {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  line-height: 1.2;
  border: none;
}

.globe-country-result {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.95rem;
  border-radius: 8px;
  background: rgba(251, 133, 0, 0.12);
  border: 1px solid rgba(251, 133, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 500;
}

.globe-country-result[hidden] {
  display: none;
}

.globe-country-result a {
  color: #ffb347;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.globe-country-result a:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .globe-country-form__row {
    flex-direction: column;
  }

  .globe-country-form__submit {
    width: 100%;
  }
}

/* Map panel (single SVG) */

.globe-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: calc(var(--globe-radius) + 4px);
  overflow: hidden;
  border: 1px solid rgba(126, 184, 255, 0.16);
  background: #020810;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.globe-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 330;
}

/* Gulf centred on 51°E · texture lon offset ≈ -127px (900px = 360°) */
.globe-texture {
  transform: translate(330px, 165px) translateX(-127px);
}

/* Routes and markers */

.routes-to-uae .route {
  stroke: rgba(251, 133, 0, 0.92);
  stroke-width: 2.2;
  stroke-dasharray: 10 8;
  animation: route-flow 2.4s linear infinite;
}

.routes-to-ksa .route {
  stroke: rgba(120, 190, 255, 0.8);
  stroke-width: 1.8;
  stroke-dasharray: 10 8;
  animation: route-flow 2.8s linear infinite;
}

.routes-to-uae .route:nth-child(2) { animation-delay: -0.4s; }
.routes-to-uae .route:nth-child(3) { animation-delay: -0.8s; }
.routes-to-uae .route:nth-child(4) { animation-delay: -1.2s; }
.routes-to-uae .route:nth-child(5) { animation-delay: -1.6s; }
.routes-to-uae .route:nth-child(6) { animation-delay: -2s; }
.routes-to-uae .route:nth-child(7) { animation-delay: -2.4s; }
.routes-to-uae .route:nth-child(8) { animation-delay: -2.8s; }
.routes-to-ksa .route:nth-child(2) { animation-delay: -0.5s; }
.routes-to-ksa .route:nth-child(3) { animation-delay: -1s; }
.routes-to-ksa .route:nth-child(4) { animation-delay: -1.5s; }
.routes-to-ksa .route:nth-child(5) { animation-delay: -2s; }
.routes-to-ksa .route:nth-child(6) { animation-delay: -2.5s; }
.routes-to-ksa .route:nth-child(7) { animation-delay: -3s; }
.routes-to-ksa .route:nth-child(8) { animation-delay: -3.5s; }

@keyframes route-flow {
  to { stroke-dashoffset: -36; }
}

.map-markers .origin circle:first-child {
  fill: #7eb8ff;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.25;
}

.map-markers .origin-pulse {
  fill: none;
  stroke: rgba(126, 184, 255, 0.5);
  stroke-width: 1.25;
  transform-box: fill-box;
  transform-origin: center;
  animation: marker-pulse 2.8s ease-out infinite;
}

.map-markers .origin:nth-child(2) .origin-pulse { animation-delay: -0.35s; }
.map-markers .origin:nth-child(3) .origin-pulse { animation-delay: -0.7s; }
.map-markers .origin:nth-child(4) .origin-pulse { animation-delay: -1.05s; }
.map-markers .origin:nth-child(5) .origin-pulse { animation-delay: -1.4s; }
.map-markers .origin:nth-child(6) .origin-pulse { animation-delay: -1.75s; }
.map-markers .origin:nth-child(7) .origin-pulse { animation-delay: -2.1s; }
.map-markers .origin:nth-child(8) .origin-pulse { animation-delay: -2.45s; }

.map-hubs .hub--uae circle:first-child,
.map-markers .hub--uae circle:first-child {
  fill: var(--globe-orange);
  stroke: #fff;
  stroke-width: 2.5;
}

.map-hubs .hub--ksa circle:first-child,
.map-markers .hub--ksa circle:first-child {
  fill: #4da3ff;
  stroke: #fff;
  stroke-width: 2.5;
}

.map-hubs .hub-pulse,
.map-markers .hub-pulse {
  fill: none;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: hub-pulse 2.2s ease-out infinite;
}

.map-hubs .hub--uae .hub-pulse,
.map-markers .hub--uae .hub-pulse { stroke: rgba(251, 133, 0, 0.75); }
.map-hubs .hub--ksa .hub-pulse,
.map-markers .hub--ksa .hub-pulse { stroke: rgba(77, 163, 255, 0.65); }

@keyframes marker-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(2.8); opacity: 0; }
}

@keyframes hub-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.map-city-labels .city-tag rect {
  fill: rgba(0, 18, 48, 0.88);
  stroke: rgba(126, 184, 255, 0.35);
  stroke-width: 1;
}

.map-city-labels .city-tag--dest rect {
  fill: rgba(251, 133, 0, 0.28);
  stroke: rgba(251, 133, 0, 0.85);
  stroke-width: 1.5;
}

.map-city-labels .city-tag--dest text {
  fill: #ffe0b2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.map-city-labels .city-tag--origin rect {
  fill: rgba(0, 18, 48, 0.82);
  stroke: rgba(126, 184, 255, 0.3);
  stroke-width: 1;
}

.map-city-labels .city-tag--origin text {
  fill: rgba(255, 255, 255, 0.88);
  font-size: 9px;
}

.map-city-labels .city-tag--hub rect {
  fill: rgba(251, 133, 0, 0.22);
  stroke: rgba(251, 133, 0, 0.65);
}

.map-city-labels .city-tag text {
  fill: rgba(255, 255, 255, 0.94);
}

.map-city-labels .city-tag--hub text {
  fill: #ffc078;
  font-weight: 700;
}

/* Right sidebar */

.globe-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.locations-section .globe-details__title,
#where-we-operate .globe-details__title {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb347 !important;
}

.globe-destinations,
.globe-origins {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(126, 184, 255, 0.14);
  border-radius: var(--globe-radius);
  padding: 1.25rem;
}

.globe-dest-card {
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.globe-dest-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.globe-dest-card h4 {
  margin: 0 0 0.25rem;
  color: #fff !important;
  font-size: 1rem;
}

.globe-dest-card p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

.globe-dest-card a {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--globe-orange);
}

.globe-dest-card a:hover { color: #ffb347; }

.globe-dest-card__badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(251, 133, 0, 0.16);
  color: #ffb347;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.globe-origin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
}

.globe-origin-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.globe-origin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7eb8ff;
  box-shadow: 0 0 10px rgba(126, 184, 255, 0.55);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .map-routes .route,
  .origin-pulse,
  .hub-pulse {
    animation: none;
  }
}

@media (max-width: 960px) {
  .globe-showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .globe-origin-list { grid-template-columns: 1fr; }
  .globe-destinations,
  .globe-origins {
    padding: 1rem;
  }
}

@media (max-width: 600px) {
  .map-city-labels .city-tag--origin { display: none; }

  .globe-country-form {
    padding: 1rem;
  }

  .globe-country-form__label {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .locations-section .container {
    width: min(100% - 1.5rem, var(--max));
  }
}
