/* Field map block — matches fieldtradewebadmins #field-map (landing) */

.fieldtrade-band--field-map {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #dde3ea;
}

.ft-field-map {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.ft-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.ft-section-head h3 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 700;
  color: #12181c;
  letter-spacing: -0.02em;
}

.ft-section-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.65;
}

.ft-section-head-left {
  text-align: left;
  margin: 0 0 0;
  max-width: none;
}

.ft-field-map-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-field-map-list li {
  padding: 14px 0;
  border-bottom: 1px solid #dde3ea;
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.55;
}

.ft-field-map-list li:last-child {
  border-bottom: 0;
}

.ft-field-map-list strong {
  display: block;
  color: #12181c;
  margin-bottom: 4px;
}

.ft-map-mock {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.ft-map-ui-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #dde3ea;
  font-size: 0.82rem;
  font-weight: 600;
  color: #12181c;
}

.ft-map-ui-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
}

.ft-map-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.ft-map-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: ft-map-pulse 2s ease-out infinite;
}

@keyframes ft-map-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.ft-map-viewport {
  position: relative;
  height: min(340px, 52vw);
  min-height: 280px;
  overflow: hidden;
  background: linear-gradient(165deg, #dce8e4 0%, #e8eef3 35%, #d4e4de 100%);
}

.ft-map-terrain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

.ft-map-road {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ft-map-road--a {
  width: 120%;
  height: 10px;
  top: 48%;
  left: -10%;
  transform: rotate(-8deg);
}

.ft-map-road--b {
  width: 8px;
  height: 85%;
  top: 8%;
  left: 42%;
  border-radius: 4px;
}

.ft-map-road--c {
  width: 55%;
  height: 8px;
  top: 68%;
  left: 20%;
  transform: rotate(12deg);
}

.ft-map-zone {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 118, 110, 0.45);
  top: 14%;
  right: 12%;
}

.ft-map-route {
  position: absolute;
  left: 52%;
  top: 44%;
  width: 18%;
  height: 14%;
  border: 2px dashed rgba(13, 148, 136, 0.55);
  border-radius: 40% 60% 55% 45%;
  transform: rotate(25deg);
  pointer-events: none;
}

.ft-map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 2;
}

/* Pin coordinates (external CSS — Hitex CSP blocks inline style attributes) */
.ft-map-pin--loc-ict { left: 68%; top: 54%; }
.ft-map-pin--loc-hitex { left: 28%; top: 72%; }
.ft-map-pin--loc-karimi { left: 52%; top: 42%; }
.ft-map-pin--loc-amina { left: 22%; top: 38%; }
.ft-map-pin--loc-peter { left: 78%; top: 28%; }

.ft-map-pin--muted {
  opacity: 0.88;
  z-index: 1;
}

.ft-map-pin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.ft-map-pin-icon i {
  transform: rotate(45deg);
  font-size: 0.72rem;
  color: #fff;
}

.ft-map-pin-icon--outlet {
  background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
}

.ft-map-pin-icon--agent {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e85d04;
  border: 2px solid #fff;
  transform: none;
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.45);
}

.ft-map-callout {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 148px;
  max-width: 170px;
  padding: 10px 11px;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: left;
}

.ft-map-callout strong {
  display: block;
  font-size: 0.78rem;
  color: #12181c;
  margin-bottom: 2px;
}

.ft-map-callout span {
  display: block;
  color: #64748b;
}

.ft-map-callout em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  color: #0f766e;
}

.ft-map-callout--outlet::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-right: 1px solid #dde3ea;
  border-bottom: 1px solid #dde3ea;
  transform: translateX(-50%) rotate(45deg);
}

.ft-map-agent-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
  white-space: nowrap;
}

.ft-map-agent-card--sm {
  padding: 6px 9px;
  transform: scale(0.92);
  transform-origin: center bottom;
}

.ft-map-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #ecfdf5;
}

.ft-map-avatar--alt {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.ft-map-avatar--alt2 {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.ft-map-agent-meta strong {
  display: block;
  font-size: 0.75rem;
  color: #12181c;
  line-height: 1.2;
}

.ft-map-battery {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #0f766e;
}

.ft-map-battery--low {
  color: #dc2626;
}

.ft-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 10px 16px 12px;
  font-size: 0.72rem;
  color: #64748b;
  background: #f8fafc;
  border-top: 1px solid #dde3ea;
}

.ft-map-legend i {
  color: #0f766e;
  margin-right: 4px;
}

@media (max-width: 991px) {
  .ft-field-map {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
