/* ───── Maps settings — modern card UX ───── */
.mp-card { padding: 24px; }
.mp-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.mp-h { margin: 0; font-size: 20px; font-weight: 700; color: #111827; }
.mp-sub { margin: 6px 0 0; color: #6b7280; font-size: 13.5px; line-height: 1.5; max-width: 640px; }
.mp-sub code { background: #f3f4f6; padding: 1px 6px; border-radius: 4px; font-size: 12px; }

.mp-current {
  display: inline-flex; align-items: center;
  padding: 7px 13px;
  background: linear-gradient(90deg, rgba(255,193,7,0.16), rgba(255,193,7,0.06));
  border: 1px solid rgba(255,193,7,0.4);
  color: #B8860B;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  white-space: nowrap;
}

/* Карточки выбора */
.mp-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 980px) { .mp-options { grid-template-columns: 1fr; } }

.mp-opt {
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px 18px 60px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.18s;
  overflow: hidden;
}
.mp-opt:hover { border-color: #d1d5db; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-1px); }
.mp-opt--active {
  border-color: #FFC107;
  box-shadow: 0 6px 20px rgba(255,193,7,0.18);
  background: linear-gradient(180deg, #fffbeb, #ffffff 60%);
}
.mp-opt--active .mp-radio::after { opacity: 1; transform: scale(1); }
.mp-opt-badge {
  position: absolute; top: 10px; right: 10px;
  background: #FFC107; color: #000;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 4px;
}
.mp-opt-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.mp-opt-title { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.mp-opt-desc { font-size: 13px; color: #6b7280; line-height: 1.45; }
.mp-opt-feats {
  margin: 12px 0 0; padding: 0;
  list-style: none;
  font-size: 12.5px; color: #4b5563;
}
.mp-opt-feats li { padding: 3px 0; }
.mp-radio {
  position: absolute; bottom: 16px; right: 16px;
  width: 22px; height: 22px;
  border: 2px solid #d1d5db; border-radius: 50%;
  background: #fff;
}
.mp-radio::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 10px; height: 10px;
  background: #FFC107;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.18s;
}
.mp-opt--active .mp-radio { border-color: #FFC107; }
.mp-opt--active .mp-radio::after {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}

.mp-extra {
  margin-top: 14px;
  padding: 16px 18px;
  background: #fafbfc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.mp-label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin: 10px 0 5px;
}
.mp-label:first-child { margin-top: 0; }
.mp-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit; font-size: 14px;
  transition: border 0.15s, box-shadow 0.15s;
}
.mp-input:focus { outline: none; border-color: #FFC107; box-shadow: 0 0 0 3px rgba(255,193,7,0.15); }
.mp-tip { display: block; font-size: 11.5px; color: #9ca3af; margin-top: 4px; line-height: 1.5; }
.mp-tip a { color: #FFC107; }

/* Apply button */
.mp-apply-row { margin-top: 22px; text-align: center; }
.mp-apply-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #FFC107, #f59e0b);
  color: #000;
  border: 0; border-radius: 12px;
  font-family: inherit; font-weight: 800; font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 8px 22px rgba(255,193,7,0.32);
}
.mp-apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255,193,7,0.42);
}
.mp-apply-btn:active { transform: translateY(0); }
.mp-apply-btn--sm { padding: 10px 18px; font-size: 13px; box-shadow: 0 4px 14px rgba(255,193,7,0.25); }
.mp-apply-btn i { font-size: 22px; }
.mp-apply-row .mp-tip { margin-top: 10px; }

/* Preview */
.mp-preview-block {
  margin-top: 24px;
  border-top: 1px dashed #e5e7eb;
  padding-top: 20px;
}
.mp-preview-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mp-preview-head h4 { margin: 0; font-size: 14px; font-weight: 700; }
.mp-preview {
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

/* PMTiles status card */
.mp-pmt { margin-top: 16px; padding: 22px; }
.mp-pmt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.mp-pmt-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 980px) { .mp-pmt-stats { grid-template-columns: repeat(2, 1fr); } }
.mp-pmt-stat {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
}
.mp-pmt-stat-label {
  font-size: 10.5px; font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.mp-pmt-stat-val {
  font-size: 14px; font-weight: 700; color: #111827;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  word-break: break-all;
}
.mp-pmt-url { font-size: 12px; }

.mp-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid #d1d5db; border-radius: 8px;
  color: #4b5563;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all 0.15s;
}
.mp-btn-ghost:hover { background: #f9fafb; border-color: #9ca3af; color: #111827; }

.mp-pmt-adv { margin: 10px 0; }
.mp-pmt-adv summary {
  cursor: pointer; padding: 10px 14px;
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: #4b5563;
  user-select: none;
}
.mp-pmt-adv[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.mp-pmt-adv form {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.mp-pmt-mobile {
  display: flex; gap: 16px;
  margin-top: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid #fde68a;
  border-radius: 12px;
}
.mp-pmt-mobile-icon { font-size: 34px; }
.mp-pmt-mobile-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* Geo status cards */
.mp-geo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 900px) { .mp-geo-grid { grid-template-columns: 1fr; } }
.mp-geo-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 14px 16px;
}
.mp-geo-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 14px;
  color: #111827;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e5e7eb;
}
.mp-geo-dot { font-size: 18px; }
.mp-geo-body { font-size: 13px; color: #4b5563; }
.mp-geo-body strong { color: #111827; }
.mp-geo-body .mp-tip { margin: 6px 0 10px; }
.mp-geo-urls { font-size: 12px; color: #6b7280; }
.mp-geo-urls > div { padding: 3px 0; }
.mp-geo-urls code {
  background: #f3f4f6; padding: 1px 7px; border-radius: 4px;
  font-size: 11.5px; color: #374151;
}

/* Style picker (4 пресета) */
.mp-style-section {
  margin: 16px 0 6px;
  padding: 16px;
  background: linear-gradient(135deg, #f9fafb, #ffffff);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.mp-style-head { margin-bottom: 12px; }
.mp-style-head strong { font-size: 14px; color: #111827; }
.mp-style-head .mp-tip { margin-top: 4px; }

.mp-style-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 900px) { .mp-style-grid { grid-template-columns: repeat(2, 1fr); } }

.mp-style-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.mp-style-card:hover { border-color: #d1d5db; transform: translateY(-1px); }
.mp-style-card--active {
  border-color: #FFC107;
  box-shadow: 0 4px 14px rgba(255,193,7,0.22);
  background: linear-gradient(180deg, #fffbeb, #fff);
}
.mp-style-swatch {
  height: 48px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 10px;
}
.mp-style-info strong { font-size: 13.5px; color: #111827; }
.mp-style-info .mp-tip { margin-top: 3px; font-size: 11.5px; line-height: 1.4; }
.mp-style-check {
  position: absolute; top: 8px; right: 10px;
  color: #FFC107;
  font-size: 16px; font-weight: 800;
}
