/* =====================================================================
   LOCALBUDDY — BROWSE TASKS (browse-task.php)
   Page-only stylesheet. Needs style.css (tokens, header, footer).
   No Bootstrap. Everything is prefixed .bt-
   ===================================================================== */

.bt-page { background: #fff; }
.bt [hidden] { display: none !important; }   /* [hidden] must win over display:flex/grid below */
.bt { --bt-line: #e3ebe5; --bt-soft: #eef8f1; --bt-card-shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 10px 26px rgba(16, 24, 40, .06); }
.bt-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.bt-muted { color: var(--lb-muted); font-size: 14.5px; margin: 0; }

/* ---------- Advertise banner ---------- */
.bt-ad {
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(120px 90px at 0% 100%, rgba(255,255,255,.12), transparent 70%),
    radial-gradient(140px 100px at 100% 100%, rgba(255,255,255,.10), transparent 70%),
    linear-gradient(90deg, #075a2b, #0b6b34 45%, #0a6230);
  box-shadow: 0 8px 20px rgba(11, 107, 52, .18);
}
.bt-ad:hover { color: #fff; }
.bt-ad-lead { display: flex; flex-direction: column; padding-right: 24px; border-right: 2px solid rgba(255,255,255,.75); }
.bt-ad-lead small { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .95; }
.bt-ad-lead strong { font-size: 18.5px; font-weight: 800; line-height: 1.15; max-width: 290px; }
.bt-ad-copy { font-size: 15px; line-height: 1.4; max-width: 340px; opacity: .95; }
.bt-ad-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--lb-yellow);
  color: #0d3b1f;
  font-size: 16px; font-weight: 800;
  box-shadow: 0 4px 0 #d9a908;
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.bt-ad:hover .bt-ad-btn { transform: translateY(-1px); box-shadow: 0 5px 0 #d9a908; }

/* ---------- Hero ---------- */
.bt-hero {
  position: relative;
  margin-top: 8px;
  background:
    radial-gradient(600px 160px at 15% 100%, rgba(11,107,52,.07), transparent 70%),
    radial-gradient(700px 200px at 85% 100%, rgba(11,107,52,.08), transparent 70%),
    linear-gradient(180deg, #fff 0%, #f1faf3 100%);
  /* x: clip decorations · y: visible so the location dropdown can open below the hero */
  overflow-x: clip;
  overflow-y: visible;
  z-index: 20;
}
.bt-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 220px; }
.bt-hero-text { flex: 1 1 auto; min-width: 0; max-width: 940px; padding: 26px 0 24px 40px; }
.bt-hero h1 { font-size: clamp(31.5px, 3.2vw, 45.5px); line-height: 1.05; margin: 0 0 6px; letter-spacing: -.03em; }
.bt-hero h1 span { color: var(--lb-green); }
.bt-hero p { font-size: clamp(16px, 1.15vw, 18.5px); color: var(--lb-text); margin: 0 0 18px; font-weight: 500; }
.bt-hero-mascot { flex: 0 0 auto; align-self: flex-end; margin-right: 24px; }
.bt-hero-mascot img { display: block; width: 210px; height: auto; }

/* Search pill */
.bt-search {
  display: flex; align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 2px 4px rgba(16,24,40,.04), 0 12px 28px rgba(16,24,40,.09);
}
.bt-search-q { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.bt-search-q > i { color: var(--lb-green); font-size: 18.5px; }
.bt-search input {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--lb-ink); padding: 10px 0;
}
.bt-search input::placeholder { color: #475467; }
.bt-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.bt-search-loc {
  position: relative;
  flex: 0 0 230px;
  display: flex; align-items: center; gap: 8px;
  margin-left: 12px; padding: 0 10px 0 14px;
  border-left: 1px solid var(--bt-line);
}
.bt-search-loc > i.fa-map-marker-alt { color: var(--lb-green); font-size: 17.5px; }
.bt-search-loc input { font-weight: 700; padding-right: 26px; text-overflow: ellipsis; }
.bt-search-loc input::placeholder { color: var(--lb-ink); font-weight: 700; }
.bt-loc-caret { position: absolute; right: 12px; pointer-events: none; color: var(--lb-ink); font-size: 13.5px; }
.bt-loc-clear { position: absolute; right: 30px; border: 0; background: transparent; color: var(--lb-muted); cursor: pointer; padding: 6px; }
.bt-loc-list {
  position: absolute; top: calc(100% + 12px); left: 0; right: -110px; z-index: 30;
  max-height: 300px; overflow: auto;
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--bt-line); border-radius: 14px;
  box-shadow: var(--lb-shadow-lg);
}
.bt-loc-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 9px; cursor: pointer; font-size: 15px; }
.bt-loc-list li small { color: var(--lb-muted); white-space: nowrap; }
.bt-loc-list li[aria-selected="true"], .bt-loc-list li:hover { background: var(--bt-soft); }
.bt-loc-list li.bt-loc-empty { cursor: default; color: var(--lb-muted); }
.bt-loc-list li.bt-loc-empty:hover { background: transparent; }
.bt-search-btn {
  flex: 0 0 auto;
  border: 0; cursor: pointer;
  padding: 11px 28px;
  border-radius: 10px;
  background: var(--lb-green); color: #fff;
  font-size: 16.5px; font-weight: 700;
  transition: background .15s ease;
}
.bt-search-btn:hover { background: var(--lb-green-dark); }

/* ---------- Body grid ---------- */
.bt-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: start;
  padding-top: 22px; padding-bottom: 48px;
}

/* Filters card */
.bt-filters {
  position: sticky; top: calc(var(--lb-header-h) + 14px);
  max-height: calc(100vh - var(--lb-header-h) - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background: #fff;
  border: 1px solid #edf1ee;
  border-radius: 16px;
  padding: 16px 14px 18px;
  box-shadow: var(--bt-card-shadow);
}
.bt-filters-title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 4px; padding: 0 6px 10px; border-bottom: 1px solid var(--bt-line); }
.bt-filters-title i { color: var(--lb-green); font-size: 17.5px; }
.bt-group { border-bottom: 1px solid var(--bt-line); }
.bt-group summary {
  display: flex; align-items: center; gap: 10px;
  list-style: none; cursor: pointer;
  padding: 12px 6px;
  font-size: 16px; font-weight: 800; color: var(--lb-ink);
}
.bt-group summary::-webkit-details-marker { display: none; }
.bt-group summary > i { width: 18px; text-align: center; color: var(--lb-green); font-size: 16.5px; }
.bt-group summary::after {
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  margin-left: auto; font-size: 12.5px; color: var(--lb-ink); transition: transform .2s ease;
}
.bt-group[open] summary::after { transform: rotate(180deg); }
.bt-options { padding: 0 4px 12px 12px; display: grid; gap: 2px; }
.bt-check { display: flex; align-items: center; gap: 10px; padding: 5px 4px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--lb-text); }
.bt-check span { min-width: 0; overflow-wrap: anywhere; }
.bt-check:hover { background: var(--lb-bg-soft); }
.bt-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--lb-green); flex: 0 0 auto; cursor: pointer; }

