/* Everything is prefixed with "teamap-" so it can't collide with shop theme CSS.
   Fonts inherit from the host page unless the --teamap-font-* variables are set. */

.teamap {
  position: relative;
  width: 100%;
  height: var(--teamap-height, min(75vh, 800px));
  min-height: 360px;
}

.teamap-intro { margin-bottom: 1.5rem; }
.teamap-intro img { max-width: 100%; height: auto; }

.teamap-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.teamap-overlay-backdrop.teamap-hidden { display: none; }

.teamap-overlay-panel {
  position: relative;
  background: #ffffff;
  width: min(700px, 90vw);
  height: min(80vh, 900px);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  padding: 40px;
  box-sizing: border-box;
}

.teamap-overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.teamap-overlay-close:hover { background: #e0e0e0; }

.teamap-overlay-content {
  font-family: var(--teamap-font-body, inherit);
  color: #333;
}
.teamap-overlay-content h1,
.teamap-overlay-content h2,
.teamap-overlay-content h3 {
  font-family: var(--teamap-font-heading, inherit);
  font-weight: 700;
}
.teamap-overlay-content a { color: #228B22; }
.teamap-overlay-content img { max-width: 100%; height: auto; }

.teamap-overlay-content a.teamap-product-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 4px;
  background: #228B22;
  color: #ffffff;
  text-decoration: none;
}
.teamap-overlay-content a.teamap-product-link:hover { background: #1b6e1b; }
