/* ============================================================
   Business Directory Suite — Single Business v3
   Mobile-first, flat icons, 8px radius, no overflow
   ============================================================ */

/* --- Variables --- */
:root {
    --bd-p: #2563eb;
    --bd-pd: #1d4ed8;
    --bd-acc: #f59e0b;
    --bd-txt: #1e293b;
    --bd-txt2: #475569;
    --bd-mut: #94a3b8;
    --bd-bg: #f8fafc;
    --bd-white: #fff;
    --bd-brd: #e2e8f0;
    --bd-ok: #16a34a;
    --bd-err: #dc2626;
    --bd-r: 12px;
    --bd-sh: 0 1px 3px rgba(0,0,0,.08);
    --bd-shm: 0 4px 12px rgba(0,0,0,.1);
}

/* --- Reset & Wrap --- */
.bd-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--bd-txt); line-height: 1.6; overflow-x: hidden; max-width: 100vw; }
.bd-wrap *, .bd-wrap *::before, .bd-wrap *::after { box-sizing: border-box; }
.bd-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* --- SVG Icons --- */
.bd-icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; flex-shrink: 0; }
.bd-icon svg { width: 20px; height: 20px; display: block; }
.bd-icon-sm svg { width: 16px; height: 16px; }
.bd-icon-xs svg { width: 14px; height: 14px; }
.bd-key-icon { color: var(--bd-p); margin-left: 10px; }
.bd-key-icon svg { width: 18px; height: 18px; }
.bd-star-icon svg { width: 16px; height: 16px; }
.bd-stars { display: inline-flex; gap: 1px; color: var(--bd-acc); }

/* --- Links & Buttons — NO underlines --- */
.bd-wrap a { color: var(--bd-p); text-decoration: none !important; }
.bd-wrap a:hover { color: var(--bd-pd); text-decoration: none !important; }
.bd-wrap a:focus, .bd-wrap a:active { text-decoration: none !important; }
.bd-qa-btn, .bd-item-cta, .bd-lead-btn, .bd-sh-btn, .bd-deal-link { text-decoration: none !important; }