/* Category list: searchable + scrollable (works for 100+ categories) */
.bt-cat-find {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 6px; padding: 0 10px;
  border: 1px solid #d6dfd9; border-radius: 9px; background: #fff;
}
.bt-cat-find i { color: var(--lb-muted); font-size: 13.5px; }
.bt-cat-find input { width: 100%; border: 0; outline: 0; padding: 7px 0; font-size: 14.5px; background: transparent; }
.bt-cat-find:focus-within { border-color: var(--lb-green); box-shadow: 0 0 0 3px rgba(11,107,52,.10); }
.bt-cat-list { display: grid; gap: 2px; max-height: 268px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 2px; }
.bt-cat-list .bt-check.is-hidden { display: none; }
.bt-cat-none { font-size: 14px; color: var(--lb-muted); padding: 6px 4px; margin: 0; }
.bt-cat-picked { font-size: 13.5px; color: var(--lb-green); font-weight: 700; margin: 4px 4px 0; }
.bt-check input:checked + span { color: var(--lb-ink); font-weight: 700; }
.bt-loc-note { padding: 2px 4px 6px; }
.bt-filters.bt-no-loc .bt-check input[name="radius"] { pointer-events: none; }
.bt-filters.bt-no-loc .bt-check:has(input[name="radius"]) { opacity: .45; cursor: not-allowed; }
.bt-clear {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: calc(100% - 24px); margin: 16px auto 0;
  padding: 9px 14px;
  border: 1.5px solid var(--lb-green); border-radius: 10px;
  background: #fff; color: var(--lb-green);
  font-size: 15.5px; font-weight: 800; cursor: pointer;
  transition: background .15s ease;
}
.bt-clear:hover { background: var(--bt-soft); }
.bt-filter-toggle { display: none; }

