/* ==========================================================================
   BestMart — Category listing & search results (product_listing_new)
   Reads theme variables from bm-theme.css / admin Appearance settings.
   ========================================================================== */

.bml { background: var(--bm-bg-soft); padding-bottom: 56px; font-family: var(--bm-font); }
.bml .min-w-0 { min-width: 0; }
.bml-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- Hero ---------- */
.bml-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bm-bg-soft) 100%); padding: 26px 0 30px; border-bottom: 1px solid var(--bm-line-soft); }
.bml-hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: bml-drift 14s ease-in-out infinite alternate; }
.bml-hero__blob--a { width: 380px; height: 380px; background: var(--bm-primary-soft); top: -180px; right: -60px; }
.bml-hero__blob--b { width: 300px; height: 300px; background: var(--bm-accent-soft); bottom: -200px; left: -80px; animation-delay: -6s; }
.bml-hero .bmd-container { position: relative; }

.bml-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: 13px; font-weight: 600; }
.bml-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--bm-ink); }
.bml-crumbs li + li::before { content: ''; width: 6px; height: 6px; border-right: 2px solid var(--bm-subtle); border-top: 2px solid var(--bm-subtle); transform: rotate(45deg); margin-right: 4px; }
.bml-crumbs a { color: var(--bm-muted); text-decoration: none; transition: color .2s; }
.bml-crumbs a:hover { color: var(--bm-primary); }

.bml-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.bml-hero__text { min-width: 0; flex: 1 1 420px; }
.bml-hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--bm-primary-soft); color: var(--bm-primary); font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.bml-hero__title { margin: 12px 0 8px; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; color: var(--bm-ink); word-break: break-word; }
.bml-hero__in { font-weight: 700; color: var(--bm-muted); }
.bml-hero__sub { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; color: var(--bm-muted); }
.bml-hero__sub strong { color: var(--bm-ink); font-weight: 800; }
.bml-dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--bm-subtle); display: inline-block; }
.bml-hero__actions { display: flex; gap: 10px; flex: none; max-width: 100%; }
.bml-hero__actions .bmd-btn { max-width: 240px; }
.bml-inline-link { background: none; border: 0; padding: 0; color: var(--bm-primary); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font: inherit; font-weight: 700; }
.bml-inline-link:hover { color: var(--bm-primary-hover); }

