/* ============ MXMAP (RTL) ============ */
.mxmap, .mxmap *{ box-sizing:border-box; }
html, body{ overflow-x:hidden; }

/* Full width breakout */
.mxmap-full{
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
}

.mxmap{
  --bg: var(--td_body_bg, var(--td_background_color, #0B1220));
  --card: rgba(255,255,255,.04);
  --stroke: rgba(255,255,255,.12);
  --text: #F9FAFB;
  --muted: rgba(249,250,251,.72);
  --accent: var(--td_theme_color, var(--td_theme_color_main, #0A7674));
  --shadow: 0 18px 50px rgba(0,0,0,.35);

  background: var(--bg);
  color: var(--text);
  padding: 54px 0 62px;
  font-family: Cairo, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}

.mxmap-container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.mxmap-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 14px;
  margin-bottom: 18px;
  text-align:center;
}

.mxmap-titleWrap{ width:100%; display:flex; flex-direction:column; align-items:center; }

.mxmap-actions{ display:flex; gap: 10px; flex-wrap: wrap; justify-content:center; width:100%; }

.mxmap-title{
  margin:0 0 8px;
  color:#fff !important;
  font-size: 28px;
  font-weight: 1000;
  line-height: 1.2;
  letter-spacing: .2px;
}

/* Extra specificity (some themes force h2 colors) */
.mxmap h2.mxmap-title{ color:#fff !important; }

.mxmap-sub{
  margin:0 auto;
  max-width: 860px;
  color: var(--muted) !important;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 2;
}


.mxmap-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
  min-width: 170px;
  position:relative;
  cursor:pointer;
  background: transparent;
  color: rgba(249,250,251,.92);
  appearance:none;
  user-select:none;
}
.mxmap-btn--primary{
  background: var(--accent);
  color:#fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.mxmap-btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.16);
  color: rgba(249,250,251,.92);
}
.mxmap-btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.mxmap-btn:active{ transform: translateY(0); }

.mxmap-card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid var(--stroke);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.mxmap-tabs{
  display:flex;
  gap: 8px;
  padding: 12px 12px 0;
}

.mxmap-tab{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 12px;
  cursor:pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.mxmap-tab:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.22); }
.mxmap-tab.is-active{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.24);
}

.mxmap-body{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 12px;
  padding: 12px;
}

.mxmap-info{
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 12px;
  min-height: 420px;
}

/* In RTL we want the chip to hug the right edge */
.mxmap-chip{ align-self:flex-start; }

.mxmap-chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  font-weight: 900;
  font-size: 12px;
  color: rgba(249,250,251,.9);
}

.mxmap-lines{ display:grid; gap: 10px; }
.mxmap-line{
  display:grid;
  grid-template-columns: 92px 1fr;
  column-gap: 10px;
  align-items:start;
  line-height: 1.7;
  direction: rtl;
}
.mxmap-k{
  color: rgba(249,250,251,.86);
  font-weight: 950;
  text-align: start;
}
.mxmap-v{
  color: rgba(249,250,251,.72);
  font-weight: 800;
  text-align: start;
}

.mxmap-mini{
  margin-top:auto;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.mxmap-link{
  color: rgba(249,250,251,.92);
  text-decoration:none;
  font-weight: 900;
  font-size: 13px;
  border-bottom: 1px dashed rgba(255,255,255,.28);
  transition: opacity .18s ease, border-color .18s ease;
}
.mxmap-link:hover{ opacity:.9; border-color: rgba(255,255,255,.5); }

.mxmap-dot{
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}

.mxmap-frameWrap{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  min-height: 420px;
}

.mxmap-frame{
  width:100%;
  height:100%;
  min-height: 420px;
  border:0;
  display:none;
}
.mxmap-frame.is-active{ display:block; }

.mxmap-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.mxmap-note{
  color: rgba(249,250,251,.72) !important;
  font-size: 12px;
  font-weight: 700;
}
.mxmap-status{
  color: rgba(249,250,251,.92);
  font-size: 12px;
  font-weight: 900;
  opacity:.92;
}

/* Responsive */
@media (max-width: 980px){
  .mxmap-body{ grid-template-columns: 1fr; }
  .mxmap-info{ min-height: unset; }
  .mxmap-frame{ min-height: 460px; }
}
@media (max-width: 560px){
  .mxmap-actions{ width:100%; }
  .mxmap-btn{ width:100%; min-width:0; }
  .mxmap-tabs{ padding: 10px 10px 0; }
  .mxmap-body{ padding: 10px; }
  .mxmap-info, .mxmap-frameWrap{ border-radius: 16px; }

  .mxmap-chip{ align-self:center; }

  .mxmap-lines{ gap: 12px; }
  .mxmap-line{ grid-template-columns: 1fr; row-gap: 4px; }
  .mxmap-k{ opacity:.95; }
  .mxmap-mini{ justify-content:center; }
  .mxmap-chip{ align-self:center; }
}
