/* ─────────────────────────────────────────────────────────────
   Map Canvas Pro – Frontend CSS
   Clean, responsive interactive map viewer.
───────────────────────────────────────────────────────────── */

.mcp-frontend-wrap {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light !important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ── Inner container (canvas area) ─────────────────────────── */
.mcp-frontend-inner {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 0;
  overflow: hidden;
  background: transparent !important;
  -webkit-box-shadow: none;
  box-shadow: none;
}

/* ── Canvas ─────────────────────────────────────────────────── */
.mcp-frontend-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: default;
  -ms-touch-action: none;
  touch-action: none;
}

/* ── Tooltip ────────────────────────────────────────────────── */
.mcp-fe-tooltip {
  position: absolute;
  background: rgba(15, 17, 23, 0.92);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
  z-index: 100;
  max-width: 220px;
  -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mcp-fe-tooltip strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.mcp-fe-tooltip span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
}

/* ── Popup ──────────────────────────────────────────────────── */
.mcp-fe-popup {
  position: absolute;
  z-index: 200;
  padding: 18px 20px 14px;
  min-width: 180px;
  max-width: 360px;
  -webkit-animation: mcpFePop 0.2s ease;
  animation: mcpFePop 0.2s ease;
  border-radius: 20px;
  border: 1px solid var(--main, #138CCD);
  background: rgba(255, 255, 255, 0.70);
  -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.08);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

@-webkit-keyframes mcpFePop {
  from {
    opacity: 0;
    -webkit-transform: scale(0.88) translateY(-8px);
    transform: scale(0.88) translateY(-8px);
  }

  to {
    opacity: 1;
    -webkit-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
  }
}

@keyframes mcpFePop {
  from {
    opacity: 0;
    -webkit-transform: scale(0.88) translateY(-8px);
    transform: scale(0.88) translateY(-8px);
  }

  to {
    opacity: 1;
    -webkit-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
  }
}

.mcp-fe-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 11px;
  color: #555;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transition: background 0.12s;
  -o-transition: background 0.12s;
  transition: background 0.12s;
}

.mcp-fe-popup-close:hover {
  background: #e5e7eb;
}

.mcp-fe-popup-title {
  /* font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
  padding-right: 24px;
  line-height: 1.3; */
}

.mcp-fe-popup-desc {
  font-size: 13px;
  color: #555;
  margin: 0 0 6px;
  line-height: 1.55;
}

.mcp-fe-popup-address {
  /* font-size: 12px;
  color: #444;
  margin: 4px 0;
  padding-left: 2px;
  line-height: 1.4; */
}

/* .mcp-fe-popup-address::before {
  content: '📍 ';
} */

.mcp-fe-popup-phone {
  /* display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0a84ff;
  text-decoration: none;
  margin: 4px 0; */
}

.mcp-fe-popup-phone::before {
  content: '\f095';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 5px;
}

/* .mcp-fe-popup-phone:hover {
  text-decoration: underline;
} */

.mcp-fe-popup-map-link {
  display: inline-block;
  margin-top: 8px;
  /* font-size: 12px; */
  font-weight: 600;
  color: #fff;
  background: #1a73e8;
  border-radius: 6px;
  padding: 5px 10px;
  text-decoration: none;
  -webkit-transition: background 0.15s;
  -o-transition: background 0.15s;
  transition: background 0.15s;
}

.mcp-fe-popup-map-link:hover {
  background: #1557b0;
  color: #fff;
}

/* Tooltip info rows */
.mcp-tt-row {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  margin-top: 2px;
}

/* ── Controls ───────────────────────────────────────────────── */
.mcp-fe-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
  margin-top: 10px;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

.mcp-fe-btn {
  background: #fff;
  border: 1px solid #e2e4e9;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: #444;
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  -webkit-transition: all 0.12s;
  -o-transition: all 0.12s;
  transition: all 0.12s;
  line-height: 1;
}

.mcp-fe-btn:hover {
  background: #f3f4f6;
  border-color: #c9ccd4;
  color: #111;
}

/* ── Error ──────────────────────────────────────────────────── */
.mcp-error {
  background: #fff0f0;
  border: 1px solid #ffbbbb;
  border-radius: 8px;
  padding: 12px 16px;
  color: #c0392b;
  font-size: 13px;
}

@media (max-width: 1023px) {
  .mcp-fe-controls {
    display: none !important;
  }
}