/* BusinessCatalogue.bg — страница „Каталог“ (design tokens на сайта) */

body {
  background: #F5F8FB;
}

.cat-hero {
  padding: 112px 24px 26px;
}
.cat-container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}
.cat-hero-head {
  text-align: center;
  margin-bottom: 24px;
}
.cat-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #1A6FB5;
  font-size: 13px;
  font-weight: 600;
  font-family: Raleway, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cat-hero-eyebrow i { font-size: 13px; }
.cat-hero-head h1 {
  margin: 0 0 10px;
  font-family: Raleway, sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: #253141;
}
.cat-hero-head h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #1A6FB5, #2279C9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cat-hero-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #6B7284;
}

/* ===== SearchFilters — голямо поле за търсене ===== */
.cat-search {
  display: flex;
  gap: 10px;
  max-width: 1008px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #E4EAF1;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(37, 44, 65, .08);
  padding: 8px;
}
.cat-search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.cat-search-field + .cat-search-field {
  flex: 0 1 250px;
  border-left: 1px solid #EDF1F5;
}
.cat-search-field i {
  position: absolute;
  left: 14px;
  color: #1A6FB5;
  font-size: 15px;
  pointer-events: none;
}
.cat-search-field input,
.cat-search-field select {
  width: 100%;
  height: 48px;
  border: 0;
  background: transparent;
  padding: 0 14px 0 40px;
  font-size: 15px;
  font-family: inherit;
  color: #253141;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.cat-search-field input::placeholder {
  color: #646E7D;
}
.cat-search-field select {
  cursor: pointer;
}
.cat-search-btn {
  flex: none;
  height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 8px;
  background: #1A6FB5;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .18s ease;
}
.cat-search-btn:hover { background: #4A9BD8; }

/* ===== Searchable населени места (combobox) ===== */
.cat-city-native { display: none; }
.city-dd {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 70;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #E4EAF1;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(37, 44, 65, .16);
  max-height: 268px;
  overflow: auto;
}
.city-dd-i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #253141;
  cursor: pointer;
}
.city-dd-i span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-dd-t {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.city-dd-t--gr { background: #EAF6FF; color: #1A6FB5; }
.city-dd-t--sl { background: #EEF3F8; color: #7A8499; }
.city-dd-t--ot { background: #F1EAFD; color: #8B5CF6; }
.city-dd-i.is-sel,
.city-dd-i:hover { background: #F0F7FF; color: #1A6FB5; }
.city-dd-empty {
  padding: 12px;
  font-size: 13.5px;
  color: #646E7D;
  text-align: center;
}

/* ===== Layout: sidebar + резултати ===== */
.cat-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 6px 24px 60px;
}

/* ===== CategorySidebar ===== */
.cat-side-toggle {
  display: none;
}
.cat-sidebar {
  flex: none;
  width: 300px;
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid #EDF1F5;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(37, 44, 65, .06);
  overflow: hidden;
}
.cat-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  padding: 15px 18px;
  font-family: Raleway, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #253141;
  border-bottom: 1px solid #EDF1F5;
}
.cat-side-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.cat-side-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #F0F4F8;
  color: #55607A;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cat-side-close:hover { background: #E2EAF3; color: #253141; }
.cat-side-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 240px;
  padding: 5px 6px 5px 10px;
  border-radius: 8px;
  background: #EFF6FD;
  color: #253141;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid #D9EAF9;
}
.cat-side-active.is-hidden { display: none; }
.cat-side-active-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-side-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #1A6FB5;
  color: #fff;
  font-size: 10px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.cat-side-clear:hover { background: #38A7F2; transform: rotate(90deg); }
.cat-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(23, 28, 41, .48);
  cursor: pointer;
}
.cat-side-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}
.cat-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 11px 16px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 700;
  color: #253141;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cat-side-item:hover { background: #F7FAFD; color: #1b2634; }
.cat-side-item.is-active { background: #EFF6FD; color: #253141; }
.cat-side-item .cat-side-ico {
  flex: none;
  width: 28px;
  height: 28px;
  object-fit: contain;
  object-position: center;
}
.cat-side-ico--fa {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #1A6FB5;
}
.cat-side-count {
  flex: none;
  font-size: 11px;
  color: #646E7D;
  background: #F0F4F8;
  border-radius: 10px;
  padding: 2px 7px;
}
.cat-side-caret {
  flex: none;
  font-size: 12px;
  color: #646E7D;
  transition: transform .2s ease;
}
.cat-side-item.is-open .cat-side-caret { transform: rotate(180deg); }
.cat-subs {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height .35s ease, opacity .3s ease, padding .3s ease, visibility 0s linear .35s;
}
.cat-side-item.is-open + .cat-subs {
  max-height: 900px;
  padding: 0 0 6px;
  opacity: 1;
  visibility: visible;
  transition: max-height .35s ease, opacity .3s ease, padding .3s ease;
}

.cat-side-item span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-sub-item span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-sub-count {
  flex: none;
  font-size: 10px;
  color: #646E7D;
  background: #F0F4F8;
  border-radius: 9px;
  padding: 1px 6px;
}
.cat-side-count,
.cat-side-caret {
  flex: none;
}
.cat-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 16px 8px 58px;
  font-size: 13px;
  font-family: inherit;
  color: #646E7D;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease;
}
.cat-sub-item:hover { color: #253141; }
.cat-sub-item.is-active { color: #1A6FB5; font-weight: 600; }
.cat-sub-item { position: relative; }
.cat-sub-item::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background .15s ease;
}
.cat-sub-item:hover::before { background: #E4EDF6; }
.cat-sub-item.is-active::before { background: #1A6FB5; }
.cat-side-list li:not(:first-child) .cat-side-item { border-top: 1px solid #F2F6FA; }
.cat-side-list li:not(:first-child) .cat-side-item.is-open { border-top-color: transparent; }

/* ===== SearchFilters — хоризонтална лента ===== */
.cat-results {
  flex: 1;
  min-width: 0;
}
.cat-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  border: 1px solid #EDF1F5;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(37, 44, 65, .06);
  padding: 12px;
}
.cat-fsel {
  position: relative;
}
.cat-fsel select {
  height: 44px;
  min-width: 150px;
  border: 1px solid #DEE5EC;
  border-radius: 6px;
  background: #fff;
  padding: 0 34px 0 13px;
  font-size: 14px;
  font-family: inherit;
  color: #253141;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cat-fsel select:focus {
  border-color: #1A6FB5;
  box-shadow: 0 0 0 3px rgba(77, 183, 254, .15);
}
.cat-fsel i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #646E7D;
  pointer-events: none;
}
.cat-fsel--sort { margin-left: auto; }
.cat-fsel--sort select { font-weight: 600; }
.cat-total {
  font-size: 13px;
  color: #646E7D;
  padding: 0 6px;
  white-space: nowrap;
}
.cat-total b { color: #253141; }

/* ===== BusinessGrid ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.biz-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid #E9EEF4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(37, 44, 65, .07);
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.biz-card:hover,
.biz-card:focus-visible {
  transform: translateY(-6px);
  border-color: #1A6FB5;
  box-shadow: 0 26px 60px rgba(37, 44, 65, .18);
}
.biz-card:focus-visible { outline: 3px solid rgba(77, 183, 254, .35); outline-offset: 2px; }

.biz-media {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #253141;
}
.biz-media-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.biz-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 26, 42, .05) 30%, rgba(18, 26, 42, .55));
  pointer-events: none;
}
.biz-card:hover .biz-media-bg { transform: scale(1.1); }
.biz-logo {
  position: relative;
  z-index: 1;
  font-family: Raleway, sans-serif;
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .95;
}
.biz-logo--over { font-size: 40px; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); opacity: 1; }
.biz-card.has-logo .biz-media { background: linear-gradient(135deg, #EEF4FA, #DBE7F4); }
.biz-titleRow {
  display: flex;
  align-items: center;
  gap: 14px;
}
.biz-titleRow .biz-mark {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff center/contain no-repeat;
  border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(37, 44, 65, .18);
}
.biz-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #FFB627;
  color: #3a2c00;
  font-size: 12px;
  font-weight: 700;
}
.biz-badge i { font-size: 12px; }
.biz-fav {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #646E7D;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease, transform .15s ease;
}
.biz-fav:hover { transform: scale(1.08); color: #E14D2A; }
.biz-fav.is-saved { color: #E14D2A; }

.biz-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 22px 22px;
  min-width: 0;
}
.biz-name {
  margin: 0;
  font-family: Raleway, sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #253141;
  line-height: 1.25;
  min-width: 0;
  transition: color .2s ease;
}
.biz-card:hover .biz-name { color: #1A6FB5; }
.biz-rating { display: flex; align-items: center; gap: 12px; }
.biz-score {
  background: #EAF4FF;
  color: #155E9A;
  border: 1px solid #CFE6FA;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 700;
}
.biz-stars { color: #FFB627; font-size: 13px; letter-spacing: 1px; }
.biz-stars i.fal { color: #D8DEE7; }
.biz-reviews { font-size: 13px; color: #646E7D; }
.biz-noscore { font-size: 13.5px; color: #646E7D; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #F0F4F8; }
.biz-noscore i { color: #D8DEE7; }

.biz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-chip { font-size: 12.5px; border-radius: 999px; padding: 5px 12px; }
.biz-chip--cat { background: #4c97fd; color: #fff; }
.biz-chip--sub { background: #F0F4F8; color: #566985; }
.biz-chip--loc { background: #F0F4F8; color: #566985; display: inline-flex; align-items: center; gap: 6px; }
.biz-chip--loc i { color: #1A6FB5; font-size: 12px; }

.biz-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #566985;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.7em * 2);
}

.biz-details {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid #EDF1F5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}
.biz-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #566985;
  min-width: 0;
}
.biz-details li > i { color: #1A6FB5; width: 16px; text-align: center; flex: none; }
.biz-details li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-details a { color: #253141; text-decoration: none; }
.biz-details a:hover { color: #1A6FB5; }
.biz-addr { color: #1A6FB5; border-bottom: 1px dashed #B9D9F5; }
.biz-addr:hover { color: #2279C9; border-bottom-style: solid; }
.biz-addr i { font-size: 11px; margin-left: 4px; }

.biz-block { display: block; }
.biz-block-h {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #646E7D;
  display: flex;
  align-items: center;
  gap: 8px;
}
.biz-block-h i { color: #1A6FB5; font-size: 13px; }

.biz-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.biz-services li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13.5px;
  color: #566985;
  border-bottom: 1px dashed #EDF1F5;
}
.biz-services li span { min-width: 0; }
.biz-service-price { color: #1A6FB5; font-weight: 700; white-space: nowrap; }

.biz-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.biz-hours li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
  color: #566985;
}
.biz-hours li b { color: #253141; font-weight: 600; }
.biz-hours li.is-closed b { color: #C0392B; }

.biz-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.biz-gallery img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform .3s ease, box-shadow .3s ease;
}
.biz-gallery img:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(37, 44, 65, .18); }

.biz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #EDF1F5;
}
.biz-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #253141;
  text-decoration: none;
}
.biz-phone i { color: #1A6FB5; font-size: 15px; }
.biz-phone:hover { color: #1A6FB5; }
.biz-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: #1A6FB5;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}
.biz-btn i { font-size: 13px; transition: transform .18s ease; }
.biz-card:hover .biz-btn { background: #4A9BD8; box-shadow: 0 10px 22px rgba(77, 183, 254, .45); }
.biz-card:hover .biz-btn i { transform: translateX(4px); }
.biz-btn:hover { background: #4A9BD8; }

/* ===== Празно състояние ===== */
.cat-empty {
  display: none;
  text-align: center;
  background: #fff;
  border: 1px dashed #DEE5EC;
  border-radius: 10px;
  padding: 44px 20px;
  margin-top: 20px;
  color: #646E7D;
}
.cat-empty.is-visible { display: block; }
.cat-empty i { font-size: 34px; color: #B9CBE0; margin-bottom: 10px; display: block; }
.cat-empty h2 { margin: 0 0 6px; font-family: Raleway, sans-serif; font-size: 18px; color: #253141; }
.cat-empty p { margin: 0; font-size: 14px; }

/* ===== Pagination ===== */
.cat-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
}
.pg-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #DEE5EC;
  border-radius: 6px;
  background: #fff;
  color: #566985;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
}
.pg-btn:hover:not(:disabled):not(.is-active) { background: #F0F4F8; }
.pg-btn.is-active {
  background: #1A6FB5;
  border-color: #1A6FB5;
  color: #fff;
  font-weight: 600;
}
.pg-btn:disabled { opacity: .45; cursor: default; }

/* ===== Responsive ===== */
@media only screen and (max-width: 1024px) {
  .cat-side-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    border: 1px solid #DEE5EC;
    border-radius: 8px;
    background: #fff;
    color: #253141;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    padding: 13px 16px;
    margin-bottom: 14px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(37, 44, 65, .06);
  }
  .cat-side-toggle i { color: #1A6FB5; }
  .cat-side-toggle i { transition: transform .2s ease; }
  .cat-side-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
  /* Панелът с категории заема естествено място в подредбата (in-flow),
     вместо да пречи като overlay — съдържанието се измества. */
  .cat-layout {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
  }
  .cat-backdrop { display: none; }
  .cat-side-toggle { flex: 1 1 100%; }
  .cat-sidebar {
    display: none;
    position: sticky;
    top: 88px;
    flex: 0 0 280px;
    width: auto;
    max-width: none;
    margin: 0 24px 0 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(37, 44, 65, .06);
    overflow: hidden;
  }
  .cat-sidebar.is-open { display: block; }
  .cat-side-close { display: flex; }
  .cat-side-active { max-width: 180px; }
  .cat-side-list { max-height: calc(100vh - 200px); }
  /* Резултатите заемат цял ред под бутона „Категории“ — иначе basis:0
     ги набива до самия бутон (100% ширина) и колоната се срива. */
  .cat-results { flex: 1 1 100%; width: auto; min-width: 0; }
  /* Когато панелът с категории е отворен, резултатите застават до него. */
  .cat-sidebar.is-open ~ .cat-results { flex: 1 1 0; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

@media only screen and (max-width: 720px) {
  .cat-sidebar {
    position: static;
    flex: 1 1 100%;
    margin: 0 0 16px;
  }
  .cat-results { flex: 1 1 100%; }
  /* на телефони панелът е на цял ред — резултатите остават под него */
  .cat-sidebar.is-open ~ .cat-results { flex: 1 1 100%; }
  .cat-side-list { max-height: none; }
}
@keyframes catFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media only screen and (max-width: 640px) {
  .cat-hero { padding: 100px 16px 22px; }
  .cat-hero-head h1 { font-size: 28px; }
  .cat-hero-eyebrow { font-size: 11px; }
  .cat-hero-head p { font-size: 14.5px; }
  .city-dd { max-height: 240px; }
  .cat-search { flex-direction: column; padding: 10px; gap: 8px; }
  .cat-search-field + .cat-search-field {
    flex: 1 1 auto;
    border-left: 0;
    border-top: 1px solid #EDF1F5;
  }
  .cat-search-btn { height: 48px; width: 100%; }
  .cat-layout { padding: 4px 16px 48px; }
  .cat-filters { padding: 10px; gap: 8px; }
  .cat-fsel { flex: 1 1 calc(50% - 4px); }
  .cat-fsel select { width: 100%; min-width: 0; }
  .cat-fsel--sort { margin-left: 0; }
  .cat-total { flex: 1 1 100%; padding: 2px; }
  .cat-grid { grid-template-columns: 1fr; gap: 16px; }
  .biz-card { grid-template-columns: 1fr; }
  .biz-media { min-height: 210px; }
  .biz-logo { font-size: 34px; letter-spacing: 1px; }
  .biz-logo--over { font-size: 30px; }
  .biz-badge { top: 10px; left: 10px; }
  .biz-fav { top: 10px; right: 10px; width: 39px; height: 39px; font-size: 17px; }
  .biz-body { padding: 18px 18px 20px; gap: 12px; }
  .biz-name { font-size: 19px; }
  .biz-details { grid-template-columns: 1fr; }
  .biz-services { grid-template-columns: 1fr; }
  .biz-hours { grid-template-columns: 1fr; }
  .biz-gallery { grid-template-columns: repeat(3, 1fr); }
  .biz-gallery img { height: 66px; }
  .biz-foot { flex-wrap: wrap; }
  .biz-phone { font-size: 14px; }
  .biz-btn { padding: 10px 16px; font-size: 13.5px; }
  .pg-btn { min-width: 38px; height: 38px; }
}

@media only screen and (max-width: 380px) {
  .biz-body { padding: 14px 14px 16px; gap: 10px; }
  .biz-media { min-height: 170px; }
  .biz-gallery img { height: 56px; }
  .cat-hero-eyebrow { max-width: 100%; flex-wrap: wrap; justify-content: center; overflow-wrap: anywhere; }
  .pg-btn { min-width: 32px; padding: 0 6px; font-size: 13px; }
  .cat-search-field { min-width: 0; flex: 1 1 100%; }
  .cat-search-field input { min-width: 0; width: 100%; }
  .cat-filters { padding: 8px; gap: 6px; }
  .cat-total { min-width: 0; overflow-wrap: anywhere; }
  .cat-total b, .cat-filters span { min-width: 0; overflow-wrap: anywhere; }
  .cat-fsel { flex: 1 1 100%; }
}