/* ---------- Results ---------- */
.bt-results { min-width: 0; }
.bt-results-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.bt-results-head h2 { font-size: 21.5px; margin: 0; }
.bt-results-head h2 span { color: var(--lb-green); }
.bt-sort { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; font-size: 15px; }
.bt-sort select {
  appearance: none; -webkit-appearance: none;
  min-width: 170px;
  padding: 8px 36px 8px 12px;
  font-size: 15px;
  border: 1px solid var(--bt-line); border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23101828' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
  font-weight: 700; cursor: pointer;
  box-shadow: var(--lb-shadow-sm);
}
.bt-single {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 14px;
  border-radius: 12px; background: #fff8e1; border: 1px solid #f6dd8a;
  font-size: 14.5px; font-weight: 600;
}
.bt-single i { color: #b88700; }
.bt-single button { border: 0; background: none; color: var(--lb-green); font-weight: 800; cursor: pointer; text-decoration: underline; }

.bt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bt-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 10px 18px 10px 10px;
  background: #fff;
  border: 1px solid #edf1ee;
  border-radius: 14px;
  box-shadow: var(--bt-card-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.bt-card:hover { box-shadow: 0 4px 10px rgba(16,24,40,.06), 0 18px 36px rgba(16,24,40,.09); transform: translateY(-1px); }
.bt-icon {
  display: grid; place-items: center;
  width: 88px; height: 76px;
  border-radius: 10px;
  background: var(--bt-soft);
  color: var(--lb-green);
  font-size: 31.5px;
  overflow: hidden;
}
.bt-icon .bt-glyph { font-family: "Font Awesome 6 Free"; font-weight: 900; line-height: 1; }
.bt-icon img { width: 100%; height: 100%; object-fit: cover; }
.bt-main { min-width: 0; }
.bt-title { margin: 0 0 4px; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.bt-title button { all: unset; cursor: pointer; }
.bt-title button:hover { color: var(--lb-green); }
.bt-title button:focus-visible { outline: 3px solid rgba(11,107,52,.35); outline-offset: 2px; border-radius: 4px; }
.bt-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 4px; padding: 0; list-style: none; font-size: 14px; color: var(--lb-text); }
.bt-meta li { display: inline-flex; align-items: center; gap: 6px; }
.bt-meta i { color: var(--lb-ink); font-size: 13.5px; }
.bt-meta .bt-budget { color: var(--lb-green); font-weight: 800; }
.bt-desc { margin: 0; font-size: 15px; color: var(--lb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-pills { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; align-self: start; margin-top: 8px; }
.bt-pill {
  display: inline-block;
  padding: 4px 12px;
  border: 1.5px solid var(--lb-green);
  border-radius: 8px;
  color: var(--lb-green);
  font-size: 13px; font-weight: 800;
  white-space: nowrap;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis;
}
.bt-pill-more { border-style: dashed; }
.bt-view {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border: 0; border-radius: 10px;
  background: var(--lb-green); color: #fff;
  font-size: 15.5px; font-weight: 800; cursor: pointer;
  box-shadow: 0 3px 0 var(--lb-green-dark);
  transition: background .15s ease, transform .15s ease;
  white-space: nowrap;
}
.bt-view:hover { background: var(--lb-green-dark); transform: translateY(-1px); }
.bt-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 800; vertical-align: middle; letter-spacing: .02em; }
.bt-tag-own { background: #eef4ff; color: #3538cd; }
.bt-tag-applied { background: var(--bt-soft); color: var(--lb-green); }

/* Skeleton */
.bt-skeleton { pointer-events: none; }
.bt-skeleton > span, .bt-skeleton b, .bt-skeleton i { display: block; border-radius: 8px; background: linear-gradient(90deg, #eef2ef 25%, #f6f8f6 50%, #eef2ef 75%); background-size: 200% 100%; animation: bt-shine 1.2s infinite linear; }
.bt-skeleton > span { width: 88px; height: 76px; border-radius: 10px; }
.bt-skeleton b { width: 55%; height: 16px; margin-bottom: 10px; }
.bt-skeleton i { width: 80%; height: 12px; margin-bottom: 8px; }
@keyframes bt-shine { to { background-position: -200% 0; } }

/* Empty / error */
.bt-empty { text-align: center; padding: 38px 20px; border: 1px dashed #cfe0d3; border-radius: 14px; background: var(--lb-bg-soft); }
.bt-empty i { font-size: 29.5px; color: var(--lb-green); margin-bottom: 8px; }
.bt-empty h3 { font-size: 18px; margin: 0 0 6px; }
.bt-empty p { color: var(--lb-muted); margin: 0 0 14px; font-size: 15.5px; }
.bt-empty a, .bt-empty button { display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 10px; border: 0; background: var(--lb-green); color: #fff; font-weight: 700; font-size: 15.5px; cursor: pointer; }

/* ---------- Pagination ---------- */
.bt-pager {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  width: fit-content; margin: 22px auto 0;
  padding: 8px 14px;
  background: #fff; border-radius: 14px;
  box-shadow: var(--bt-card-shadow);
}
.bt-pager button, .bt-pager span {
  min-width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 15.5px; font-weight: 800;
}
.bt-pager button { border: 1px solid var(--bt-line); background: #fff; color: var(--lb-ink); cursor: pointer; }
.bt-pager button:hover:not(:disabled) { border-color: var(--lb-green); color: var(--lb-green); }
.bt-pager button[aria-current="page"] { background: var(--lb-green); border-color: var(--lb-green); color: #fff; }
.bt-pager button:disabled { opacity: .35; cursor: default; }
.bt-pager .bt-arrow { border: 0; color: var(--lb-green); font-size: 16.5px; }
.bt-pager .bt-page-of { font-size: 15.5px; padding: 0 8px; }
.bt-pager .bt-dots { border: 0; letter-spacing: 2px; }

/* ---------- Dialog ---------- */
.bt-dialog {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(16,24,40,.25);
  color: var(--lb-ink);
}
.bt-dialog::backdrop { background: rgba(16, 24, 40, .55); }
.bt-dialog-box { position: relative; padding: 22px 24px 22px; }
.bt-dialog-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: #f2f4f7; color: var(--lb-ink); cursor: pointer; font-size: 15.5px;
}
.bt-dialog-close:hover { background: #e4e7ec; }
.bt-d-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 40px 8px 0; }
.bt-detail h2, .bt-apply h2 { font-size: 21.5px; margin: 0 40px 10px 0; line-height: 1.25; }
.bt-d-meta { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--lb-text); }
.bt-d-meta i { color: var(--lb-green); margin-right: 4px; }
.bt-d-meta #btDBudget { font-weight: 800; color: var(--lb-green); }
.bt-d-text { white-space: pre-line; font-size: 16px; line-height: 1.6; margin: 0 0 14px; overflow-wrap: anywhere; }
.bt-d-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 16px; }
.bt-d-photos:empty { display: none; }
.bt-d-photos a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #f2f4f7; }
.bt-d-photos img { width: 100%; height: 100%; object-fit: cover; }
.bt-d-owner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--lb-bg-soft); margin-bottom: 16px; }
.bt-d-owner img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #fff; }
.bt-d-owner strong { display: block; font-size: 15.5px; }
.bt-d-owner small { color: var(--lb-muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bt-d-profile { margin-left: auto; font-weight: 800; font-size: 14.5px; }
.bt-d-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.bt-d-state { font-weight: 800; color: var(--lb-green); padding: 8px 4px; font-size: 15.5px; }
.bt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  border: 1.5px solid var(--lb-green); background: var(--lb-green); color: #fff;
  font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none;
}
.bt-btn:hover { background: var(--lb-green-dark); border-color: var(--lb-green-dark); color: #fff; }
.bt-btn:disabled { opacity: .6; cursor: wait; }
.bt-btn-ghost { background: #fff; color: var(--lb-green); }
.bt-btn-ghost:hover { background: var(--bt-soft); color: var(--lb-green); border-color: var(--lb-green); }

/* Apply form */
.bt-back { border: 0; background: none; color: var(--lb-green); font-weight: 800; cursor: pointer; padding: 0; margin-bottom: 12px; }
.bt-apply-for { margin: -4px 0 16px; color: var(--lb-muted); }
.bt-apply-for strong { color: var(--lb-ink); }
.bt-field { display: block; margin-bottom: 14px; }
.bt-back { font-size: 14.5px; }
.bt-apply-for { font-size: 15px; }
.bt-field > span, .bt-file > span { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.bt-field b { color: var(--lb-danger); }
.bt-field small, .bt-file small { display: block; font-weight: 500; color: var(--lb-muted); font-size: 13.5px; }
.bt-field textarea {
  width: 100%; resize: vertical; min-height: 140px;
  padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 10px; font-size: 15.5px; line-height: 1.5;
}
.bt-field textarea:focus { outline: 0; border-color: var(--lb-green); box-shadow: 0 0 0 4px rgba(11,107,52,.12); }
.bt-count { text-align: right; }
.bt-files { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.bt-file { display: block; padding: 12px; border: 1px dashed #c9d6cc; border-radius: 12px; background: #fbfdfb; }
.bt-file-wide { grid-column: 1 / -1; }
.bt-file input { width: 100%; font-size: 14.5px; }
.bt-form-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fef3f2; color: #b42318; font-weight: 600; font-size: 15.5px; }
.bt-apply-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Toast */
.bt-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 2000;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 20px; border-radius: 12px;
  background: #101828; color: #fff; font-weight: 600; font-size: 15.5px;
  box-shadow: var(--lb-shadow-lg);
}
.bt-toast.is-ok { background: var(--lb-green); }
.bt-toast.is-err { background: #b42318; }

body.bt-lock { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .bt-hero-text { padding-left: 0; }
  .bt-hero-mascot { margin-right: 0; }
  .bt-hero-mascot img { width: 180px; }
  .bt-card { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .bt-icon { width: 80px; height: 70px; font-size: 29.5px; }
  .bt-skeleton > span { width: 80px; height: 70px; }
  .bt-pills { grid-column: 2; grid-row: 2; flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: -10px; }
  .bt-view { grid-column: 3; grid-row: 1 / span 2; }
  .bt-ad { grid-template-columns: 1fr auto; }
  .bt-ad-copy { display: none; }
}

@media (max-width: 991.98px) {
  .bt-body { grid-template-columns: 1fr; gap: 14px; }
  .bt-filter-toggle {
    display: inline-flex; align-items: center; gap: 10px; justify-self: start;
    padding: 9px 16px; border-radius: 10px;
    border: 1px solid var(--bt-line); background: #fff;
    font-weight: 800; font-size: 15.5px; cursor: pointer; box-shadow: var(--lb-shadow-sm);
  }
  .bt-filter-toggle i { color: var(--lb-green); }
  .bt-filter-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--lb-green); color: #fff; font-size: 13.5px; }
  .bt-filters { position: static; display: none; }
  .bt-filters.is-open { display: block; }
  .bt-search-loc { flex-basis: 200px; }
}

@media (max-width: 767px) {
  .bt-wrap { padding: 0 16px; }
  .bt-ad { grid-template-columns: 1fr; gap: 10px; padding: 12px 14px; }
  .bt-ad-lead { border-right: 0; padding-right: 0; }
  .bt-ad-lead strong { font-size: 16.5px; }
  .bt-ad-btn { justify-content: center; font-size: 15px; padding: 9px 14px; }
  .bt-hero-inner { min-height: 0; }
  .bt-hero-text { padding: 20px 0 18px; }
  .bt-hero-mascot { position: absolute; right: -6px; top: 6px; opacity: .95; }
  .bt-hero-mascot img { width: 96px; }
  .bt-hero h1 { font-size: 28.5px; }
  .bt-hero p { font-size: 15.5px; }
  .bt-hero h1, .bt-hero p { padding-right: 84px; }
  .bt-search { flex-wrap: wrap; padding: 8px; gap: 6px; border-radius: 14px; }
  .bt-search-q { flex: 1 1 100%; padding: 0 6px; border-bottom: 1px solid var(--bt-line); }
  .bt-search-loc { flex: 1 1 100%; margin: 0; padding: 0 6px; border-left: 0; }
  .bt-loc-list { right: 0; }
  .bt-search-btn { flex: 1 1 100%; padding: 11px; font-size: 16px; }
  .bt-results-head h2 { font-size: 18.5px; }
  .bt-sort select { min-width: 0; }
  .bt-card { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 12px; padding: 10px; }
  .bt-icon { width: 56px; height: 56px; font-size: 23.5px; border-radius: 10px; }
  .bt-skeleton > span { width: 56px; height: 56px; }
  .bt-title { font-size: 16.5px; }
  .bt-meta { gap: 3px 12px; font-size: 13.5px; }
  .bt-desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14.5px; }
  .bt-pills { grid-column: 1 / -1; grid-row: auto; margin: 0; }
  .bt-view { grid-column: 1 / -1; grid-row: auto; justify-content: center; padding: 9px; font-size: 15px; }
  .bt-pager { gap: 4px; padding: 6px; }
  .bt-pager button, .bt-pager span { min-width: 30px; height: 30px; font-size: 14.5px; }
  .bt-pager .bt-page-of { display: none; }
  .bt-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .bt-dialog-box { padding: 18px 14px; }
  .bt-detail h2, .bt-apply h2 { font-size: 19.5px; }
  .bt-files { grid-template-columns: 1fr; }
  .bt-d-actions .bt-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .bt-card, .bt-view, .bt-ad-btn { transition: none; }
  .bt-skeleton > span, .bt-skeleton b, .bt-skeleton i { animation: none; }
}
