/* Phase 24.3 – Suchergebnisse + Kartenansicht
   Ergänzungsdatei. Bestehende Frontend-CSS-Dateien bleiben unverändert. */

.search-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
  gap: 24px;
  align-items: start;
}

.search-map-layout.no-map-offers {
  display: block;
}

.search-results-list {
  min-width: 0;
}

.search-map-column {
  min-width: 0;
}

.search-map-sticky {
  position: sticky;
  top: 24px;
}

.search-results-map {
  width: 100%;
  min-height: 680px;
  border-radius: inherit;
  overflow: hidden;
  background: #f3f4f5;
}

.map-fallback {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 14px;
}

.map-offer-item.active {
  outline: 2px solid rgba(15, 23, 42, 0.2);
  outline-offset: 3px;
}

.immo-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.immo-map-pin span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #111827;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.25);
}

.map-popup {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

.map-popup strong,
.map-popup b {
  color: #111827;
}

.map-popup small {
  color: #64748b;
}

.map-popup a {
  margin-top: 4px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .search-map-layout {
    grid-template-columns: 1fr;
  }

  .search-map-sticky {
    position: relative;
    top: auto;
  }

  .search-map-column {
    order: -1;
  }

  .search-results-map {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .search-map-layout {
    gap: 18px;
  }

  .search-results-map {
    min-height: 340px;
  }
}


/* Phase 24.4 – Marker Clustering */
.immo-map-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
}

.immo-map-cluster span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28);
  font-size: 14px;
  font-weight: 800;
}
