@font-face {
  font-family: "Tajawal";
  src: url("../../fonts/Tajawal/Tajawal-Regular.woff2");
  font-display: swap;
}

@font-face {
  font-family: "Tajawal-Bold";
  src: url("../../fonts/Tajawal/Tajawal-Bold.woff2");
  font-display: swap;
}

.embed-credit {
  font-size: 12px;
  margin: 14px 0;
  color: #6b6b6b;
  text-align: center;
}
.embed-credit a {
  color: #cb130b;
  text-decoration: unset;
}
body {
  font-family: "Tajawal";
}

h1 {
  font-family: "Tajawal-Bold";
  color: white;
}

/* ── Network Chart Container & UI ── */
.map-container {
  width: 70%;
  margin: 36px auto 40px;
  padding: 22px 20px 20px;
  border-radius: 10px;
  color: #eee;
  font-family: 'Tajawal', sans-serif;
}
.map-container__title {
  margin: 0 0 16px;
  color: var(--dark, #0f1112);
  line-height: 1.7;
  text-align: center;
  font-size: 23px;
  line-height: 35px;
  font-weight: 500;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--gray-mid, #555);
}
.map-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.map-legend__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.map-legend__dot--hub {
  background: var(--red, #cb130b);
}
.map-legend__dot--target {
  background: #09091c;
}
.map-legend__dot--amp {
  background: #a1a1a1;
}
.map-legend__note {
  margin-left: auto;
  margin-right: 0;
  color: #888;
}
.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.map-controls button {
  background: #fff;
  color: var(--dark, #0f1112);
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  padding: 7px 14px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  cursor: pointer;
}
.map-controls button:hover {
  background: var(--gray-light, #f5f5f5);
  border-color: var(--red, #cb130b);
  color: var(--red, #cb130b);
}
.map-controls input[type='search'] {
  background: #fff;
  border: 1px solid #d8d8d8;
  color: var(--dark, #0f1112);
  border-radius: 6px;
  padding: 7px 12px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  width: 200px;
}
.map-controls input[type='search']::placeholder {
  color: #999;
}
.map-chart {
  position: relative;
  width: 100%;
  height: 680px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
}
.map-tip {
  position: absolute;
  pointer-events: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--dark, #0f1112);
  opacity: 0;
  transition: opacity 0.12s;
  max-width: 260px;
  line-height: 1.55;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .map-chart {
    height: 520px;
  }
  .map-legend__note {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
    text-align: right;
  }
}

@media (max-width: 600px) {
  .map-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 12px 14px;
  }
  .map-chart {
    height: 420px;
  }
  .map-controls input[type='search'] {
    width: 100%;
  }
}