/* ============================================================
   ListBookmarking Directory — Frontend CSS
   ============================================================ */

:root {
  --lb-cream:   #FDFAF4;
  --lb-cream2:  #F5F0E8;
  --lb-white:   #FFFFFF;
  --lb-navy:    #1B3A6B;
  --lb-navy-l:  #2A5298;
  --lb-gold:    #E8970A;
  --lb-gold-l:  #F4B93E;
  --lb-gold-p:  #FEF3D0;
  --lb-teal:    #0A8F8C;
  --lb-teal-l:  #12B5B2;
  --lb-teal-p:  #E0F7F6;
  --lb-dark:    #111827;
  --lb-mid:     #374151;
  --lb-muted:   #6B7280;
  --lb-border:  #E5DDD0;
  --lb-border2: #EDE8E0;
  --lb-shadow:  0 2px 12px rgba(27,58,107,.08);
  --lb-radius:  10px;
  --lb-radius-l:16px;
}

/* --- Directory Wrap --- */
.lb-directory-wrap { font-family: inherit; }

/* Filter Bar */
.lb-filter-bar { background: var(--lb-white); border: 1px solid var(--lb-border); border-radius: var(--lb-radius-l); padding: 20px 24px; margin-bottom: 28px; }
.lb-filter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lb-filter-search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; background: var(--lb-cream); border: 1px solid var(--lb-border); border-radius: var(--lb-radius); padding: 10px 14px; }
.lb-filter-search svg { color: var(--lb-muted); flex-shrink: 0; }
.lb-filter-search input { border: none; background: transparent; outline: none; font-size: 15px; width: 100%; color: var(--lb-dark); }
.lb-filter-select { padding: 11px 14px; border: 1px solid var(--lb-border); border-radius: var(--lb-radius); font-size: 14px; background: var(--lb-white); color: var(--lb-dark); outline: none; cursor: pointer; }
.lb-filter-btn { background: var(--lb-navy); color: #fff; border: none; padding: 11px 22px; border-radius: var(--lb-radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.lb-filter-btn:hover { background: var(--lb-navy-l); }
.lb-results-count { font-size: 13px; color: var(--lb-muted); margin-top: 10px; width: 100%; }

/* Listings Grid */
.lb-listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 36px; }
.lb-listing-card { border-radius: var(--lb-radius-l); border: 1px solid var(--lb-border); background: var(--lb-white); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.lb-listing-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(27,58,107,.12); border-color: transparent; }
.lb-card-inner { display: block; text-decoration: none; color: inherit; }
.lb-card-img { position: relative; height: 180px; background: var(--lb-cream2); overflow: hidden; }
.lb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-card-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 60px; }
.lb-tier-badge { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.lb-tier-badge-premium { background: linear-gradient(135deg,#E8970A,#F4B93E); color: #fff; }
.lb-tier-badge-featured { background: var(--lb-teal); color: #fff; }
.lb-tier-badge-basic { background: var(--lb-cream2); color: var(--lb-muted); border: 1px solid var(--lb-border); }
.lb-card-body { padding: 18px 20px; }
.lb-card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--lb-teal); margin-bottom: 6px; }
.lb-card-title { font-size: 18px; font-weight: 600; color: var(--lb-navy); margin: 0 0 8px; line-height: 1.3; }
.lb-card-excerpt { font-size: 13px; color: var(--lb-muted); line-height: 1.6; margin-bottom: 8px; }
.lb-card-location { font-size: 12px; color: var(--lb-muted); margin-bottom: 12px; }
.lb-card-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--lb-border2); }
.lb-stars { color: #E8970A; font-size: 14px; }
.lb-review-count { font-size: 12px; color: var(--lb-muted); margin-left: 5px; }
.lb-card-cta { font-size: 13px; font-weight: 600; color: var(--lb-navy); }

/* No Results */
.lb-no-results { text-align: center; padding: 60px 20px; }
.lb-no-results-icon { font-size: 48px; margin-bottom: 16px; }
.lb-no-results h3 { font-size: 20px; color: var(--lb-navy); margin-bottom: 8px; }
.lb-no-results p { color: var(--lb-muted); margin-bottom: 24px; }

/* Pagination */
.lb-pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0; }
.lb-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--lb-border); border-radius: 8px; font-size: 14px; text-decoration: none; color: var(--lb-dark); background: #fff; transition: all .2s; }
.lb-pagination .page-numbers.current { background: var(--lb-navy); color: #fff; border-color: var(--lb-navy); }
.lb-pagination .page-numbers:hover { background: var(--lb-cream); }

/* ============================================================
   Pricing
   ============================================================ */
.lb-pricing-wrap { padding: 20px 0 40px; }
.lb-pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 820px; margin: 0 auto 28px; }
.lb-plan-card { border: 2px solid var(--lb-border); border-radius: 20px; padding: 36px; background: var(--lb-white); position: relative; transition: all .3s; }
.lb-plan-featured { border-color: var(--lb-gold); box-shadow: 0 8px 40px rgba(232,151,10,.15); }
.lb-plan-popular { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,#E8970A,#F4B93E); color: #fff; padding: 5px 20px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.lb-plan-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 1px; margin-bottom: 12px; }
.lb-plan-badge-basic { background: var(--lb-cream2); color: var(--lb-muted); }
.lb-plan-badge-premium { background: var(--lb-gold-p); color: var(--lb-gold); }
.lb-plan-name { font-size: 26px; font-weight: 700; color: var(--lb-navy); margin: 0 0 12px; }
.lb-plan-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 14px; }
.lb-plan-price sup { font-size: 20px; font-weight: 600; color: var(--lb-muted); margin-top: 8px; }
.lb-plan-amount { font-size: 52px; font-weight: 800; color: var(--lb-navy); line-height: 1; }
.lb-plan-period { font-size: 15px; color: var(--lb-muted); margin-left: 4px; }
.lb-plan-desc { font-size: 14px; color: var(--lb-muted); line-height: 1.7; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--lb-border2); }
.lb-plan-features { list-style: none; padding: 0; margin: 0 0 28px; }
.lb-plan-features li { padding: 7px 0; font-size: 14px; color: var(--lb-mid); display: flex; align-items: center; gap: 8px; }
.lb-plan-features li::before { content: '✓'; color: var(--lb-teal); font-weight: 700; flex-shrink: 0; }
.lb-plan-features li.lb-feature-no::before { content: '✗'; color: var(--lb-border); }
.lb-plan-features li.lb-feature-no { color: #9CA3AF; }
.lb-plan-features li.lb-feature-gold { color: var(--lb-gold); font-weight: 600; }
.lb-plan-features li.lb-feature-gold::before { color: var(--lb-gold); }
.lb-paypal-trust { text-align: center; font-size: 13px; color: var(--lb-muted); display: flex; align-items: center; justify-content: center; gap: 8px; }
.lb-paypal-container { margin-top: 14px; }

/* ============================================================
   Add Listing Form
   ============================================================ */
.lb-add-listing-wrap { padding: 20px 0 60px; }
.lb-form-card { background: var(--lb-white); border: 1px solid var(--lb-border); border-radius: var(--lb-radius-l); padding: 36px; max-width: 740px; margin: 0 auto; }
.lb-form-card h2 { font-size: 28px; color: var(--lb-navy); margin: 0 0 6px; }
.lb-form-sub { font-size: 15px; color: var(--lb-muted); margin-bottom: 32px; }

/* Steps */
.lb-steps { display: flex; align-items: center; margin-bottom: 36px; }
.lb-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--lb-muted); }
.lb-step-active { color: var(--lb-navy); font-weight: 600; }
.lb-step-done { color: var(--lb-teal); }
.lb-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--lb-border2); color: var(--lb-muted); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .3s; }
.lb-step-active .lb-step-num { background: var(--lb-navy); color: #fff; }
.lb-step-done .lb-step-num { background: var(--lb-teal); color: #fff; }
.lb-step-line { flex: 1; height: 2px; background: var(--lb-border2); margin: 0 8px; }
.lb-step-line-done { background: var(--lb-teal); }

/* Form fields */
.lb-form-step { display: none; }
.lb-form-step-active { display: block; }
.lb-form-group { margin-bottom: 20px; }
.lb-form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--lb-mid); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .5px; }
.lb-required { color: var(--lb-gold); }
.lb-input { width: 100%; padding: 12px 16px; border: 1px solid var(--lb-border); border-radius: 8px; font-size: 15px; color: var(--lb-dark); background: var(--lb-cream); outline: none; transition: all .2s; font-family: inherit; }
.lb-input:focus { border-color: var(--lb-navy); background: #fff; box-shadow: 0 0 0 3px rgba(27,58,107,.08); }
textarea.lb-input { min-height: 120px; resize: vertical; }
.lb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lb-form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--lb-border2); }