/* --- Badges — consistent 8px radius --- */
.bd-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; line-height: 1.4; }
.bd-badge-type { background: var(--bd-p); color: var(--bd-white); }
.bd-badge-cat { background: #eff6ff; color: var(--bd-p); }
.bd-badge-lvl { background: #fef3c7; color: #92400e; }
.bd-badge-avail { background: #fef3c7; color: #92400e; display: inline-flex; align-items: center; gap: 3px; }
.bd-badge-icon { width: 14px; height: 14px; display: inline-block; vertical-align: middle; }
.bd-badge-icon svg { width: 14px; height: 14px; fill: #92400e; }

/* --- Tags — 8px radius --- */
.bd-tag, .bd-tag-sm, .bd-sd-tag { display: inline-block; border-radius: 20px; font-size: 13px; }
.bd-tag { padding: 4px 12px; background: #eff6ff; color: var(--bd-p); margin: 3px; }
.bd-tag-sm { padding: 3px 10px; background: var(--bd-bg); color: var(--bd-txt2); margin: 2px; font-size: 12px; }
.bd-tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
.bd-sd-tag { padding: 4px 12px; background: #eff6ff; color: var(--bd-p); margin: 3px; cursor: default; transition: background .2s; }
a.bd-sd-tag:hover { background: var(--bd-p); color: var(--bd-white); }

/* ============================================================
   HERO GALLERY
   ============================================================ */
.bd-hero { position: relative; width: 100%; height: 420px; overflow: hidden; background: #0f172a; }
.bd-hero-gallery { position: relative; width: 100%; height: 100%; }
.bd-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.bd-hero-slide.bd-active { opacity: 1; z-index: 1; }
.bd-hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-hero-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: none !important; border-radius: 50% !important; background: rgba(255,255,255,.9) !important; color: #1e293b !important; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.bd-hero-btn:hover { background: #fff !important; color: #1e293b !important; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.bd-hero-prev { right: 12px; }
.bd-hero-next { left: 12px; }
.bd-hero-btn svg { width: 20px; height: 20px; }
.bd-hero-counter { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 2; background: rgba(0,0,0,.6); color: #fff; padding: 4px 14px; border-radius: var(--bd-r); font-size: 13px; direction: ltr; }

/* ============================================================
   TITLE BAR
   ============================================================ */
.bd-title-bar { background: var(--bd-white); border-bottom: 1px solid var(--bd-brd); padding: 16px 0; }
.bd-title-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bd-biz-logo { width: 72px; height: 72px; border-radius: var(--bd-r); object-fit: cover; border: 2px solid var(--bd-brd); flex-shrink: 0; }
.bd-title-info { flex: 1; min-width: 0; }
.bd-title-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.bd-biz-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.bd-branch-parent { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--bd-p); text-decoration: none !important; margin-bottom: 4px; }
.bd-branch-parent:hover { color: var(--bd-pd); text-decoration: none !important; }
.bd-title-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--bd-txt2); font-size: 14px; align-items: center; }
.bd-meta-i { display: inline-flex; align-items: center; gap: 4px; }
.bd-quick-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.bd-qa-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 500; transition: all .2s; white-space: nowrap; }
.bd-qa-phone { background: var(--bd-p); color: var(--bd-white) !important; }
.bd-qa-phone:hover { background: var(--bd-pd); color: var(--bd-white) !important; }
.bd-qa-wa { background: #25d366; color: var(--bd-white) !important; }
.bd-qa-wa:hover { background: #1da851; color: var(--bd-white) !important; }
.bd-qa-web { background: var(--bd-bg); color: var(--bd-txt) !important; border: 1px solid var(--bd-brd); }
.bd-qa-web:hover { background: var(--bd-brd); color: var(--bd-txt) !important; }
.bd-qa-btn .bd-icon svg { width: 16px; height: 16px; }

/* ============================================================
   STICKY NAV
   ============================================================ */
.bd-sticky-nav { background: var(--bd-white); border-bottom: 1px solid var(--bd-brd); z-index: 100; }
.bd-nav-stuck { position: fixed !important; top: 0; left: 0; right: 0; box-shadow: var(--bd-shm); }
.bd-nav-placeholder { height: 0; transition: height .1s; }
.bd-nav-tabs { display: flex; list-style: none; margin: 0; padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0; scrollbar-width: none; }
.bd-nav-tabs::-webkit-scrollbar { display: none; }
.bd-nav-tabs li { flex-shrink: 0; }
.bd-nav-tabs a { display: block; padding: 12px 16px; font-size: 14px; color: var(--bd-txt2); white-space: nowrap; border-bottom: 3px solid transparent; transition: all .2s; text-decoration: none !important; }
.bd-nav-tabs a:hover { color: var(--bd-p); background: #f8fafc; }
.bd-nav-tabs a.bd-tab-active { color: var(--bd-p); border-bottom-color: var(--bd-p); font-weight: 600; }

/* ============================================================
   DEAL BANNER
   ============================================================ */
.bd-deal-banner { background: linear-gradient(135deg, #fbbf24, #f59e0b); padding: 10px 0; text-align: center; }
.bd-deal-link { color: #78350f !important; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   LAYOUT GRID — 2 columns
   ============================================================ */
.bd-layout { padding: 20px 0; background: var(--bd-bg); }
.bd-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.bd-main { min-width: 0; }
.bd-sidebar { min-width: 0; overflow: visible; max-height: none; height: auto; }

/* --- Cards --- */
.bd-card { background: var(--bd-white); border-radius: var(--bd-r); box-shadow: var(--bd-sh); padding: 20px; margin-bottom: 16px; }
.bd-card-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--bd-p); }
.bd-section-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }

/* --- Prose --- */
.bd-prose { font-size: 15px; line-height: 1.7; color: var(--bd-txt); }
.bd-prose p { margin: 0 0 12px; }
.bd-prose-sm { font-size: 14px; line-height: 1.6; }
.bd-founding { margin-top: 12px; font-size: 14px; color: var(--bd-txt2); display: flex; align-items: center; gap: 6px; }

/* --- Service Details --- */
.bd-sd-group { margin-bottom: 16px; }
.bd-sd-cat { font-size: 15px; font-weight: 600; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--bd-brd); }
.bd-sd-tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* ============================================================
   ITEMS GRID (products / services)
   ============================================================ */
.bd-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.bd-item-card { background: var(--bd-white); border: 1px solid var(--bd-brd); border-radius: var(--bd-r); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.bd-item-card:hover { box-shadow: var(--bd-shm); transform: translateY(-2px); }
.bd-item-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.bd-item-body { padding: 12px; text-align: center; }
.bd-item-body h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.bd-item-body p { font-size: 13px; color: var(--bd-txt2); margin: 0 0 8px; max-height: 64px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.bd-item-cta { display: inline-block; padding: 6px 14px; background: var(--bd-p); color: var(--bd-white) !important; border-radius: 20px; font-size: 13px; font-weight: 500; transition: background .2s; }
.bd-item-cta:hover { background: var(--bd-pd); color: var(--bd-white) !important; }
.bd-price { font-size: 15px; font-weight: 700; color: var(--bd-p); margin-top: 4px; }
.bd-meta-sm { font-size: 12px; color: var(--bd-mut); display: inline-flex; align-items: center; gap: 3px; }

/* ============================================================
   COURSES
   ============================================================ */
.bd-courses-list { display: flex; flex-direction: column; gap: 12px; }
.bd-course-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px; background: var(--bd-bg); border-radius: var(--bd-r); }
.bd-course-row img { width: 100px; height: 70px; object-fit: cover; border-radius: var(--bd-r); flex-shrink: 0; }
.bd-course-body { flex: 1; min-width: 0; }
.bd-course-body h3 { font-size: 15px; margin: 0 0 4px; }
.bd-course-body p { font-size: 13px; color: var(--bd-txt2); margin: 4px 0 0; }
.bd-course-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.bd-course-price { font-size: 18px; font-weight: 700; color: var(--bd-p); white-space: nowrap; }

/* ============================================================
   MENU ITEMS
   ============================================================ */
.bd-menu-cat { font-size: 16px; font-weight: 600; margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--bd-brd); }
.bd-menu-items { display: flex; flex-direction: column; gap: 8px; }
.bd-mi { display: flex; gap: 10px; padding: 10px; border-radius: var(--bd-r); transition: background .2s; }
.bd-mi:hover { background: var(--bd-bg); }
.bd-mi-off { opacity: .5; }
.bd-mi-img { width: 56px; height: 56px; border-radius: var(--bd-r); object-fit: cover; flex-shrink: 0; }
.bd-mi-body { flex: 1; min-width: 0; }
.bd-mi-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bd-mi-name { font-weight: 600; font-size: 14px; }
.bd-mi-price { font-weight: 700; color: var(--bd-p); font-size: 14px; white-space: nowrap; }
.bd-mi-body p { font-size: 13px; color: var(--bd-txt2); margin: 2px 0 0; }
.bd-mi-diet span { display: inline-block; padding: 2px 8px; background: #dcfce7; color: #166534; border-radius: var(--bd-r); font-size: 11px; margin: 3px 2px 0; }

/* ============================================================
   GALLERY
   ============================================================ */
/* Photo Gallery (lightbox grid) */
.bd-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.bd-photo-item { display: block; border-radius: var(--bd-r); overflow: hidden; aspect-ratio: 1/1; position: relative; cursor: pointer; }
.bd-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s, filter .3s; }
.bd-photo-item:hover img { transform: scale(1.05); filter: brightness(.85); }
.bd-photo-item::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .3s; pointer-events: none; }
.bd-photo-item:hover::after { background: rgba(0,0,0,.1); }

/* Lightbox overlay */
.bd-lightbox { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.92); justify-content: center; align-items: center; }
.bd-lightbox.bd-lb-open { display: flex; }
.bd-lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.bd-lb-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.bd-lb-close:hover { background: rgba(255,255,255,.3); }
.bd-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.bd-lb-nav:hover { background: rgba(255,255,255,.3); }
.bd-lb-prev { right: 16px; }
.bd-lb-next { left: 16px; }
.bd-lb-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 14px; }

/* Old gallery grid (backwards compat) */
.bd-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.bd-gallery-item { display: block; border-radius: var(--bd-r); overflow: hidden; aspect-ratio: 1/1; }
.bd-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.bd-gallery-item:hover img { transform: scale(1.05); }

/* ============================================================
   VIDEO
   ============================================================ */
.bd-video-wrap { position: relative; }
.bd-video-wrap iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--bd-r); display: block; }

/* ============================================================
   REVIEWS
   ============================================================ */
.bd-reviews-list { display: flex; flex-direction: column; gap: 12px; }
.bd-review { padding: 14px; background: var(--bd-bg); border-radius: var(--bd-r); }
.bd-review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.bd-review-date { color: var(--bd-mut); font-size: 12px; }
.bd-review-text { font-size: 14px; line-height: 1.6; }
.bd-owner-reply { margin-top: 10px; padding: 10px 14px; border-right: 3px solid var(--bd-p); background: var(--bd-white); border-radius: var(--bd-r); font-size: 13px; }

/* --- GMB Reviews --- */
.bd-gmb-reviews { margin-bottom: 16px; }
.bd-gmb-header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bd-bg); border-radius: var(--bd-r); margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.bd-gmb-agg { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; }
.bd-gmb-list { display: flex; flex-direction: column; gap: 10px; }
.bd-gmb-item { padding: 12px; background: var(--bd-bg); border-radius: var(--bd-r); }
.bd-gmb-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bd-gmb-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.bd-gmb-avatar-placeholder { background: var(--bd-p); color: var(--bd-white); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }
.bd-gmb-author { font-weight: 600; font-size: 14px; }
.bd-gmb-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.bd-gmb-time { color: var(--bd-mut); }
.bd-gmb-text { font-size: 14px; line-height: 1.6; margin: 0; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.bd-key-card { border-top: 3px solid var(--bd-p); }
.bd-key-title { font-size: 15px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.bd-key-row { display: flex; align-items: flex-start; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--bd-brd); font-size: 14px; }
.bd-key-row:last-child { border-bottom: 0; }
.bd-key-label { display: block; font-size: 11px; color: var(--bd-mut); margin-bottom: 1px; }
.bd-key-val { color: var(--bd-txt); word-break: break-word; }
a.bd-key-val:hover { color: var(--bd-p); }
.bd-wa-sm { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #25d366 !important; margin-right: 8px; }

/* Hours */
.bd-hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bd-hours-table td { padding: 6px 0; border-bottom: 1px solid var(--bd-brd); }
.bd-hours-table tr:last-child td { border-bottom: 0; }

/* Open Now badge in sidebar */
.bd-open-badge { display: inline-flex; align-items: center; gap: 4px; background: #dcfce7; color: #166534; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; }
.bd-open-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: bd-pulse 1.5s ease-in-out infinite; }

/* Service availability tag */
.bd-service-avail { display: inline-flex; align-items: center; gap: 6px; background: #fef3c7; color: #92400e; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 8px; margin-bottom: 10px; }
.bd-avail-icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.bd-avail-icon svg { width: 18px; height: 18px; fill: #92400e; }

/* Socials */
.bd-socials-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-social-link { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--bd-bg); border-radius: var(--bd-r); color: var(--bd-txt2) !important; transition: all .2s; }
.bd-social-link svg { width: 20px; height: 20px; }
.bd-social-link:hover { transform: translateY(-2px); }
.bd-soc-facebook { color: #1877f2 !important; } .bd-soc-facebook:hover { background: #1877f2; color: #fff !important; }
.bd-soc-instagram { color: #e4405f !important; } .bd-soc-instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff !important; }
.bd-soc-x { color: #000 !important; } .bd-soc-x:hover { background: #000; color: #fff !important; }
.bd-soc-linkedin { color: #0a66c2 !important; } .bd-soc-linkedin:hover { background: #0a66c2; color: #fff !important; }
.bd-soc-youtube { color: #ff0000 !important; } .bd-soc-youtube:hover { background: #ff0000; color: #fff !important; }
.bd-soc-tiktok { color: #000 !important; } .bd-soc-tiktok:hover { background: #000; color: #fff !important; }
.bd-soc-pinterest { color: #bd081c !important; } .bd-soc-pinterest:hover { background: #bd081c; color: #fff !important; }
.bd-soc-whatsapp { color: #25d366 !important; } .bd-soc-whatsapp:hover { background: #25d366; color: #fff !important; }
.bd-soc-telegram { color: #0088cc !important; } .bd-soc-telegram:hover { background: #0088cc; color: #fff !important; }

/* Map */
.bd-map-card { padding: 0; overflow: hidden; }
.bd-map-card iframe { display: block; border-radius: var(--bd-r); }

/* Lead Form — max specificity to override theme */
.bd-wrap .bd-lead-card,
.bd-lead-card.bd-card { background: #eef2ff !important; border: 1px solid #c7d2fe !important; }
.bd-wrap .bd-lead-form { position: relative; }
.bd-wrap .bd-lead-form input,
.bd-wrap .bd-lead-form textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid #d1d5db !important; border-radius: var(--bd-r); font-size: 14px; margin-bottom: 8px; font-family: inherit; text-align: right; direction: rtl; background: #fff !important; color: #1e293b !important; }
.bd-wrap .bd-lead-form input[dir="ltr"] { direction: ltr; text-align: right; }
.bd-wrap .bd-lead-form input[dir="ltr"]::placeholder { direction: rtl; text-align: right; }
.bd-wrap .bd-lead-form input:focus,
.bd-wrap .bd-lead-form textarea:focus { outline: none !important; border-color: #2563eb !important; box-shadow: 0 0 0 3px rgba(37,99,235,.15) !important; }
.bd-hp { position: absolute; left: -9999px; top: -9999px; width: 0; height: 0; overflow: hidden; }
.bd-wrap .bd-lead-btn,
button.bd-lead-btn,
.bd-wrap .bd-card .bd-lead-btn { width: 100%; padding: 12px; background: #2563eb !important; color: #ffffff !important; border: 0 none !important; border-radius: var(--bd-r); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s; text-decoration: none !important; outline: 0 !important; box-shadow: none !important; }
.bd-wrap .bd-lead-btn:hover,
button.bd-lead-btn:hover,
.bd-wrap .bd-card .bd-lead-btn:hover { background: #1d4ed8 !important; color: #ffffff !important; border: 0 none !important; }
.bd-lead-msg { padding: 8px 12px; border-radius: var(--bd-r); font-size: 13px; margin-top: 8px; }
.bd-msg-ok { background: #dcfce7; color: #166534; }
.bd-msg-err { background: #fef2f2; color: #991b1b; }

/* Share */
.bd-share-card { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bd-share-label { font-size: 14px; display: inline-flex; align-items: center; gap: 4px; color: var(--bd-txt2); }
.bd-sh-btn { display: inline-block; padding: 6px 14px; border-radius: var(--bd-r); font-size: 13px; font-weight: 500; }
.bd-sh-wa { background: #25d366; color: var(--bd-white) !important; }
.bd-sh-fb { background: #1877f2; color: var(--bd-white) !important; }
.bd-sh-wa:hover { background: #1da851; } .bd-sh-fb:hover { background: #1565c0; }

/* Review Form */
.bd-review-form-wrap { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--bd-brd); }
.bd-review-form-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.bd-review-form input, .bd-review-form textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--bd-brd); border-radius: var(--bd-r); font-size: 14px; margin-bottom: 8px; font-family: inherit; text-align: right; direction: rtl; }
.bd-review-form input[dir="ltr"] { direction: ltr; text-align: right; }
.bd-review-form input[dir="ltr"]::placeholder { direction: rtl; text-align: right; }
.bd-review-form input:focus, .bd-review-form textarea:focus { outline: none; border-color: var(--bd-p); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.bd-review-stars-input { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.bd-star-label { font-size: 14px; font-weight: 500; margin-left: 8px; }
.bd-star-pick { background: none; border: none; font-size: 28px; cursor: pointer; color: #d1d5db; padding: 0 2px; transition: color .15s; line-height: 1; }
.bd-star-pick:hover, .bd-star-active { color: #f59e0b; }
.bd-proof-section { margin-bottom: 12px; padding: 12px; background: var(--bd-bg); border-radius: var(--bd-r); }
.bd-proof-label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.bd-proof-input { font-size: 13px; }
.bd-proof-hint { display: block; color: var(--bd-txt2); font-size: 12px; margin-top: 4px; }
.bd-review-msg { padding: 8px 12px; border-radius: var(--bd-r); font-size: 13px; margin-top: 8px; }

/* External article source */
.bd-article-source { font-size: 12px; color: var(--bd-txt2); display: block; margin-top: 2px; direction: ltr; }

/* ============================================================
   CONTACTS (full-width)
   ============================================================ */
.bd-full-sec { padding: 28px 0; }
.bd-sec-alt { background: var(--bd-bg); }
.bd-contacts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.bd-contact-card { background: var(--bd-white); padding: 16px; border-radius: var(--bd-r); text-align: center; box-shadow: var(--bd-sh); }
.bd-contact-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; }
.bd-contact-card h4 { font-size: 15px; margin: 0 0 2px; }
.bd-contact-job { font-size: 13px; color: var(--bd-txt2); margin: 0 0 8px; }
.bd-contact-card a { display: block; font-size: 13px; margin-top: 4px; }

/* ============================================================
   FULL-WIDTH LEAD FORM
   ============================================================ */
.bd-lead-full { background: #eef2ff !important; padding: 32px 0; }
.bd-lead-full-inner { max-width: 700px; margin: 0 auto; }
.bd-lead-full .bd-section-title { text-align: center; margin-bottom: 20px; }
.bd-lead-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }
@media (max-width: 600px) { .bd-lead-grid { grid-template-columns: 1fr; } }

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.bd-articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bd-article-card { display: flex; flex-direction: column; background: var(--bd-white); border-radius: var(--bd-r); overflow: hidden; box-shadow: var(--bd-sh); transition: box-shadow .2s, transform .2s; color: var(--bd-txt) !important; text-decoration: none !important; }
.bd-article-card:hover { box-shadow: var(--bd-shm); transform: translateY(-2px); color: var(--bd-txt) !important; text-decoration: none !important; }
.bd-article-card *, .bd-article-card *:hover { text-decoration: none !important; }
.bd-article-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.bd-article-body { padding: 12px; }
.bd-article-body h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bd-article-date { font-size: 12px; color: var(--bd-mut); }

/* ============================================================
   SHARED BUSINESS CARD (similar + archive)
   ============================================================ */
.bd-biz-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bd-biz-card { display: flex; flex-direction: column; background: var(--bd-white); border-radius: var(--bd-r); overflow: hidden; box-shadow: var(--bd-sh); transition: box-shadow .25s, transform .25s; color: var(--bd-txt) !important; text-decoration: none !important; border: 1px solid var(--bd-brd); }
.bd-biz-card:hover { box-shadow: var(--bd-shm); transform: translateY(-2px); color: var(--bd-txt) !important; text-decoration: none !important; }
.bd-biz-card *, .bd-biz-card *:hover { text-decoration: none !important; }

/* 2.1: Card thumb */
.bd-biz-card-thumb { position: relative; width: 100%; height: 160px; overflow: hidden; background: var(--bd-bg); }
.bd-biz-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.bd-biz-card:hover .bd-biz-card-thumb img { transform: scale(1.05); }
.bd-badge-abs { position: absolute; top: 10px; right: 10px; }
.bd-biz-card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }

.bd-biz-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bd-biz-card-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--bd-brd); }
.bd-biz-card-info { min-width: 0; flex: 1; }
.bd-biz-card-name { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-biz-card-cat { font-size: 12px; color: var(--bd-p); display: block; }

.bd-biz-card-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--bd-brd); font-size: 13px; }
.bd-biz-card-rating .bd-stars { color: #f59e0b; font-size: 14px; letter-spacing: -1px; }
.bd-biz-card-rating strong { font-size: 14px; color: var(--bd-txt); }
.bd-biz-card-rc { color: var(--bd-txt2); font-size: 12px; }

.bd-biz-card-details { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.bd-biz-card-row { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--bd-txt2); line-height: 1.4; }

/* Feature 1: Open Now badge */
.bd-badge-open { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: #fff; background: #16a34a; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.bd-badge-open::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: bd-pulse 1.5s ease-in-out infinite; }
@keyframes bd-pulse { 0%,100%{ opacity: 1; } 50%{ opacity: .4; } }

/* Feature 4: Branches count badge */
.bd-badge-branches { display: inline-flex; align-items: center; font-size: 11px; font-weight: 500; color: var(--bd-p); background: #eff6ff; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }

/* Badges container */
.bd-biz-card-badges { display: flex; gap: 4px; margin-right: auto; flex-shrink: 0; }

/* Feature 7: WhatsApp CTA */
.bd-biz-card-wa { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 8px; background: #25d366; color: #fff !important; border-radius: var(--bd-r); font-size: 13px; font-weight: 600; transition: background .2s; text-decoration: none !important; cursor: pointer; }
.bd-biz-card-wa:hover { background: #1eb851; color: #fff !important; }

/* Feature 3: Sort dropdown */
.bd-toolbar-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bd-brd); }
.bd-results-info { font-size: 13px; color: var(--bd-txt2); }
.bd-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.bd-sort-select { padding: 5px 10px; border: 1px solid var(--bd-brd); border-radius: 8px; font-size: 13px; color: var(--bd-txt); background: #fff; cursor: pointer; direction: rtl; }

/* Feature 6: Map view */
.bd-archive-map { height: 400px; border-bottom: 1px solid var(--bd-brd); }

/* AJAX loading state */
.bd-biz-cards-grid.bd-loading { opacity: .4; pointer-events: none; transition: opacity .2s; }

/* Feature 5: Search widget */
.bd-search-wrap { max-width: 600px; margin: 0 auto; }
.bd-search-box { position: relative; }
.bd-search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--bd-txt2); pointer-events: none; }
.bd-search-input { width: 100%; padding: 14px 44px 14px 16px; border: 2px solid var(--bd-brd); border-radius: 50px; font-size: 16px; outline: none; font-family: inherit; direction: rtl; transition: border-color .2s, box-shadow .2s; background: #fff; }
.bd-search-input:focus { border-color: var(--bd-p); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.bd-search-results { position: absolute; top: calc(100% + 4px); right: 0; left: 0; background: #fff; border: 1px solid var(--bd-brd); border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 100; max-height: 360px; overflow-y: auto; }
.bd-sr-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; text-decoration: none !important; color: var(--bd-txt) !important; transition: background .15s; }
.bd-sr-item:hover { background: #f8fafc; }
.bd-sr-item:not(:last-child) { border-bottom: 1px solid #f1f5f9; }
.bd-sr-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bd-sr-placeholder { display: flex; align-items: center; justify-content: center; background: #f1f5f9; font-size: 18px; }
.bd-sr-item strong { font-size: 14px; display: block; }
.bd-sr-item span { font-size: 12px; color: var(--bd-p); }
.bd-sr-empty { padding: 20px; text-align: center; color: var(--bd-txt2); font-size: 14px; }

/* 3.3.2: Map button */
.bd-map-btn { background: var(--bd-p) !important; color: #fff !important; border-color: var(--bd-p) !important; }
.bd-map-btn:hover { background: var(--bd-pd) !important; }
.bd-map-btn.bd-pill-active { background: var(--bd-pd) !important; }

/* Infinite scroll loader */
.bd-load-more { text-align: center; padding: 20px; }
.bd-loader { display: inline-block; width: 32px; height: 32px; border: 3px solid var(--bd-brd); border-top-color: var(--bd-p); border-radius: 50%; animation: bd-spin .6s linear infinite; }
@keyframes bd-spin { to { transform: rotate(360deg); } }

/* 3.5: Term description */
.bd-term-desc { background: var(--bd-white); padding: 32px 0; border-top: 1px solid var(--bd-brd); }
.bd-term-desc-content { max-width: 800px; margin: 0 auto; font-size: 15px; line-height: 1.7; color: var(--bd-txt2); text-align: center; }
.bd-term-desc-content p { margin: 0 0 12px; }

/* 3.6: Term related articles */
.bd-term-articles { background: var(--bd-bg); padding: 40px 0; border-top: 1px solid var(--bd-brd); }
.bd-term-articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.bd-term-article-card { display: flex; flex-direction: column; background: var(--bd-white); border-radius: var(--bd-r); overflow: hidden; box-shadow: var(--bd-sh); text-decoration: none !important; color: var(--bd-txt) !important; transition: transform .2s; }
.bd-term-article-card:hover { transform: translateY(-2px); }
.bd-term-article-card img { width: 100%; height: 140px; object-fit: cover; }
.bd-term-article-card h3 { font-size: 14px; font-weight: 600; padding: 12px; margin: 0; }

/* 1.4.2: Single contact vertical on mobile */
.bd-contacts-single .bd-contact-card { max-width: 300px; margin: 0 auto; }

/* ============================================================
   RESPONSIVE — Mobile-first fixes
   ============================================================ */
@media (max-width: 900px) {
    .bd-grid { grid-template-columns: 1fr; }
    .bd-sidebar { position: static !important; order: -1; }
    .bd-hero { height: 300px; }
    .bd-biz-title { font-size: 18px; }
    .bd-title-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .bd-quick-actions { width: 100%; justify-content: flex-start; }
    .bd-qa-btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: 13px; }
    .bd-nav-tabs a { padding: 10px 12px; font-size: 13px; }
    .bd-items-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .bd-articles-grid, .bd-biz-cards-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .bd-contacts-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 480px) {
    .bd-container { padding: 0 12px; }
    .bd-hero { height: 180px; }
    .bd-hero-btn { width: 34px; height: 34px; }
    .bd-biz-logo { width: 56px; height: 56px; }
    .bd-biz-title { font-size: 17px; }
    .bd-card { padding: 14px; }
    .bd-card-title { font-size: 16px; }
    /* 1.3: Default 1 column, 2-col when checkbox enabled */
    .bd-items-grid { grid-template-columns: 1fr; gap: 8px; }
    .bd-items-grid.bd-mobile-2col { grid-template-columns: 1fr 1fr; }
    .bd-articles-grid.bd-mobile-2col { grid-template-columns: 1fr 1fr; }
    .bd-item-card img { height: 120px; }
    .bd-photo-grid, .bd-gallery-grid { grid-template-columns: 1fr 1fr; }
    .bd-course-row { flex-direction: column; }
    .bd-course-row img { width: 100%; height: auto; aspect-ratio: 16/9; }
    .bd-articles-grid, .bd-biz-cards-grid { grid-template-columns: 1fr; }
    .bd-article-card img { height: 100px; }
    .bd-qa-btn { font-size: 12px; padding: 8px 10px; }
    .bd-qa-btn .bd-icon svg { width: 14px; height: 14px; }
}

/* --- Sidebar on desktop — no height limits --- */
@media (min-width: 901px) {
    .bd-sidebar { align-self: flex-start; overflow: visible !important; max-height: none !important; height: auto !important; }
}

/* 3.4.1: Prevent card overflow on mobile */
.bd-biz-card { max-width: 100%; overflow: hidden; }
.bd-biz-card-name { max-width: 100%; }
@media (max-width: 480px) {
    .bd-biz-cards-grid { grid-template-columns: 1fr; }
    .bd-biz-card-thumb { height: 140px; }
    .bd-contacts-single .bd-contact-card { flex-direction: column; text-align: center; }
}