/* ---------- Sticky filter bar ---------- */
.bml-filters { position: sticky; top: 0; z-index: 1020; background: rgba(247, 249, 252, .9); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); padding: 12px 0; transition: box-shadow .3s var(--bm-ease), background-color .3s; }
.bml-filters.is-stuck { background: rgba(255, 255, 255, .95); box-shadow: 0 12px 24px -18px rgba(10, 37, 82, .35); }
.bml-filters__row { display: flex; align-items: center; gap: 12px; }
.bml-find { position: relative; flex: 0 0 240px; }
.bml-find__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--bm-subtle); display: flex; pointer-events: none; }
.bml-find input { width: 100%; height: 42px; border-radius: 999px; border: 1.5px solid var(--bm-line); background: #fff; padding: 0 16px 0 40px; font: 500 14px var(--bm-font); color: var(--bm-ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.bml-find input:focus { border-color: var(--bm-primary); box-shadow: 0 0 0 4px var(--bm-primary-ring); }
.bml-find:focus-within .bml-find__icon { color: var(--bm-primary); }

.bml-chips { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; min-width: 0; flex: 1; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 28px; }
.bml-chips::-webkit-scrollbar { display: none; }
.bml-chips__sep { width: 1px; height: 24px; background: var(--bm-line); flex: none; }
.bml-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 1.5px solid var(--bm-line); flex: none; }
.bml-seg .bml-chip { border: 0; height: 32px; background: transparent; }
.bml-seg .bml-chip.active { background: var(--bm-ink); color: #fff; box-shadow: 0 6px 14px -8px rgba(10, 37, 82, .7); }
.bml-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--bm-line); background: #fff; color: var(--bm-ink); font: 700 13.5px var(--bm-font); white-space: nowrap; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--bm-spring); }
.bml-chip:hover { border-color: var(--bm-primary); color: var(--bm-primary); }
.bml-seg .bml-chip:hover { color: var(--bm-primary); }
.bml-seg .bml-chip.active:hover { color: #fff; }
.bml-chip:active { transform: scale(.95); }
.bml-chip--toggle.active, #kmToggleBtn.active { background: var(--bm-primary); border-color: var(--bm-primary); color: #fff; }
.bml-chip--toggle.active .bml-live-dot { background: #fff; }
.bml-chip--toggle.active .bml-live-dot::after { border-color: #fff; }
.bml-chip[data-filter="rated"] svg { color: #F5A524; fill: currentColor; stroke: none; }
.bml-chip[data-filter="rated"].active svg { color: #fff; }

.bml-live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--bm-success); flex: none; display: inline-block; }
.bml-live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--bm-success); opacity: 0; animation: bml-ping 2s var(--bm-ease) infinite; }

/* Distance panel */
.bml-km { margin-top: 12px; display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; padding: 14px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow); animation: bmd-fade-down .35s var(--bm-ease); }
.bml-km[hidden] { display: none; }
.bml-km__presets { display: flex; gap: 8px; flex-wrap: wrap; }
.bml-km__preset { height: 34px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--bm-line); background: var(--bm-bg-soft); font: 700 13px var(--bm-font); color: var(--bm-ink); cursor: pointer; transition: all .2s; }
.bml-km__preset:hover { border-color: var(--bm-primary); color: var(--bm-primary); }
.bml-km__preset.active { background: var(--bm-primary); border-color: var(--bm-primary); color: #fff; }
.bml-km__slider { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; }
.bml-km__slider input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--bm-primary) var(--p, 100%), var(--bm-line) var(--p, 100%)); outline: none; }
.bml-km__slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--bm-primary); box-shadow: 0 4px 10px -2px rgba(0, 108, 253, .5); cursor: pointer; transition: transform .2s var(--bm-spring); }
.bml-km__slider input[type=range]::-webkit-slider-thumb:active { transform: scale(1.2); }
.bml-km__slider input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--bm-primary); cursor: pointer; }
.bml-km__value { min-width: 56px; text-align: center; font-weight: 800; color: var(--bm-primary); background: var(--bm-primary-soft); border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.bml-km__clear { background: none; border: 0; color: var(--bm-muted); font: 700 13px var(--bm-font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bml-km__clear:hover { color: var(--bm-danger-ink); }

/* ---------- Layout ---------- */
.bml-body { padding-top: 22px; }
.bml-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.bml-main { min-width: 0; }
.bml-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 28px; }
.bml-result-info { margin: 0; font-size: 14px; color: var(--bm-muted); font-weight: 600; }
.bml-reset { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--bm-danger-soft); color: var(--bm-danger-ink); font: 700 12.5px var(--bm-font); padding: 6px 12px; border-radius: 999px; cursor: pointer; animation: bmd-fade .3s var(--bm-ease); }
.bml-reset[hidden] { display: none; }

/* ---------- Business card ---------- */
.bml-list { display: flex; flex-direction: column; gap: 16px; }
.bml-card { position: relative; background: #fff; border: 1px solid var(--bm-line-soft); border-radius: 22px; padding: 20px; cursor: pointer; transition: transform .45s var(--bm-ease), box-shadow .45s var(--bm-ease), border-color .3s; box-shadow: var(--bm-shadow-sm); }
.bml-card[hidden] { display: none; }
.bml-card:hover { transform: translateY(-4px); box-shadow: var(--bm-shadow-lg); border-color: transparent; }
.bml-card.bml-anim { animation: bml-card-in .6s var(--bm-ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.bml-card.is-nearest { border: 1.5px solid rgba(31, 157, 85, .45); box-shadow: 0 18px 40px -26px rgba(31, 157, 85, .6); }

.bml-card__ribbon { display: none; position: absolute; top: -11px; left: 22px; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--bm-success-ink); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 6px 14px -6px rgba(19, 122, 67, .7); }
.bml-card__ribbon .bml-live-dot { background: #fff; }
.bml-card__ribbon .bml-live-dot::after { border-color: #fff; }
.bml-card.is-nearest .bml-card__ribbon { display: inline-flex; animation: bmd-fade-down .4s var(--bm-ease); }
.bml-card.is-nearest { margin-top: 8px; }

.bml-card__main { display: flex; gap: 18px; min-width: 0; }
.bml-card__logo { position: relative; flex: none; width: 88px; height: 88px; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, var(--bm-primary-soft), var(--bm-accent-soft)); display: flex; align-items: center; justify-content: center; text-decoration: none !important; transition: transform .5s var(--bm-spring); }
.bml-card:hover .bml-card__logo { transform: scale(1.05) rotate(-2deg); }
.bml-card__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; z-index: 1; }
.bml-card__initials { font-size: 28px; font-weight: 800; color: var(--bm-primary); letter-spacing: -.02em; }

.bml-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.bml-card__top { display: flex; align-items: flex-start; gap: 10px; }
.bml-card__name { flex: 1; min-width: 0; margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -.015em; color: var(--bm-ink); display: flex; align-items: center; gap: 8px; }
.bml-card__name a { color: inherit; text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; transition: color .2s; }
.bml-card__name a:hover { color: var(--bm-primary); }
.bml-verified { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--bm-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--bm-primary-soft); }
.bml-card__tools { display: flex; gap: 6px; flex: none; }
.bml-icon-btn { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--bm-line); background: #fff; color: var(--bm-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none !important; transition: all .25s var(--bm-ease); }
.bml-icon-btn:hover { color: var(--bm-primary); border-color: var(--bm-primary); background: var(--bm-primary-soft); transform: translateY(-2px); }

.bml-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 13.5px; }
.bml-rating { display: inline-flex; align-items: center; gap: 4px; background: var(--bm-success-ink); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 8px; border-radius: 8px; }
.bml-rating .bml-star, .bml-star { fill: currentColor; stroke: none; }
.bml-new { background: var(--bm-info-soft); color: var(--bm-primary); font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 8px; }
.bml-muted { color: var(--bm-muted); font-weight: 600; }
.bml-sep { width: 4px; height: 4px; border-radius: 50%; background: #C3CCD9; }
.bml-dist { display: inline-flex; align-items: center; gap: 4px; color: var(--bm-ink); font-weight: 800; }
.bml-dist svg { color: var(--bm-accent); }
.bml-card__addr { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--bm-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.bml-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.bml-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.bml-status__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; }
.bml-status.is-open { background: var(--bm-success-soft); color: var(--bm-success-ink); }
.bml-status.is-open .bml-status__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: bml-ping 2s var(--bm-ease) infinite; }
.bml-status.is-closed { background: var(--bm-danger-soft); color: var(--bm-danger-ink); }
.bml-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bm-bg-soft); color: var(--bm-text); border: 1px solid var(--bm-line-soft); }
.bml-tag--offer { background: var(--bm-accent-soft); color: var(--bm-accent); border-color: transparent; }

