/* ===============================================
   RetroTarg Ogłoszenia – Frontend CSS v2
   Brand: dark navy + antique gold + cream
   =============================================== */
:root {
    --rt-primary: #1f2937; /* Ciemny granat/szary dla tła filtrów i głównych przycisków */
    --rt-secondary: #C49A28; /* Złoty dla akcentów i przycisku SZUKAJ */
    --rt-text-dark: #1a1a2e;
    --rt-text-medium: #374151;
    --rt-text-light: #6b7280;
    --rt-bg-light: #f9fafb; /* Jasne tło dla sekcji głównej */
    --rt-bg-white: #ffffff;
    --rt-border-light: #e5e7eb;
    --rt-border-medium: #d1d5db;
    --rt-radius-sm: 8px;
    --rt-radius-md: 12px;
    --rt-shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --rt-shadow-md: 0 4px 20px rgba(0,0,0,.15);
    --rt-gold: #C49A28;  
}

::selection {
    background: #1a1a2e !important;
    color: #C49A28  !important;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--rt-text-medium);
    background-color: var(--rt-bg-light);
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}
/* ---- LUPKA I WYSZUKIWANIE DLA fibosearch ---- */

.dgwt-wcas-search-wrapp {
    min-width: 400px !important;
    width: 400px !important;
}

/* Mobilna - naprawa overflow */
@media (max-width: 480px) {
    .dgwt-wcas-search-wrapp {
        min-width: 100% !important;
        width: 100% !important;
    }
}

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
     display: none !important;
}

