/* ============================================================
   RR Occasions Plugin — Frontend CSS
   Versie 1.0.1 — automatisch geladen door de plugin
   
   Let op: De basis .rr-* design CSS (kleuren, typografie,
   grid-layout van de motorkaarten) staat in Flatsome Custom CSS.
   Dit bestand bevat uitsluitend plugin-specifieke aanvullingen
   en correcties die de plugin zelf nodig heeft.
   ============================================================ */

/* ── MOTORKAART: LINK WRAPPER ───────────────────────────── */
a.rr-mcard-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── MOTORKAART: MERK + STATUS NAAST ELKAAR ────────────── */
.rr-minfo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

/* ── STATUS BADGE OP DE KAART ───────────────────────────── */
.rr-card-status {
  font-family: var(--rr-fh,'Figtree',sans-serif);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  flex-shrink: 0;
  white-space: nowrap;
}
.rr-card-status--ok   { background: rgba(40,167,69,.1);  color: #28a745; }
.rr-card-status--res  { background: rgba(255,140,0,.12); color: #d47e00; }
.rr-card-status--sold { background: rgba(197,45,83,.1);  color: #C52D53; }

/* ── VERKOCHTE MOTOR: DONKERE OVERLAY ──────────────────── */
.rr-sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2;
}
/* Dim ook het plaatje zelf voor extra effect */
.rr-mcard--sold .rr-mimg img {
  filter: brightness(.5) saturate(.4);
  transition: filter .3s;
}
/* Verkochte kaart is nog klikbaar maar gedimmed */
.rr-mcard--sold { opacity: 1; pointer-events: auto; }

/* ── PLACEHOLDER ALS ER GEEN FOTO IS ───────────────────── */
.rr-mimg-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--rr-fh,'Figtree',sans-serif);
  font-weight: 900;
  font-size: 48px;
  color: rgba(197,45,83,.1);
  background: #EEEEEE;
  letter-spacing: -.05em;
}

/* ── BADGES: RIJ I.P.V. KOLOM ───────────────────────────── */
.rr-occ-badges {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── LIGHTBOX SLUITKNOP FIX ─────────────────────────────── */
.rr-lb-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 25px;
  height: 25px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  margin: 0;
}
.rr-lb-close:hover { background: rgba(197,45,83,.8); }

/* ── LIGHTBOX PIJLEN: CORRECT FORMAAT ──────────────────── */
.rr-lb-prev,
.rr-lb-next {
  width: 36px;
  height: 36px;
}
.rr-lb-prev svg,
.rr-lb-next svg {
  width: 20px;
  height: 20px;
}

/* ── TABS: GEEN MARGIN BOTTOM ───────────────────────────── */
.rr-occ-tab {
  margin-bottom: 0;
}

/* ── SIDEBAR CATEGORIE LINK ─────────────────────────────── */
.rr-occ-sb-spec-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: opacity .2s;
}
.rr-occ-sb-spec-cat-link:hover { opacity: .7; }
.rr-occ-sb-spec-race { color: #C52D53 !important; }
.rr-occ-sb-spec-road { color: #333 !important; }

/* ── BTW TOOLTIP ────────────────────────────────────────── */
.rr-btw-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: help;
  border-bottom: 1px dotted #aaa;
}
.rr-btw-icon {
  color: #aaa;
  flex-shrink: 0;
  vertical-align: middle;
}
.rr-btw-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 6px;
  width: 240px;
  white-space: normal;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  pointer-events: none;
  text-align: left;
}
.rr-btw-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #111;
}
.rr-btw-label:hover .rr-btw-tooltip { display: block; }

/* ── MOBIEL SIDEBAR SLUITKNOP ───────────────────────────── */
.rr-sb-close {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--rr-fh,'Figtree',sans-serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid #222;
  text-align: left;
}
.rr-sb-close svg { color: #C52D53; }

/* ── MOBIEL SIDEBAR DONKERE OVERLAY ─────────────────────── */
.rr-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 499;
}
.rr-sidebar-overlay.rr-overlay--open { display: block; }

/* ── RESPONSIVE MOBIEL ──────────────────────────────────── */
@media(max-width:768px) {
  .rr-sb-close { display: flex; }

  .rr-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    z-index: 500;
    transform: translateX(-110%);
    transition: transform .3s cubic-bezier(.77,0,.18,1);
    border-radius: 0;
    overflow-y: auto;
    box-shadow: none;
  }
  .rr-sidebar--open {
    transform: translateX(0);
    box-shadow: 4px 0 40px rgba(0,0,0,.2);
  }
}
