/* ================================================================
   RetroTarg – Integracja Portalu Ogłoszeń
   Użycie body jako prefix żeby wygrać z pluginem bez !important hell
   ================================================================ */

/* Ukryj nagłówek Astry na stronach portalu */
.post-type-archive-rt_ogloszenie .ast-site-identity,
.taxonomy-rt_marka .ast-site-identity,
.taxonomy-rt_typ .ast-site-identity {
    display: none !important;
}

/* Alternatywnie - zmień rozmiar nagłówka Astry na portalu */
.post-type-archive-rt_ogloszenie .ast-site-identity .site-title,
.taxonomy-rt_marka .ast-site-identity .site-title,
.taxonomy-rt_typ .ast-site-identity .site-title {
    font-size: 10px !important;
    letter-spacing: 1px !important;
}

/* Inputy i selecty w filtrze – jasne tło zamienione na ciemne */
body .rtads-filter .rtads-input,
body .rtads-filter .rtads-select,
body .rtads-filter input[type="text"],
body .rtads-filter input[type="number"],
body .rtads-filter select {
  background: rgba(255,255,255,.09) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: #ffffff !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  border-radius: 7px !important;
}

body .rtads-filter .rtads-input::placeholder,
body .rtads-filter input::placeholder {
  color: rgba(255,255,255,.45) !important;
}

body .rtads-filter .rtads-select option {
  background: #1a1a2e !important;
  color: #ffffff !important;
}

body .rtads-filter .rtads-input:focus,
body .rtads-filter .rtads-select:focus,
body .rtads-filter input:focus,
body .rtads-filter select:focus {
  border-color: #C49A28 !important;
  background: rgba(255,255,255,.14) !important;
  outline: none !important;
}

/* Labele w filtrze */
body .rtads-filter__group label,
body .rtads-filter label {
  color: rgba(255,255,255,.55) !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}

/* Checkboxy */
body .rtads-checkbox span,
body .rtads-checkboxes label span {
  color: rgba(--rt-gold) !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
}
body .rtads-checkbox input[type="checkbox"] {
  accent-color: #C49A28 !important;
}

/* Przyciski w filtrze */
body .rtads-filter .rtads-btn--primary,
body .rtads-filter #rt-szukaj-btn {
  background: #C49A28 !important;
  color: #1a1a2e !important;
  font-family: 'Roboto', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 7px !important;
}
body .rtads-filter .rtads-btn--primary:hover,
body .rtads-filter #rt-szukaj-btn:hover {
  background: #a07818 !important;
  color: #fff !important;
}

body .rtads-filter .rtads-btn--ghost,
body .rtads-filter #rt-reset-btn {
  background: none !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  color: rgba(255,255,255,.6) !important;
  font-family: 'Roboto', sans-serif !important;
  border-radius: 7px !important;
}
body .rtads-filter .rtads-btn--ghost:hover,
body .rtads-filter #rt-reset-btn:hover {
  border-color: rgba(255,255,255,.5) !important;
  color: #fff !important;
}

/* Karty ogłoszeń */
body .rtads-card {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.07) !important;
  font-family: 'Roboto', sans-serif !important;
}
body .rtads-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.13) !important;
}
body .rtads-card__name {
  font-family: 'Roboto', sans-serif !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
}
body .rtads-card__price {
  font-family: 'Roboto', sans-serif !important;
  font-weight: 700 !important;
  color: #8B6914 !important;
}
body .rtads-chip {
  font-family: 'Roboto', sans-serif !important;
}

/* Przycisk Dodaj ogłoszenie */
body .rtads-btn--gold {
  background: #C49A28 !important;
  color: #1a1a2e !important;
  font-family: 'Roboto', sans-serif !important;
  font-weight: 800 !important;
  border-radius: 50px !important;
}
body .rtads-btn--gold:hover {
  background: #a07818 !important;
  color: #fff !important;
}

/* Grid na stronie głównej – 4 kolumny */
body .rtads-grid--home {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
}

/* Responsywność */
@media (max-width: 960px) {
  body .rtads-grid--home { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  body .rtads-grid--home { grid-template-columns: 1fr !important; }
}

/* ── Ukryj filtr w sekcji ogłoszeń na stronie głównej ─────── */
/* Strona główna używa front-page.php - filtr niepotrzebny */
.home .rtads-listing-wrap .rtads-filter,
.front-page .rtads-listing-wrap .rtads-filter,
.rth-section--portal .rtads-filter,
.rth-section--portal .rtads-listing-wrap .rtads-filter {
  display: none !important;
}
/* Na stronie głównej siatka zajmuje całą szerokość */
.home .rtads-listing-wrap .rtads-results,
.rth-section--portal .rtads-results,
.rth-section--portal .rtads-listing-wrap .rtads-results {
  flex: 1 !important;
  width: 100% !important;
}
