/* Top-Properties — 3×3 Grid (Desktop), 2-Col (Tablet), 1-Col (Mobile). Kein horizontaler Slider. */

.section_featured-grid {
  background: transparent;
}

.gb-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 600px) {
  .gb-featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .gb-featured-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Karte als Soft-Card */
.gb-featured__card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(39, 41, 45, 0.06);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.gb-featured__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.10);
}

/* Card-Link füllt Karte */
.gb-featured__card .top-properties_item-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Image-Wrapper bekommt fixes Aspect-Ratio damit alle Cards gleich aussehen */
.gb-featured__card .top-properties_image-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}
.gb-featured__card .mapbox_static-map-wrapper-ratio,
.gb-featured__card .mapbox_static-map-wrapper-ratio img,
.gb-featured__card .mapbox_static-map-ratio {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tags absolut über dem Bild */
.gb-featured__card .top-tags-wrapper {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}
.gb-featured__card .top-properties_top-tag,
.gb-featured__card .top-properties_kategorie-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gb-featured__card .top-properties_top-tag {
  background: rgba(255, 255, 255, 0.92);
  color: #1a1c1f;
}
.gb-featured__card .top-properties_top-tag .icon-embed-xxsmall {
  width: 14px; height: 14px; color: #82bb29;
}

/* Title + Tag-Liste */
.gb-featured__card .top-properties_title-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
  gap: 12px;
}
.gb-featured__card .top-properties_item-content-top {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gb-featured__card .heading-style-h6 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}
.gb-featured__card .heading-style-h6.text-color-gray {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #677279;
}

/* Tag-Row (Preis, Größe) */
.gb-featured__card .top-properties_tag-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(39, 41, 45, 0.07);
}
.gb-featured__card .top-properties_tag-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gb-featured__card .top-properties_tag-item > div:first-child {
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #677279;
  font-weight: 500;
}
.gb-featured__card .top-properties_tag-item-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 600;
  color: #1a1c1f;
}

/* Button-Wrapper */
.gb-featured__card .top-properties_button-wrapper {
  margin-top: auto;
  padding-top: 8px;
}
.gb-featured__card .button.is-text.is-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #82bb29;
  transition: gap 0.15s ease;
}
.gb-featured__card:hover .button.is-text.is-icon { gap: 10px; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .gb-featured__card,
  .gb-featured__card .button.is-text.is-icon { transition: none !important; }
  .gb-featured__card:hover { transform: none; }
}

/* Top-Auswahl-Badge ausblenden (User-Wunsch 2026-05-05) */
.gb-featured__card .top-properties_top-tag { display: none !important; }