/* Plan Selector */
.lb-plan-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.lb-plan-opt { display: block; border: 2px solid var(--lb-border); border-radius: var(--lb-radius-l); padding: 20px; cursor: pointer; transition: all .2s; position: relative; }
.lb-plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lb-plan-opt-selected { border-color: var(--lb-gold); background: var(--lb-gold-p); }
.lb-plan-popular-pill { position: absolute; top: -10px; right: 12px; background: var(--lb-gold); color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.lb-plan-opt-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.lb-plan-opt-name { font-weight: 700; font-size: 15px; color: var(--lb-navy); }
.lb-plan-opt-price { font-size: 22px; font-weight: 800; color: var(--lb-navy); }
.lb-price-gold { color: var(--lb-gold); }
.lb-plan-opt-features { list-style: none; padding: 0; margin: 0; font-size: 12px; }
.lb-plan-opt-features li { padding: 3px 0; color: var(--lb-mid); }

/* Order Summary */
.lb-order-summary { background: var(--lb-cream); border-radius: var(--lb-radius); padding: 20px; margin-bottom: 20px; }
.lb-order-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--lb-muted); margin-bottom: 10px; }
.lb-order-inner { display: flex; justify-content: space-between; align-items: center; }
.lb-order-price { font-size: 32px; font-weight: 800; color: var(--lb-navy); }
.lb-paypal-label { font-size: 14px; font-weight: 600; color: var(--lb-navy); margin-bottom: 12px; }
.lb-paypal-checkout-area { max-width: 400px; }
.lb-secure-note { font-size: 13px; color: var(--lb-muted); margin-top: 16px; }

