/* izbranioferti.bg - стилове. Цветовете са в променливите най-горе, за да се нагаждат лесно. */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #5d6a78;
  --line: #e2e7ec;
  --brand: #0b7a75;
  --brand-dark: #095f5b;
  --brand-ink: #ffffff;
  --brand-soft: #e2f3f2;
  --sale: #d9214a;
  --sale-ink: #ffffff;
  /* бутоните за действие (Към офертата, Абонирай се) - коралово-оранжево; златистото е само за препоръчаните */
  --cta: #ef6c2f;
  --cta-hover: #f5803f;
  --cta-ink: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
  --radius: 14px;
  --wrap: 1280px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-logo: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0f151b; --surface: #182028; --text: #e8edf2; --muted: #9aa7b4; --line: #27313b;
  --brand: #38b2ab; --brand-dark: #2a8f89; --brand-ink: #062a28; --brand-soft: #16302f;
  --sale: #ff5c7c; --sale-ink: #2a0610; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --cta: #f47a3e; --cta-hover: #ff8f57; --cta-ink: #ffffff;
}
:root[data-theme="dark"] .form input, :root[data-theme="dark"] .form select, :root[data-theme="dark"] .form textarea { border-color: var(--line); }

* { box-sizing: border-box; }
html { scroll-padding-top: 7rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px;
}
.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); margin: .15rem 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- горна част: бял хедър + цветна лента ------------------------------------------------------------ */
.top { position: sticky; top: 0; z-index: 30; background: var(--surface); }
.top__row { display: flex; align-items: center; gap: .9rem; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-logo); font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--text); white-space: nowrap; }
.logo__img { flex: none; width: 40px; height: 40px; }
.logo:hover { text-decoration: none; }
.search-btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; background: none; color: var(--brand); border: 0; cursor: pointer; }
.search { display: none; flex: 1; max-width: 520px; }
.search.is-open { display: flex; }
html:not(.js) .search { display: flex; }
.search input {
  flex: 1; min-width: 0; padding: .55rem 1rem; font: inherit; color: inherit;
  background: var(--bg); border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px;
}
.search button {
  padding: 0 1.2rem; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 0 999px 999px 0;
}
/* подсказки при писане (app.js + suggest.php) */
.search { position: relative; }
.sugg {
  position: absolute; z-index: 80; top: calc(100% + .35rem); left: 0; right: 0; max-height: 70vh; overflow-y: auto; padding: .35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.sugg__h { margin: .45rem .6rem .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sugg__row { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; color: var(--text); border-radius: 10px; }
.sugg__row:hover, .sugg__row.is-cur { background: var(--brand-soft); text-decoration: none; }
.sugg__row svg { flex: none; width: 18px; height: 18px; color: var(--brand); }
.sugg__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .92rem; }
.sugg__row em { flex: none; font-style: normal; font-size: .8rem; color: var(--muted); }
.sugg__row--offer img { flex: none; width: 44px; height: 32px; object-fit: cover; border-radius: 6px; }
.sugg__row--offer em { color: var(--text); font-weight: 700; }
.sugg__all { justify-content: center; margin-top: .2rem; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--brand); font-weight: 700; font-size: .9rem; }
.top__links { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; font-size: 14px; color: var(--muted); }
.top__fav:hover { color: var(--text); }
.top__fb { display: grid; place-items: center; color: var(--text); }

