/* ── LISTINGS PAGE ── */

/* Center the page content */
.wpbdp-page {
  text-align: center;
}

/* Hide the plugin button row */
.wpbdp-main-links-container {
  display: none !important;
}

/* Flex column to order search below categories */
.wpbdp-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.wpbdp-main-box { order: 2; }
ul.wpbdp-categories { order: 1; }

/* Search bar — smaller, centered */
.wpbdp-main-box {
  max-width: 380px;
  margin: 16px auto 0 !important;
  text-align: center;
}

.wpbdp-main-box input[type="text"],
.wpbdp-main-box input[name="s"] {
  font-size: 13px !important;
  padding: 7px 12px !important;
}
.wpbdp-main-box input.wpbdp-button,
.wpbdp-main-box input[type="submit"] {
  font-size: 13px !important;
  padding: 7px 16px !important;
}

/* Categories — two columns, centered */
ul.wpbdp-categories {
  list-style: none !important;
  padding: 0 !important;
  margin: 24px auto 8px !important;
  display: inline-grid !important;
  grid-template-columns: auto auto !important;
  gap: 12px 60px !important;
  text-align: left !important;
}

ul.wpbdp-categories li {
  white-space: nowrap;
}

/* Fix: override the theme clearfix ::after that takes up a grid slot */
ul.wpbdp-categories.cf::after {
  display: none !important;
}

/* View All — shown via a separate CSS-generated element on the parent */
.wpbdp-main-box::before {
  content: "→ View All Listings";
  display: block;
  text-align: center;
  margin-bottom: 12px;
  font-size: 13px;
  text-decoration: underline;
  opacity: 0.7;
}

/* Fix: also override clearfix ::before */
ul.wpbdp-categories.cf::before {
  display: none !important;
}

/* Search bar — input and button side by side */
.wpbdp-main-box form {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.wpbdp-main-box .box-col.search-fields {
  flex: 1 !important;
  max-width: 240px !important;
}

.wpbdp-main-box .box-col.submit-btn {
  flex: 0 !important;
}

/* Hide the separator row */
.wpbdp-main-box .box-row.separator {
  display: none !important;
}

/* CREATE LISTING section — pink background to make it pop */
.entry-content > div[style*="text-align:center"],
.entry-content > div[style*="text-align: center"] {
  background-color: rgba(210, 155, 170, 0.3) !important;
  border-radius: 4px !important;
  padding: 28px 40px !important;
  margin: 0 auto !important;
}