/* ═══ BASE ════════════════════════════════════════════════════════════════ */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ═══ FILTER BUTTONS ══════════════════════════════════════════════════════ */

.filter-cat {
  background: #f3f4f6;
  color: #4b5563;
}
.filter-cat:hover {
  background: #e5e7eb;
}
.filter-cat.active[data-category="alle"]       { background: #374151; color: #fff; }
.filter-cat.active[data-category="ausflug"]    { background: #059669; color: #fff; }
.filter-cat.active[data-category="einkaufen"]  { background: #d97706; color: #fff; }
.filter-cat.active[data-category="restaurant"] { background: #e11d48; color: #fff; }

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-tag:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}
.filter-tag.active {
  background: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
}

/* ═══ LOCATION CARDS ══════════════════════════════════════════════════════ */

.location-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04);
  position: relative;
}
.location-card:hover {
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  transform: translateY(-1px);
}
.location-card.highlighted {
  box-shadow: 0 0 0 2px #6ee7b7, 0 4px 12px rgb(0 0 0 / 0.1);
}

.card-category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.card-category-dot.ausflug    { background: #059669; }
.card-category-dot.einkaufen  { background: #d97706; }
.card-category-dot.restaurant { background: #e11d48; }

.card-highlight-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: #fef3c7;
  border-radius: 50%;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}
.card-tag {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #6b7280;
  white-space: nowrap;
}

/* ═══ CAROUSEL (mobile map) ═══════════════════════════════════════════════ */

#carousel {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#carousel::-webkit-scrollbar { display: none; }

.carousel-card {
  scroll-snap-align: center;
  min-width: 280px;
  max-width: 300px;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.carousel-card.highlighted {
  box-shadow: 0 0 0 2px #6ee7b7, 0 4px 12px rgb(0 0 0 / 0.15);
}

/* ═══ MAP ═════════════════════════════════════════════════════════════════ */

.leaflet-container {
  font-family: inherit;
}

.custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.3);
  transition: transform 0.15s;
  border: 2px solid #fff;
}
.custom-marker.ausflug    { background: #059669; }
.custom-marker.einkaufen  { background: #d97706; }
.custom-marker.restaurant { background: #e11d48; }

.custom-marker.marker-highlighted {
  transform: scale(1.35);
  z-index: 1000 !important;
  box-shadow: 0 0 0 3px #6ee7b7, 0 4px 12px rgb(0 0 0 / 0.3);
}
.custom-marker.marker-highlight-star {
  border-color: #fbbf24;
  border-width: 2.5px;
}

/* ═══ DETAIL OVERLAY ══════════════════════════════════════════════════════ */

#detail-overlay .detail-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.detail-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.detail-action-btn.primary {
  background: #059669;
  color: #fff;
}
.detail-action-btn.primary:hover { background: #047857; }
.detail-action-btn.secondary {
  background: #f3f4f6;
  color: #374151;
}
.detail-action-btn.secondary:hover { background: #e5e7eb; }

.detail-info-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.4;
}
.detail-info-icon {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
  opacity: 0.5;
}

.detail-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.1875rem 0.625rem;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #6b7280;
}
.detail-tag.filterable {
  background: #ecfdf5;
  color: #047857;
}

/* ═══ MOBILE MAP VIEW ═════════════════════════════════════════════════════ */

#mobile-map-view.active {
  display: flex;
}

/* ═══ RESPONSIVE TWEAKS ═══════════════════════════════════════════════════ */

@media (max-width: 767px) {
  #card-list-panel {
    padding-bottom: 6rem;
  }
}

@media (min-width: 768px) {
  #header-map-btn { display: none; }
}

/* ═══ CLUSTER OVERRIDES ═══════════════════════════════════════════════════ */

.marker-cluster-small {
  background-color: rgba(16, 185, 129, 0.2);
}
.marker-cluster-small div {
  background-color: rgba(16, 185, 129, 0.6);
  color: #fff;
  font-weight: 600;
}
.marker-cluster-medium {
  background-color: rgba(16, 185, 129, 0.3);
}
.marker-cluster-medium div {
  background-color: rgba(16, 185, 129, 0.7);
  color: #fff;
  font-weight: 600;
}
.marker-cluster-large {
  background-color: rgba(16, 185, 129, 0.4);
}
.marker-cluster-large div {
  background-color: rgba(16, 185, 129, 0.8);
  color: #fff;
  font-weight: 600;
}