/* ============================================================
   Buttons
   ============================================================ */
.lb-btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all .2s; text-decoration: none; font-family: inherit; }
.lb-btn-primary { background: var(--lb-navy); color: #fff; }
.lb-btn-primary:hover { background: var(--lb-navy-l); }
.lb-btn-secondary { background: #fff; color: var(--lb-mid); border: 1px solid var(--lb-border); }
.lb-btn-secondary:hover { background: var(--lb-cream); }
.lb-btn-basic { background: var(--lb-navy); color: #fff; width: 100%; text-align: center; }
.lb-btn-premium { background: linear-gradient(135deg,#E8970A,#F4B93E); color: #fff; width: 100%; text-align: center; box-shadow: 0 4px 16px rgba(232,151,10,.3); }
.lb-btn-premium:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,151,10,.4); }
.lb-plan-btn { display: block; width: 100%; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; border: none; transition: all .25s; font-family: inherit; }

/* ============================================================
   Modal
   ============================================================ */
.lb-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.lb-modal { background: #fff; border-radius: 20px; padding: 40px; max-width: 460px; width: 90%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.lb-modal-icon { font-size: 52px; margin-bottom: 16px; }
.lb-modal-details { background: var(--lb-cream); border-radius: 10px; padding: 16px; margin: 16px 0; text-align: left; }
.lb-modal-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--lb-border2); }
.lb-modal-row:last-child { border-bottom: none; }
.lb-modal-close { margin-top: 8px; width: 100%; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .lb-listings-grid { grid-template-columns: 1fr; }
  .lb-pricing-grid { grid-template-columns: 1fr; }
  .lb-form-row { grid-template-columns: 1fr; }
  .lb-plan-selector { grid-template-columns: 1fr; }
  .lb-filter-form { flex-direction: column; }
  .lb-filter-search { flex: 1 1 100%; }
}