.bar { background: var(--brand); }
.bar__row { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.bar__row::-webkit-scrollbar { display: none; }
.bar a { padding: 0 1.5rem; line-height: 48px; color: var(--brand-ink); font-weight: 700; font-size: 15px; white-space: nowrap; }
.bar a:hover, .bar a.is-on { background: var(--brand-dark); }
.bar .bar__archive { margin-left: auto; font-weight: 500; opacity: .85; }

/* classic хедър (както в първия вариант): търсачка, пилюли с категориите, тъмна тема */
.top--classic { border-bottom: 1px solid var(--line); z-index: 20; }
.top--classic .top__row { height: auto; padding: .8rem 0; gap: 1rem; }
.top--classic .search { display: flex; flex: 1; min-width: 0; max-width: 620px; margin-inline: auto; }   /* min-width: 0 - да се свива на тесен екран */
.top--classic .search input { min-width: 0; padding: .65rem 1rem; }
.top--classic .top__links { margin-left: 0; }
.top--classic .top__fav, .theme {
  font: inherit; font-weight: 700; color: var(--text); background: var(--bg); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; white-space: nowrap;
}
/* десните връзки в хедъра: любими, блог, facebook */
.hlinks { display: flex; align-items: center; gap: 1.3rem; font-size: 14px; font-weight: 600; color: var(--muted); }
.hlinks__a { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.hlinks__a:hover { color: var(--brand); }
/* тесен компютър: в хедъра само иконките - да остане място за търсачката */
@media (min-width: 901px) and (max-width: 1150px) {
  .hlinks { gap: .9rem; }
  .hlinks__t { display: none; }
}
.hlinks__season { color: var(--cta); }   /* най-близкият повод (Нова година...) - да се вижда */
.hlinks__season svg { width: 18px; height: 18px; }
/* началото: ред със сезонните страници */
.seasons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin: 0 0 1.2rem; }
.seasons__t { font-size: .85rem; font-weight: 600; color: var(--muted); }
.seasons__a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; font-size: .9rem; font-weight: 700; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.seasons__a:hover { border-color: var(--cta); color: var(--cta); text-decoration: none; }
.seasons__a svg { flex: none; width: 17px; height: 17px; color: var(--cta); }
.seasons__a em { font-style: normal; font-weight: 600; color: var(--muted); }
.seasons__list { display: contents; }   /* компютър: бутоните са в един ред с надписа */
/* телефон: подсказка "избери категория" - плочките светват една след друга: цялата плочка се изпълва с полупрозрачно
   зелено (цвета на бутоните, 50%) и през нея минава лъскав отблясък (app.js добавя .is-hint за ~1 с) */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .nav--cats a, .sbar a { position: relative; overflow: hidden; }
  .nav--cats a.is-hint, .sbar a.is-hint { animation: hintGlow 1s ease; }
  .nav--cats a.is-hint::before, .sbar a.is-hint::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .6), transparent);
    transform: skewX(-15deg); animation: hintShine 1s ease forwards;
  }
}
@keyframes hintGlow {
  45% { background-color: color-mix(in srgb, var(--brand) 50%, transparent); border-color: var(--brand); color: var(--text);
        box-shadow: inset 0 -14px 18px color-mix(in srgb, var(--brand) 25%, transparent),
                    0 0 16px color-mix(in srgb, var(--brand) 45%, transparent); }
}
@keyframes hintShine { 0% { left: -60%; opacity: 0; } 20% { opacity: 1; } 100% { left: 120%; opacity: 0; } }
/* телефон: надписът отгоре, всички поводи заедно - компактна мрежа по 2 в ред */
@media (max-width: 900px) {
  .seasons { display: block; margin: .3rem 0 1rem; }
  .seasons__t { display: block; margin: 0 0 .4rem; }
  .seasons__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .seasons__a {
    min-width: 0; gap: .35rem; padding: .45rem .6rem; font-size: .8rem; line-height: 1.2; border-radius: 12px; box-shadow: none;
  }
  .seasons__a span { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* до 2 реда в бутона */
  .seasons__a svg { width: 15px; height: 15px; }
}
.hlinks__n {
  min-width: 1.35rem; padding: 0 .35rem; font-size: 12px; line-height: 1.35rem; text-align: center;
  background: var(--brand-soft); color: var(--brand); border-radius: 999px;
}
.hlinks__fb { color: var(--muted); }
.hlinks__fb:hover { color: #1877f2; }

.nav { display: flex; gap: .4rem; overflow-x: auto; padding: 0 0 .7rem; scrollbar-width: thin; }
.nav a {
  padding: .4rem .8rem; border-radius: 999px; font-weight: 600; font-size: .95rem; white-space: nowrap;
  color: var(--muted); border: 1px solid transparent;
}
.nav a:hover { color: var(--text); border-color: var(--line); }
.nav a.is-on { background: var(--brand); color: var(--brand-ink); }
.nav .nav__archive { margin-left: auto; }
.nav a { display: inline-flex; align-items: center; gap: .45rem; }
.nav a svg { flex: none; }

/* ---- разположение ---------------------------------------------------------------------------------------- */
main { padding: 1.5rem 0 3rem; }

/* тематични плочки на началната страница (избират се от админ панела -> Плочки) */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.topic {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--brand-soft); border-radius: var(--radius); box-shadow: var(--shadow);
}
.topic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.topic:hover img { transform: scale(1.05); }
.topic__txt {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: .1rem;
  padding: 2rem .9rem .75rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}
.topic__txt strong { font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.topic__txt em { font-style: normal; font-size: .8rem; opacity: .9; }
@media (max-width: 900px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } }
@media (prefers-reduced-motion: reduce) { .topic img { transition: none; } }

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
/* широк екран: 4 колони като "Препоръчани оферти" - категориите заемат 1, офертите 3 (подравнени с горните) */
@media (min-width: 1101px) {
  .layout { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
  .layout > .side { grid-column: 1; }
  .layout > .list { grid-column: 2 / -1; }
  .list > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout--offers > .list > .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* офертите - 4 колони, като препоръчаните */
}
/* компютър, страниците с оферти: без колоната вляво - категориите са в менюто горе, подкатегориите в .sbar,
   филтрите в лентата .tbar; офертите са на цялата ширина */
@media (min-width: 901px) {
  .layout--offers { grid-template-columns: minmax(0, 1fr); }
  .layout--offers > .side { display: none; }
  .layout--offers > .list { grid-column: 1 / -1; }
  /* блогът: рубриките са в лентата .sbar отгоре - без колона вляво */
  .layout--full { grid-template-columns: minmax(0, 1fr); }
  .layout--full > .list { grid-column: 1 / -1; }
  .sbar + .layout, .sbar + script + .layout { margin-top: 1.6rem; }   /* script - bars_boot() между тях */
  .list--narrow { width: 100%; max-width: 880px; margin-inline: auto; }   /* статията - удобна ширина за четене */
  /* статията вляво (същата ширина за четене) + колона вдясно с бюлетин и оферти по темата */
  /* статията и колоната вдясно - на цялата ширина, колкото офертите под тях */
  .artwrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; }
  .artwrap--solo { display: block; }
  .artwrap .list--narrow { max-width: none; margin: 0; }
  .artwrap .article__body { font-size: 1.1rem; }
  .artwrap > .artside { display: flex; flex-direction: column; gap: 1rem; padding-top: 2.4rem; }   /* горе - на нивото на статията (под пътечката) */
  /* съдържанието и офертите остават до текста при четене; на нисък екран - с превъртане вътре */
  .artside__stick {
    position: sticky; top: calc(var(--toph, 0px) + 1rem); display: flex; flex-direction: column; gap: .75rem;
    max-height: calc(100vh - var(--toph, 0px) - 2rem); overflow-y: auto; scrollbar-width: thin;
  }
  .artwrap:not(.artwrap--solo) .article .toc { display: none; }   /* съдържанието е в колоната */
  .sbar__grid[style*="--cols"] { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }   /* рубриките - всички на един ред */
  .only-m { display: none !important; }
  /* картата: без колоната вляво - категориите в менюто горе, подкатегориите и филтрите в лентите над картата */
  .maplayout { grid-template-columns: minmax(0, 1fr); }
  .maplayout > .mapside { display: none; }
  .maplayout > .mapmain { grid-column: 1 / -1; }
  .sbar[hidden], .fbar[hidden] { display: none; }
  #mapSubs + .tbar { margin-top: .9rem; }
  #mapSubs[hidden] + .tbar.is-open { margin-top: -.75rem; }   /* без подкатегории - лентата с филтри е до менюто */
  /* картата: бутонът "Най-близките" е в лентата - останалите полета са малко по-тесни, за да се събере всичко */
  #mapBar .tbar__row { gap: .7rem; }
  #mapBar .fsec[data-tb="country"] { flex-basis: 150px; }
  #mapBar .fsec[data-tb="place"] { flex-basis: 160px; }
  #mapBar .fsec[data-tb="price"] { min-width: 170px; }
  #mapBar .fsec[data-tb="meal"] { flex-basis: 170px; }
  #mapBar .dates__f { width: 124px; }
  .tbar .fsec[data-tb="near"] { flex: none; }
  .tbar__near {
    display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .75rem; font: inherit; font-weight: 700; white-space: nowrap;
    color: var(--brand-ink); background: var(--brand); border: 0; border-radius: 10px; cursor: pointer;
  }
  .tbar__near:hover { filter: brightness(1.08); }
  .tbar__near:disabled { opacity: .7; cursor: progress; }
  .tbar__near svg { width: 18px; height: 18px; }
  .tbar-on .mapnear { padding-top: .4rem; }
  .tbar + .maplayout, .fbar + .maplayout { margin-top: 1rem; }
}
@media (min-width: 1101px) {
  .layout--full .posts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }   /* 4 статии в ред, като офертите */
}
/* подкатегориите - лента като менюто горе (картинка над надписа), над лентата с филтрите; само на компютър */
.sbar { display: none; }
@media (min-width: 901px) {
  /* разтваря се от центъра като лентата с филтрите (.tbar); със скрипт започва свита, app.js добавя .is-open */
  .sbar { display: grid; grid-template-rows: 1fr; margin: -.75rem 0 0; transition: grid-template-rows .5s ease, opacity .5s ease, margin .5s ease; }
  .js .sbar:not(.is-open) { grid-template-rows: 0fr; opacity: 0; margin-top: 0; }
  .sbar.no-anim { transition: none; }
  .sbar__in { min-height: 0; overflow: hidden; display: flex; align-items: center; }
  .sbar.is-done .sbar__in { overflow: visible; }
  .sbar__grid { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .45rem; }   /* 6 в ред - като менюто горе */
  .sbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 52px; padding: .3rem .4rem;
    font-size: .88rem; font-weight: 600; line-height: 1.1; text-align: center; color: var(--muted);
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  }
  .sbar a:hover { color: var(--text); border-color: var(--brand); text-decoration: none; }
  .sbar a.is-on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
  .sbar a svg { flex: none; width: 18px; height: 18px; }
  .sbar + .tbar.is-open { margin-top: .9rem; }   /* под подкатегориите (без нея лентата е по-близо до менюто) */
  /* подсказка над плочките ("Подкатегории в „Почивки“:", "Рубрики:") - малка и сива, на цял ред */
  .sbar__label { grid-column: 1 / -1; margin: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
}
/* колоната върви с цялата страница (без отделно превъртане вътре в нея - там филтрите оставаха скрити) */
.side { min-width: 0; }
.side__h { font-size: .95rem; font-weight: 800; margin: 0 0 .6rem; }
.side__h--filter { margin-top: 1.4rem; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree > li { margin-bottom: .1rem; }
.tree a { display: flex; justify-content: space-between; gap: .5rem; padding: .42rem .7rem; border-radius: 10px; font-weight: 600; }
.tree a:hover { background: var(--brand-soft); }
.tree em, .chip em { font-style: normal; color: var(--muted); font-weight: 500; font-size: .85em; }
.tree .is-on > a { background: var(--brand-soft); color: var(--brand); }
.tree__name { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.tree__name svg { flex: none; color: var(--muted); }
.tree a:hover .tree__name svg, .tree .is-on > a .tree__name svg { color: var(--brand); }
.tree ul .tree__name { gap: 0; }
.tree ul { margin: .15rem 0 .4rem .9rem; border-left: 2px solid var(--line); }
.tree ul a { font-weight: 500; font-size: .95rem; }
.tree ul .is-on > a { font-weight: 700; }
/* избраната главна категория - тъмнозелена (като менюто горе); подкатегориите ѝ - в светлозелено поле */
.tree > li.is-on > a { background: var(--brand); color: var(--brand-ink); }
.tree > li.is-on > a .tree__name svg, .tree > li.is-on > a em { color: var(--brand-ink); }
.tree > li.is-on > a em { opacity: .85; }
.tree > li.is-on > ul { margin: .3rem 0 .5rem; padding: .3rem; background: var(--brand-soft); border-left: 0; border-radius: 12px; }
.tree > li.is-on > ul a:hover, .tree > li.is-on > ul .tree__more summary:hover { background: color-mix(in srgb, var(--brand) 16%, transparent); }
.tree > li.is-on > ul .is-on > a { background: color-mix(in srgb, var(--brand) 24%, transparent); color: var(--brand); }

.toggle { display: inline-flex; align-items: center; gap: .6rem; padding: .42rem .7rem; font-weight: 600; cursor: pointer; }
.toggle__box { position: relative; width: 36px; height: 20px; flex: none; background: #c9d1d9; border-radius: 999px; transition: background .15s; }
.toggle__box::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .15s; }
.toggle.is-on .toggle__box { background: var(--brand); }
.toggle.is-on .toggle__box::after { transform: translateX(16px); }
/* превключватели един под друг (Изхранване): надписите са с еднаква ширина, броят е вдясно */
.toggles { display: flex; flex-direction: column; gap: .15rem; }
.toggle--row { display: flex; width: 100%; border-radius: 10px; color: var(--text); }
.toggle--row:hover { background: var(--brand-soft); }
.toggle--row .toggle__label { flex: 1; min-width: 0; }
.toggle--row em { font-style: normal; font-weight: 600; font-size: .8rem; color: var(--muted); min-width: 2.2rem; text-align: right; font-variant-numeric: tabular-nums; }
.toggle--row.is-on em { color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.chip {
  display: inline-flex; gap: .4rem; align-items: center; padding: .3rem .75rem; font-size: .9rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.chip:hover { border-color: var(--brand); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip.is-on em { color: inherit; opacity: .8; }
.chip--place { border-style: dashed; }

/* падащо меню в лявата колона (Градове и курорти) */
.selbox { position: relative; }
.selbox select {
  width: 100%; font: inherit; font-size: .92rem; color: var(--text); background: var(--surface);
  padding: .6rem 2.4rem .6rem .9rem; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; appearance: none; -webkit-appearance: none;
}
.selbox select:hover { border-color: var(--brand); }
.selbox select:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--brand-soft); }
.selbox::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: .5rem; height: .5rem; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
.side__h label { cursor: pointer; }

/* филтър "Цена": два плъзгача върху обща линия + полета "от"/"до" */
.price { padding: .2rem .7rem 0; }
.price__slider { position: relative; height: 28px; }
.price__track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 99px; background: var(--line); }
.price__fill { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-radius: 99px; background: var(--brand); }
.price__r {
  position: absolute; left: 0; top: 0; width: 100%; height: 28px; margin: 0; background: none;
  pointer-events: none; -webkit-appearance: none; appearance: none;
}
.price__r.is-top { z-index: 2; }
.price__r::-webkit-slider-runnable-track { background: none; height: 28px; }
.price__r::-moz-range-track { background: none; }
.price__r::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: grab; width: 20px; height: 20px; margin-top: 4px;
  border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.price__r::-moz-range-thumb {
  pointer-events: auto; cursor: grab; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.price__r:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--brand-soft); }
.price__r:focus-visible { outline: 0; }
.price__vals { display: flex; align-items: center; gap: .45rem; margin-top: .45rem; color: var(--muted); font-size: .9rem; }
.price__vals label { flex: 1; min-width: 0; }
.price__vals input {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); text-align: center;
  padding: .4rem .3rem; border: 1px solid var(--line); border-radius: 10px; -moz-appearance: textfield;
}
.price__vals input::-webkit-outer-spin-button, .price__vals input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price__vals input:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---- лява колона: избрани филтри, "Още" при подкатегориите, панел за телефон ---------------------------- */
.side__bar, .sheet__head, .sheet__foot { display: none; }
.side__active {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.fchip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .35rem .3rem .75rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .85rem; white-space: nowrap;
}
.fchip__x {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-size: .85rem; line-height: 1;
}
.fchip:hover .fchip__x { background: var(--brand-dark); }
.fclear { padding: .3rem .3rem; font-size: .85rem; color: var(--muted); text-decoration: underline; white-space: nowrap; }
.fclear:hover { color: var(--brand); }
/* компютър: избраните филтри - центриран ред под лентата с филтрите (вместо в колоната вляво) */
.fbar { display: none; }
@media (min-width: 901px) {
  .fbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; margin: .9rem 0 1.1rem; }
  .fbar__t { margin-right: .2rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
  .layout:not(.maplayout) .side__active { display: none; }   /* картата си пази своите */
  .fchip--clear { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
  .fchip--clear .fchip__x { background: var(--muted); }
  .fchip--clear:hover { color: var(--sale); box-shadow: inset 0 0 0 1px var(--sale); }
  .fchip--clear:hover .fchip__x { background: var(--sale); }
}
.tree__more summary {
  list-style: none; cursor: pointer; padding: .42rem .7rem; border-radius: 10px;
  color: var(--brand); font-weight: 600; font-size: .92rem;
}
.tree__more summary::-webkit-details-marker { display: none; }
.tree__more summary:hover { background: var(--brand-soft); }
.tree__close, .tree__more details[open] > summary .tree__open { display: none; }
.tree__more details[open] > summary .tree__close { display: inline; }
.tree .tree__more ul { margin: 0; border-left: 0; }
.toggle--row small { font-weight: 500; font-size: .8em; color: var(--muted); }
.sheet-bg { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .45); }
.sheet-bg[hidden] { display: none; }

