/* Public marketplace — aligns with site Bootstrap / main theme */
.public-marketplace-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8faf8 0%, #f0f4f1 100%);
}

.public-mp-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 1rem;
}

.public-mp-title {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  color: #1a3d2e;
}

.public-mp-filter-card {
  border: 1px solid rgba(25, 135, 84, 0.12);
  border-radius: 12px;
  position: sticky;
  top: 1rem;
}

.public-mp-filter-card .form-label {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.public-mp-results-wrap {
  position: relative;
  min-height: 280px;
}

.public-mp-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3rem;
  background: rgba(248, 250, 248, 0.85);
  backdrop-filter: blur(2px);
}

.public-mp-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.public-mp-spinner {
  width: 2.5rem;
  height: 2.5rem;
}

.public-mp-loader-text {
  font-size: 0.95rem;
  color: #1a3d2e;
  font-weight: 500;
}

.public-mp-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.public-mp-card:hover {
  box-shadow: 0 8px 24px rgba(25, 135, 84, 0.12);
  transform: translateY(-2px);
}

.public-mp-card-img-wrap {
  aspect-ratio: 4/3;
  background: #e8ede9;
  overflow: hidden;
}

.public-mp-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-mp-card-body {
  padding: 0.75rem 1rem 1rem;
}

.public-mp-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.public-mp-card-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.public-mp-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #198754;
}

.public-mp-section .h5 {
  font-family: "Newsreader", Georgia, serif;
  color: #1a3d2e;
}

/* Section title row: padded edges, count sits after title on the left */
.public-mp-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0 0.75rem 0.5rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 576px) {
  .public-mp-section-head {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.public-mp-section-title {
  flex: 0 0 auto;
}

.public-mp-section-count {
  flex: 0 1 auto;
  line-height: 1.3;
  white-space: nowrap;
}

.public-mp-grid {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.public-mp-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.public-mp-card-link:hover {
  color: inherit;
}

.public-mp-guest-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.35rem;
}

@media (max-width: 991px) {
  .public-mp-filter-card {
    position: static;
  }
}

/* Marketplace footer shell: same footer structure as site, no visible footer UI */
.public-mp-footer-shell .footer-row1 > .grid#panel1 {
  max-height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.public-mp-footer-shell .public-mp-footer-shell-tabs,
.public-mp-footer-shell .public-mp-footer-shell-copy {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Marketplace only: no footer band / bg (icon bar stays fixed; other pages unchanged) */
body.public-marketplace-body footer.public-mp-footer-shell {
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: none !important;
  min-height: 0 !important;
}

body.public-marketplace-body footer.public-mp-footer-shell .footer-row1 {
  background: transparent !important;
  background-image: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  display: block !important;
  align-items: unset !important;
  justify-content: unset !important;
}

body.public-marketplace-body footer.public-mp-footer-shell .public-mp-footer-shell-tabs,
body.public-marketplace-body footer.public-mp-footer-shell .public-mp-footer-shell-copy {
  background: transparent !important;
  background-image: none !important;
}

body.public-marketplace-body footer.public-mp-footer-shell:hover * {
  text-shadow: none !important;
}
