/* ==========================================================================
   IT WAYS — LOCATIONS PAGE STYLES
   Unified White + Blue/Purple Premium Design System
   ========================================================================== */

/* 1. Hero Section */
.loc-hero-section {
  position: relative;
  width: 100%;
  min-height: 88vh;
  min-height: 88dvh;
  display: flex;
  align-items: center;
  padding: 130px 0 60px;
  background-color: #f6f9fe;
  overflow: hidden;
  box-sizing: border-box;
}

.loc-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/locations-hero.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

.loc-hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 60px);
  box-sizing: border-box;
}

.loc-hero-content {
  position: relative;
  z-index: 3;
  max-width: 580px;
}

.loc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(23, 105, 255, 0.08);
  border: 1px solid rgba(23, 105, 255, 0.22);
  color: #1769ff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.loc-hero-title {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 900;
  color: #0b1329;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.loc-hero-title span {
  color: #1769ff;
  background: linear-gradient(135deg, #1769ff 0%, #6554ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loc-hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  max-width: 520px;
  margin-bottom: 30px;
}

/* ==========================================================================
   2. EXPLORE IT WAYS (SECTION 2 NAVIGATION)
   ========================================================================== */
.comp-explore-section {
  padding: 70px 0 60px;
  background: #ffffff;
  position: relative;
  border-bottom: 1px solid rgba(225, 235, 250, 0.8);
}

.comp-explore-section .comp-section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 36px;
}

.comp-explore-section .comp-section-header h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: #0b1329;
  letter-spacing: -0.02em;
  margin: 12px 0 10px;
}

.comp-explore-section .comp-section-header p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

.comp-explore-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.comp-explore-card {
  background: #ffffff;
  border: 1.5px solid #e8eef8;
  border-radius: 16px;
  padding: 22px 14px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(18, 42, 90, 0.02);
}

.comp-explore-card:hover {
  background: #ffffff;
  border-color: rgba(23, 105, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(23, 105, 255, 0.09);
}

.comp-explore-card.active,
.comp-explore-card.is-active {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border-color: #1769ff;
  box-shadow: 0 8px 24px rgba(23, 105, 255, 0.12);
}

.comp-explore-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5fb;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.comp-explore-card:hover .comp-explore-icon,
.comp-explore-card.active .comp-explore-icon {
  background: linear-gradient(135deg, #1769ff 0%, #6554ef 100%);
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(23, 105, 255, 0.28);
}

.comp-explore-card strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.comp-explore-card span {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.comp-explore-card:hover span {
  color: #1769ff;
  transform: translateX(2px);
}

/* Responsive grid for explore bar */
@media (max-width: 1100px) {
  .comp-explore-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .comp-explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   4. OUR LOCATIONS (3 PREMIUM CARDS IN 1 ROW)
   ========================================================================== */
.loc-cards-section {
  padding: 90px 0 70px;
  background: #ffffff;
}

.loc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 45px;
}

.loc-card {
  background: #ffffff;
  border: 1.5px solid rgba(225, 235, 250, 0.95);
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.loc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1769ff, #6554ef);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(23, 105, 255, 0.4);
  box-shadow: 0 20px 45px rgba(23, 105, 255, 0.12);
}

.loc-card:hover::before {
  opacity: 1;
}

.loc-card-top {
  margin-bottom: 24px;
}

.loc-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.3s ease;
}

.loc-card:hover .loc-icon-badge {
  transform: scale(1.08);
}

.loc-icon-us {
  background: rgba(23, 105, 255, 0.1);
  color: #1769ff;
}

.loc-icon-de {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.loc-icon-ru {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.loc-country-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.loc-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #0b1329;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.loc-address {
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 14px;
}

.loc-phone-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1769ff;
  margin-bottom: 18px;
  background: #f0f6ff;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.loc-phone-row:hover {
  background: #e0edff;
}

.loc-card-action {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.loc-btn-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f8faff;
  color: #1769ff;
  border: 1px solid rgba(23, 105, 255, 0.2);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.loc-btn-help:hover {
  background: #1769ff;
  color: #ffffff;
  border-color: #1769ff;
  transform: translateX(3px);
  box-shadow: 0 6px 16px rgba(23, 105, 255, 0.25);
}

/* ==========================================================================
   3. GLOBAL NETWORK VISUAL SECTION (worldmap.png + Animated Markers)
   ========================================================================== */
.loc-network-section {
  padding: 60px 0 80px;
  background: #ffffff;
}

.loc-network-card {
  background: #ffffff;
  border: 1.5px solid rgba(225, 235, 250, 0.95);
  border-radius: 32px;
  padding: 44px 36px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(23, 105, 255, 0.07);
}

.loc-network-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1769ff, #6554ef, #10b981);
}

.loc-network-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
}

.loc-network-header h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: #0b1329;
  letter-spacing: -0.02em;
  margin: 12px 0 10px;
}

