/*
 Theme Name:   Marktspot Child
 Description:  Marktspot Child Theme - Authentieke Marktplaats.nl Stijl
 Template:     AT10
 Version:      2.1.0
*/

:root {
  --mp-orange: #f26422;
  --mp-orange-hover: #d85315;
  --mp-blue: #003883;
  --mp-blue-hover: #002555;
  --mp-bg: #f5f5f5;
  --mp-card-bg: #ffffff;
  --mp-border: #e2e8f0;
  --mp-border-light: #f1f5f9;
  --mp-text-dark: #1e293b;
  --mp-text-body: #334155;
  --mp-text-muted: #64748b;
  --mp-radius: 6px;
}

html, body {
  background-color: var(--mp-bg) !important;
  color: var(--mp-text-dark) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--mp-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--mp-orange);
  text-decoration: underline;
}

#wrapper {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.preload-hide {
  display: block !important;
}

/* Verberg storende popups van het hoofdthema */
.map-modal-wrap,
.map-modal-wrap-overlay {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   MARKTPLAATS KLEUREN & KNOPPEN
   ========================================================================== */
.btn-primary,
.btn-mp-blue {
  background-color: var(--mp-blue) !important;
  border-color: var(--mp-blue) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: var(--mp-radius) !important;
  transition: background-color 0.15s ease !important;
}
.btn-primary:hover,
.btn-mp-blue:hover {
  background-color: var(--mp-blue-hover) !important;
  border-color: var(--mp-blue-hover) !important;
  color: #ffffff !important;
}

.btn-warning,
.btn-mp-orange {
  background-color: var(--mp-orange) !important;
  border-color: var(--mp-orange) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: var(--mp-radius) !important;
  transition: background-color 0.15s ease !important;
}
.btn-warning:hover,
.btn-mp-orange:hover {
  background-color: var(--mp-orange-hover) !important;
  border-color: var(--mp-orange-hover) !important;
  color: #ffffff !important;
}

.btn-success {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: var(--mp-radius) !important;
}

.btn-outline-primary {
  color: var(--mp-blue) !important;
  border-color: var(--mp-blue) !important;
  font-weight: 700 !important;
  border-radius: var(--mp-radius) !important;
}
.btn-outline-primary:hover {
  background-color: var(--mp-blue) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   MARKTPLAATS HEADER & ZOEKBALK
   ========================================================================== */
.mp-top-bar {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: #64748b;
}
.mp-top-bar a {
  color: #475569 !important;
}
.mp-top-bar a:hover {
  color: var(--mp-blue) !important;
  text-decoration: underline !important;
}

.mp-main-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
}

/* Marktplaats Header Zoekbalk (Centraal op desktop) */
.mp-header-search-form {
  border: 2px solid var(--mp-blue);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}
.mp-header-search-form input[type="text"] {
  border: none;
  box-shadow: none !important;
  font-size: 0.92rem;
}
.mp-header-search-form select {
  border: none;
  border-left: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: none !important;
  font-size: 0.86rem;
  color: #334155;
  cursor: pointer;
}
.mp-header-search-form .btn-search {
  background: var(--mp-orange);
  border: none;
  color: #ffffff;
  font-weight: 700;
  border-radius: 0;
  padding: 0 16px;
}
.mp-header-search-form .btn-search:hover {
  background: var(--mp-orange-hover);
}

/* ==========================================================================
   MARKTPLAATS CATEGORIE BUBBELS (HOMEPAGE)
   ========================================================================== */
.mp-cat-bubbles-container {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 14px 4px 10px 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.mp-cat-bubbles-container::-webkit-scrollbar {
  height: 5px;
}
.mp-cat-bubbles-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.mp-cat-bubble-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  width: 84px;
  transition: transform 0.15s ease;
}
.mp-cat-bubble-item:hover {
  transform: translateY(-2px);
  text-decoration: none !important;
}
.mp-cat-bubble-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.15s ease;
}
.mp-cat-bubble-item:hover .mp-cat-bubble-circle {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.mp-cat-bubble-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mp-cat-bubble-item:hover .mp-cat-bubble-label {
  color: var(--mp-blue);
}

/* ==========================================================================
   MARKTPLAATS ADVERTENTIE RIJEN (LIJSTWEERGAVE / HZ-LISTING)
   ========================================================================== */
.mp-list-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--mp-radius);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}
.mp-list-row:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}
.mp-list-row-thumb {
  width: 170px;
  height: 125px;
  min-width: 170px;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}
.mp-list-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.mp-list-row:hover .mp-list-row-thumb img {
  transform: scale(1.03);
}

.mp-list-row-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--mp-blue) !important;
  line-height: 1.35;
  margin-bottom: 4px;
}
.mp-list-row:hover .mp-list-row-title {
  text-decoration: underline;
  color: var(--mp-orange) !important;
}

.mp-list-row-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--mp-orange);
  letter-spacing: -0.3px;
}

.mp-list-row-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   MARKTPLAATS VERKOPER PASPOORT (SINGLE LISTING)
   ========================================================================== */
.mp-seller-passport {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--mp-radius);
  padding: 16px;
}
.mp-seller-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #004b97;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

/* ==========================================================================
   CLEAN FOOTER & RESPONSIVE PADDING
   ========================================================================== */
/* Verberg oude dubbele footer */
section[data-ppt-blocktype="footer"],
section[data-ppt-blockid="footer1"],
.footer-txt-light {
  display: none !important;
}

/* Always display child theme marktplaats footer */
body.body-hide-footer footer.mp-mp-footer,
body footer.mp-mp-footer,
footer.mp-mp-footer,
.mp-mp-footer {
  display: block !important;
  visibility: visible !important;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .mp-main-header.sticky-top {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .mp-main-header.sticky-top {
    top: 46px !important;
  }
}

/* Desktop: hide mobile bar */
@media (min-width: 768px) {
  .footer-nav-area,
  #mobile-bottom-bar,
  .suha-footer-nav {
    display: none !important;
  }
  #page-content-wrapper,
  #page-content-wrapper.with-mobilemenu {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* Mobile: give 60px padding */
@media (max-width: 767.98px) {
  .mp-mp-footer {
    padding-bottom: 60px !important;
  }
  .mp-list-row-thumb {
    width: 110px;
    height: 95px;
    min-width: 110px;
  }
  .mp-list-row-title {
    font-size: 0.92rem;
  }
  .mp-list-row-price {
    font-size: 1rem;
  }
}

/* Footer layout */
.mp-mp-footer .mp-foot-ul a {
  color: var(--mp-blue) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.mp-mp-footer .mp-foot-ul a:hover {
  text-decoration: underline !important;
  color: var(--mp-orange) !important;
}

/* Advertentieformulier Polish */
.tipsidebar .bg-image {
  background-image: none !important;
  display: none !important;
}
.tipsidebar {
  background: linear-gradient(160deg, #004b97 0%, #002d5b 100%) !important;
}
.tipsidebar .card-footer .bg-white {
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}
#ppt-add-listing-form .add-block-wrap {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
}


/* ==========================================================================
   VERWIJDER ZWARTE LEGACY CHATBALK (.notify-footer) & HELPER
   ========================================================================== */
.notify-footer,
.chat-handle,
#userListBox,
.ppt_admin_quickeditor,
.ppt_admin_quickeditor-menu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}
