/* Zimbabwe Business Hub Directory — Front-end Styles
   Palette inspired by the Zimbabwe flag: green, yellow, red, black + white */

:root {
  --zbhd-green: #007a3d;
  --zbhd-yellow: #ffd200;
  --zbhd-red: #d40000;
  --zbhd-black: #1a1a1a;
  --zbhd-white: #ffffff;
  --zbhd-gray: #f4f4f4;
  --zbhd-border: #e0e0e0;
  --zbhd-radius: 10px;
}

.zbhd-wrap { max-width: 1200px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--zbhd-black); }

/* Banners */
.zbhd-banner { padding: 12px 16px; border-radius: var(--zbhd-radius); margin-bottom: 16px; font-weight: 600; }
.zbhd-banner-ok { background: #e6f7ee; border: 1px solid var(--zbhd-green); color: var(--zbhd-green); }
.zbhd-banner-err { background: #fdecec; border: 1px solid var(--zbhd-red); color: var(--zbhd-red); }

/* Filters */
.zbhd-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; padding: 16px; background: var(--zbhd-gray); border-radius: var(--zbhd-radius); }
.zbhd-filters input, .zbhd-filters select { padding: 10px 12px; border: 1px solid var(--zbhd-border); border-radius: 6px; font-size: 14px; flex: 1 1 160px; }

/* Grid */
.zbhd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.zbhd-grid-featured { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Card */
.zbhd-card { position: relative; background: var(--zbhd-white); border: 1px solid var(--zbhd-border); border-radius: var(--zbhd-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.zbhd-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.zbhd-card-featured { border: 2px solid var(--zbhd-yellow); box-shadow: 0 0 0 1px var(--zbhd-yellow); }

.zbhd-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; font-size: 11px; font-weight: 700; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.zbhd-badge-featured { background: var(--zbhd-yellow); color: var(--zbhd-black); }

.zbhd-card-thumb { display: block; height: 160px; background: var(--zbhd-gray); overflow: hidden; }
.zbhd-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.zbhd-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 42px; font-weight: 700; color: var(--zbhd-green); background: linear-gradient(135deg, #e6f7ee, #fff8dc); }

.zbhd-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.zbhd-card-body h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.zbhd-card-body h3 a { color: var(--zbhd-black); text-decoration: none; }
.zbhd-card-body h3 a:hover { color: var(--zbhd-green); }

.zbhd-cat { margin: 0; font-size: 13px; color: #666; }
.zbhd-address { margin: 0; font-size: 13px; color: #666; }
.zbhd-price { font-weight: 700; color: var(--zbhd-green); margin: 2px 0; }

.zbhd-tier-badge { display: inline-block; width: fit-content; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; text-transform: uppercase; }
.zbhd-tier-basic { background: #e6f0ff; color: #1a56db; }
.zbhd-tier-premium { background: #fdecc8; color: #92620a; }
.zbhd-tier-featured { background: var(--zbhd-yellow); color: var(--zbhd-black); }

.zbhd-condition-badge { display: inline-block; width: fit-content; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; background: var(--zbhd-gray); color: #555; text-transform: uppercase; }

.zbhd-card-actions { margin-top: auto; display: flex; gap: 8px; padding-top: 10px; }

/* Buttons */
.zbhd-btn { display: inline-block; padding: 9px 14px; font-size: 13px; font-weight: 600; border-radius: 6px; text-decoration: none; text-align: center; cursor: pointer; border: none; flex: 1; }
.zbhd-btn-whatsapp { background: #25d366; color: #fff; }
.zbhd-btn-whatsapp:hover { background: #1ebd59; color: #fff; }
.zbhd-btn-call { background: var(--zbhd-black); color: #fff; }
.zbhd-btn-view { background: var(--zbhd-gray); color: var(--zbhd-black); }
.zbhd-btn-search { background: var(--zbhd-green); color: #fff; flex: 0 0 auto; }
.zbhd-btn-submit { background: var(--zbhd-red); color: #fff; padding: 12px 24px; font-size: 15px; }
.zbhd-btn-submit:hover { background: #b30000; }

/* Empty state */
.zbhd-empty { text-align: center; padding: 40px 20px; color: #888; background: var(--zbhd-gray); border-radius: var(--zbhd-radius); }

/* Pagination */
.zbhd-pagination { margin-top: 24px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.zbhd-pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--zbhd-border); border-radius: 6px; text-decoration: none; color: var(--zbhd-black); }
.zbhd-pagination .page-numbers.current { background: var(--zbhd-green); color: #fff; border-color: var(--zbhd-green); }

/* Forms */
.zbhd-form { max-width: 640px; }
.zbhd-form p { margin-bottom: 16px; }
.zbhd-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.zbhd-form input[type=text], .zbhd-form input[type=email], .zbhd-form input[type=url], .zbhd-form input[type=file], .zbhd-form textarea, .zbhd-form select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--zbhd-border); border-radius: 6px; font-size: 14px; font-weight: 400; box-sizing: border-box;
}
.zbhd-package-fieldset { border: 1px solid var(--zbhd-border); border-radius: var(--zbhd-radius); padding: 16px; margin-bottom: 20px; }
.zbhd-package-fieldset legend { font-weight: 700; padding: 0 8px; }
.zbhd-package-option { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-bottom: 8px; }
.zbhd-package-option input { width: auto; }
.zbhd-form .description { font-size: 12px; color: #777; font-weight: 400; }

/* Store */
.zbhd-store-title { margin-bottom: 16px; }
.zbhd-store-grid .zbhd-price { font-size: 16px; }

/* Single business page */
.zbhd-single-business { max-width: 900px; margin: 0 auto; }
.zbhd-single-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; }
.zbhd-single-header img { width: 140px; height: 140px; object-fit: cover; border-radius: var(--zbhd-radius); }
.zbhd-contact-list { list-style: none; padding: 0; margin: 16px 0; }
.zbhd-contact-list li { padding: 8px 0; border-bottom: 1px solid var(--zbhd-border); }

@media (max-width: 600px) {
  .zbhd-filters { flex-direction: column; }
  .zbhd-single-header { flex-direction: column; align-items: center; text-align: center; }
}