.loc-network-header p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

/* Flow Sequence Indicator */
.loc-flow-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  position: relative;
  z-index: 2;
}

.loc-flow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8faff;
  border: 1px solid rgba(225, 235, 250, 0.95);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.loc-flow-arrow {
  color: #1769ff;
  font-weight: 800;
  font-size: 16px;
}

/* Map Display Wrapper */
.loc-map-display-box {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #f8fbff;
  border: 1px solid rgba(225, 235, 250, 0.85);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.04);
}

.loc-map-base-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Overlay Layer for Markers & Connecting Curves */
.loc-map-overlay-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loc-map-svg-routes {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.loc-map-interactive-markers {
  position: absolute;
  inset: 0;
}

/* Individual Live Marker Pins */
.loc-live-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loc-pin-radar {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loc-pin-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1769ff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 12px rgba(23, 105, 255, 0.8);
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease;
}

.loc-live-pin:hover .loc-pin-core {
  transform: scale(1.3);
}

.loc-pin-wave-1,
.loc-pin-wave-2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #1769ff;
  animation: locWave 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.loc-pin-wave-2 {
  animation-delay: 0.8s;
}

@keyframes locWave {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Color variations for markers */
.loc-pin-de .loc-pin-core {
  background: #7c3aed;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.8);
}
.loc-pin-de .loc-pin-wave-1,
.loc-pin-de .loc-pin-wave-2 {
  border-color: #7c3aed;
}

.loc-pin-ru .loc-pin-core {
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
}
.loc-pin-ru .loc-pin-wave-1,
.loc-pin-ru .loc-pin-wave-2 {
  border-color: #10b981;
}

/* Floating Hub Tooltip Tag */
.loc-pin-tag {
  margin-top: 6px;
  background: #0b1329;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(11, 19, 41, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.25s ease, background 0.25s ease;
}

.loc-live-pin:hover .loc-pin-tag {
  transform: translateY(-2px);
  background: #1769ff;
}

/* Connecting Flight Arcs with animated dashes */
.loc-map-arc {
  stroke-dasharray: 6 6;
  animation: mapArcFlow 16s linear infinite;
}

@keyframes mapArcFlow {
  from {
    stroke-dashoffset: 160;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Bottom Metrics SLA Chips */
.loc-network-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  position: relative;
  z-index: 2;
}

.loc-metric-item {
  text-align: center;
  padding: 10px;
}

.loc-metric-value {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 900;
  color: #1769ff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.loc-metric-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .loc-hero-section {
    min-height: auto;
    padding: 130px 20px 60px;
  }

  .loc-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .loc-network-card {
    padding: 36px 20px;
  }

  .loc-map-canvas-wrap {
    min-height: 280px;
    aspect-ratio: auto;
    height: 300px;
  }

  .loc-network-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .loc-hero-title {
    font-size: 32px;
  }

  .loc-card {
    padding: 28px 22px;
  }
}