.list__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.1rem; }
h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.sort { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }
.sort select {
  font: inherit; color: var(--text); padding: .45rem .8rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}

/* ---- карти ------------------------------------------------------------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 1.1rem; }

/* снимка, която не се е заредила (app.js): чист фон с името на сайта вместо счупена иконка */
.img-broken { background: var(--brand-soft); }
.img-broken::before {
  content: "IzbraniOferti.bg"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 1.05rem var(--font-logo); color: var(--brand); opacity: .55; pointer-events: none;
}

/* ---- /karta: офертите на карта ---- */
.maphead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1rem; }
.maphead h1 { margin: 0; }
.mapfilter { display: flex; flex-wrap: wrap; gap: .4rem; }
button.chip { font: inherit; cursor: pointer; }
.map { height: min(72vh, 720px); min-height: 380px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 0; }
/* картата с категории и филтри вляво */
.mapbar { display: none; }
.maplayout .maphead { align-items: center; margin-bottom: .8rem; }
/* "Покажи най-близките до мен" - центриран под картата */
.maplayout .mapnear { flex-direction: column; justify-content: center; text-align: center; gap: .45rem; margin: 1.1rem 0 0; }
.maplayout .mapnear__msg { flex: none; margin: 0; min-width: 0; }
.maplayout .nearlist { margin-top: 1.6rem; }
/* разстоянието върху снимката на картата */
.card__km {
  position: absolute; left: 3.3rem; bottom: .9rem; display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem;   /* до сърцето */
  font-size: .82rem; font-weight: 800; color: #fff; background: rgba(15, 30, 40, .78); border-radius: 8px;
}
.card__km svg { width: 13px; height: 13px; }
.mapwrap { position: relative; }
.maplayout .map { height: min(78vh, 780px); min-height: 460px; }
.map__empty {
  position: absolute; left: 50%; top: 50%; z-index: 500; transform: translate(-50%, -50%); margin: 0; padding: .9rem 1.2rem;
  text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.mapside button.toggle, .mapside button.fchip, .mapside button.fclear { font: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.mapside button.fchip { background: var(--brand-soft); }
.mapside .side__active { margin-bottom: 1rem; }
.mpin span {
  display: block; width: 22px; height: 22px; margin: 2px; background: var(--brand); border: 3px solid #fff;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.leaflet-popup-content { margin: 0; }
.leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 12px; }
button.chip { font: inherit; font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer; }
/* филтър "Дати на пътуване" */
.dates { padding: 0 .7rem; }
/* в тясната лява колона полетата са едно под друго, за да се вижда цялата дата */
.dates__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
.dates label { display: flex; flex-direction: column; gap: .2rem; min-width: 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
.dates__f { position: relative; display: block; }
.dates__f svg { position: absolute; left: .65rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--brand); pointer-events: none; }
.dates input {
  width: 100%; min-width: 0; font: inherit; font-size: .92rem; color: var(--text); background: var(--surface); cursor: pointer;
  padding: .5rem .5rem .5rem 2.3rem; border: 1px solid var(--line); border-radius: 10px; color-scheme: light dark;
}
.dates input:hover { border-color: var(--brand); }
.dates input:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--brand-soft); }
.dates input::-webkit-calendar-picker-indicator { cursor: pointer; }
.dates__go { width: 100%; margin-top: .55rem; justify-content: center; }
/* календар на български (app.js) - вместо браузърния "mm/dd/yyyy" */
.dp__txt { cursor: pointer; }
.dp {
  position: absolute; z-index: 40; top: calc(100% + .35rem); left: 0; width: 260px; padding: .6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.dp__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; font-size: .92rem; }
