/* ═══════════════════════════════════════════
   DEINERT IMMOBILIEN – LISTING TOOLBAR
   Nachtrag zu css/style.css für das Markup
   der neuen objekte.html (.listing-*).
   ═══════════════════════════════════════════ */

/* ── SCREENREADER-TEXT ── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── TOOLBAR ── */
.listing-toolbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-xs);
}
.listing-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ── SUCHE ── */
.listing-search {
  position: relative;
  display: block;
  flex: 1 1 320px;
  min-width: 0;
}
.listing-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  pointer-events: none;
}
.listing-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 0.62rem 1.1rem 0.62rem 2.6rem;
  outline: none;
  transition: border 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.listing-search input::placeholder { color: var(--muted); opacity: 1; }
.listing-search input:focus { border-color: var(--accent); background: #fff; }

/* ── SORTIERUNG ── */
.listing-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.listing-sort select {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  padding: 0.55rem 2.2rem 0.55rem 1rem;
  cursor: pointer;
  transition: border 0.2s ease;
}
.listing-sort select:hover,
.listing-sort select:focus { border-color: var(--accent); outline: none; }

/* ── FILTERGRUPPEN ── */
.listing-filter-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.2rem;
}
.listing-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.listing-filter-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── ERGEBNISZEILE ── */
.listing-resultsbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.listing-reset {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.2s ease;
}
.listing-reset:hover { color: var(--accent-hover); text-decoration: underline; }

/* ── KARTEN: GLEICHE HÖHE, CTA UNTEN ── */
.prop-card { display: flex; flex-direction: column; }
.prop-photo { flex: 0 0 auto; }
.prop-photo.photo-missing { background: var(--bg-soft); }
.prop-photo.photo-missing::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.03) 50%, rgba(0,0,0,0.1));
}

/* ── MOBIL ── */
@media (max-width: 650px) {
  .listing-toolbar { padding: 1rem; }
  .listing-toolbar-top { flex-direction: column; align-items: stretch; }
  .listing-search { flex: 1 1 auto; }
  .listing-sort { justify-content: space-between; }
  .listing-sort select { flex: 1; }
  .listing-filter-groups { flex-direction: column; gap: 1rem; }
  .listing-resultsbar { flex-wrap: wrap; }
}