/* ---- BUTTONS ---- */
.rtads-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--rt-radius-sm);
    font: 600 14px/1 'Roboto', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.rtads-btn--primary {
    background: var(--rt-primary);
    color: var(--rt-bg-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rtads-btn--primary:hover {
    background: #111827;
    color: var(--rt-bg-white);
}

.rtads-btn--gold {
    background: var(--rt-secondary);
    color: var(--rt-bg-white);
    font-weight: 600;
}

.rtads-btn--gold:hover {
    background: #a07818;
    color: var(--rt-bg-white);
}

.rtads-btn--ghost {
    background: transparent;
    border: 1px solid var(--rt-border-light);
    color: var(--rt-text-medium);
}

.rtads-btn--ghost:hover {
    border-color: var(--rt-text-medium);
    color: var(--rt-text-dark);
}

.rtads-btn--block {
    width: 100%;
    margin-top: 8px;
}
.rtads-btn--xl{padding:16px 40px;font-size:1.05rem}
.rtads-btn--sm{padding:6px 12px;font-size:.78rem}
.rtads-btn--call{background:#16a34a;color:#fff;width:100%;margin-top:12px;padding:14px;font-size:1rem;border-radius:7px}
.rtads-btn--call:hover{background:#15803d;color:#fff}
.rtads-btn--fav{background:#fff;border:1.5px solid #DDE0E6;color:#1a1a2e;width:100%;margin-top:8px;border-radius:7px}
.rtads-btn--fav.is-active{border-color:#e11d48;color:#e11d48}

/* ---- INPUTS ---- */
.rtads-input, .rtads-select, .rtads-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--rt-border-light);
    border-radius: var(--rt-radius-sm);
    font: inherit;
    font-size: 14px;
    color: var(--rt-text-medium);
    background: var(--rt-bg-white);
    transition: border-color 0.2s;
}

.rtads-input:focus, .rtads-select:focus, .rtads-textarea:focus {
    outline: none;
    border-color: var(--rt-secondary);
}

.rtads-input::placeholder {
    color: var(--rt-text-light);
}

.rtads-select--sm {
    width: auto;
    padding: 8px 12px;
}

.rtads-textarea {
    resize: vertical;
    line-height: 1.6;
}

.rtads-input-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.rtads-input-prefix > span {
    position: absolute;
    left: 14px;
    color: var(--rt-text-light);
    font-weight: 700;
    pointer-events: none;
}

.rtads-input-prefix .rtads-input {
    padding-left: 55px;
}

/* ---- NOTICES ---- */
.rtads-notice,.rtads-login-gate{padding:16px 20px;border-radius:8px;margin-bottom:20px}
.rtads-notice--err{background:#fee2e2;border-left:4px solid var(--rt-red);color:#7f1d1d}
.rtads-notice--ok{background:#dcfce7;border-left:4px solid var(--rt-green);color:#14532d}
.rtads-notice--warn{background:#fef3c7;border-left:4px solid var(--rt-orange);color:#78350f}
.rtads-login-gate{background:var(--rt-cream);border:1.5px dashed var(--rt-gold);text-align:center;padding:40px}
.rtads-login-gate span{font-size:2.5rem;display:block;margin-bottom:12px}
.rtads-login-gate p{color:var(--rt-gray);margin-bottom:16px}

/* ---- BADGES / PILLS ---- */
.rtads-badge{display:inline-block;padding:3px 9px;border-radius:4px;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.rtads-badge--green{background:#dcfce7;color:#15803d}
.rtads-badge--orange{background:#fef3c7;color:#b45309}
.rtads-badge--gray{background:#f3f4f6;color:#4b5563}
.rtads-badge--red{background:#fee2e2;color:#b91c1c}
.rtads-pill{background:var(--rt-red);color:#fff;border-radius:20px;padding:2px 8px;font-size:.72rem;font-weight:700}

/* ---- ACCOUNT STATS (WooCommerce sidebar) ---- */
.rtads-account-stats{display:flex;gap:0;border-top:1px solid var(--rt-gray-l);margin-top:8px}
.rtads-stat{flex:1;text-align:center;padding:14px 8px;border-right:1px solid var(--rt-gray-l)}
.rtads-stat:last-child{border-right:none}
.rtads-stat strong{display:block;font-size:1.4rem;font-weight:800;color:var(--rt-gold)}
.rtads-stat span{font-size:.72rem;color:var(--rt-gray);text-transform:uppercase}
.rtads-stat--alert strong{color:var(--rt-red)}
.rtads-menu-badge{background:var(--rt-red);color:#fff;border-radius:20px;padding:1px 6px;font-size:.7rem;font-weight:700;vertical-align:middle;margin-left:4px}

/* ============================================================
   LISTING
   ============================================================ */
.rtads-portal-header {
    text-align: center;
    padding: 10px 0 !important;
    margin-bottom: 10px !important;
    background: #f0f0f0;
    color: #333333;
    font-size: 18px !important;
    font-weight: 700;
    letter-spacing: 1px;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative; 
}

.rtads-portal-footer {
    text-align: center;
    padding: 5px 0;
    margin-top: 5px;
    background: #f0f0f0;
    color: #fff;
    font-size: 14px;
}

.rtads-listing-wrap {
    display: flex;
    gap: 24px;
    max-width: 1300px !important;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: 'Roboto', sans-serif;
    background: var(--rt-bg-light);
}

/* Filter sidebar */
.rtads-filter {
    width: 235px;
    flex-shrink: 0;
    position: sticky;
    margin-top: 5px;
    height: fit-content;
    background: var(--rt-primary);
    border-radius: var(--rt-radius-md);
    overflow: hidden;
    margin-left: 5px;
    margin-bottom: 5px;
}

.rtads-filter__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--rt-bg-white);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.03em;
}

.rtads-filter__body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rtads-filter__group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rtads-filter__group label {
    font-family: 'Roboto', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
}



.rtads-filter .rtads-input,
.rtads-filter .rtads-select {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--rt-bg-white);
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    border-radius: var(--rt-radius-sm);
}

.rtads-filter .rtads-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.rtads-filter .rtads-select option {
    background: var(--rt-primary);
    color: var(--rt-bg-white);
}

.rtads-filter .rtads-input:focus,
.rtads-filter .rtads-select:focus {
    border-color: var(--rt-secondary);
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

.rtads-filter__range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rtads-filter__range span {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.rtads-filter__range .rtads-input {
    flex: 1;
}

.rtads-filter .rtads-btn--primary {
    background: var(--rt-secondary);
    color: var(--rt-primary);
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    width: 100%;
    padding: 13px;
    border-radius: var(--rt-radius-sm);
    margin-top: 4px;
}

.rtads-filter .rtads-btn--primary:hover {
    background: #a07818;
    color: var(--rt-bg-white);
    transform: translateY(-1px);
}

.rtads-filter .rtads-btn--ghost {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Roboto', sans-serif;
    border-radius: var(--rt-radius-sm);
    width: 100%;
    margin-top: 4px;
}

.rtads-filter .rtads-btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--rt-bg-white);
}

/* Results */
.rtads-results {
    flex: 1;
    min-width: 0;
}

.rtads-results__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.rtads-results__count {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: var(--rt-text-light);
}

.rtads-results__count strong {
    color: var(--rt-text-dark);
    font-weight: 700;
}

.rtads-results__bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grid */
.rtads-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.rtads-empty{grid-column:1/-1;text-align:center;padding:60px 24px;color:var(--rt-gray)}
.rtads-empty span{font-size:3rem;display:block;margin-bottom:12px}

/* Cards */
.rtads-card {
    background: var(--rt-bg-white);
    border: 1px solid var(--rt-border-light);
    border-radius: var(--rt-radius-md);
    box-shadow: var(--rt-shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
}

.rtads-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rt-shadow-md);
}

.rtads-card__img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--rt-bg-light);
    position: relative;
}

.rtads-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    display: block;
    border-radius: var(--rt-radius-md) var(--rt-radius-md) 0 0;
}

.rtads-card:hover .rtads-card__img-wrap img {
    transform: scale(1.05);
}

/* Tylko dla strony ogłoszeń /archiwum - całe zdjęcie z ciemnym tłem */
body.rt-ogloszenie-archive .rtads-card__img-wrap,
body.tax-rt_category .rtads-card__img-wrap,
body.tax-rt_marka .rtads-card__img-wrap,
body.tax-rt_model .rtads-card__img-wrap {
    max-height: 220px;
    background: #1a1a2e !important;
}

body.rt-ogloszenie-archive .rtads-card__img-wrap img,
body.tax-rt_category .rtads-card__img-wrap img,
body.tax-rt_marka .rtads-card__img-wrap img,
body.tax-rt_model .rtads-card__img-wrap img {
    object-fit: contain !important;
}

/* Strona główna - bez tła za zdjęciem, cover wypełnia całość */
body.home .rtads-card__img-wrap,
.rtads-portal-header + .rtads-wrap .rtads-card__img-wrap {
    background: transparent !important;
}

body.home .rtads-card__img-wrap img,
.rtads-portal-header + .rtads-wrap .rtads-card__img-wrap img {
    object-fit: cover !important;
}

.rtads-card--product .rtads-card__stock {
    font-size: 12px;
    color: var(--rt-text-light);
    margin-top: 4px;
}

.rtads-modal-inner--product .rtads-modal-cart {
    margin-top: 12px;
}

.rtads-modal-inner--product .rtads-modal-cart .ajax_add_to_cart {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.rtads-modal-inner--product .rtads-modal-stock {
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 14px;
}

.rtads-modal-inner--product .rtads-modal-stock .stock {
    margin: 0;
}

/* Przycisk navy granatowy dla koszyka */
.rtads-btn--navy {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

.rtads-btn--navy:hover {
    background: #0f0f1a;
    border-color: #0f0f1a;
}

.rtads-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--rt-text-light);
    background: var(--rt-bg-light);
}

.rtads-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: var(--rt-secondary);
    color: var(--rt-bg-white);
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
}
.rtads-card__fav{position:absolute;top:8px;right:8px;background:rgba(255,255,255,.9);border:none;border-radius:50%;width:34px;height:34px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.15);color:var(--rt-gray);transition:all .2s;padding:0}
.rtads-card__fav:hover,.rtads-card__fav.is-active{color:#e11d48;background:#fff}
.rtads-card__fav svg{width:16px;height:16px}
.rtads-card__body {
    padding: 13px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rtads-card__name {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--rt-text-dark);
    text-decoration: none;
    line-height: 1.4;
    min-height: 2.8em;
    max-height: 2.8em;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rtads-card__name:hover {
    color: var(--rt-text-dark);
}

.rtads-card__chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.rtads-chip {
    display: inline-block;
    background: var(--rt-bg-light);
    color: var(--rt-text-medium);
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 50px;
    border: 1px solid var(--rt-border-light);
}

.rtads-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.rtads-card__price {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--rt-secondary);
}

.rtads-card__loc-inline {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: var(--rt-text-light);
}
.rtads-card__cta{font-size:.78rem;font-weight:700;color:var(--rt-gold);text-decoration:none;transition:color .2s}
.rtads-card__cta:hover{color:var(--rt-gold-l)}

/* Responsive design */
@media (max-width: 1200px){
  .rtads-listing-wrap{max-width:1200px;gap:20px}
  .rtads-grid{grid-template-columns:repeat(3,1fr);gap:16px}
}
@media (max-width: 960px){
  .rtads-listing-wrap{flex-direction:column;gap:16px;padding:16px}
  .rtads-filter{width:100%;position:relative;top:0;margin-left:0}
  .rtads-grid{grid-template-columns:repeat(2,1fr);gap:14px}
}
@media (max-width: 600px){
  body {
      overflow-x: hidden !important;
  }
  .rtads-listing-wrap{padding:12px;max-width:100% !important}
  .rtads-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    margin:0 auto !important;
    overflow:hidden !important;
  }
  .rtads-results__bar{flex-direction:column;align-items:flex-start;gap:12px}
  /* Przyciski NAD sortowaniem na mobilnych */
  .rtads-results__bar-right {
      flex-direction: column-reverse;
      width: 100%;
      gap: 8px;
  }
  .rtads-results__bar-right .rtads-btn,
  .rtads-results__bar-right .rtads-btn-umowa {
      width: 100%;
      justify-content: center;
  }
  .rtads-results__bar-right .rtads-select {
      width: 100%;
  }
  /* Paginacja - wymuszone poziome wyświetlanie */
  .rtads-pagination {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: wrap !important;
      justify-content: center !important;
      gap: 6px !important;
      margin-top: 20px !important;
      margin-bottom: 20px !important;
      padding: 0 10px !important;
  }
  .rtads-pg-btn {
      min-width: 36px !important;
      height: 36px !important;
      font-size: 0.8rem !important;
  }
}

/* === PEŁNA SZEROKOŚĆ NA DUŻYCH EKRANACH (>1400px) === */
/* UWAGA: Można łatwo cofnąć zmianę usuwając ten blok */
@media (min-width: 1400px) {
  .rtads-listing-wrap {
    max-width: 100%;
    padding: 0 40px;
  }
}

/* Pagination */
.rtads-pagination{display:flex;justify-content:center;align-items:center;gap:4px;margin-top:28px;flex-wrap:wrap}
.rtads-pg-btn{min-width:38px;height:38px;padding:0 10px;border-radius:7px;border:1.5px solid var(--rt-gray-l);background:#fff;font:600 .85rem/1 var(--rt-font);cursor:pointer;transition:all .2s;display:inline-flex;align-items:center;justify-content:center}
.rtads-pg-btn:hover,.rtads-pg-btn.is-current{background:var(--rt-dark);color:var(--rt-gold);border-color:var(--rt-dark)}
.rtads-pg-btn:disabled{opacity:.4;cursor:default}
.rtads-pg-prev,.rtads-pg-next{background:var(--rt-cream);font-size:1rem}
.rtads-pg-dots{padding:0 6px;color:var(--rt-gray);font-size:.9rem;line-height:38px}

/* MOBILNA - paginacja wymuszona pozioma */
@media(max-width:600px){
  .rtads-pagination{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    align-items:center !important;
    gap:6px !important;
    margin-top:20px !important;
    margin-bottom:20px !important;
    padding:0 10px !important;
  }
  .rtads-pagination > * {
    flex-shrink:0 !important;
  }
  .rtads-pg-btn{
    min-width:36px !important;
    height:36px !important;
    font-size:0.8rem !important;
    display:inline-flex !important;
  }
}

/* ============================================================
   FORM
   ============================================================ */
.rtads-form-wrap{max-width:820px;margin:0 auto;padding:24px 16px;font-family:var(--rt-font)}
.rtads-form-hero{background:#2d3748;color:#fff;border-radius:var(--rt-radius);padding:28px 32px;margin-bottom:20px}
.rtads-form-hero h1{margin:0 0 8px;font-size:1.5rem;color:var(--rt-gold-l)!important;}
.rtads-form-hero p{margin:0;color:rgba(255,255,255,.7);font-size:.9rem}
.rtads-form-card{background:#fff;border-radius:var(--rt-radius);box-shadow:var(--rt-shadow);padding:24px 28px;margin-bottom:16px}
.rtads-form-card__title{font-size:1rem;font-weight:700;color:var(--rt-dark);margin-bottom:20px;display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:2px solid var(--rt-cream);flex-wrap:wrap}
.rtads-form-card__title small{font-weight:400;font-size:.78rem;color:var(--rt-gray);flex-basis:100%}
.rtads-step{background:var(--rt-gold);color:var(--rt-dark);width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:800;flex-shrink:0}
.rtads-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.rtads-fg{display:flex;flex-direction:column;gap:5px}
.rtads-fg--full{grid-column:1/-1}
.rtads-fg label{font-size:.75rem;font-weight:700;color:var(--rt-gray);text-transform:uppercase;letter-spacing:.04em}
.rtads-fg small{font-size:.75rem;color:var(--rt-gray)}

/* Drop zone */
.rtads-drop-zone{border:2px dashed var(--rt-gray-l);border-radius:var(--rt-radius);padding:8px;margin-bottom:16px;transition:all .2s}
.rtads-drop-zone.is-over{border-color:var(--rt-gold);background:rgba(200,169,110,.06)}
.rtads-drop-zone__inner{text-align:center;padding:32px 24px}
.rtads-drop-zone__inner svg{color:var(--rt-gray-l);display:block;margin:0 auto 16px}
.rtads-drop-zone__inner p{font-weight:600;color:var(--rt-dark);margin:0 0 6px}
.rtads-drop-zone__inner small{display:block;color:var(--rt-gray);margin-bottom:16px;font-size:.8rem}

/* Gallery tiles (drag-drop) */
.rtads-gallery-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;min-height:50px}
.rtads-tile{position:relative;border-radius:8px;overflow:hidden;aspect-ratio:4/3;cursor:grab;border:2px solid transparent;transition:border-color .2s,transform .2s;background:var(--rt-cream)}
.rtads-tile:first-child{border-color:var(--rt-gold)}
.rtads-tile img{width:100%;height:100%;object-fit:cover;pointer-events:none;display:block}
.rtads-tile__cover{position:absolute;bottom:0;left:0;right:0;background:var(--rt-gold);color:var(--rt-dark);font-size:.65rem;font-weight:800;text-align:center;padding:3px;letter-spacing:.06em}
.rtads-tile__del{position:absolute;top:4px;right:4px;background:rgba(0,0,0,.6);border:none;border-radius:50%;width:22px;height:22px;color:#fff;font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;transition:background .2s;padding:0}
.rtads-tile__del:hover{background:var(--rt-red)}
.rtads-tile.is-dragging{opacity:.5;transform:scale(.95);cursor:grabbing}
.rtads-tile.drag-over{border-color:var(--rt-gold);border-style:dashed}
.rtads-tile--uploading::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center}
.rtads-tile__progress{position:absolute;bottom:0;left:0;height:3px;background:var(--rt-gold);transition:width .3s}

/* Photo counter */
.rtads-photo-counter{margin-top:10px;font-size:.82rem;color:var(--rt-gray);text-align:right}
.rtads-counter-warn{color:var(--rt-red);font-weight:700}

/* Form submit */
.rtads-form-submit{text-align:center;padding:8px 0 24px}
.rtads-form-terms{font-size:.78rem;color:var(--rt-gray);margin-top:12px}
.rtads-form-terms a{color:var(--rt-gold)}
#rtads-form-msg{margin-bottom:16px}

/* ============================================================
   USER PANEL
   ============================================================ */
.rtads-panel{font-family:var(--rt-font);max-width:900px}
.rtads-section-title{font-size:1.2rem;font-weight:800;margin:0 0 20px;color:var(--rt-dark)}
.rtads-panel-header{background:#2d3748;border-radius:var(--rt-radius);padding:24px 28px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:20px}
.rtads-panel-user{display:flex;align-items:center;gap:16px;flex:1}
.rtads-panel-avatar img{border-radius:50%;border:3px solid var(--rt-gold)}
.rtads-panel-userinfo h2{margin:0 0 4px;font-size:1.1rem;color:#fff !important}
.rtads-panel-userinfo p{margin:0;color:rgba(255,255,255,.6);font-size:.85rem}
.rtads-panel-kpis{display:flex;gap:0;background:rgba(255,255,255,.06);border-radius:8px;overflow:hidden}
.rtads-kpi{flex:1;text-align:center;padding:12px 18px;display:block;text-decoration:none;color:#fff;transition:background .2s;border-right:1px solid rgba(255,255,255,.08)}
.rtads-kpi:last-child{border-right:none}
.rtads-kpi:hover{background:rgba(255,255,255,.08)}
.rtads-kpi strong{display:block;font-size:1.4rem;font-weight:800;color:var(--rt-gold)}
.rtads-kpi span{font-size:.7rem;color:rgba(255,255,255,.6);text-transform:uppercase}
.rtads-kpi--alert strong{color:var(--rt-red)}
.rtads-panel-empty{text-align:center;padding:60px 24px;background:#fff;border-radius:var(--rt-radius);box-shadow:var(--rt-shadow)}
.rtads-panel-empty__icon,.rtads-panel-empty span{font-size:3.5rem;display:block;margin-bottom:16px}
.rtads-panel-empty h3{margin:0 0 8px;font-size:1.1rem}
.rtads-panel-empty p{color:var(--rt-gray);margin-bottom:20px}

/* Ad rows */
.rtads-panel-ads{display:flex;flex-direction:column;gap:12px}
.rtads-panel-ad{background:#fff;border-radius:var(--rt-radius);box-shadow:var(--rt-shadow);display:flex;align-items:stretch;overflow:hidden;border-left:4px solid transparent;transition:box-shadow .2s}
.rtads-panel-ad:hover{box-shadow:var(--rt-shadow2)}
.rtads-panel-ad--expired{border-left-color:var(--rt-red);opacity:.85}
.rtads-panel-ad--warn{border-left-color:var(--rt-orange)}
.rtads-panel-ad--rejected{border-left-color:#dc2626}
/* Status badge na miniaturze */
.rtads-panel-ad__status{position:absolute;top:6px;left:6px;font-size:10px;font-weight:700;padding:2px 6px;border-radius:4px;letter-spacing:.03em}
.rtads-panel-ad__status.is-active{background:#dcfce7;color:#16a34a}
.rtads-panel-ad__status.is-pending{background:#fef9c3;color:#ca8a04}
.rtads-panel-ad__status.is-draft{background:#f3f4f6;color:#6b7280}
.rtads-panel-ad__status.is-rejected{background:#f3f4f6;color:#6b7280}
/* Uwagi admina */
.rtads-panel-ad__reject-reason{font-size:.8rem;color:#dc2626;background:#fee2e2;border-radius:6px;padding:8px 10px;margin-bottom:8px;line-height:1.5}
.rtads-panel-ad__thumb{width:110px;flex-shrink:0;position:relative;background:var(--rt-cream)}
.rtads-panel-ad__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rtads-panel-ad__no-thumb{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:2rem;color:var(--rt-gray-l)}
.rtads-panel-ad__thumb .rtads-badge{position:absolute;top:6px;left:6px}
.rtads-panel-ad__info{flex:1;padding:14px 16px;min-width:0}
.rtads-panel-ad__title{font-weight:700;font-size:.95rem;color:var(--rt-dark);text-decoration:none;display:block;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rtads-panel-ad__title:hover{color:var(--rt-gold)}
.rtads-panel-ad__meta{display:flex;gap:12px;font-size:.78rem;color:var(--rt-gray);margin-bottom:10px;flex-wrap:wrap}

/* Expiry bar */
.rtads-expiry{display:flex;align-items:center;gap:8px;font-size:.8rem;color:var(--rt-gray);flex-wrap:wrap}
.rtads-expiry svg{flex-shrink:0}
.rtads-expiry--warn{color:var(--rt-orange)}
.rtads-expiry--expired{color:var(--rt-red)}
.rtads-expiry--expired svg,.rtads-expiry--warn svg{color:inherit}

/* Action buttons */
.rtads-panel-ad__actions{display:flex;flex-direction:column;gap:4px;padding:10px;border-left:1px solid var(--rt-gray-l);flex-shrink:0;justify-content:center}
.rtads-action-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1.5px solid var(--rt-gray-l);border-radius:7px;background:#fff;cursor:pointer;text-decoration:none;color:var(--rt-dark);transition:all .2s}
.rtads-action-btn:hover{border-color:var(--rt-dark);color:var(--rt-dark);background:var(--rt-cream)}
.rtads-action-btn--del:hover{border-color:var(--rt-red);color:var(--rt-red);background:#fee2e2}

/* Messages */
.rtads-msgs-wrap,.rtads-favs-wrap{max-width:700px;font-family:var(--rt-font)}
.rtads-msg-list{display:flex;flex-direction:column;gap:10px}
.rtads-msg{background:#fff;border-radius:var(--rt-radius);padding:16px;box-shadow:var(--rt-shadow);display:flex;gap:14px}
.rtads-msg--unread{border-left:4px solid var(--rt-gold)}
.rtads-msg__avatar img{border-radius:50%}
.rtads-msg__body{flex:1;min-width:0}
.rtads-msg__meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.82rem;margin-bottom:8px}
.rtads-msg__meta strong{font-weight:700}
.rtads-msg__meta a{color:var(--rt-gold);text-decoration:none}
.rtads-msg__meta time{color:var(--rt-gray);margin-left:auto;font-size:.75rem}
.rtads-msg__text{font-size:.88rem;color:#374151;line-height:1.6;margin:0;word-break:break-word}

/* ============================================================
   SINGLE
   ============================================================ */
.rtads-single{font-family:var(--rt-font);padding:24px 16px}
.rtads-single__container{max-width:1140px;margin:0 auto}
.rtads-breadcrumb{font-size:.82rem;color:var(--rt-gray);margin-bottom:20px}
.rtads-breadcrumb a{color:var(--rt-gold);text-decoration:none}
.rtads-single__layout{display:grid;grid-template-columns:1fr 320px;gap:28px;align-items:start}
.rtads-single__title{font-size:1.6rem;font-weight:800;margin:0 0 20px;color:var(--rt-dark);line-height:1.2}
/* Gallery */
.rtads-single-gallery{margin-bottom:28px}
.rtads-single-gallery__main{border-radius:var(--rt-radius);overflow:hidden;background:var(--rt-cream);height:360px;display:flex;align-items:center;justify-content:center}
.rtads-single-gallery__main img{width:100%;height:100%;object-fit:cover;cursor:zoom-in;transition:transform .3s}
.rtads-single-gallery__no-img{font-size:5rem;color:var(--rt-gray-l)}
.rtads-single-gallery__thumbs{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.rtads-gthumb{width:72px;height:54px;object-fit:cover;border-radius:6px;cursor:pointer;border:2px solid transparent;transition:border-color .2s;opacity:.7}
.rtads-gthumb:hover,.rtads-gthumb--active{border-color:var(--rt-gold);opacity:1}
/* Specs */
.rtads-single-desc{margin-bottom:24px}
.rtads-single-desc h2,.rtads-single-specs h2{font-size:1rem;font-weight:700;color:var(--rt-dark);margin:0 0 14px;padding-bottom:10px;border-bottom:2px solid var(--rt-cream)}
.rtads-specs-grid{display:grid;grid-template-columns:1fr 1fr;gap:0}
.rtads-spec{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-bottom:1px solid var(--rt-cream)}
.rtads-spec:nth-child(odd){border-right:1px solid var(--rt-cream)}
.rtads-spec__label{font-size:.72rem;color:var(--rt-gray);text-transform:uppercase;letter-spacing:.04em;font-weight:600}
.rtads-spec__val{font-size:.9rem;font-weight:700;color:var(--rt-dark)}
/* Sidebar boxes */
.rtads-sidebar-box{background:#fff;border-radius:var(--rt-radius);padding:20px;box-shadow:var(--rt-shadow);margin-bottom:14px}
.rtads-sidebar-box h3{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--rt-gray);margin:0 0 14px;font-weight:700}
.rtads-sidebar-price{}
.rtads-price{font-size:1.8rem;font-weight:900;color:var(--rt-dark);margin-bottom:4px}
.rtads-price-meta{font-size:.82rem;color:var(--rt-gray);margin-bottom:14px}
.rtads-seller__info{display:flex;gap:12px;align-items:center}
.rtads-seller__info img{border-radius:50%}
.rtads-share{display:flex;gap:8px;flex-wrap:wrap}
.rtads-share__btn{padding:8px 14px;border-radius:6px;font:600 .78rem/1 var(--rt-font);cursor:pointer;border:none;text-decoration:none;display:inline-block;transition:opacity .2s}
.rtads-share__btn:hover{opacity:.8}
.rtads-share__btn--fb{background:#1877f2;color:#fff}
.rtads-share__btn--copy{background:var(--rt-cream);color:var(--rt-dark)}
/* Contact form in sidebar */
.rtads-contact-form .rtads-textarea{margin-bottom:8px}
#rt-msg-result{margin-top:8px;font-size:.85rem}
/* Toast */
.rtads-toast{position:fixed;bottom:20px;right:20px;background:var(--rt-dark);color:var(--rt-gold);padding:12px 20px;border-radius:8px;box-shadow:0 4px 20px rgba(0,0,0,.25);z-index:99999;font-family:var(--rt-font);font-size:.9rem;max-width:300px;animation:rtToastIn .3s ease}
@keyframes rtToastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

/* ============================================================
   ADMIN
   ============================================================ */
.rt-badge{display:inline-block;padding:2px 8px;border-radius:4px;font-size:.72rem;font-weight:700}
.rt-badge--green{background:#dcfce7;color:#15803d}
.rt-badge--orange{background:#fef3c7;color:#b45309}
.rt-badge--gray{background:#f3f4f6;color:#4b5563}
.rtads-admin-stats-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:20px 0}
.rtads-admin-stat{background:#fff;border-radius:8px;padding:20px;text-align:center;box-shadow:0 2px 10px rgba(0,0,0,.06);border-top:3px solid #c8a96e}
.rtads-admin-stat h2{font-size:2rem;margin:0 0 6px;color:#1a1a2e}
.rtads-admin-stat p{margin:0;color:#6b7280;font-size:.85rem}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px){
  .rtads-listing-wrap{flex-direction:column}
  .rtads-filter{width:100%;position:static}
  .rtads-filter__body{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .rtads-filter .rtads-btn--primary,.rtads-filter .rtads-btn--ghost{grid-column:1/-1}
  .rtads-single__layout{grid-template-columns:1fr}
  .rtads-admin-stats-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:768px){
  .rtads-form-grid{grid-template-columns:1fr}
  .rtads-fg--full{grid-column:1}
  .rtads-panel-header{flex-direction:column;align-items:flex-start}
  .rtads-panel-kpis{width:100%}
  .rtads-panel-ad__thumb{width:80px}
  .rtads-specs-grid{grid-template-columns:1fr}
  .rtads-spec:nth-child(odd){border-right:none}
  .rtads-admin-stats-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:520px){
  .rtads-grid{grid-template-columns:repeat(2,1fr)}
  .rtads-gallery-tiles{grid-template-columns:repeat(3,1fr)}
  .rtads-filter__body{grid-template-columns:1fr}
  .rtads-results__bar{flex-direction:column;align-items:flex-start}
}
@media(max-width:360px){
  .rtads-grid{grid-template-columns:1fr}
}

/* ============================================================
   v3 – PHOTO GRID (10 slots)
   ============================================================ */
.rtads-photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.rtads-photo-slot {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dashed var(--rt-gray-l);
    background: var(--rt-cream);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.rtads-photo-slot:hover { border-color: var(--rt-gold); }
.rtads-photo-slot.has-photo {
    border-style: solid;
    border-color: var(--rt-gray-l);
    cursor: grab;
}
.rtads-photo-slot.is-cover { border-color: var(--rt-gold); box-shadow: 0 0 0 2px rgba(200,169,110,.3); }
.rtads-photo-slot.is-dragging { opacity: .45; cursor: grabbing; }
.rtads-photo-slot.drag-over-swap { border-color: var(--rt-gold); border-style: dashed; background: rgba(200,169,110,.08); }
.rtads-photo-slot.drag-over-empty { border-color: var(--rt-gold); background: rgba(200,169,110,.1); }

.rtads-photo-slot img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    pointer-events: none;
}
.rtads-slot__empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; gap: 6px;
    color: var(--rt-gray); font-size: .72rem; text-align: center; padding: 8px;
}
.rtads-slot__empty svg { color: var(--rt-gray-l); flex-shrink: 0; }
.rtads-slot__label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: var(--rt-gold); color: var(--rt-dark);
    font-size: .6rem; font-weight: 800; text-align: center;
    padding: 3px; letter-spacing: .06em; text-transform: uppercase;
}
.rtads-slot__del {
    position: absolute; top: 4px; right: 4px;
    background: rgba(0,0,0,.65); border: none; border-radius: 50%;
    width: 22px; height: 22px; color: #fff;
    font-size: 1rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s; padding: 0;
}
.rtads-slot__del:hover { background: var(--rt-red); }
.rtads-slot__progress {
    position: absolute; bottom: 0; left: 0; height: 3px;
    background: var(--rt-gold); width: 0; transition: width .3s;
}
.rtads-slot__spinner {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.7);
}
.rtads-spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--rt-gray-l);
    border-top-color: var(--rt-gold);
    border-radius: 50%;
    animation: rt-spin .7s linear infinite;
}
@keyframes rt-spin { to { transform: rotate(360deg); } }
.rtads-photo-hint {
    font-size: .82rem; color: var(--rt-gray);
    text-align: right; margin-top: 4px;
}

/* ── Checkboxes ───────────────────────────────────────────── */
.rtads-checkboxes {
    display: flex; flex-direction: column; gap: 8px;
}
.rtads-checkbox {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: .85rem; color: rgba(249, 249, 249, 0.916);
}
.rtads-checkbox input[type=checkbox] {
    width: 16px; height: 16px; accent-color: var(--rt-gold);
    cursor: pointer; flex-shrink: 0;
}
/* Light variant (inside form card) */
.rtads-checkboxes--light .rtads-checkbox--light { color: var(--rt-dark); }
.rtads-checkbox--light span { color: #374151; }

/* ── Responsive photo grid ────────────────────────────────── */
@media(max-width: 900px) {
    .rtads-photo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media(max-width: 640px) {
    .rtads-photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width: 420px) {
    .rtads-photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   v5 – SUCCESS POPUP
   ============================================================ */
.rtads-success-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    animation: rt-fadein .25s ease;
}
.rtads-success-box {
    background: #fff; border-radius: 16px;
    padding: 48px 40px; max-width: 400px; width: 90%;
    text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.rtads-success-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #22c55e; color: #fff;
    font-size: 2rem; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.rtads-success-box h2 { font-size: 1.5rem; margin: 0 0 8px; color: var(--rt-dark); }
.rtads-success-box p  { color: #6b7280; margin: 0 0 24px; }
.rtads-success-bar    { height: 4px; background: #e5e7eb; border-radius: 2px; overflow: hidden; }
.rtads-success-bar__fill { height: 100%; background: var(--rt-gold); border-radius: 2px; }

@keyframes rt-fadein { from{opacity:0} to{opacity:1} }

/* ============================================================
   v5 – AD CARD MODAL (powiększenie po kliknięciu)
   ============================================================ */
.rtads-card-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    transition: background .28s ease;
    pointer-events: none;
}
.rtads-card-overlay.is-visible {
    background: rgba(0,0,0,.55);
    pointer-events: all;
}
.rtads-card-modal {
    position: relative;
    background: #fff; border-radius: 14px;
    max-width: 900px; width: 100%;
    max-height: 92vh; overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
    transform: translateY(24px) scale(.97);
    opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
}
.rtads-card-overlay.is-visible .rtads-card-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.rtads-card-modal__close {
    position: sticky; top: 12px; float: right;
    margin: 12px 12px 0 0;
    width: 36px; height: 36px;
    background: rgba(0,0,0,.07); border: none; border-radius: 50%;
    font-size: 1rem; cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.rtads-card-modal__close:hover { background: rgba(0,0,0,.15); }

/* Modal inner layout */
.rtads-modal-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    clear: both;
}
.rtads-modal-gallery {
    background: #f3f4f6;
    border-radius: 14px 0 0 14px;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.rtads-modal-gallery__main {
    width: 100%; aspect-ratio: 4/3;
    object-fit: cover; display: block;
}
.rtads-modal-gallery__no-img {
    aspect-ratio: 4/3; display: flex; align-items: center;
    justify-content: center; font-size: 4rem; color: #9ca3af;
}
.rtads-modal-gallery__thumbs {
    display: flex; gap: 4px; padding: 6px;
    flex-wrap: wrap; background: rgba(0,0,0,.04);
}
.rtads-modal-gthumb {
    width: 56px; height: 42px; object-fit: cover;
    border-radius: 4px; cursor: pointer; opacity: .7;
    border: 2px solid transparent; transition: all .15s;
}
.rtads-modal-gthumb.is-active,
.rtads-modal-gthumb:hover { opacity: 1; border-color: var(--rt-gold); }

/* Modal info panel */
.rtads-modal-info {
    padding: 28px 28px 28px;
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 16px;
}
.rtads-modal-info__title {
    font-size: 1.2rem; font-weight: 700;
    color: var(--rt-dark); margin: 0; line-height: 1.3;
}
.rtads-modal-info__price {
    font-size: 1.6rem; font-weight: 800;
    color: var(--rt-gold);
}
.rtads-modal-specs {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}
.rtads-modal-spec {
    display: flex; flex-direction: column;
    padding: 8px 10px;
    background: #f9fafb; border-radius: 6px;
}
.rtads-modal-spec--badge {
    grid-column: span 2;
    background: rgba(200,169,110,.1);
    color: var(--rt-dark); font-weight: 600; font-size: .82rem;
}
.rtads-modal-spec__label { font-size: .72rem; color: #9ca3af; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.rtads-modal-spec__val   { font-size: .9rem; font-weight: 600; color: var(--rt-dark); }

.rtads-modal-desc h3, .rtads-modal-contact h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; margin: 0 0 8px; }
.rtads-modal-desc__text { font-size: 1rem; color: #374151; line-height: 1.6; max-height: 180px; overflow-y: auto; }
.rtads-modal-contact { display: flex; flex-direction: column; gap: 8px; }
.rtads-modal-contact__loc { font-size: .85rem; color: #6b7280; margin: 0; }
.rtads-modal-footer { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid #e5e7eb; }

/* Card pointer cursor */
.rtads-card { cursor: pointer; }
.rtads-card:focus { outline: 2px solid var(--rt-gold); outline-offset: 3px; }
body.rtads-modal-open { overflow: hidden; }

/* Responsive modal */
@media(max-width:680px){
    .rtads-modal-inner { grid-template-columns: 1fr; }
    .rtads-modal-gallery { border-radius: 14px 14px 0 0; }
    .rtads-modal-gallery__main { aspect-ratio: 16/9; }
    .rtads-modal-info { padding: 16px; }
}

/* Mobilne - mniejsze ekrany */
@media(max-width:480px){
    .rtads-card-modal {
        max-width: 100% !important;
        width: calc(100% - 20px) !important;
        margin: 10px !important;
    }
    .rtads-card-overlay {
        padding: 0 !important;
        align-items: flex-end !important;
    }
    .rtads-modal-inner {
        grid-template-columns: 1fr !important;
    }
    .rtads-modal-gallery__main {
        max-height: 200px !important;
    }
    .rtads-modal-info {
        padding: 14px !important;
        max-height: 60vh !important;
    }
    .rt-modal-box {
        max-width: 100% !important;
        width: calc(100% - 16px) !important;
        margin: 8px !important;
        max-height: 80vh !important;
    }
    .rt-modal-ov {
        padding: 0 !important;
        align-items: flex-end !important;
    }
  
}

/* Ukryj lokalizację z karty w modalu */
.rtads-modal-overlay .rtads-card__loc-inline {
    display: none !important;
}

/* ============================================================
   v5.1 – MODAL FIXES
   ============================================================ */

/* Modal info scrollable z ładnym paddem */
.rtads-modal-info {
    padding: 24px 24px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    overflow-y: auto;
    max-height: 90vh;
}

/* Cena wyraźna */
.rtads-modal-info__price {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: var(--rt-gold) !important;
    line-height: 1 !important;
}

/* Kontakt – lokalizacja */
.rtads-modal-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rtads-modal-contact h3,
.rtads-modal-msgform h3 {
    font-size: .72rem !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    color: #9ca3af !important;
    margin: 0 0 6px !important;
    font-weight: 600 !important;
}
.rtads-modal-contact__loc {
    font-size: .88rem;
    color: #6b7280;
    margin: 0 0 4px;
    display: flex; align-items: center; gap: 4px;
}

/* Przyciski kontakt w modalu */
.rtads-modal-contact .rtads-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: .9rem !important;
    padding: 10px 16px !important;
}

/* Formularz wiadomości w modalu */
.rtads-modal-msgform {
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
}
.rtads-modal-msgform .rtads-textarea {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .88rem;
    resize: vertical;
    margin-bottom: 8px;
    font-family: inherit;
    transition: border-color .2s;
}
.rtads-modal-msgform .rtads-textarea:focus {
    outline: none;
    border-color: var(--rt-gold);
}
.rtads-modal-msgform .rtads-btn--primary {
    width: 100%;
    justify-content: center;
}
.rtm-msg-result { font-size: .82rem; margin-top: 6px; min-height: 18px; }

/* Fav row w modalu */
.rtads-modal-fav-row {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}
.rtads-card__fav--modal {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: none !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: .85rem !important;
    color: var(--rt-dark) !important;
    cursor: pointer !important;
    transition: all .2s !important;
    width: 100%;
    justify-content: center;
}
.rtads-card__fav--modal:hover,
.rtads-card__fav--modal.is-active {
    border-color: #e11d48 !important;
    color: #e11d48 !important;
    background: #fff1f2 !important;
}

/* ============================================================
   v6 – MODAL & LIGHTBOX FIXES
   ============================================================ */

/* Modal większy, lewa kolumna większa */
.rtads-card-modal {
    max-width: 1000px !important;
}
.rtads-modal-inner {
    grid-template-columns: 55% 45% !important;
}

/* Główne zdjęcie wypełnia całą lewą kolumnę */
.rtads-modal-gallery {
    border-radius: 14px 0 0 14px;
    background: #111;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.rtads-modal-gallery__main {
    width: 100%;
    flex: 1;
    object-fit: contain !important;   /* całe zdjęcie widoczne */
    aspect-ratio: unset !important;
    max-height: 480px;
    cursor: zoom-in;
    background: #111;
    display: block;
}

/* LIGHTBOX – po kliknięciu zdjęcia w modalu */
.rtads-lightbox {
    position: fixed; inset: 0; z-index: 999999;
    background: rgba(0,0,0,.93);
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-out;
    animation: rt-fadein .2s ease;
}
.rtads-lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 80px rgba(0,0,0,.8);
    pointer-events: none;
}
.rtads-lightbox__close {
    position: fixed; top: 16px; right: 20px;
    color: #fff; font-size: 2rem; cursor: pointer;
    background: none; border: none;
    line-height: 1; padding: 4px 8px;
    transition: opacity .2s;
}
.rtads-lightbox__close:hover { opacity: .7; }
.rtads-lightbox__prev,
.rtads-lightbox__next {
    position: fixed; top: 50%; transform: translateY(-50%);
    color: #fff; font-size: 2.5rem; cursor: pointer;
    background: rgba(0,0,0,.4); border: none;
    padding: 12px 18px; border-radius: 8px;
    transition: background .2s;
}
.rtads-lightbox__prev { left: 12px; }
.rtads-lightbox__next { right: 12px; }
.rtads-lightbox__prev:hover,
.rtads-lightbox__next:hover { background: rgba(0,0,0,.7); }

/* Miniaturki w modalu */
.rtads-modal-gallery__thumbs {
    display: flex; gap: 4px; padding: 6px;
    flex-wrap: wrap; background: rgba(0,0,0,.3);
}
.rtads-modal-gthumb {
    width: 60px; height: 46px;
    object-fit: cover; border-radius: 4px;
    cursor: pointer; opacity: .55;
    border: 2px solid transparent;
    transition: all .15s;
}
.rtads-modal-gthumb.is-active,
.rtads-modal-gthumb:hover { opacity: 1; border-color: var(--rt-gold); }

/* Prawa kolumna modalu – scroll */
.rtads-modal-info {
    padding: 20px 20px 20px !important;
    overflow-y: auto !important;
    max-height: 85vh !important;
}

/* Cena – duża i złota */
.rtads-modal-info__price {
    font-size: 2rem !important;
    font-weight: 900 !important;
    color: var(--rt-gold) !important;
    line-height: 1 !important;
    margin: 4px 0 !important;
}

/* Responsive */
@media(max-width: 700px){
    .rtads-modal-inner { grid-template-columns: 1fr !important; }
    .rtads-modal-gallery { border-radius: 14px 14px 0 0 !important; }
    .rtads-modal-gallery__main { max-height: 260px; }
    .rtads-modal-info { max-height: none !important; }
}

/* Mobilne - bardzo male ekrany */
@media(max-width: 480px){
    .rt-modal-box {
        width: calc(100% - 16px) !important;
        max-width: 100% !important;
        margin: 8px !important;
    }
    .rt-modal-ov {
        padding: 0 !important;
        align-items: flex-end !important;
    }
    .rtads-modal-main-img {
        max-height: 200px !important;
    }
    .rtads-modal-gallery {
        border-radius: 14px 14px 0 0 !important;
    }
    .rtads-modal-info {
        padding: 14px !important;
    }
}

/* Mobilne - fix dla bardzo małych ekranów - polaczone style */
@media(max-width:480px){
    .rtads-modal-inner { grid-template-columns: 1fr !important; }
    .rtads-modal-gallery__main { max-height: 200px !important; }
    .rtads-modal-info { max-height: none !important; }
    .rtads-card-overlay {
        padding: 8px !important;
    }
    .rtads-card-modal {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ============================================================
   v7 – CARD CHIPS (rok, pojemnosc, stan przed kliknieciem)
   ============================================================ */
.rtads-card__row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0 8px;
}
.rtads-card__chip {
    font-size: .72rem;
    background: #f1f5f9;
    color: #374151;
    border-radius: 20px;
    padding: 2px 8px;
    font-weight: 500;
    white-space: nowrap;
}
.rtads-card__chip--stan {
    background: rgba(200,169,110,.15);
    color: var(--rt-dark);
    font-weight: 600;
}

/* ============================================================
   v8 – KARTA, FAV, MODAL, LIGHTBOX
   ============================================================ */

/* Karta – chipy */
.rtads-card__chips{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0 8px}
.rtads-chip{font-size:.72rem;background:#f1f5f9;color:#374151;border-radius:20px;padding:2px 8px;font-weight:500;white-space:nowrap}
.rtads-chip--gold{background:rgba(200,169,110,.15);color:#1a1a2e;font-weight:600}
.rtads-card__price-row{margin:4px 0 2px}
.rtads-card__loc{font-size:.78rem;color:#6b7280;display:block;margin-top:2px}

/* FAV przycisk – serce */
/* FAV placeholder - pelne reguly ponizej */

/* MODAL */
.rt-modal-ov{
    position:fixed;inset:0;z-index:9999;
    background:rgba(0,0,0,0);
    display:flex;align-items:center;justify-content:center;padding:16px;
    transition:background .25s;pointer-events:none;
}
.rt-modal-ov.show{background:rgba(0,0,0,.55);pointer-events:all}
.rt-modal-box{
    position:relative;background:#fff;border-radius:14px;
    width:100%;max-width:960px;max-height:92vh;overflow:hidden;
    box-shadow:0 24px 80px rgba(0,0,0,.35);
    transform:translateY(20px) scale(.97);opacity:0;
    transition:transform .25s,opacity .25s;
}
.rt-modal-ov.show .rt-modal-box{transform:none;opacity:1}
/* X nad galerią - absolutny, bez paska */
.rt-modal-cls{
    position:absolute;top:10px;left:10px;z-index:10;
    width:32px;height:32px;border-radius:50%;
    background:rgba(0,0,0,.55);border:none;color:#fff;
    font-size:.9rem;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:background .15s;
}
.rt-modal-cls:hover{background:rgba(0,0,0,.85)}
body.rt-modal-open{overflow:hidden}

.rtads-modal-inner{display:grid;grid-template-columns:55% 45%;min-width:0}
/* GALERIA */
.rtads-modal-gallery{background:#111;border-radius:14px 0 0 14px;display:flex;flex-direction:column;min-width:0;overflow:hidden}
.rtads-modal-main-img{width:100%;max-height:480px;object-fit:contain;display:block;cursor:zoom-in;flex:1}
.rtads-modal-thumbs{display:flex;flex-wrap:wrap;gap:4px;padding:6px;background:rgba(0,0,0,.3)}
.rtads-modal-thumb{width:58px;height:44px;object-fit:cover;border-radius:4px;cursor:pointer;opacity:.55;border:2px solid transparent;transition:all .15s;flex-shrink:0}
.rtads-modal-thumb.is-active,.rtads-modal-thumb:hover{opacity:1;border-color:#c8a96e}
.rtads-modal-gallery__no-img{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;font-size:4rem;color:#6b7280}
/* INFO */
.rtads-modal-info{padding:20px 24px;overflow-y:auto;max-height:92vh;display:flex;flex-direction:column;gap:12px;min-width:0;box-sizing:border-box}
/* NAGŁÓWEK: nazwa + serduszko */
.rtads-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.rtads-modal-title{font-size:1.1rem;font-weight:700;color:#1a1a2e;margin:0;line-height:1.3;flex:1}
/* CENA */
.rtads-modal-price-row{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.rtads-modal-price{font-size:1.8rem;font-weight:900;color:#c8a96e;line-height:1}
.rtads-modal-loc{font-size:.82rem;color:#6b7280}
/* SPECS */
.rtads-modal-specs{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.rtads-modal-spec{background:#f9fafb;border-radius:6px;padding:8px 10px}
.rtads-modal-spec__lbl{font-size:.80rem;color:#9ca3af;text-transform:uppercase;letter-spacing:.04em;display:block;margin-bottom:2px}
.rtads-modal-spec__val{font-size:.93rem;font-weight:600;color:#1a1a2e}
.rtads-modal-spec--ok{grid-column:span 2;background:rgba(200,169,110,.1);font-size:.82rem;font-weight:600;padding:7px 10px;border-radius:6px}
/* OPIS */
.rtads-modal-desc{font-size:.86rem;color:#374151;line-height:1.6}
.rtads-modal-desc h4,.rtads-modal-contact h4{font-size:.68rem;text-transform:uppercase;letter-spacing:.05em;color:#9ca3af;margin:0 0 8px;font-weight:600}
/* KONTAKT */
.rtads-modal-contact{display:flex;flex-direction:column;gap:8px}
/* RESPONSYWNOSC – mobilna: galeria góra, info dół */
@media(max-width:680px){
    .rtads-modal-inner{grid-template-columns:1fr;grid-template-rows:auto 1fr}
    .rtads-modal-gallery{border-radius:14px 14px 0 0}
    .rtads-modal-main-img{max-height:260px}
    .rtads-modal-info{max-height:none;padding:16px}
    .rt-modal-box{max-height:95vh;overflow-y:auto}
}
.rtads-modal-contact p{font-size:.85rem;color:#6b7280;margin:0}
.rtads-modal-contact .rtads-btn{width:100%;justify-content:center;text-align:center}
.rtads-modal-msg{border-top:1px solid #e5e7eb;padding-top:12px}
.rtads-modal-msg .rtads-textarea{width:100%;border:1.5px solid #e5e7eb;border-radius:8px;padding:10px;font-size:.88rem;resize:vertical;margin-bottom:8px;font-family:inherit}
.rtads-modal-msg .rtads-textarea:focus{outline:none;border-color:#c8a96e}
.rtads-modal-msg .rtads-btn--primary{width:100%;justify-content:center}
.rtm-msg-res{font-size:.82rem;margin-top:4px;min-height:16px}

@media(max-width:680px){
    .rtads-modal-inner{grid-template-columns:1fr}
    .rtads-modal-gallery{border-radius:14px 14px 0 0}
    .rtads-modal-main-img{max-height:240px}
    .rtads-modal-info{max-height:none}
}

/* LIGHTBOX */
.rt-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;cursor:zoom-out;animation:rt-fadein .18s ease}
.rt-lightbox img{max-width:95vw;max-height:95vh;object-fit:contain;pointer-events:none;border-radius:3px}
.rt-lb-cls{position:fixed;top:14px;right:18px;color:#fff;background:none;border:none;font-size:2rem;cursor:pointer;opacity:.8;line-height:1;padding:4px 8px}
.rt-lb-cls:hover{opacity:1}
.rt-lb-prev,.rt-lb-next{position:fixed;top:50%;transform:translateY(-50%);color:#fff;background:rgba(0,0,0,.45);border:none;font-size:2rem;cursor:pointer;border-radius:8px;padding:10px 16px;transition:background .15s}
.rt-lb-prev:hover,.rt-lb-next:hover{background:rgba(0,0,0,.75)}
.rt-lb-prev{left:10px}
.rt-lb-next{right:10px}

/* PHOTO GRID – nowe klasy rt-slot */
.rt-slot{position:relative;aspect-ratio:4/3;background:#f3f4f6;border:2px dashed #d1d5db;border-radius:10px;overflow:hidden;cursor:pointer;transition:border-color .15s,opacity .15s;display:flex;align-items:center;justify-content:center}
.rt-slot:hover{border-color:#c8a96e}
.rt-slot.has-img{border-style:solid;border-color:#e5e7eb;cursor:grab}
.rt-slot.has-img img{width:100%;height:100%;object-fit:cover;display:block}
.rt-slot-empty{display:flex;flex-direction:column;align-items:center;gap:6px;color:#9ca3af;font-size:.78rem;pointer-events:none}
.rt-slot-del{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;border:none;font-size:.75rem;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;line-height:1}
.rt-slot-del:hover{background:rgba(220,38,38,.8)}
.rt-slot-cover{position:absolute;bottom:0;left:0;right:0;background:rgba(200,169,110,.85);color:#fff;font-size:.7rem;font-weight:700;text-align:center;padding:3px;pointer-events:none}
.rt-slot-spin{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.rt-slot.drop-hover{border-color:#c8a96e;background:rgba(200,169,110,.08)}
.rt-slot.drop-swap{border-color:#c8a96e;opacity:.6}
.rt-slot.dragging{opacity:.35}
.is-cover{border-color:#c8a96e !important}

/* SUCCESS POPUP */
.rtads-success-overlay{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;animation:rt-fadein .2s ease}
.rtads-success-box{background:#fff;border-radius:16px;padding:48px 40px;max-width:380px;width:90%;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.rtads-success-icon{width:60px;height:60px;border-radius:50%;background:#22c55e;color:#fff;font-size:1.8rem;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.rtads-success-box h2{font-size:1.4rem;margin:0 0 8px;color:#1a1a2e}
.rtads-success-box p{color:#6b7280;margin:0 0 20px}
.rtads-success-bar{height:4px;background:#e5e7eb;border-radius:2px;overflow:hidden}
.rtads-success-fill{height:100%;background:#c8a96e;border-radius:2px;width:0}

@keyframes rt-fadein{from{opacity:0}to{opacity:1}}

/* BUILD STAMP: 2026-03-09 23:16 */

/* ── PANEL ZAKLADKI ─────────────────── */
.rtads-panel-tabs{display:flex;gap:4px;border-bottom:2px solid #e5e7eb;margin-bottom:24px;flex-wrap:wrap}
.rtads-tab-btn{background:none;border:none;padding:10px 20px;font-size:.9rem;font-weight:600;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .15s}
.rtads-tab-btn.is-active,.rtads-tab-btn:hover{color:#c8a96e;border-bottom-color:#c8a96e}
.rtads-tab-content{display:none}
.rtads-tab-content.is-active{display:block}
.rtads-kpi--tab{cursor:pointer;transition:all .15s}
.rtads-kpi--tab.is-active,.rtads-kpi--tab:hover{background:rgba(200,169,110,.2) !important;outline:2px solid #c8a96e}


/* ── v15 ─────────────────────────────── */
.rtads-card__price-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:4px 0 2px}
.rtads-card__loc-inline{font-size:.75rem;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:52%}
.rtads-modal-price-row{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.rtads-modal-loc{font-size:.85rem;color:#6b7280}

/* ── FORMULARZ WIADOMOŚCI ───────────────────────── */
.rtm-msg-wrap{display:flex;flex-direction:column;gap:8px;margin-top:4px;position:relative}
.rtm-msg-row{display:flex;gap:8px;align-items:flex-start}
.rtm-msg-row .rtm-msg-txt{flex:1}
.rtm-msg-row .rtm-msg-send{flex-shrink:0;align-self:stretch}
.rtm-msg-wrap--disabled .rtm-msg-txt{
    background:#f3f4f6;color:#9ca3af;cursor:not-allowed;border-color:#e5e7eb;
}
.rtm-msg-txt{
    width:100%;border:1.5px solid #e5e7eb;border-radius:10px;
    padding:10px 12px;font-size:.88rem;font-family:inherit;
    resize:none;box-sizing:border-box;background:#f9fafb;
    transition:border-color .2s;line-height:1.5;
}
.rtm-msg-txt:focus{outline:none;border-color:#c8a96e;background:#fff}
.rtm-msg-txt:disabled{pointer-events:none}
.rtm-msg-send{
    align-self:flex-end;
    background:var(--rt-gold,#c8a96e);color:#fff;border:none;
    border-radius:50%;width:44px;height:44px;padding:0;
    display:flex;align-items:center;justify-content:center;
    cursor:pointer;transition:background .2s;flex-shrink:0;
}
.rtm-msg-send:hover{background:#b8996e}
.rtm-msg-send:disabled{opacity:.6;cursor:not-allowed}
.rtm-msg-res{font-size:.82rem;min-height:18px}
/* Tooltip dla niezalogowanych */
.rtm-tooltip{
    display:none;position:absolute;top:-32px;left:0;
    background:#1a1a2e;color:#fff;font-size:.78rem;
    padding:5px 10px;border-radius:6px;white-space:nowrap;
    pointer-events:none;z-index:20;
}
.rtm-tooltip::after{
    content:'';position:absolute;top:100%;left:16px;
    border:5px solid transparent;border-top-color:#1a1a2e;
}
.rtm-msg-wrap--disabled:hover .rtm-tooltip{display:block}

/* ── LOGIN TOOLTIP ────────────────────────────────── */
.rtads-login-tooltip {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    z-index: 1000;
    min-width: 320px;
    animation: rtTooltipFadeIn 0.2s ease-out;
    font-family: 'Roboto', sans-serif;
}

@keyframes rtTooltipFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.rtads-login-tooltip__content {
    padding: 24px 20px;
    text-align: center;
}

.rtads-login-tooltip__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #C49A28;
}

.rtads-login-tooltip__text {
    font-size: 14px;
    color: #374151;
    margin-bottom: 24px;
    line-height: 1.4;
    font-weight: 400;
}

.rtads-login-tooltip__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.rtads-login-tooltip__login,
.rtads-login-tooltip__close {
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
}

.rtads-login-tooltip__login {
    background: #1f2937;
    color: #ffffff;
}

.rtads-login-tooltip__login:hover {
    background: #111827;
    color: #ffffff;
}

.rtads-login-tooltip__close {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
}

.rtads-login-tooltip__close:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
}

.rtads-login-tooltip__arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

.rtads-login-tooltip::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #e5e7eb;
    z-index: -1;
}
/* Mobilne - tooltip centrowany na ekranie */
@media (max-width: 600px) {
    .rtads-login-tooltip {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100% - 32px) !important;
        max-width: 320px !important;
        margin: 0 !important;
    }
    .rtads-login-tooltip__arrow,
    .rtads-login-tooltip::before {
        display: none !important;
    }
}
/* ── FAV BUTTON ────────────────────────────────── */
/* Na karcie – samo serduszko, bez tła/okręgu */
.rtads-fav-btn{
    position:absolute;top:8px;right:8px;z-index:10;
    background:none;border:none;padding:2px;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:transform .15s;
    filter:drop-shadow(0 1px 3px rgba(0,0,0,.6));
}
.rtads-fav-btn:hover{transform:scale(1.25)}
.rtads-fav-btn svg{pointer-events:none;display:block;transition:fill .2s,stroke .2s}
.rtads-fav-btn:hover svg{fill:#f97316 !important;stroke:#f97316 !important}
.rtads-fav-btn.is-active svg{fill:#f97316 !important;stroke:#f97316 !important}

/* Disabled state for non-logged-in users */
.rtads-fav-btn.rtads-fav-btn--disabled:hover{transform:none}
.rtads-fav-btn.rtads-fav-btn--disabled svg{opacity:0.7}
.rtads-fav-btn.rtads-fav-btn--disabled:hover svg{fill:inherit !important;stroke:inherit !important}

/* W modalu – przy nazwie, małe tło */
.rtads-fav-btn--modal{
    flex-shrink:0;width:36px;height:36px;border-radius:50%;border:none;
    background:#f3f4f6;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:background .2s;padding:0;
    filter:none;position:static;
}
.rtads-fav-btn--modal:hover{background:#fff3e8;transform:none}
.rtads-fav-btn--modal svg{pointer-events:none;transition:fill .2s,stroke .2s}
.rtads-fav-btn--modal:hover svg{fill:#f97316 !important;stroke:#f97316 !important}
.rtads-fav-btn--modal.rtads-fav-btn--disabled:hover{background:#f3f4f6;transform:none}
.rtads-fav-btn--modal.rtads-fav-btn--disabled svg{opacity:0.7}
.rtads-fav-btn--modal.rtads-fav-btn--disabled:hover svg{fill:inherit !important;stroke:inherit !important}
.rtads-fav-btn:focus,.rtads-fav-btn:focus-visible,
.rtads-fav-btn--modal:focus,.rtads-fav-btn--modal:focus-visible{
    outline:none;box-shadow:none;
}

/* ── PANEL KONTAKTOWY – wysuwa się pod przyciskiem email ── */


/* ── Przycisk pobierz umowę ──────────────────────────────── */
.rtads-btn-umowa{position:relative;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:#f3f4f6;color:#1a1a2e;border:1px solid #e5e7eb;cursor:pointer;transition:.2s;text-decoration:none;flex-shrink:0}
.rtads-btn-umowa:hover{background:#c8a96e;color:#fff;border-color:#c8a96e}
.rtads-btn-umowa__tip{position:absolute;bottom:calc(100% + 8px);right:0;background:#1a1a2e;color:#fff;font-size:.72rem;white-space:nowrap;padding:5px 10px;border-radius:6px;pointer-events:none;opacity:0;transition:opacity .18s}
.rtads-btn-umowa:hover .rtads-btn-umowa__tip{opacity:1}

/* ── Wiadomości — kropka nowych ─────────────────────────── */
.rtads-msg__avatar{position:relative;flex-shrink:0}
.rtads-msg__dot{position:absolute;top:0;right:0;width:11px;height:11px;background:#dc2626;border-radius:50%;border:2px solid #fff}
.rtads-msg--unread .rtads-msg__meta strong{color:#dc2626}

/* ── Odpowiedź na wiadomość ─────────────────────────────── */
.rtads-msg__reply-wrap{margin-top:8px}
.rtads-msg__reply-btn{background:none;border:none;color:#c8a96e;font-size:.82rem;cursor:pointer;padding:0;font-weight:600}
.rtads-msg__reply-btn:hover{text-decoration:underline}
.rtads-msg__reply-form{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.rtads-msg__reply-txt{width:100%;border:1px solid #e5e7eb;border-radius:8px;padding:10px;font-size:.88rem;resize:vertical;font-family:inherit}
.rtads-msg__reply-txt:focus{outline:none;border-color:#c8a96e}
.rtads-msg__reply-row{display:flex;gap:8px}
.rtads-btn--sm{padding:6px 14px;font-size:.82rem}

/* ── SMS wątki wiadomości ─────────────────────────────── */
.rtads-threads{display:flex;flex-direction:column;gap:12px}
.rtads-thread{border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:#fff}
.rtads-thread--unread{border-color:#c8a96e}
.rtads-thread__header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;cursor:pointer;user-select:none;gap:10px}
.rtads-thread__header:hover{background:#fdf6ec}
.rtads-thread__info{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:1;min-width:0}
.rtads-thread__dot{width:9px;height:9px;background:#dc2626;border-radius:50%;flex-shrink:0}
.rtads-thread__name{font-weight:700;color:#1a1a2e}
.rtads-thread__ad{font-size:.82rem;color:#9ca3af}
.rtads-thread__ad a{color:#c8a96e;text-decoration:none}
.rtads-thread__ad a:hover{text-decoration:underline}
.rtads-thread__toggle{background:none;border:none;cursor:pointer;color:#9ca3af;padding:4px;flex-shrink:0;transition:transform .2s}
.rtads-thread__toggle.is-open{transform:rotate(180deg)}
.rtads-thread__body{display:none;flex-direction:column;border-top:1px solid #f3f4f6}
.rtads-thread__body.is-open{display:flex}
.rtads-thread__messages{display:flex;flex-direction:column;gap:8px;padding:16px;max-height:340px;overflow-y:auto;background:#f9fafb}
/* Bąbelki SMS */
.rtads-bubble{display:flex;flex-direction:column;max-width:75%}
.rtads-bubble--me{align-self:flex-end;align-items:flex-end}
.rtads-bubble--them{align-self:flex-start;align-items:flex-start}
.rtads-bubble__text{padding:10px 14px;border-radius:18px;font-size:.88rem;line-height:1.45;word-break:break-word}
.rtads-bubble--me .rtads-bubble__text{background:#c8a96e;color:#fff;border-bottom-right-radius:4px}
.rtads-bubble--them .rtads-bubble__text{background:#fff;color:#1a1a2e;border:1px solid #e5e7eb;border-bottom-left-radius:4px}
.rtads-bubble__time{font-size:.68rem;color:#9ca3af;margin-top:3px;padding:0 4px}
/* Pole odpowiedzi */
.rtads-thread__reply{padding:12px 16px;border-top:1px solid #f3f4f6;display:flex;flex-direction:column;gap:8px;background:#fff}
.rtads-thread__txt{width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:10px 14px;font-size:.88rem;resize:none;font-family:inherit;box-sizing:border-box}
.rtads-thread__txt:focus{outline:none;border-color:#c8a96e}
.rtads-thread__reply-row{display:flex;align-items:center;gap:10px}
.rtads-thread__res{font-size:.82rem}

/* ── Zgłoś nadużycie ─────────────────────────────────── */
.rtads-report-wrap{margin-top:16px;padding-top:12px;border-top:1px solid #f3f4f6}
.rtads-report-btn{background:none;border:none;color:#9ca3af;font-size:.78rem;cursor:pointer;padding:0;transition:color .15s}
.rtads-report-btn:hover{color:#dc2626}
.rtads-report-form{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.rtads-report-txt{width:100%;border:1px solid #e5e7eb;border-radius:8px;padding:10px;font-size:.85rem;resize:vertical;font-family:inherit;box-sizing:border-box}
.rtads-report-txt:focus{outline:none;border-color:#dc2626}
.rtads-report-row{display:flex;gap:8px;align-items:center}
.rtads-report-res{font-size:.82rem}

/* ── Rząd przycisków wiadomość + zgłoś ──────────────── */
.rtm-msg-actions{display:flex;gap:8px;align-items:center;justify-content:space-between}
.rtm-msg-actions .rtm-msg-send{flex-shrink:0}
.rtads-report-form{display:none;margin-top:10px;flex-direction:column;gap:8px}
.rtads-report-btn--outline{background:#fff;border:1.5px solid #c8a96e;color:#c8a96e;border-radius:8px;padding:10px 14px;font-size:.88rem;font-weight:600;cursor:pointer;transition:.18s;white-space:nowrap;flex-shrink:0}
.rtads-report-btn--outline:hover{background:#fdf6ec}

/* ── Opis ogłoszenia — zachowanie formatowania ───────── */
.rtads-modal-desc__text{white-space:pre-wrap;word-break:break-word;font-size:.9rem;line-height:1.65;color:#374151}

/* ── MODAL DLA WOOCOMMERCE (ulubione sklep, archiwum) ───────── */
/* Bazowe style dla modali - używane w połączeniu z klasami motywu potomnego */
.rtads-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.82);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.rtads-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 960px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

/* Mobilne dla modali WooCommerce */
@media (max-width: 480px) {
    .rtads-modal-bg {
        padding: 8px !important;
        align-items: flex-end !important;
    }
    .rtads-modal {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 95vh !important;
        border-radius: 12px !important;
    }
}
/* Mobilne - modal nie zasłania adresu przeglądarki */
@media (max-width: 480px) {
    .rt-modal-ov {
        padding: 60px 8px 8px !important;
        align-items: flex-start !important;
    }
}
.rtads-btn--disabled {
    background: #9ca3af !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 0.7;
}