/* ==========================================================================
   INTERNATIONAL NETWORK & TÜRKİYE-CENTERED REAL WORLD MAP STYLES
   Authentic geographic world map with interactive trade corridors and hub drawer
   ========================================================================== */

.dash-network-section {
  background-color: var(--dash-navy-950);
  color: var(--dash-white);
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 3.5rem + 2vw, 5.5rem) 0;
}

.network-map-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-2xl);
  background-color: #061324;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 168, 107, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.network-svg-wrap {
  width: 100%;
  position: relative;
  background-color: #061324;
}

.network-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Authentic Map Elements */
.real-world-map-svg {
  width: 100%;
  height: auto;
}

/* Dynamic Animated Trade Corridors */
.map-route-dash {
  animation: flowDash 20s linear infinite;
}

.map-route-dash.import-flow {
  animation: flowDashReverse 22s linear infinite;
}

@keyframes flowDash {
  to {
    stroke-dashoffset: -1000;
  }
}

@keyframes flowDashReverse {
  to {
    stroke-dashoffset: 1000;
  }
}

/* Regional Partner Hub Markers */
.map-hub-marker {
  transition: transform var(--duration-fast) var(--ease-out-cubic);
}

.map-hub-marker:hover,
.map-hub-marker.is-selected {
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.15);
}

.hub-pulse-ring {
  fill: none;
  stroke: #00A86B;
  stroke-width: 1.5;
  animation: hubPulse 2.8s infinite ease-out;
}

@keyframes hubPulse {
  0% {
    r: 8;
    opacity: 0.9;
  }
  70% {
    r: 22;
    opacity: 0;
  }
  100% {
    r: 22;
    opacity: 0;
  }
}

/* Central Operational Hub: Türkiye HQ */
.map-turkey-hq {
  transition: transform var(--duration-fast) var(--ease-out-cubic);
}

.map-turkey-hq:hover {
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.08);
}

.hq-radar-pulse {
  animation: radarPulse 3s infinite ease-out;
}

@keyframes radarPulse {
  0% {
    r: 14;
    opacity: 0.8;
  }
  60% {
    r: 36;
    opacity: 0;
  }
  100% {
    r: 36;
    opacity: 0;
  }
}

/* ==========================================================================
   Interactive Trade Hub Detail Drawer (Side / Bottom Overlay)
   ========================================================================== */
.network-hub-drawer {
  /* Sits below the map (never over it) so no hub marker is hidden in any language */
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "header flow"
    "role flow"
    "ports ports"
    "footer footer";
  column-gap: 2rem;
  border-radius: 0 !important;
  border-width: 1px 0 0 0 !important;
  background: rgba(6, 19, 36, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 168, 107, 0.35);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 168, 107, 0.15);
  z-index: 10;
  transition: all var(--duration-fast) var(--ease-out-cubic);
}

/* Map is geographic (does not mirror): drawer stays bottom-left in RTL too. */

.drawer-header {
  grid-area: header;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.drawer-kicker {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--dash-green-400);
  display: block;
  margin-bottom: 0.2rem;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dash-white);
  line-height: 1.25;
}

.drawer-type-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.drawer-type-badge.type-hub {
  background-color: rgba(0, 168, 107, 0.2);
  color: var(--dash-green-300);
  border: 1px solid rgba(0, 168, 107, 0.4);
}

.drawer-type-badge.type-origin {
  background-color: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.drawer-type-badge.type-destination {
  background-color: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.drawer-type-badge.type-bilateral {
  background-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.drawer-role {
  grid-area: role;
  font-size: 0.875rem;
  color: var(--dash-slate-300);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.drawer-flow-card {
  grid-area: flow;
  align-self: start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.flow-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dash-slate-400);
  display: block;
  margin-bottom: 0.35rem;
}

.flow-text {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--dash-white);
  line-height: 1.4;
}

.drawer-ports-section {
  grid-area: ports;
  margin-bottom: 1.25rem;
}

.ports-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dash-slate-400);
  display: block;
  margin-bottom: 0.5rem;
}

.ports-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.port-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--dash-slate-200);
}

.port-icon {
  color: var(--dash-blue-400);
}

.drawer-footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-metric-note {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dash-slate-400);
  display: flex;
  align-items: center;
}

.drawer-inquiry-btn {
  padding: 0.5rem 1rem !important;
  font-size: 0.8125rem !important;
  border-radius: var(--radius-sm) !important;
  white-space: nowrap;
}

/* ==========================================================================
   Responsive Map Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .network-hub-drawer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "role"
      "flow"
      "ports"
      "footer";
  }
}

@media (max-width: 640px) {
  .drawer-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .drawer-inquiry-btn {
    width: 100%;
    justify-content: center;
  }
}
