/* ====================================
   NATIONWIDE COVERAGE SECTION
   ==================================== */

.nationwide-coverage {
  background: linear-gradient(135deg, #0d4035 0%, #0a3028 50%, #082820 100%);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  min-height: 550px;
}

.nationwide-coverage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(45, 180, 115, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(45, 180, 115, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.coverage-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* Left Content */
.coverage-content {
  padding-right: 20px;
}

.coverage-title {
  font-family: 'Impact', 'Arial Black', Haettenschweiler, sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 18px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.1;
}

.coverage-description {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 28px 0;
}

/* Buttons */
.coverage-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-select-locations,
.btn-country {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-select-locations {
  background: #a8e626;
  color: #0d3d2e;
}

.btn-select-locations:hover {
  background: #b8f030;
  transform: translateY(-2px);
}

.btn-country {
  background: #ffffff;
  color: #333333;
}

.btn-country:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* ====================================
   MAP WRAPPER
   ==================================== */

.map-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Map Scene Container */
.map-3d-scene {
  position: relative;
  width: 100%;
  max-width: 750px;
  aspect-ratio: 1000 / 788;
}

/* ====================================
   UAE MAP CONTAINER
   ==================================== */

.uae-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.uae-map-container svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.25));
}

/* Make all map regions WHITE by default */
.uae-map-container svg #features path {
  fill: #ffffff !important;
  stroke: #e5e7eb !important;
  stroke-width: 0.5px;
  transition: fill 0.3s ease;
}

/* Hide the label points and reference points */
.uae-map-container svg #points,
.uae-map-container svg #label_points {
  display: none;
}

/* ====================================
   PINS CONTAINER
   ==================================== */

.map-pins-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* ====================================
   MAP PIN STYLES
   ==================================== */

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
  transition: z-index 0s;
}

.map-pin.active {
  z-index: 100;
}

/* Pin marker (teardrop shape) */
.pin-marker {
  width: 28px;
  height: 36px;
  position: relative;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.map-pin:hover .pin-marker,
.map-pin.active .pin-marker {
  transform: scale(1.2);
}

.pin-marker svg {
  width: 100%;
  height: 100%;
}

/* Default pin color - RED */
.pin-marker svg .pin-body {
  fill: #dc2626;
  transition: fill 0.3s ease;
}

/* Active/Hover pin color - GREEN */
.map-pin:hover .pin-marker svg .pin-body,
.map-pin.active .pin-marker svg .pin-body {
  fill: #22c55e;
}

/* ====================================
   TOOLTIP POPUP
   ==================================== */

.map-tooltip {
  position: absolute;
  background: #a8e626;
  color: #1a1a1a;
  padding: 16px 20px;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
  width: 280px;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.25s ease;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.map-tooltip::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #a8e626;
}

.map-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -100%);
}

/* Tooltip Content */
.tooltip-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tooltip-address {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
}

/* Tooltip Link with Arrow */
.tooltip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #1a1a1a;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tooltip-link:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip-link svg {
  flex-shrink: 0;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 1024px) {
  .coverage-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .coverage-content {
    padding-right: 0;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .coverage-buttons {
    justify-content: center;
  }
  
  .map-3d-scene {
    max-width: 550px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nationwide-coverage {
    padding: 40px 20px;
  }
  
  .coverage-title {
    font-size: 28px;
  }
  
  .coverage-description {
    font-size: 13px;
  }
  
  .btn-select-locations,
  .btn-country {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .map-3d-scene {
    max-width: 420px;
  }
  
  .pin-marker {
    width: 24px;
    height: 30px;
  }
  
  .map-tooltip {
    font-size: 12px;
    padding: 14px 16px;
    width: 250px;
  }
}

@media (max-width: 480px) {
  .coverage-title {
    font-size: 24px;
  }
  
  .coverage-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-select-locations,
  .btn-country {
    width: 100%;
    max-width: 220px;
    justify-content: center;
  }
  
  .map-3d-scene {
    max-width: 320px;
  }
  
  .pin-marker {
    width: 20px;
    height: 26px;
  }
}