.dp__head strong { font-weight: 700; }
.dp__nav { width: 30px; height: 30px; font: inherit; font-size: 1.2rem; line-height: 1; color: var(--text); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.dp__nav:hover { background: var(--brand-soft); }
.dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp__dow { padding: .2rem 0; font-size: .72rem; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; }
.dp__day { height: 32px; font: inherit; font-size: .86rem; color: var(--text); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.dp__day:hover:not(:disabled) { background: var(--brand-soft); }
.dp__day.is-today { box-shadow: inset 0 0 0 1px var(--brand); }
.dp__day.is-on { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.dp__day:disabled { color: var(--line); cursor: default; }
.dates__note { margin: .45rem 0 0; font-size: .78rem; line-height: 1.4; }
/* "Покажи най-близките до мен" и списъкът под картата */
.mapnear { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .9rem; }
.mapnear__btn { display: inline-flex; align-items: center; gap: .5rem; }
.mapnear__btn svg { width: 18px; height: 18px; }
.mapnear__btn[disabled] { opacity: .6; cursor: wait; }
.mapnear__msg { margin: 0; font-size: .88rem; flex: 1; min-width: 220px; }
.nearlist { margin-top: 1.4rem; }
.nearlist h2 { font-size: 1.2rem; margin: 0 0 .7rem; }
.nearlist__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: .6rem; }
.nearitem {
  display: flex; align-items: center; gap: .8rem; padding: .55rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
}
.nearitem:hover { border-color: var(--brand); }
.nearitem img { flex: none; width: 84px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--brand-soft); }
.nearitem__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.nearitem__body small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.nearitem__body strong { font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nearitem__price { font-weight: 800; font-size: .9rem; }
.nearitem__price s { font-weight: 400; font-size: .8rem; color: var(--muted); }
.nearitem__km { flex: none; align-self: flex-start; padding: .2rem .5rem; font-size: .8rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; white-space: nowrap; }
.mpop { position: relative; display: block; width: 260px; color: #17202a; }
.mpop img { display: block; width: 100%; height: 140px; object-fit: cover; background: #e2f3f2; }
.mpop__disc { position: absolute; left: .5rem; top: .5rem; padding: .1rem .45rem; font-size: .8rem; font-weight: 800; color: #fff; background: #d9214a; border-radius: 6px; }
.mpop__body { display: flex; flex-direction: column; gap: .25rem; padding: .6rem .75rem .75rem; }
.mpop__body small { font-size: .75rem; font-weight: 600; color: #5d6a78; }
.mpop__body strong { font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mpop__price { font-weight: 800; }
.mpop__price s { font-weight: 400; font-size: .8rem; color: #5d6a78; }
.mpop__btn { align-self: flex-start; margin-top: .2rem; padding: .35rem .75rem; font-size: .82rem; font-weight: 700; color: #fff; background: #0b7a75; border-radius: 8px; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(11, 122, 117, .25); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: rgba(11, 122, 117, .85); color: #fff; font-weight: 800; }

/* банер за бюлетина между офертите (скрива се от app.js след "×" или абонамент) */
.nbanner {
  grid-column: 1 / -1; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  padding: 1.3rem 3rem 1.3rem 1.5rem; color: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.nbanner[hidden] { display: none; }
.nbanner__txt { flex: 1 1 320px; }
.nbanner__h { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.15rem; font-weight: 800; }
.nbanner__sub { margin: .25rem 0 0; font-size: .9rem; opacity: .92; }
.nbanner__form { flex: 1 1 340px; display: flex; gap: .5rem; }
.nbanner__form input {
  flex: 1; min-width: 0; padding: .65rem 1rem; font: inherit; color: #17202a; background: #fff; border: 0; border-radius: 999px;
}
.nbanner__form button {
  padding: .65rem 1.3rem; font: inherit; font-weight: 800; white-space: nowrap; cursor: pointer;
  color: var(--cta-ink); background: var(--cta); border: 0; border-radius: 999px;
}
.nbanner__form button:hover { background: var(--cta-hover); }
.nbanner__x {
  position: absolute; top: .45rem; right: .6rem; width: 2rem; height: 2rem; padding: 0; font-size: 1.4rem; line-height: 1;
  color: #fff; background: transparent; border: 0; border-radius: 50%; cursor: pointer; opacity: .8;
}
.nbanner__x:hover { opacity: 1; background: rgba(255, 255, 255, .15); }
@media (max-width: 560px) { .nbanner { padding: 1.2rem 1rem; } .nbanner__form { flex-direction: column; } }

/* препоръчани оферти на началната страница (избират се от админ панела) */
.featured { margin-bottom: 2rem; }
.tbar + .featured { margin-top: .9rem; }   /* под лентата с филтрите (без избрани филтри между тях) */
.featured__h { display: flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; font-size: 1.35rem; }
.featured__h svg { color: var(--sale); }   /* пламъче */
/* заглавието над офертите - като "Препоръчани оферти": същият размер, с иконка на категорията */
/* "Накратко" на страницата на офертата - собствен текст от данните, над текста на търговеца */
.prose.prose--summary { background: var(--brand-soft); border-color: transparent; }
.prose--summary p { margin: 0 0 .8rem; line-height: 1.65; }
.prose--summary p a { color: var(--brand); font-weight: 600; }
.prose--summary .tagrow { margin: 0; }
/* футър: линкове към сезонните страници */
.foot__seasons { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0 0 1rem; font-size: .9rem; }
.foot__seasons span { font-weight: 700; }
.foot__seasons a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.placestrip .chip svg { flex: none; width: 15px; height: 15px; }
/* категории и места: въпроси и отговори под офертите */
.listfaq { max-width: 900px; margin: 2rem 0 0; }
.listfaq .faq__item { background: var(--surface); }
.faq__a a { color: var(--brand); font-weight: 600; }
/* страница на място: описанието под офертите */
.prose.placetext { margin-top: 2rem; }
/* под офертите: популярни места (в категория) / категории (в място) */
.placestrip .chips { gap: .45rem; }
.placestrip .chip em { font-style: normal; font-weight: 600; color: var(--muted); }
/* кратък текст над офертите в категориите и местата (брой, цени, къде са най-много) */
.list__intro { max-width: 900px; margin: -.4rem 0 1.1rem; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.list__intro a { color: var(--brand); font-weight: 600; }
.list__h { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.35rem; }
.list__h svg { flex: none; width: 22px; height: 22px; color: var(--brand); }
.featured__h svg { width: 22px; height: 22px; }
.featured__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.featured .card { border-color: #f0c23b; }
.pick {
  position: absolute; right: .7rem; top: .7rem; display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem .2rem .45rem; font-size: .82rem; font-weight: 800;
  background: #f5b700; color: #2b2100; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.pick svg { width: 14px; height: 14px; }
@media (max-width: 1100px) { .featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .featured__grid { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
/* компютър: офертите се показват с леко изплуване - видимите при зареждане една след друга (само CSS, от първото
   изрисуване), по-долните - когато стигнат до екрана (app.js добавя .rv, после .is-in) */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  @keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
  .js :is(.grid, .featured__grid) > .card { animation: cardIn .5s ease backwards; }
  .js :is(.grid, .featured__grid) > .card:nth-child(2) { animation-delay: .06s; }
  .js :is(.grid, .featured__grid) > .card:nth-child(3) { animation-delay: .12s; }
  .js :is(.grid, .featured__grid) > .card:nth-child(4) { animation-delay: .18s; }
  .js :is(.grid, .featured__grid) > .card:nth-child(5) { animation-delay: .24s; }
  .js :is(.grid, .featured__grid) > .card:nth-child(6) { animation-delay: .3s; }
  .js :is(.grid, .featured__grid) > .card:nth-child(7) { animation-delay: .36s; }
  .js :is(.grid, .featured__grid) > .card:nth-child(n+8) { animation-delay: .42s; }
  .js :is(.grid, .featured__grid) > .card.rv { animation: none; opacity: 0; transform: translateY(18px); }
  .js :is(.grid, .featured__grid) > .card.rv.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
}
/* A/B тест, вариант Б: заглавието води към търговеца, а този линк - към страницата на офертата в сайта */
.card__info { align-self: flex-start; margin: -.15rem 0 .35rem; font-size: .82rem; font-weight: 600; color: var(--muted); }
.card__info:hover { color: var(--brand); }
.card__media { position: relative; aspect-ratio: 400 / 260; background: var(--brand-soft); overflow: hidden; }
.card__media > a { display: block; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.badge {
  position: absolute; left: .7rem; top: .7rem; padding: .2rem .6rem; font-weight: 800; font-size: .9rem;
  background: var(--sale); color: var(--sale-ink); border-radius: 8px;
}
.badge--lg { font-size: 1.15rem; padding: .3rem .8rem; }
.ends {
  position: absolute; right: .7rem; bottom: .7rem; padding: .2rem .6rem; font-size: .85rem; font-weight: 800;
  background: var(--sale); color: var(--sale-ink); border-radius: 8px;
}
.ends--over { background: #5d6a78; color: #fff; }   /* в архива: сива значка "Изтекла" */
.fav {
  position: absolute; left: .6rem; bottom: .6rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0;
  background: rgba(255, 255, 255, .92); color: #55606c; border: 0; border-radius: 50%; cursor: pointer;
}
/* надпис при посочване: текстът идва от aria-label ("Добави в любими" / "Премахни от любими", сменя се от app.js) */
.fav::after {
  content: attr(aria-label); position: absolute; left: 0; bottom: calc(100% + .4rem);
  padding: .3rem .6rem; font: 700 .8rem/1.2 var(--font); white-space: nowrap;
  background: rgba(15, 21, 27, .9); color: #fff; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.fav:hover::after, .fav:focus-visible::after { opacity: 1; }
.fav--inline::after { content: none; }
.fav svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav[aria-pressed="true"] { color: var(--sale); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.fav--inline {
  position: static; width: auto; height: auto; padding: .65rem 1rem; border-radius: 10px; font: inherit; font-weight: 700;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
}
.fav--inline[aria-pressed="true"] { color: var(--sale); border-color: var(--sale); }

.card__body { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem 1rem; flex: 1; }
.card__merchant { margin: 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
.card__merchant a { position: relative; z-index: 1; color: inherit; }   /* към всички оферти на търговеца */
.card__merchant a:hover { color: var(--brand); text-decoration: underline; }
.card__title { margin: 0; font-size: 1rem; line-height: 1.35; font-weight: 700; }
.card__title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { color: var(--brand); }
.card__meta { display: flex; flex-wrap: wrap; gap: .2rem .8rem; margin: 0; font-size: .8rem; color: var(--muted); }
.card__place { display: inline-flex; align-items: center; gap: .25rem; }
.card__place svg { flex: none; color: var(--brand); }
/* датите от името на офертата ("16.09 – 01.12") - отделно, с календарче */
.card__dates { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.card__dates svg, .offer__dates svg { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.offer__dates { display: inline-flex; align-items: center; gap: .4rem; margin: -.3rem 0 .9rem; padding: .3rem .7rem; font-size: .92rem; font-weight: 600; color: var(--text); background: var(--brand-soft); border-radius: 999px; }
.offer__dates svg { width: 16px; height: 16px; }
a.card__place { position: relative; z-index: 1; color: var(--brand); font-weight: 600; }   /* линк към всички оферти в мястото */
a.card__place:hover { text-decoration: underline; }
.card__sold { font-weight: 600; }
/* редове "Категории:" и "Сподели:" на страницата на офертата - етикетите са подравнени един под друг */
.tagrow { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .8rem; }
.tagrow__label { flex: none; width: 6.2rem; padding-top: .4rem; font-size: .9rem; font-weight: 700; color: var(--muted); }
.tagrow .chips { margin-bottom: 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.share__btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.share__btn svg { flex: none; width: 16px; height: 16px; }
.share__btn:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 480px) {
  .tagrow { flex-direction: column; gap: .35rem; }
  .tagrow__label { width: auto; padding-top: 0; }
}
.card__foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.price { display: flex; flex-direction: column; margin: 0; line-height: 1.2; }
.price strong { font-size: 1.3rem; font-weight: 800; white-space: nowrap; }   /* "2 254,00 €" - на един ред */
.price s { font-size: .85rem; color: var(--muted); }
.price--lg { flex-direction: row; align-items: baseline; gap: .7rem; }
.price--lg strong { font-size: 2rem; }
.price--lg s { font-size: 1.05rem; }

.btn {
  display: inline-block; padding: .55rem 1rem; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 10px; white-space: nowrap; text-align: center;
}
.btn:hover { filter: brightness(1.08); }
.btn--lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
/* "Към офертата": жълт, като бутоните за бюлетина */
.btn--deal, .mpop__btn { color: var(--cta-ink); background: var(--cta); font-weight: 800; }
.btn--deal:hover { filter: none; background: var(--cta-hover); }
/* препоръчаните оферти - златист бутон (като рамката и значката им) */
.featured .btn--deal { color: #2b2100; background: #f5b700; }
.featured .btn--deal:hover { background: #ffc81f; }
.btn--form { margin-top: 1.4rem; padding: .8rem 1.8rem; font-size: 1rem; }

.pager { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pager[hidden] { display: none; }

/* "Почивки" на компютър: лента с филтрите на един ред под менюто; плъзга се надолу (app.js) */
.tbar[hidden] { display: none; }
.tbar { display: grid; grid-template-rows: 0fr; opacity: 0; margin: 0; transition: grid-template-rows .5s ease, opacity .5s ease, margin .5s ease; }   /* колкото свиването на "Препоръчани оферти" (app.js) */
.tbar.is-open { grid-template-rows: 1fr; opacity: 1; margin: -.75rem 0 .4rem; }   /* по-близо до менюто горе */
.tbar.no-anim { transition: none; }
.tbar__in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }   /* съдържанието е в средата - разкрива се от центъра нагоре и надолу */
.tbar__in > .tbar__row { flex: none; min-width: 0; }
/* подсказки "Избери категория:" (над менюто) и "Филтрирай по:" (над лентата с филтрите) - като "Подкатегории в …:" */
.tbar__title, .nav__label { margin-block: 0 .4rem; font-size: .85rem; font-weight: 600; color: var(--muted); }   /* margin-block - да не отменя центрирането на .wrap */
.nav__label { display: none; }
@media (min-width: 901px) { .nav__label { display: block; margin-top: .1rem; } }
.tbar.is-done .tbar__in { overflow: visible; }   /* падащото "Изхранване" да не се реже */
.tbar__row {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 1rem;   /* тесен компютър - на 2 реда */ padding: .85rem 1.1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.tbar .fsec { min-width: 0; }
.tbar .side__h--filter { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.tbar .fsec[data-tb="country"] { flex: 0 0 175px; }
.tbar .fsec[data-tb="place"] { flex: 0 0 195px; }
.tbar .fsec[data-tb="dates"] { flex: 0 0 auto; }
.tbar .fsec[data-tb="price"] { flex: 1 1 210px; min-width: 210px; max-width: 340px; }   /* от 210px - пренася на нов ред само ако наистина не се събира */
.tbar .fsec[data-tb="meal"] { flex: 0 0 200px; position: relative; }
.tbar .dates { display: flex; align-items: flex-end; gap: .5rem; padding: 0; }
.tbar .dates__row { grid-template-columns: repeat(2, auto); gap: .6rem; }
.tbar .dates label { flex-direction: row; align-items: center; gap: .35rem; }   /* "От" / "До" - вляво от полето */
.tbar .dates__f { width: 140px; }
.tbar .dates__go { display: none; }   /* в лентата датите се прилагат веднага (app.js) */
.tbar .dates__note { display: none; }
.tbar .price { padding: 0 .3rem; }
.tbar .price__slider { height: 22px; }
.tbar .price__track { top: 9px; }
.tbar .price__vals { margin-top: .2rem; font-size: .82rem; }
/* "Изхранване" - падащ списък */
.tbar__ddbtn { display: none; }
.tbar .tbar__ddbtn {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; padding: .55rem .8rem; font: inherit; font-weight: 600;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-align: left;
}
.tbar .tbar__ddbtn:hover, .tbar .fsec.is-open .tbar__ddbtn { border-color: var(--brand); }
.tbar .tbar__ddbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbar .fsec[data-tb="meal"] .toggles {
  display: none; position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin-top: .3rem; padding: .35rem;   /* широко колкото полето */
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.tbar .fsec[data-tb="meal"].is-open .toggles { display: flex; }
/* в лентата - обикновен падащ списък, без превключвателите; избраното - оцветено */
.tbar .fsec[data-tb="meal"] .toggle__box { display: none; }
.tbar .fsec[data-tb="meal"] .toggle--row.is-on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.tbar-on .side__filters { display: none; }   /* филтрите са в лентата горе */
@media (prefers-reduced-motion: reduce) { .tbar { transition: none; } }   /* безкрайното превъртане я крие - иначе display: flex надделява */
.pager a { padding: .45rem .9rem; font-weight: 700; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.pager a:hover { border-color: var(--brand); }
.pager a.is-on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
/* безкрайно превъртане в категориите - бутон/съобщение под офертите */
.infmore { display: flex; justify-content: center; margin-top: 1.6rem; text-align: center; }
.infmore__btn {
  padding: .6rem 1.4rem; font: inherit; font-weight: 700; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.infmore__btn:hover { border-color: var(--brand); }
.infmore.is-loading .infmore__btn { opacity: .7; cursor: progress; }
.empty { padding: 3rem 1rem; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.card__more { display: inline-block; margin: .1rem 0 0; font-size: .82rem; font-weight: 700; color: var(--brand); }   /* "+ още N оферти от този хотел" */
.empty__t { margin: 1.2rem 0 .5rem; color: var(--muted); font-size: .92rem; }
.empty__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-bottom: 1rem; }
.empty__chips .chip { display: inline-flex; align-items: center; gap: .35rem; }

/* ---- страница на оферта ----------------------------------------------------------------------------------- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--brand); }
.offer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin-bottom: 2rem; }
.offer__media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--brand-soft); box-shadow: var(--shadow); }
.offer__media img { width: 100%; height: auto; }
.offer__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.2rem 0; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.offer__buy .price { margin-right: auto; }
.notice { margin: 0; padding: .7rem 1rem; background: var(--brand-soft); border-radius: 10px; font-weight: 600; }
.notice--expired { display: block; background: var(--sale); color: var(--sale-ink); font-weight: 700; transition: filter .15s; }
.notice--expired:hover { filter: brightness(.9); }
.facts { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.prose { margin: 0 0 2rem; padding: 1.4rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.prose h2 { margin-top: 0; font-size: 1.25rem; }
.prose--terms { font-size: .95rem; color: var(--muted); }
.related h2 { font-size: 1.3rem; margin: 2rem 0 1rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related__more { margin: 1.2rem 0 0; text-align: center; }

/* ---- блог ---------------------------------------------------------------------------------------------------- */
.blog__head { margin-bottom: 1.4rem; }
.blog__head h1 { margin: 0 0 .3rem; }   /* размерът - от .list__h, като "Препоръчани оферти" */
.blog__head p { margin: 0; }
/* началото на блога и рубриките: по-видимо заглавие и описание */
.blog__head p.blog__intro { max-width: 760px; margin-top: .4rem; font-size: 1.05rem; line-height: 1.55; color: var(--muted); }
.blog__places { margin-top: 1rem; }
/* началото: редове по рубрики и ред с оферти */
.blogrow, .blogoffers { margin-top: 2.2rem; }
.blogrow__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin-bottom: .9rem; }
.blogrow__h { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.3rem; }
.blogrow__h svg { flex: none; width: 22px; height: 22px; color: var(--brand); }
.blogrow__h a { color: inherit; }
.blogrow__h a:hover { color: var(--brand); text-decoration: none; }
.blogrow__all { font-weight: 700; color: var(--brand); white-space: nowrap; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.3rem; }
.post {
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.post:hover { transform: translateY(-2px); }
.post__media { display: block; aspect-ratio: 16 / 9; background: var(--brand-soft); overflow: hidden; }
.post__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post:hover .post__media img { transform: scale(1.03); }
.post__noimg { display: grid; place-items: center; width: 100%; height: 100%; }
.post__noimg img { width: 64px; height: 64px; opacity: .8; }
.post__body { display: flex; flex-direction: column; gap: .45rem; flex: 1; padding: 1.1rem 1.2rem 1.25rem; }
.post__date { margin: 0; font-size: .82rem; font-weight: 600; color: var(--muted); }
.post__title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.post__title a:hover { color: var(--brand); }
.post__excerpt { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; flex: 1; }
.post__more { align-self: flex-start; margin-top: .3rem; font-weight: 700; color: var(--brand); }
.post__more:hover { text-decoration: underline; }

.article {
  max-width: 820px; margin: 0 auto; padding: 2.2rem 2.6rem 1.6rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.article__head h1 { margin: .3rem 0 .8rem; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; }
.article__lead { margin: 0 0 1.4rem; font-size: 1.12rem; line-height: 1.6; color: var(--muted); }
.article__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 0 1.6rem; border-radius: 12px; }
.article__body { font-size: 1.05rem; line-height: 1.75; }
.article__body p { margin: 0 0 1.2rem; }
.article__body h2 { margin: 2rem 0 .7rem; font-size: 1.45rem; line-height: 1.3; }
.article__body h3 { margin: 1.6rem 0 .5rem; font-size: 1.18rem; }
.article__body ul, .article__body ol { margin: 0 0 1.3rem; padding-left: 1.5rem; }
.article__body li { margin-bottom: .45rem; }
.article__body a { color: var(--brand); text-decoration: underline; }
.article__body blockquote { margin: 1.4rem 0; padding: .8rem 1.2rem; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; }
.article__body img { max-width: 100%; height: auto; border-radius: 10px; }
.article__share { margin: 1.8rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.article__places { margin: 1.6rem 0 0; }
.article__places .chip { gap: .3rem; }
.article .nbanner--static { margin: 1.6rem 0 .6rem; }
/* колоната до статията (само компютър - вж. .artwrap) */
.artside { display: none; }
.artside .nbanner { flex-direction: column; align-items: stretch; gap: .8rem; padding: 1.1rem; }
.artside .nbanner__txt, .artside .nbanner__form { flex: none; }
.artside .nbanner__h { font-size: 1rem; }
.artside .nbanner__sub { font-size: .85rem; }
.artside .nbanner__form { flex-direction: column; }
.artside__box { padding: .8rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.artside__h { margin: 0 0 .4rem; font-size: 1rem; font-weight: 800; }
.mini { display: flex; gap: .7rem; padding: .5rem 0; color: var(--text); border-top: 1px solid var(--line); }
.artside__h + .mini { border-top: 0; }
.mini:hover { text-decoration: none; }
.mini:hover .mini__t { color: var(--brand); }
.mini__img { position: relative; flex: none; width: 84px; height: 63px; overflow: hidden; border-radius: 8px; background: var(--brand-soft); }
.mini__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mini__img b { position: absolute; left: 4px; top: 4px; padding: 0 .3rem; font-size: .72rem; background: var(--sale); color: var(--sale-ink); border-radius: 5px; }
.mini__txt { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: .25rem; }
.mini__t { font-size: .86rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini__p { font-size: .85rem; }
.mini__p strong { color: var(--brand); }
.mini__p s { font-size: .78rem; color: var(--muted); }
.artside__all { display: block; margin-top: .5rem; font-size: .9rem; font-weight: 700; color: var(--brand); }
.artside__fresh { display: flex; align-items: center; gap: .35rem; margin: .6rem 0 0; font-size: .78rem; color: var(--muted); }
.artside__fresh svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.artside__toc { flex: none; padding: .85rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.artside__box { flex: none; }
.artside__toc ol { margin: 0; padding: 0; list-style: none; }
.artside__toc a {
  display: block; padding: .2rem 0 .2rem .7rem; font-size: .84rem; line-height: 1.28; color: var(--muted);
  border-left: 2px solid var(--line);
}
.artside__toc a:hover { color: var(--text); text-decoration: none; }
.artside__toc a.is-on { color: var(--brand); font-weight: 700; border-left-color: var(--brand); }   /* разделът, който се чете (app.js) */
/* под статията: кои сме и как подбираме офертите */
.aboutbox { display: flex; gap: .9rem; align-items: flex-start; margin: 1.4rem 0 0; padding: 1rem 1.1rem; background: var(--brand-soft); border-radius: 12px; }
.aboutbox img { flex: none; border-radius: 10px; }
.aboutbox p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--text); }
@media (max-width: 560px) { .aboutbox { flex-direction: column; gap: .6rem; } .aboutbox img { width: 36px; height: 36px; } }
.article__head .article__places { margin: 0 0 1.2rem; }
.article__body h2 { scroll-margin-top: calc(var(--toph, 0px) + 1rem); }   /* от съдържанието - да не е под закачения хедър */
@media (max-width: 900px) { .only-d { display: none !important; } }
.post__rub { align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--brand); }
.post__rub:hover { text-decoration: underline; }
.post__date .post__rub { font-size: inherit; text-transform: none; letter-spacing: 0; }
/* рубриките: на компютър - лява колона като категориите на офертите; на телефон - бутони над статиите */
.blog__rubs { display: none; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; }
.blog__rubs .chip svg { flex: none; width: 16px; height: 16px; color: var(--brand); }
.blog__rubs .chip.is-on svg { color: inherit; }
/* водеща статия: снимка вляво, текст вдясно */
.post--hero { flex-direction: row; margin-bottom: 1.3rem; }
.post--hero .post__media { flex: 0 0 58%; aspect-ratio: auto; min-height: 320px; }
.post--hero .post__body { justify-content: center; padding: 1.6rem 1.8rem; }
.post--hero .post__title { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.post--hero .post__excerpt { flex: 0 0 auto; font-size: 1.02rem; }
.posts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blogstrip { margin-top: 2.4rem; }
/* началото: 4 статии на цялата ширина - колоните като "Препоръчани оферти" */
.posts--4, .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 1100px) { .posts--4, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .posts--4, .grid--4 { grid-template-columns: 1fr; } }
/* съдържание на статията */
.toc { margin: 0 0 1.6rem; padding: 1rem 1.3rem; background: var(--brand-soft); border-radius: 12px; }
.toc__h { margin: 0 0 .4rem; font-weight: 800; }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc li { margin: .25rem 0; }
.toc a { color: var(--brand); font-weight: 600; }
.toc a:hover { text-decoration: underline; }
.article__body h2[id] { scroll-margin-top: 8rem; }
.is-blog .related { max-width: 1100px; margin: 0 auto; }
.is-blog .blogstrip--wide { max-width: none; margin-top: 2.4rem; }   /* "Още статии" - на цялата ширина */
/* лента за напредъка на четенето */
.readbar { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 3px; pointer-events: none; }
.readbar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .1s linear; }
.article__byline { display: flex; align-items: center; gap: .5rem; margin: -.3rem 0 1.1rem; font-size: .88rem; font-weight: 600; color: var(--muted); }
.article__byline img { width: 28px; height: 28px; }
.article__body a.placelink, .article__body a.merchlink { color: var(--brand); text-decoration: underline dotted; text-underline-offset: 3px; font-weight: 600; }
.article__faq { margin: 2rem 0 0; }
.article__faq .faq__h { margin: 0 0 .9rem; font-size: 1.3rem; }
.article__faq .faq__a p { margin: 0; }
/* оферта в текста на статията */
.article__body .inoffer {
  display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0; padding: .8rem; background: var(--bg);
  border: 1px solid var(--line); border-left: 4px solid var(--cta); border-radius: 12px;
}
.inoffer__img { flex: none; width: 150px; border-radius: 10px; overflow: hidden; }
.article__body .inoffer__img img { display: block; width: 150px; height: 98px; object-fit: cover; border-radius: 0; }
.inoffer__body { flex: 1; min-width: 0; }
.article__body .inoffer__lbl { margin: 0 0 .15rem; font-size: .75rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #c4521b; }
.article__body a.inoffer__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); font-weight: 700; line-height: 1.35; text-decoration: none; }
.article__body a.inoffer__title:hover { color: var(--brand); }
.article__body .inoffer__price { margin: .3rem 0 0; font-size: .95rem; }
.inoffer__price s { color: var(--muted); font-size: .85rem; }
.inoffer__disc { font-size: .8rem; font-weight: 800; color: var(--sale); }
.article__body a.inoffer__btn { flex: none; color: var(--cta-ink); text-decoration: none; }
/* предишна / следваща статия */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.4rem 0 0; }
.prevnext__a { display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.prevnext__a:hover { border-color: var(--brand); }
.prevnext__a span { font-size: .82rem; font-weight: 700; color: var(--brand); }
.prevnext__a strong { line-height: 1.35; }
.prevnext__a--next { text-align: right; grid-column: 2; }
.list > .article { margin: 0; max-width: none; }   /* до колоната "Рубрики": широка колкото офертите под нея */

/* ---- Условия и Връзка с нас ---------------------------------------------------------------------------------- */
.page-card { padding: 2.2rem 2.6rem 2.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.page-card h1 { margin: 0 0 1.4rem; }
.page__updated { margin: -1rem 0 1.4rem !important; font-size: .85rem; color: var(--muted); }
.page__body img { max-width: 100%; height: auto; border-radius: 10px; }
.page__body blockquote { margin: 1.4rem 0; padding: .8rem 1.2rem; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; }
.page__body h2[id], .page__body h3[id] { scroll-margin-top: 8rem; }
.page-card h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
.page-card h3 { font-size: 1.02rem; margin: 1.5rem 0 .5rem; }
.page-card p { margin: 0 0 1.2rem; }
.page-card a:not(.btn) { color: var(--brand); }
.page-card a:not(.btn):hover { text-decoration: underline; }
.page-card ul, .page-card ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.page-card li { margin-bottom: .4rem; }

.form { margin-top: 1rem; }
.form label { display: block; margin: 1.5rem 0 .5rem; font-weight: 700; }
.form .req { color: var(--sale); font-weight: 400; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  display: block; width: 100%; max-width: 100%; padding: 0 .95rem; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid #ccd3da; border-radius: 10px;
}
.form input[type="text"], .form input[type="email"], .form select { width: 60%; height: 46px; }
.form select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6a78' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .95rem center;
}
.form textarea { height: 130px; padding: .75rem .95rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--brand-soft); }
.form .g-recaptcha { margin: 1.6rem 0 1rem; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__title { margin: 2rem 0 0; font-weight: 800; letter-spacing: .02em; }

/* "Често задавани въпроси" на "Връзка с нас" - разгъващи се отговори (<details>) */
.faq { margin: 1.6rem 0 2.2rem; }
.page-card .faq__h { margin: 0 0 .9rem; font-size: 1.25rem; }
.faq__item { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); margin-bottom: .55rem; }
.faq__item summary {
  position: relative; list-style: none; cursor: pointer; padding: .85rem 2.8rem .85rem 1rem; font-weight: 700; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: .55rem; height: .55rem; margin-top: -.4rem;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -.1rem; }
.faq__item summary:hover { color: var(--brand); }
.faq__item[open] { background: var(--surface); border-color: var(--brand); }
.faq__a { padding: 0 1rem .9rem; color: var(--muted); }
.page-card .faq__a p { margin: 0; }
.page-card .faq__more { margin: .9rem 0 0; font-size: .92rem; color: var(--muted); }
.form__err { margin: 1rem 0 0; padding: .8rem 1rem .8rem 2rem; color: #a11; background: #fdecec; border-left: 4px solid #d33; border-radius: 6px; }
.form__ok { padding: 1rem 1.2rem; color: #14532d; background: #e6f6ec; border-left: 4px solid #22a45d; border-radius: 6px; }

/* ---- футър ------------------------------------------------------------------------------------------------------ */
/* същите цветове като хедъра (--surface / --text / --line), затова следва и тъмната тема */
.foot { margin-top: 2rem; background: var(--surface); color: var(--muted); border-top: 1px solid var(--line); font-size: .85rem; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding: 1.1rem 0 1.4rem; border-top: 1px solid var(--line); }
.foot__fb { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-size: .9rem; font-weight: 600; }
.foot__fb-icon { display: grid; place-items: end center; width: 28px; height: 28px; background: #3b5998; color: #fff; }
.foot__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot__links a { color: var(--text); font-weight: 600; }
.foot__fb:hover, .foot__links a:hover { color: var(--brand); }
.foot__note { margin: 0; padding: 1.2rem 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* абонамент за бюлетин */
.news { max-width: 620px; margin-inline: auto; padding: 2rem 0 .4rem; text-align: center; }
.news__title { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; font-size: .95rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.news__title::before, .news__title::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.news__form { display: flex; gap: .75rem; }
.news__form input {
  flex: 1; min-width: 0; padding: .7rem 1rem; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
}
/* същият жълт бутон като в банера за бюлетина между офертите */
.news__btn {
  padding: .7rem 1.8rem; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap;
  color: var(--cta-ink); background: var(--cta); border: 0; border-radius: 999px;
}
.news__btn:hover { background: var(--cta-hover); }
.news__hint, .news__msg { margin: .5rem 0 0; font-size: .78rem; }
.news__msg { font-weight: 700; }
.news__msg--ok { color: var(--brand); }
.news__msg--err { color: var(--sale); }

/* плаваща стрелка "нагоре" (показва се след ~400px скрол, виж app.js) */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-dark); }

/* ---- таблет и телефон -------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  /* телефон/таблет: падащи менюта "Град" и "Категории" (като в grabo.bg), под тях "Карта" и "Филтри" */
  .side { display: flex; flex-direction: column; gap: .6rem; }
  .side__cats, .hlinks__map { display: none; }   /* градът е в панела "Филтри" */
  .side__bar { display: flex; flex-direction: column; gap: .5rem; order: -1; }
  /* minmax(0, 1fr): дългото име ("Услуги и забавления") се съкращава с "…", вместо да разширява колоната */
  .ddrow { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .dd { min-width: 0; }
  .barrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
  .barrow .fbtn:only-child { grid-column: 1 / -1; }
  .fbtn, .dd__btn {
    display: flex; align-items: center; gap: .5rem; width: 100%; min-width: 0; padding: .6rem .85rem; cursor: pointer;
    font: inherit; font-weight: 700; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  }
  .fbtn:hover, .dd__btn:hover, .dd.is-open .dd__btn { border-color: var(--brand); }
  .fbtn svg, .dd__btn svg { flex: none; width: 20px; height: 20px; color: var(--brand); }
  .fbtn__t, .dd__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
  .fbtn--map { justify-content: center; }
  .fbtn--map .fbtn__t { flex: 0 1 auto; }
  .dd__btn::after {
    content: ""; flex: none; width: .45rem; height: .45rem; margin: 0 .1rem 0 .2rem;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-30%) rotate(45deg); transition: transform .15s;
  }
  .dd.is-open .dd__btn::after { transform: translateY(20%) rotate(-135deg); }
  .fbtn b {
    display: inline-grid; place-items: center; flex: none; min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem; border-radius: 999px;
    background: var(--brand); color: var(--brand-ink); font-size: .78rem;
  }
  /* списъкът на падащото меню: на цялата ширина под двата бутона */
  .dd__panel {
    position: absolute; left: 0; right: 0; top: calc(100% + .35rem); z-index: 45; display: none;
    max-height: min(65vh, 520px); overflow-y: auto; overscroll-behavior: contain; padding: .35rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  }
  .dd.is-open .dd__panel { display: block; }
  .dd__list, .dd__sub { list-style: none; margin: 0; padding: 0; }
  .dd__list a { display: flex; align-items: center; gap: .7rem; padding: .7rem .75rem; border-radius: 10px; font-weight: 600; }
  .dd__list a:hover { background: var(--brand-soft); }
  .dd__list a.is-on { background: var(--brand-soft); color: var(--brand); }
  .dd__list a svg { flex: none; width: 20px; height: 20px; color: var(--brand); }
  .dd__list a span { flex: 1; min-width: 0; }
  .dd__list em { font-style: normal; font-weight: 500; font-size: .82rem; color: var(--muted); }
  .dd__list summary { display: flex; align-items: center; list-style: none; cursor: pointer; }
  .dd__list summary::-webkit-details-marker { display: none; }
  .dd__list summary > a { flex: 1; min-width: 0; }
  .dd__chev { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; }
  .dd__chev::after {
    content: ""; width: .5rem; height: .5rem; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
    transform: translateY(-25%) rotate(45deg); transition: transform .15s;
  }
  details[open] > summary .dd__chev::after { transform: translateY(25%) rotate(-135deg); }
  .dd__chev:hover { background: var(--brand-soft); }
  .dd__sub { margin: 0 0 .35rem 2.6rem; border-left: 2px solid var(--line); }
  .dd__sub a { padding: .55rem .75rem; font-weight: 500; font-size: .95rem; }
  .side__active { margin: 0; padding: 0; border: 0; }
  .dates__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* в панела има място за двете полета на един ред */
  /* панел "Филтри" отдолу нагоре */
  .sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 88vh; display: flex; flex-direction: column;
    background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
    transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .sheet.is-open { transform: none; visibility: visible; }
  .sheet__head { display: flex; align-items: center; justify-content: space-between; padding: .8rem .8rem .6rem 1.2rem; border-bottom: 1px solid var(--line); }
  .sheet__head h2 { margin: 0; font-size: 1.1rem; }
  .sheet__x { width: 42px; height: 42px; font-size: 1.7rem; line-height: 1; color: var(--text); background: none; border: 0; border-radius: 10px; cursor: pointer; }
  .sheet__x:hover { background: var(--brand-soft); }
  .sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 0 1.2rem 1.2rem; }
  .sheet__foot { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.2rem calc(.8rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .sheet__clear { font-weight: 600; color: var(--muted); text-decoration: underline; }
  .sheet__go { flex: 1; justify-content: center; }
  body.sheet-lock { overflow: hidden; }
  .offer { grid-template-columns: 1fr; }
  .page-card { padding: 1.6rem 1.3rem 2rem; }
  .article { padding: 1.4rem 1.1rem 1.2rem; }
  .article__body { font-size: 1rem; }
  .grid--3, .posts--3 { grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); }
  .mapbar { display: flex; margin-bottom: .8rem; }
  .mapbar .fbtn { width: 100%; }
  .maplayout .map { height: 60vh; min-height: 320px; }
  .maplayout .maphead { flex-wrap: wrap; }
  .article__body .inoffer { flex-wrap: wrap; }
  .inoffer__img, .article__body .inoffer__img img { width: 110px; height: 76px; }
  .article__body a.inoffer__btn { width: 100%; text-align: center; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext__a--next { grid-column: auto; }

  .post--hero { flex-direction: column; }
  .post--hero .post__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .post--hero .post__body { padding: 1.1rem 1.2rem 1.25rem; }
  .article__body h2[id] { scroll-margin-top: 1rem; }
  .form input[type="text"], .form input[type="email"], .form select { width: 100%; }
}
@media (max-width: 640px) {
  .top__row { gap: .6rem; }
  .logo { font-size: 19px; }
  .top:not(.top--classic) .top__fav { font-size: 0; }
  .top:not(.top--classic) .top__fav::before { content: "♥"; font-size: 16px; }
  .top:not(.top--classic) .top__fav #favCount { font-size: 13px; }
  .bar a { padding: 0 1rem; }
  .bar .bar__archive { margin-left: 0; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .top__row { flex-wrap: wrap; height: auto; padding: .7rem 0; }
  .top--classic .search { order: 5; flex-basis: 100%; max-width: none; margin-inline: 0; }
  .nav .nav__archive { margin-left: 0; }
  .map { height: 52vh; min-height: 300px; }   /* на телефон под картата се вижда и списъкът "Най-близо до вас" */
  .hlinks { margin-left: auto; gap: .7rem; }
  .hlinks__t { display: none; }
  /* лого, иконките и бутонът за тема - на един ред; търсачката е на следващия */
  .top--classic .top__row { gap: .7rem .45rem; }
  .logo { font-size: 17px; white-space: nowrap; gap: .35rem; }
  .logo__img { width: 30px; height: 30px; }
  .theme { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; flex: none; font-size: 15px; }
  /* лентата с групите: решетка по 4 в ред (иконка отгоре, надпис отдолу) - всичко се вижда без плъзгане */
  .nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; overflow: visible; }
  .nav a {
    flex-direction: column; justify-content: center; gap: .3rem; min-height: 58px; padding: .45rem .2rem;
    font-size: 11.5px; line-height: 1.2; text-align: center; white-space: normal; border-radius: 12px; border-color: var(--line);
  }
  .nav a svg { width: 20px; height: 20px; }
  /* по-високият хедър не остава закачен отгоре - повече място за офертите при превъртане */
  .top { position: static; }
  .news__form { flex-direction: column; }
  .foot__row { flex-direction: column; align-items: flex-start; }
  .to-top { right: 1rem; bottom: 1rem; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .card__media img { transition: none; }
}

/* ---- бисквитки (Google Analytics) ---------------------------------------------- */
.foot__cookies { padding: 0; font: inherit; font-weight: 600; color: var(--text); background: none; border: 0; cursor: pointer; }
.foot__cookies:hover { color: var(--brand); }
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 560px; margin: 0 auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.2);
}
.consent[hidden] { display: none; }
.consent__in { padding: 1rem 1.1rem; }
.consent__t { margin: 0 0 .3rem; }
.consent__txt { margin: 0 0 .8rem; font-size: .9rem; color: var(--muted); }
.consent__txt a { color: var(--brand); }
.consent__btns { display: flex; gap: .6rem; justify-content: flex-end; }
.consent__btns .btn { flex: 1 1 0; max-width: 170px; justify-content: center; }
.consent__no { color: var(--text); background: var(--bg); border: 1px solid var(--line); }
.consent__yes { color: #2b2100; background: #f5b700; }
/* ---- изскачащ прозорец за бюлетина (компютър: долу вдясно; телефон: карта отдолу) ---- */
.npop {
  position: fixed; left: 50%; top: 50%; z-index: 91; width: 440px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto;
  padding: 1.6rem 1.6rem 1.2rem; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3);
  opacity: 0; transform: translate(-50%, -46%) scale(.97); transition: opacity .25s ease, transform .25s ease;
}
.npop-bg { position: fixed; inset: 0; z-index: 90; background: rgba(10, 16, 22, .55); opacity: 0; transition: opacity .25s ease; }
.npop-bg[hidden] { display: none; }
.npop-bg.is-in { opacity: 1; }
.npop[hidden] { display: none; }
.npop.is-in { opacity: 1; transform: translate(-50%, -50%); }
.npop__x { position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; font-size: 1.5rem; line-height: 1; color: var(--muted); background: none; border: 0; cursor: pointer; }
.npop__x:hover { color: var(--text); }
.npop__h { display: flex; gap: .55rem; align-items: flex-start; margin: 0 1.8rem .45rem 0; font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.npop__h svg { flex: none; color: var(--brand); margin-top: 1px; }
.npop__sub { margin: 0 0 .85rem; font-size: .9rem; color: var(--muted); }
.npop__form { display: flex; gap: .5rem; }
.npop__form input[type="email"] {
  flex: 1; min-width: 0; padding: .7rem .9rem; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px;
}
.npop__btn { padding: .7rem 1.1rem; font: inherit; font-weight: 800; white-space: nowrap; color: var(--cta-ink); background: var(--cta); border: 0; border-radius: 999px; cursor: pointer; }
.npop__btn:disabled { opacity: .6; cursor: wait; }
.npop__msg { margin: 0; padding: .7rem .9rem; font-size: .9rem; border-radius: 10px; }
.npop__msg--ok { background: #e6f6ec; color: #1a7f4b; }
.npop__msg--err { margin-top: .6rem; background: #fdecec; color: #b42318; }
.npop__no { display: block; margin: .7rem auto 0; padding: .2rem .4rem; font: inherit; font-size: .85rem; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; }
@media (max-width: 640px) {
  .npop { padding: 1.3rem 1.2rem 1rem; }
  .npop__form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .npop, .npop-bg { transition: none; } }
.preview-note { margin: 0 0 1rem; padding: .8rem 1rem; background: #fff4d6; color: #7a5600; border-radius: 10px; font-weight: 600; }
.article__credit { margin: .35rem 0 0; font-size: .78rem; color: var(--muted); text-align: right; }
.article__credit a { color: inherit; }

/* ---- прости плочки на началната страница (без снимки): бледо цветен фон, голяма иконка, ясно заглавие ---- */
.topic--simple {
  --t: var(--brand);
  background: color-mix(in srgb, var(--t) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--t) 22%, var(--surface));
  box-shadow: none; transition: transform .2s ease, box-shadow .2s ease;
}
.topic--simple:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.topic--simple .topic__art {
  position: absolute; top: .9rem; right: 1rem;   /* горе вдясно - никога върху заглавието (то е долу) */
  color: var(--t); opacity: .9; line-height: 1;
}
.topic--simple .topic__art { width: 60%; }   /* рисунката: половината плочка, горе вдясно */
.tileart { display: block; width: 100%; height: auto; overflow: visible; }
.tileart__txt { fill: currentColor; font-family: var(--font-logo); font-weight: 800; letter-spacing: -.5px; }

.topic__big { font-family: var(--font-logo); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.02em; }
.topic--simple .topic__txt { background: none; color: var(--text); padding: 0 .95rem .8rem; }
.topic--simple .topic__txt strong { font-size: 1.02rem; color: var(--text); }
.topic--simple .topic__txt em { color: var(--muted); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .topic--simple { transition: none; } }@media (max-width: 900px) {
  /* тесни плочки на телефон: по-високи, по-малка картинка горе вдясно, заглавието отдолу на 2 реда */
  .topic--simple { aspect-ratio: auto; min-height: 142px; }
  .topic--simple .topic__art { top: .7rem; right: .75rem; }
  .topic--simple .topic__art { width: 62%; }
  .topic--simple .topic__big { font-size: 1.45rem; }
  .topic--simple .topic__txt { padding: 0 .8rem .7rem; }
  .topic--simple .topic__txt strong { font-size: .95rem; }
}
:root[data-theme="dark"] .topic--simple .topic__art { color: color-mix(in srgb, var(--t) 62%, #fff); }   /* по-светли рисунки в тъмната тема */

/* менюто в хедъра - всички главни категории като плочки: 6 в ред на компютър, 4 на телефон.
   Иконката е над надписа; на компютър бутоните са ниски (компактни отстъпи) */
@media (min-width: 901px) {
  .nav--cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .45rem; overflow: visible; }
  .nav--cats a {
    flex-direction: column; justify-content: center; gap: .15rem; min-height: 52px; padding: .3rem .4rem;   /* 2 реда = височината на лентата с филтри */
    font-size: .88rem; line-height: 1.1; text-align: center; white-space: normal; border-radius: 12px; border-color: var(--line);
  }
  .nav--cats a:hover { border-color: var(--brand); }
  .nav--cats a svg { width: 18px; height: 18px; }
}
@media (max-width: 900px) { .list__tools { width: 100%; } }
/* превключватели "Намалени" / "Последен шанс" над офертите */
.list__tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.qtoggles { display: flex; gap: .4rem; flex-wrap: wrap; }
.qtoggle {
  display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .8rem; font-size: .88rem; font-weight: 600;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.qtoggle:hover { border-color: var(--sale); text-decoration: none; }
.qtoggle svg { color: var(--sale); }
.qtoggle__box { position: relative; width: 28px; height: 16px; flex: none; background: var(--line); border-radius: 999px; transition: background .15s ease; }
.qtoggle__box::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; background: #fff; border-radius: 50%; transition: transform .15s ease; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.qtoggle.is-on { border-color: var(--sale); background: color-mix(in srgb, var(--sale) 8%, var(--surface)); }
.qtoggle.is-on .qtoggle__box { background: var(--sale); }
.qtoggle.is-on .qtoggle__box::after { transform: translateX(12px); }
@media (prefers-reduced-motion: reduce) { .qtoggle__box, .qtoggle__box::after { transition: none; } }

/* телефон: превключвателите на един ред */
@media (max-width: 900px) {
  .qtoggles { flex-wrap: nowrap; }
  .qtoggle { padding: .38rem .65rem; font-size: .84rem; }
}

/* ==== телефон: същата логика като на компютър ====
   менюто с категориите (решетка) -> подкатегориите (решетка) -> "Филтрирай по:" + Филтри / Наблизо
   (закачени горе при превъртане) -> избраните филтри (плъзгат се) -> препоръчани -> офертите по една в ред */
.mbar, .mbar__title { display: none; }
.fbar[hidden], .sbar[hidden] { display: none; }
.mapside__cats, #mapActive { display: none !important; }   /* картата: категориите са в менюто горе, избраните - в реда .fbar */
@media (max-width: 900px) {
  .nav__label { display: block; margin-top: .2rem; }
  /* колоната е излишна: падащите менюта и избраните филтри са заменени от лентите */
  .layout--offers > .side > .side__bar, .layout--offers > .side > .side__active { display: none; }
  .layout--offers > .side { gap: 0; }

  /* подкатегории / рубрики - решетка 4 в ред, като менюто с категориите горе */
  .sbar { display: grid; grid-template-rows: 1fr; margin: .2rem 0 0; transition: grid-template-rows .5s ease, opacity .5s ease; }
  .js .sbar:not(.is-open) { grid-template-rows: 0fr; opacity: 0; }
  .sbar.no-anim { transition: none; }
  .sbar__in { min-height: 0; overflow: hidden; }
  .sbar__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
  .sbar__label { grid-column: 1 / -1; margin: 0 0 .1rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
  .sbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 58px;   /* като плочките на менюто горе */
    padding: .45rem .2rem; font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--muted);
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  }
  .sbar a.is-on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
  .sbar a svg { flex: none; width: 20px; height: 20px; }
  .sbar + .layout, .sbar + script + .layout, .sbar + .mbar__title { margin-top: .9rem; }

  /* "Филтрирай по:" + бутоните - редът с бутоните се закача горе при превъртане */
  /* по-малко празно място между менюто с категориите и "Филтрирай по:" (под подкатегориите - повече) */
  main { padding-top: .7rem; }
  .mbar__title { display: block; margin: .15rem 0 .35rem; }
  .sbar ~ .mbar__title { margin-top: .9rem; }
  .mbar {
    position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem;
    margin: 0 -1rem; padding: .45rem 1rem; background: var(--bg);
  }
  .mbar .fbtn { justify-content: center; white-space: nowrap; }
  .mbar .fbtn .fbtn__t { flex: 0 1 auto; }
  .mapbar.mbar { display: grid; margin-bottom: 0; }

  /* избраните филтри - ред, който се плъзга */
  .fbar {
    display: flex; flex-wrap: nowrap; align-items: center; gap: .4rem; margin: .5rem -1rem .3rem; padding: 0 1rem .2rem;
    overflow-x: auto; scrollbar-width: none;
  }
  .fbar::-webkit-scrollbar { display: none; }
  .fbar > * { flex: none; }
  .fbar__t { font-size: .82rem; font-weight: 600; color: var(--muted); }
  .fchip--clear { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
  .fchip--clear .fchip__x { background: var(--muted); }
  .featured { margin-top: .9rem; }
}
