/*
Theme Name:   Marktspot (AT10 Child)
Theme URI:    https://marktspot.nl
Description:  Child theme voor AT10 (PremiumPress Auction Theme). Herstijlt de site
              richting de look van marktplaats.nl: vaste-prijs-nadruk, rustige kaarten,
              oranje accentkleur. Bied-functionaliteit blijft beschikbaar per advertentie.
Author:       Lead-IT Solutions
Template:     AT10
Version:      1.0.0
*/

/* ==========================================================================
   1. Marktplaats.nl-geinspireerde kleur- en spacing-tokens
   Pas deze aan om de hele site in een keer bij te sturen.
   ========================================================================== */
:root{
  --mp-orange: #ff6f00;      /* primaire accentkleur, vergelijkbaar met marktplaats.nl */
  --mp-orange-dark: #e65f00;
  --mp-blue: #0a3d62;        /* voor links/koppen indien gewenst */
  --mp-text: #23272b;
  --mp-text-muted: #6b7280;
  --mp-border: #e5e7eb;
  --mp-bg-card: #ffffff;
  --mp-bg-page: #f5f6f7;
  --mp-radius: 8px;
}

body{
  background: var(--mp-bg-page);
}

/* Override de AT10 primary-kleur variabelen zodat knoppen/badges/links
   automatisch de marktplaats-achtige oranje tint krijgen. AT10 gebruikt
   Bootstrap-achtige klassen (badge-primary, btn-primary, text-primary),
   dus we overschrijven die hier centraal. */
.badge-primary{
  background-color: var(--mp-orange) !important;
  color: #fff !important;
}
.btn-primary{
  background-color: var(--mp-orange) !important;
  border-color: var(--mp-orange) !important;
}
.btn-primary:hover{
  background-color: var(--mp-orange-dark) !important;
  border-color: var(--mp-orange-dark) !important;
}
.text-primary{
  color: var(--mp-orange) !important;
}

/* ==========================================================================
   2. Listing card (marktspot-card) - marktplaats.nl-achtige advertentiekaart
   Hoort bij cards/at/grid.php in dit child theme.
   ========================================================================== */
.marktspot-card{
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.marktspot-card:hover{
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.marktspot-card__image{
  position: relative;
  height: 180px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.marktspot-card__price{
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mp-text);
}
.marktspot-card__title{
  font-size: .95rem;
  font-weight: 500;
  color: var(--mp-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.marktspot-card__meta{
  font-size: .8rem;
  color: var(--mp-text-muted);
}
.marktspot-card__badge-bid{
  font-size: .7rem;
  font-weight: 600;
  color: #fff;
  background: var(--mp-blue);
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   3. Marktplaats.nl Badges, Prijzen & Datums
   ========================================================================== */
.mp-price{
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mp-blue);
  white-space: nowrap;
}
.mp-price-free{
  color: #2e7d32; /* Groen voor Gratis */
}
.mp-price-reserved{
  color: #d32f2f; /* Rood voor Gereserveerd */
}
.mp-price-bid small{
  font-size: 0.8rem;
  font-weight: normal;
  color: var(--mp-text-muted);
}

.mp-badge{
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 2px;
}
.mp-badge-cat{
  background: #f0f2f5;
  color: var(--mp-text);
  border: 1px solid var(--mp-border);
}
.mp-badge-cond{
  background: #e3f2fd;
  color: #0d47a1;
}
.mp-badge-ship{
  background: #ede7f6;
  color: #4a148c;
}

.mp-date{
  font-size: 0.8rem;
  color: var(--mp-text-muted);
}
.mp-date-today{
  color: #e65100;
  font-weight: 600;
}
.mp-city{
  font-weight: 500;
  color: var(--mp-text);
}
.mp-dist{
  color: var(--mp-text-muted);
}

/* ==========================================================================
   4. Marktplaats Lijstweergave (List View)
   ========================================================================== */
.marktspot-list-card{
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.marktspot-list-card:hover{
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.marktspot-list-card__image-col{
  min-width: 200px;
  max-width: 200px;
  background: #f1f5f9;
  position: relative;
}
.marktspot-list-card__img{
  height: 150px;
  width: 100%;
  background-size: cover;
  background-position: center;
}
.marktspot-list-card__title{
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}
.marktspot-list-card__title a{
  color: var(--mp-text);
  text-decoration: none;
}
.marktspot-list-card__title a:hover{
  color: var(--mp-orange);
}
.marktspot-list-card__desc{
  font-size: 0.85rem;
  line-height: 1.4;
}
.marktspot-list-card__right-col{
  min-width: 170px;
  background: #fafafa;
  border-left: 1px solid #f0f0f0;
}

/* ==========================================================================
   5. Marktplaats Gridweergave (Grid View)
   ========================================================================== */
.marktspot-card__img{
  height: 180px;
  width: 100%;
  background-size: cover;
  background-position: center;
}
.marktspot-card__title{
  font-size: 0.95rem;
  font-weight: 600;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.marktspot-card__title a{
  color: var(--mp-text);
  text-decoration: none;
}
.marktspot-card__title a:hover{
  color: var(--mp-orange);
}
.marktspot-card__footer{
  background: #fafafa;
}