.bml-card__actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--bm-line); cursor: default; }
.bml-act { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 12px; font: 700 14px var(--bm-font); text-decoration: none !important; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .3s var(--bm-spring), box-shadow .3s var(--bm-ease), background-color .25s, color .25s, border-color .25s; }
.bml-act:hover { transform: translateY(-2px); }
.bml-act:active { transform: scale(.96); }
.bml-act--call { background: var(--bm-primary); color: #fff !important; box-shadow: 0 10px 20px -12px rgba(0, 108, 253, .8); }
.bml-act--call:hover { background: var(--bm-primary-hover); }
.bml-act--wa { background: #E9FBF0; color: #128C4B !important; }
.bml-act--wa:hover { background: #25D366; color: #fff !important; }
.bml-act--enq { background: var(--bm-accent-soft); color: var(--bm-accent) !important; }
.bml-act--enq:hover { background: var(--bm-accent); color: #fff !important; }
.bml-act--chat { background: #fff; border-color: var(--bm-line); color: var(--bm-ink) !important; }
.bml-act--chat:hover { border-color: var(--bm-primary); color: var(--bm-primary) !important; }
.bml-act--view { margin-left: auto; background: transparent; color: var(--bm-primary) !important; padding: 0 6px 0 12px; }
.bml-act--view svg { transition: transform .3s var(--bm-ease); }
.bml-card:hover .bml-act--view svg, .bml-act--view:hover svg { transform: translateX(4px); }

/* ---------- Show more / empty ---------- */
.bml-more { text-align: center; margin-top: 24px; }
.bml-more[hidden] { display: none; }
.bml-more__count { color: var(--bm-muted); font-weight: 600; }

.bml-empty { text-align: center; max-width: 560px; margin: 24px auto; background: #fff; border-radius: 28px; border: 1px solid var(--bm-line-soft); padding: 44px 28px; box-shadow: var(--bm-shadow-sm); }
.bml-empty[hidden] { display: none; }
.bml-empty--soft { margin: 0; max-width: none; padding: 36px 24px; }
.bml-empty .bmd-h3 { margin-bottom: 8px; }
.bml-empty p { margin: 0 auto 18px; max-width: 440px; line-height: 1.6; }
.bml-empty__art { position: relative; display: inline-flex; width: 96px; height: 96px; margin-bottom: 18px; }
.bml-empty__ring { position: absolute; inset: 0; border-radius: 50%; background: var(--bm-primary-soft); animation: bml-breathe 3s ease-in-out infinite; }
.bml-empty__icon { position: relative; margin: auto; width: 64px; height: 64px; border-radius: 20px; background: #fff; color: var(--bm-primary); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--bm-shadow); }
.bml-empty--soft .bml-empty__icon { margin-bottom: 14px; background: var(--bm-primary-soft); box-shadow: none; }
.bml-empty__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bml-empty__owner { margin: 22px 0 0 !important; padding-top: 18px; border-top: 1px dashed var(--bm-line); font-size: 14px; color: var(--bm-muted); }

/* ---------- Sidebar ---------- */
.bml-side__sticky { position: sticky; top: calc(var(--bm-header-h) + 84px); display: flex; flex-direction: column; gap: 16px; }
.bml-promo { position: relative; overflow: hidden; border-radius: 24px; padding: 24px; color: #DCE6F7; background: radial-gradient(120% 90% at 100% 0%, rgba(0, 175, 254, .35), transparent 55%), linear-gradient(160deg, var(--bm-ink), #071a3b); box-shadow: var(--bm-shadow-lg); }
.bml-promo::after { content: ''; position: absolute; width: 220px; height: 220px; right: -90px; bottom: -110px; border-radius: 50%; background: var(--bm-accent); opacity: .18; filter: blur(10px); }
.bml-promo__tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #9FB4D6; }
.bml-promo__icon { position: absolute; top: 20px; right: 20px; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .1); color: #fff; display: flex; align-items: center; justify-content: center; }
.bml-promo h3 { margin: 10px 60px 8px 0; font-size: 21px; line-height: 1.25; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.bml-promo p { font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.bml-promo ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.bml-promo li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #fff; }
.bml-promo li svg { color: #4ADE80; flex: none; }
.bml-promo .bmd-btn { position: relative; z-index: 1; }

.bml-tips { background: #fff; border-radius: 22px; border: 1px solid var(--bm-line-soft); padding: 20px; }
.bml-tips h4 { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: var(--bm-ink); }
.bml-tips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bml-tips li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--bm-text); }
.bml-tips li > span { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--bm-primary-soft); color: var(--bm-primary); display: flex; align-items: center; justify-content: center; }

.bml-app { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--bm-line-soft); color: var(--bm-ink) !important; text-decoration: none !important; transition: transform .3s var(--bm-ease), box-shadow .3s; }
.bml-app:hover { transform: translateY(-3px); box-shadow: var(--bm-shadow); }
.bml-app > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.bml-app small { color: var(--bm-muted); font-size: 12px; font-weight: 500; }
.bml-app__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--bm-ink); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Related categories ---------- */
.bml-related { margin-top: 44px; }
.bml-related__title { font-size: 20px; font-weight: 800; color: var(--bm-ink); margin: 0 0 14px; letter-spacing: -.01em; }
.bml-related__chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Keyframes ---------- */
@keyframes bml-card-in { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes bml-ping { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes bml-drift { from { transform: translate(0, 0); } to { transform: translate(-40px, 30px); } }
@keyframes bml-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .bml-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; }
}
@media (max-width: 991px) {
  .bml-layout { grid-template-columns: minmax(0, 1fr); }
  .bml-side__sticky { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .bml-side .bml-app { grid-column: 1 / -1; }
  .bml-find { flex-basis: 200px; }
}
@media (max-width: 767px) {
  .bml-hero { padding: 16px 0 20px; }
  .bml-crumbs ol { margin-bottom: 12px; font-size: 12px; }
  .bml-hero__title { margin-top: 10px; }
  .bml-hero__sub { font-size: 14px; }
  .bml-hero__row { align-items: stretch; }
  .bml-hero__actions { width: 100%; }
  .bml-hero__actions .bmd-btn:first-child { flex: 1; max-width: none; justify-content: flex-start; }
  .bml-hero__blob--a { width: 240px; height: 240px; }

  .bml-filters { padding: 10px 0; }
  .bml-filters__row { flex-direction: column; align-items: stretch; gap: 10px; }
  .bml-find { flex: none; }
  .bml-filters.is-stuck:not(:focus-within) .bml-find { display: none; }
  .bml-filters.is-stuck { padding: 8px 0; }
  .bml-chips { margin: 0 -20px; padding: 2px 28px 2px 20px; }
  .bml-chip { height: 36px; padding: 0 12px; font-size: 13px; }
  .bml-seg .bml-chip { height: 30px; }
  .bml-km { padding: 12px 14px; }

  .bml-body { padding-top: 14px; }
  .bml-list { gap: 14px; }
  .bml-card { padding: 16px; border-radius: 20px; }
  .bml-card:hover { transform: none; }
  .bml-card__main { gap: 14px; }
  .bml-card__logo { width: 64px; height: 64px; border-radius: 16px; }
  .bml-card__initials { font-size: 22px; }
  .bml-card__name { font-size: 16px; }
  .bml-card__name a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .bml-icon-btn { width: 32px; height: 32px; border-radius: 10px; }
  .bml-card__meta { font-size: 12.5px; }
  .bml-card__addr { font-size: 13px; -webkit-line-clamp: 1; }
  .bml-card__actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-top: 14px; padding-top: 14px; }
  .bml-act { flex-direction: column; height: auto; padding: 9px 2px; gap: 4px; font-size: 11.5px; border-radius: 12px; }
  .bml-act--view { display: none; }
  .bml-side__sticky { grid-template-columns: 1fr; }
  .bml-empty { padding: 34px 20px; border-radius: 22px; }
  .bml-related { margin-top: 32px; }
}
@media (max-width: 380px) {
  .bml-card__tools .bml-icon-btn:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bml-card.bml-anim, .bml-hero__blob, .bml-live-dot::after, .bml-status__dot::after, .bml-empty__ring { animation: none !important; }
}
