/* ==========================================================================
   Investment Map — page-unique styles
   ========================================================================== */

.map-intro h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.map-intro p {
  color: var(--text-muted);
  max-width: 620px;
}

/* Filter bar */
.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.75rem;
}
.map-filters .field {
  flex: 1 1 180px;
  min-width: 160px;
}
.map-filters label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.map-filters select {
  width: 100%;
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6b7b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 2.25rem 0.7rem 1rem;
  font-family: var(--font-base);
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}
.map-filters select:focus {
  outline: none;
  border-color: var(--primary);
}
.map-filters .btn {
  flex: 0 0 auto;
}

/* Map area */
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}
.map-wrap .map-img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Legend / opportunities panel overlay */
.map-legend {
  position: absolute;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  width: 230px;
  max-width: calc(100% - 2.5rem);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}
.map-legend-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.map-legend-head h3 {
  font-size: 0.85rem;
  font-weight: 800;
}
.map-legend-head button {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.map-legend ul li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text);
  padding: 0.4rem 0;
}
.map-legend ul li i {
  color: var(--primary);
  font-size: 0.95rem;
}
.map-legend ul li.active {
  color: var(--accent-700);
  font-weight: 700;
}
.map-legend ul li.active i {
  color: var(--accent-700);
}

/* Map pin tooltip */
.map-pin-card {
  position: absolute;
  top: 38%;
  inset-inline-start: 42%;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.55rem 0.8rem;
  font-size: 0.72rem;
  text-align: center;
  min-width: 140px;
}
.map-pin-card strong {
  display: block;
  font-size: 0.78rem;
  color: var(--ink);
}
.map-pin-card span {
  color: var(--text-muted);
}
.map-pin-card .pin-tag {
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--accent-700);
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .map-legend { position: static; width: 100%; max-width: 100%; margin: 0.75rem 0 0; }
}
