/* ====================================================================
   БЪРЗ ПОДБОР (themes/clarity/templates/swipe.html, swipe.js)

   Имотите един по един като карти. На телефон страницата е на цял екран
   върху шапката и футъра: горе лента и филтри, по средата картата, долу
   бутоните. На компютър е колона под шапката на сайта.

   Цветовете са от темата (--accent, --ink, --line), затова върви с всеки
   скин. Двата знака върху картата: „харесвам“ в акцента, „не“ в червено.
==================================================================== */
/* променливите важат и за листовете - <dialog> стои извън .ct-swipe */
.ct-swipe,
.ct-swipe-sheet {
  --sw-nope: #d64545;
  --sw-radius: 22px;
  --sw-bg: color-mix(in srgb, var(--accent) 7%, #f5f6f8);
}
.ct-swipe {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 14px 28px;
  color: var(--ink);
}

/* --- горната лента --- */
.ct-swipe-top { display: flex; align-items: center; gap: 10px; }
.ct-swipe-heading { flex: 1 1 auto; min-width: 0; }
.ct-swipe-heading h1 { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.ct-swipe-heading p { margin: 2px 0 0; font-size: .8rem; line-height: 1.3; color: var(--ink-2); }
.ct-swipe-round {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(16, 24, 32, .12);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.ct-swipe-round:hover { background: var(--accent-soft); color: var(--accent); }
.ct-swipe-round .material-icons,
.ct-swipe-round .material-icons-outlined { font-size: 21px; }

/* --- филтрите: на компютър се пренасят на втори ред, на телефон са един ред, който се плъзга настрани --- */
.ct-swipe-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ct-swipe-filters::-webkit-scrollbar { display: none; }
.ct-swipe-deal {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.ct-swipe-deal label { margin: 0; cursor: pointer; }
.ct-swipe-deal input { position: absolute; opacity: 0; pointer-events: none; }
.ct-swipe-deal span {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.ct-swipe-deal input:checked + span { background: var(--ink); color: #fff; }
.ct-swipe-deal input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ct-swipe-select { flex: 0 0 auto; margin: 0; }
.ct-swipe-select select {
  max-width: 180px;
  height: 40px;
  padding: 0 30px 0 14px;
  border: 0;
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2344525c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  text-overflow: ellipsis;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.ct-swipe-select select.is-set { box-shadow: inset 0 0 0 2px var(--accent); }
.ct-swipe-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- сцената с картите --- */
.ct-swipe-stage { position: relative; display: flex; flex-direction: column; }
.ct-swipe-deck {
  position: relative;
  width: 100%;
  /* на компютър картата се свива, докато бутоните под нея останат в екрана под шапката на сайта */
  height: min(600px, max(360px, calc(100vh - 462px)));
}
.ct-swipe-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--sw-radius);
  background: #1b232b;
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 24, 32, .08), 0 24px 44px -24px rgba(16, 24, 32, .55);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  will-change: transform;
}
.ct-swipe-card.is-dragging { cursor: grabbing; }
.ct-swipe-card.is-moving { transition: transform .32s cubic-bezier(.2, .8, .3, 1), opacity .32s; }
.ct-swipe-card.is-leaving { z-index: 5; pointer-events: none; }
.ct-swipe-card.is-next { transform: scale(.955) translateY(12px); pointer-events: none; }
.ct-swipe-card.is-next .ct-swipe-info,
.ct-swipe-card.is-next .ct-swipe-bars { opacity: .6; }

.ct-swipe-photo,
.ct-swipe-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct-swipe-photo { background-size: cover; background-position: center; }
.ct-swipe-photo img { object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none; -webkit-user-drag: none; }
.ct-swipe-photo img.is-ready { opacity: 1; }
.ct-swipe-card::after {              /* тъмнее отгоре за лентичките и отдолу за текста */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 18, .5) 0, rgba(10, 14, 18, 0) 16%, rgba(10, 14, 18, 0) 44%, rgba(10, 14, 18, .88) 100%);
  pointer-events: none;
}

/* имот без снимка: светъл фон в цвета на сайта, голяма икона на типа имот и „Без снимка“;
   долу картата пак тъмнее, за да се четат цената и данните */
.ct-swipe-card.is-nophoto { background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 16%, #fff) 0%, color-mix(in srgb, var(--accent) 6%, #eef0f3) 100%); }
.ct-swipe-card.is-nophoto::after { background: linear-gradient(180deg, rgba(16, 24, 32, 0) 0, rgba(16, 24, 32, 0) 46%, rgba(16, 24, 32, .86) 100%); }
.ct-swipe-nophoto {
  position: absolute;
  inset: 0 0 46% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: color-mix(in srgb, var(--accent) 62%, #44525c);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.ct-swipe-nophoto .material-icons-outlined {
  display: grid !important;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  font-size: 54px;
}

/* лентичките на снимките: по една на снимка, запълнени са минатите и сегашната */
.ct-swipe-bars { position: absolute; z-index: 2; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; pointer-events: none; }
.ct-swipe-bars i { flex: 1 1 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .38); }
.ct-swipe-bars i.is-on { background: #fff; }

.ct-swipe-badges { position: absolute; z-index: 2; top: 24px; left: 12px; right: 60px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.ct-swipe-badges span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 24, 32, .72);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.2;
  backdrop-filter: blur(6px);
}
.ct-swipe-badges .material-icons { font-size: 15px; }

/* „Харесвам“ / „Не“ - появяват се, докато картата се тегли натам */
.ct-swipe-stamp {
  position: absolute;
  z-index: 3;
  top: 58px;
  padding: 6px 14px;
  border: 3px solid currentColor;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  background: rgba(16, 24, 32, .28);
}
.ct-swipe-stamp.is-like { left: 16px; color: #fff; border-color: #fff; background: var(--accent); transform: rotate(-12deg); }
.ct-swipe-stamp.is-nope { right: 16px; color: #fff; border-color: #fff; background: var(--sw-nope); transform: rotate(12deg); }

.ct-swipe-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px 64px 18px 18px; pointer-events: none; }
.ct-swipe-price { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ct-swipe-price small { font-size: .9rem; font-weight: 600; opacity: .85; }
.ct-swipe-info h2 { margin: 6px 0 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: #fff; }
.ct-swipe-sub { margin: 2px 0 0; font-size: .86rem; line-height: 1.35; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-swipe-place { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; font-size: .86rem; opacity: .92; }
.ct-swipe-place .material-icons-outlined { font-size: 17px; }
.ct-swipe-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ct-swipe-facts li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: .8rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.ct-swipe-facts .material-icons-outlined { font-size: 15px; }
.ct-swipe-more {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background .15s;
}
.ct-swipe-more:hover { background: rgba(255, 255, 255, .34); color: #fff; }
.ct-swipe-more .material-icons-outlined { font-size: 22px; }

/* --- зареждане и край на списъка --- */
.ct-swipe-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: var(--sw-radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
.ct-swipe-state[hidden] { display: none; }
.ct-swipe-state h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.ct-swipe-state p { margin: 0; max-width: 30ch; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.ct-swipe-state-ico { font-size: 44px; color: var(--accent); }
.ct-swipe-state-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.ct-swipe-state-btn.is-main { margin-top: 6px; background: var(--accent); color: #fff; text-decoration: none; }
.ct-swipe-state-btn.is-main .material-icons { font-size: 19px; }
.ct-swipe-state-btn[hidden] { display: none; }

/* краят на подбора: покана към брокера. Двата празни края центрират съдържанието, а когато
   то не се побира (нисък телефон), кутията се превърта отгоре, без да реже заглавието. */
.ct-swipe-end { justify-content: flex-start; gap: 8px; padding: 18px 20px; overflow-y: auto; }
.ct-swipe-end::before,
.ct-swipe-end::after { content: ""; flex: 1 1 0; }
.ct-swipe-end > * { flex: 0 0 auto; }
.ct-swipe-end p { max-width: 34ch; }
.ct-swipe-state-btn .material-icons { font-size: 19px; }

/* Двата големи бутона в края. Стоят върху „ръб“ (сянка без размиване), който потъва при
   натискане - да личи, че са за натискане, а не поредният ред текст.
     „Изпрати любимите на брокер“ - плътен; в кръгчето е брокерът, върху него броят на любимите
     „Опиши мечтания имот“ - бял с рамка, докато има харесани; без тях става плътен (.is-solid) */
.ct-swipe-end-btn {
  --ledge: color-mix(in srgb, var(--accent) 70%, #000);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 330px);
  min-height: 64px;
  margin-bottom: 5px;               /* мястото на ръба */
  padding: 9px 12px 9px 10px;
  border: 0;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ledge), 0 18px 24px -16px var(--accent);
  transition: transform .1s, box-shadow .1s, filter .15s;
  -webkit-tap-highlight-color: transparent;
}
.ct-swipe-end-btn[hidden] { display: none; }
.ct-swipe-end-btn:hover { filter: brightness(1.05); }
.ct-swipe-end-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ledge); }
.ct-swipe-end-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ct-swipe-end-btn.is-discuss { margin-top: 10px; }
.ct-swipe-end-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ct-swipe-end-txt b { font-size: 1rem; font-weight: 800; line-height: 1.2; }
.ct-swipe-end-txt small { font-size: .78rem; font-weight: 600; line-height: 1.25; opacity: .92; }
.ct-swipe-end-txt small:empty { display: none; }

/* брокерът в кръгче и броят на любимите върху него */
.ct-swipe-end-ava {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .5);
}
.ct-swipe-end-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ct-swipe-end-ava .material-icons { font-size: 26px; }
.ct-swipe-end-num {
  position: absolute;
  top: -10px;
  right: -7px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--sw-nope);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--accent), 0 4px 8px -4px rgba(16, 24, 32, .5);
  animation: ctSwipePop .5s cubic-bezier(.3, 1.6, .5, 1) .25s backwards;
}
.ct-swipe-end-num::before { content: "\2665"; font-size: .82rem; }
@keyframes ctSwipePop { from { transform: scale(0); } to { transform: none; } }
.ct-swipe-end-go,
.ct-swipe-end-spark,
.ct-swipe-end-mic {
  flex: 0 0 auto;
  display: grid !important;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  font-size: 20px !important;
}
.ct-swipe-end-go { animation: ctSwipeNudge 1.8s ease-in-out infinite; }
@keyframes ctSwipeNudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(4px); } }

/* „Опиши мечтания имот“: микрофонът вдясно казва, че може и с глас - само където браузърът разпознава реч */
.ct-swipe-end-btn.is-wish {
  --ledge: color-mix(in srgb, var(--accent) 38%, #fff);
  background: #fff;
  color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent), 0 5px 0 var(--ledge);
}
.ct-swipe-end-btn.is-wish:active { box-shadow: inset 0 0 0 2px var(--accent), 0 1px 0 var(--ledge); }
.ct-swipe-end-btn.is-wish .ct-swipe-end-txt b { color: var(--ink); }
.ct-swipe-end-btn.is-wish .ct-swipe-end-txt small { color: var(--ink-2); opacity: 1; }
.ct-swipe-end-btn.is-wish .ct-swipe-end-spark { background: var(--accent-soft); }
.ct-swipe-end-mic { display: none !important; background: var(--accent); color: #fff; }
.ct-swipe-end-voice { display: none; }
.ct-swipe.can-dictate .ct-swipe-end-mic { display: grid !important; animation: ctSwipeRing 1.8s ease-out infinite; }
.ct-swipe.can-dictate .ct-swipe-end-voice { display: block; }
@keyframes ctSwipeRing {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 10px transparent; }
}
.ct-swipe-end-btn.is-wish.is-solid {
  --ledge: color-mix(in srgb, var(--accent) 70%, #000);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 0 var(--ledge), 0 18px 24px -16px var(--accent);
}
.ct-swipe-end-btn.is-wish.is-solid:active { box-shadow: 0 1px 0 var(--ledge); }
.ct-swipe-end-btn.is-wish.is-solid .ct-swipe-end-txt b,
.ct-swipe-end-btn.is-wish.is-solid .ct-swipe-end-txt small { color: #fff; }
.ct-swipe-end-btn.is-wish.is-solid .ct-swipe-end-spark { background: rgba(255, 255, 255, .2); }
.ct-swipe-end-btn.is-wish.is-solid .ct-swipe-end-mic { background: #fff; color: var(--accent); }
.ct-swipe-state p.ct-swipe-end-sub { font-size: .82rem; color: var(--ink-3); }
.ct-swipe-end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.ct-swipe-end-links .ct-swipe-state-btn { min-height: 40px; padding: 6px 12px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }

.ct-swipe-spin { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: ctSwipeSpin .8s linear infinite; }
@keyframes ctSwipeSpin { to { transform: rotate(360deg); } }
.ct-swipe-keys { margin: 12px 0 0; text-align: center; font-size: .8rem; color: var(--ink-3); }

/* --- „Кажете ни защо не“: за няколко секунди над бутоните, върху долния край на картата --- */
.ct-swipe-why {
  position: absolute;             /* над бутоните, без да мести картата */
  z-index: 6;
  left: 0;
  right: 0;
  bottom: calc(100% + 12px);
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(16, 24, 32, .7);
  animation: ctSwipeUp .25s ease;
}
.ct-swipe-why[hidden] { display: none; }
.ct-swipe-why .material-icons-outlined { font-size: 18px; }
@keyframes ctSwipeUp { from { opacity: 0; transform: translateY(8px); } }

/* --- бутоните: върни, не, ИСКАМ ОГЛЕД, сърце, брояч --- */
.ct-swipe-actions { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
.ct-swipe-btn {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  box-shadow: 0 1px 3px rgba(16, 24, 32, .1), 0 10px 22px -14px rgba(16, 24, 32, .5);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, background .15s, color .15s;
}
.ct-swipe-btn .material-icons,
.ct-swipe-btn .material-icons-outlined { font-size: 26px; }
.ct-swipe-btn:active { transform: scale(.92); }
.ct-swipe-btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.ct-swipe-btn.is-undo,
.ct-swipe-btn.is-count { width: 44px; height: 44px; }
.ct-swipe-btn.is-undo .material-icons,
.ct-swipe-btn.is-count .material-icons-outlined { font-size: 21px; }
.ct-swipe-btn.is-nope { color: var(--sw-nope); }
.ct-swipe-btn.is-nope:hover { background: var(--sw-nope); color: #fff; }
.ct-swipe-btn.is-like { color: var(--accent); }
.ct-swipe-btn.is-like:hover { background: var(--accent); color: #fff; }
.ct-swipe-btn.is-count { color: var(--ink); }
.ct-swipe-btn.is-count.has-favorites { color: var(--accent); }
.ct-swipe-btn.is-count b {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.ct-swipe-btn.is-count b[hidden] { display: none; }
.ct-swipe-cta {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 26px -14px var(--accent);
  transition: transform .12s, filter .15s;
}
.ct-swipe-cta:hover { filter: brightness(.94); }
.ct-swipe-cta:active { transform: scale(.97); }
.ct-swipe-cta:disabled { opacity: .5; cursor: default; }
.ct-swipe-cta .material-icons { font-size: 21px; }
.ct-swipe-btn:focus-visible,
.ct-swipe-cta:focus-visible,
.ct-swipe-round:focus-visible,
.ct-swipe-why:focus-visible,
.ct-swipe-more:focus-visible,
.ct-swipe-state-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ct-swipe-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* --- листовете: „Искам оглед“ и „Как работи“ --- */
.ct-swipe-sheet {
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 22px 20px 20px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(16, 24, 32, .7);
  overflow-y: auto;
}
.ct-swipe-sheet::backdrop { background: rgba(16, 24, 32, .55); backdrop-filter: blur(2px); }
.ct-swipe-sheet h2 { display: flex; align-items: center; gap: 8px; margin: 0 40px 6px 0; font-size: 1.25rem; font-weight: 800; }
.ct-swipe-sheet h2 .material-icons { color: var(--accent); }
.ct-swipe-sheet-x { position: absolute; top: 12px; right: 12px; box-shadow: none; background: var(--paper-2); }
.ct-swipe-sheet-ad { margin: 0 0 6px; font-weight: 700; }
.ct-swipe-sheet-ad:empty { display: none; }
.ct-swipe-sheet-lead { margin: 0 0 14px; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.ct-swipe-sheet form label { display: block; margin: 12px 0 6px; font-size: .86rem; font-weight: 700; }
.ct-swipe-sheet form label small { font-weight: 500; color: var(--ink-2); }
.ct-swipe-sheet form input[type="tel"],
.ct-swipe-sheet form input[type="text"] {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 16px;                /* под 16px iOS приближава страницата при фокус */
}
.ct-swipe-sheet form input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
/* Съгласието е голям бутон с квадратче: целият ред се натиска и потъва, отметката „скача“ на мястото си.
   Истинската отметка стои невидима върху квадратчето - там излиза и подсказката на браузъра. */
.ct-swipe-sheet form .ct-swipe-sheet-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 3px;
  padding: 9px 12px;
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.ct-swipe-sheet-check:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--line), 0 1px 0 var(--line); }
.ct-swipe-sheet-check input { position: absolute; left: 12px; top: 50%; width: 30px; height: 30px; margin: -15px 0 0; opacity: 0; cursor: pointer; }
.ct-swipe-check-box {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--accent);
  color: #fff;
  transition: background .15s;
}
.ct-swipe-check-box .material-icons { display: block !important; font-size: 22px !important; transform: scale(0); transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); }
.ct-swipe-check-txt { flex: 1 1 auto; min-width: 0; }
.ct-swipe-check-txt b { color: var(--accent); font-weight: 700; }
.ct-swipe-sheet-check input:checked ~ .ct-swipe-check-box { background: var(--accent); }
.ct-swipe-sheet-check input:checked ~ .ct-swipe-check-box .material-icons { transform: none; }
.ct-swipe-sheet-check input:focus-visible ~ .ct-swipe-check-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.ct-swipe-sheet form .ct-swipe-sheet-check:has(input:checked) {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent), 0 3px 0 color-mix(in srgb, var(--accent) 45%, #fff);
}
/* опит за изпращане без съгласие: редът се разклаща и светва в червено */
.ct-swipe-sheet form .ct-swipe-sheet-check.is-missing {
  box-shadow: inset 0 0 0 2px var(--sw-nope), 0 3px 0 color-mix(in srgb, var(--sw-nope) 45%, #fff);
  animation: ctSwipeShake .4s ease-in-out;
}
.ct-swipe-sheet-check.is-missing .ct-swipe-check-box { box-shadow: inset 0 0 0 2px var(--sw-nope); }
@keyframes ctSwipeShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ct-swipe-sheet-error { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--sw-nope) 10%, #fff); color: #9c2b2b; font-size: .9rem; font-weight: 600; }
.ct-swipe-sheet-error[hidden] { display: none; }
.ct-swipe-sheet .ct-swipe-cta { width: 100%; margin-top: 18px; }
.ct-swipe-sheet-ok { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px 8px; text-align: center; font-weight: 600; }
.ct-swipe-sheet-ok[hidden] { display: none; }
.ct-swipe-sheet-ok .material-icons { font-size: 46px; color: var(--accent); }
.ct-swipe-sheet-ok p { margin: 0; }
.ct-swipe-sheet-ok .ct-swipe-state-btn { margin-top: 4px; }

/* --- листът в края на подбора: „Опиши мечтания имот“ / „Обсъди любимите с брокер“ --- */
.ct-swipe-wish-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 44px 10px 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ct-swipe-wish-kicker .material-icons { font-size: 14px; }
.ct-swipe-wish h2 { margin-right: 0; }
/* полето за писане и до него микрофонът - един ред вместо бутон над полето */
.ct-swipe-wish-say { display: flex; align-items: stretch; gap: 8px; }
.ct-swipe-wish-say textarea { flex: 1 1 auto; min-width: 0; }
.ct-swipe-wish-say > span { flex: 0 0 auto; display: flex; }
.ct-swipe-wish-say > span:empty { display: none; }    /* браузър без разпознаване на реч: бутон няма */
.ct-swipe-wish-mic {
  --ledge: color-mix(in srgb, var(--accent) 70%, #000);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 68px;
  margin-bottom: 4px;               /* мястото на ръба */
  padding: 6px 4px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ledge);
  transition: background .15s, transform .1s, box-shadow .1s;
  -webkit-tap-highlight-color: transparent;
}
.ct-swipe-wish-mic:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ledge); }
.ct-swipe-wish-mic:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ct-swipe-wish-mic .material-icons { font-size: 26px; }
.ct-swipe-wish-mic .when-on { display: none; }
.ct-swipe-wish-mic.is-on { --ledge: color-mix(in srgb, var(--sw-nope) 70%, #000); background: var(--sw-nope); animation: ctSwipeMic 1.2s ease-in-out infinite; }
.ct-swipe-wish-mic.is-on .when-on { display: inline; }
.ct-swipe-wish-mic.is-on .when-off { display: none; }
@keyframes ctSwipeMic { 50% { box-shadow: 0 4px 0 var(--ledge), 0 0 0 7px color-mix(in srgb, var(--sw-nope) 22%, transparent); } }
.ct-swipe-sheet form textarea,
.ct-swipe-sheet form input[type="email"] {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 16px;                /* под 16px iOS приближава страницата при фокус */
}
.ct-swipe-sheet form input[type="email"] { height: 50px; padding: 0 14px; }
.ct-swipe-sheet form textarea { display: block; min-height: 96px; padding: 12px 14px; line-height: 1.4; resize: vertical; }
.ct-swipe-sheet form textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
/* какво тръгва заедно с написаното: харесаните и филтрите на подбора */
.ct-swipe-wish-goes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: .78rem; color: var(--ink-2); }
.ct-swipe-wish-goes ul { display: contents; margin: 0; padding: 0; list-style: none; }
.ct-swipe-wish-goes li { padding: 3px 10px; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; }
.ct-swipe-wish-goes li.is-fav { background: var(--accent-soft); box-shadow: none; color: var(--accent); }
/* каналите за връзка: шест плочки с икона на един ред; избраната потъва и се оцветява */
.ct-swipe-wish-channel { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.ct-swipe-wish-channel legend { float: none; width: auto; margin: 0 0 6px; padding: 0; font-size: .82rem; font-weight: 700; }
.ct-swipe-wish-channel > div { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding-bottom: 3px; }
.ct-swipe-sheet form .ct-swipe-wish-channel label { display: block; min-width: 0; margin: 0; cursor: pointer; }
.ct-swipe-wish-channel input { position: absolute; opacity: 0; pointer-events: none; }
.ct-swipe-wish-channel span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
  min-height: 48px;
  padding: 6px 1px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line);
  color: var(--ink-2);
  transition: transform .1s, box-shadow .1s, background .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
}
.ct-swipe-wish-channel span i { display: block; width: auto; height: auto; font-size: 26px; line-height: 1; color: var(--accent); }
/* надписите под иконите не се побират на тесен екран: остават за екранните четци, а името на избрания канал е до заглавието */
.ct-swipe-wish-channel span b { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ct-swipe-wish-channel legend b { color: var(--accent); }
.ct-swipe-wish-channel .is-viber i { color: #7360f2; }
.ct-swipe-wish-channel .is-whatsapp i { color: #25d366; }
.ct-swipe-wish-channel .is-telegram i { color: #229ed9; }
.ct-swipe-wish-channel .is-signal i { color: #3a76f0; }
.ct-swipe-wish-channel input:checked + span {
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink), 0 1px 0 var(--ink);
  color: #fff;
  transform: translateY(2px);
}
.ct-swipe-wish-channel input:checked + span i { color: #fff; }
.ct-swipe-wish-channel input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* под иконите: име и телефон на един ред; при „Имейл“ до името е имейлът, а телефонът слиза под тях */
.ct-swipe-wish-who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
.ct-swipe-wish-who > [hidden] { display: none; }
.ct-swipe-wish-who .is-name { order: 1; }
.ct-swipe-wish-who .is-mail { order: 2; }
.ct-swipe-wish-who .is-tel { order: 3; }
.ct-swipe-wish form.is-email .ct-swipe-wish-who .is-tel { grid-column: 1 / -1; }
.ct-swipe-wish .ct-swipe-cta .material-icons { font-size: 19px; }
/* листът е дълъг - горната му част и полетата са сбити, за да се побира на екрана на телефон без превъртане */
.ct-swipe-wish { padding-top: 16px; }
.ct-swipe-wish-kicker { margin-bottom: 6px; padding: 3px 9px; font-size: .68rem; }
.ct-swipe-wish h2 { margin-bottom: 3px; font-size: 1.15rem; line-height: 1.2; }
.ct-swipe-wish .ct-swipe-sheet-lead { margin-bottom: 8px; font-size: .82rem; line-height: 1.35; }
.ct-swipe-wish form label { margin: 8px 0 4px; font-size: .82rem; }
.ct-swipe-sheet form .ct-swipe-wish-label { margin-top: 0; }
/* при „Опишете мечтания имот“ надписът над полето повтаря заглавието - остава само за екранните четци */
.ct-swipe-wish[data-mode="wish"] .ct-swipe-wish-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ct-swipe-wish form input[type="tel"],
.ct-swipe-wish form input[type="text"],
.ct-swipe-wish form input[type="email"] { height: 44px; padding: 0 12px; }
.ct-swipe-wish form textarea { min-height: 72px; padding: 10px 12px; }
.ct-swipe-wish form textarea::placeholder { font-size: .88rem; line-height: 1.35; }
.ct-swipe-wish-goes { margin-top: 8px; }
/* „Изпрати запитването“ е закачен за долния край на листа и формата се превърта под него */
.ct-swipe-wish { padding-bottom: 0; }
.ct-swipe-wish-send {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 16px -20px 0;
  padding: 12px 20px max(16px, env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -12px 18px -12px rgba(16, 24, 32, .28);
}
.ct-swipe-wish .ct-swipe-wish-send .ct-swipe-cta { margin-top: 0; }
.ct-swipe-wish-send .ct-swipe-sheet-error { margin: 0 0 10px; }
.ct-swipe-wish .ct-swipe-sheet-ok { padding-bottom: 22px; }

/* Подканата (swipe_wish.js, nudge): листът води по реда на попълване.
     is-next  - следващото непопълнено: рамка в акцента, през полето минава светла ивица,
                около него пулсира пръстен, а до надписа подскача стрелка
     is-done  - попълненото: зелена рамка и отметка вдясно в полето
     is-ready - всичко е попълнено: „Изпрати запитването“ проблясва и стрелката му кани
   Докато човек пише в полето, ивицата спира - да не пречи на текста. */
.ct-swipe-wish .is-next > label { color: var(--accent); }
.ct-swipe-wish .is-next > label::after {
  content: "south";                      /* стрелка надолу от шрифта с иконите */
  content: "south" / "";                 /* за екранните четци е празна - иначе четат „south“ към надписа */
  display: inline-block;
  margin-left: 4px;
  font-family: "Material Icons";
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  vertical-align: -3px;
  animation: ctNudgeArrow .8s ease-in-out infinite;
}
.ct-swipe-wish .ct-swipe-wish-who .is-next > input,
.ct-swipe-wish .ct-swipe-wish-say.is-next textarea {
  background: linear-gradient(110deg, #fff 38%, color-mix(in srgb, var(--accent) 20%, #fff) 50%, #fff 62%) 0 0 / 260% 100%;
  box-shadow: inset 0 0 0 2px var(--accent);
  animation: ctNudgeShine 1.7s linear infinite, ctNudgeRing 1.7s ease-out infinite;
}
.ct-swipe-wish .ct-swipe-wish-who .is-next > input:focus,
.ct-swipe-wish .ct-swipe-wish-say.is-next textarea:focus { background: #fff; animation: ctNudgeRing 1.7s ease-out infinite; }
.ct-swipe-wish .ct-swipe-wish-who .is-done > input {
  padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%232e9e5b'/%3E%3Cpath d='M6.8 12.4l3.4 3.4 7-7.2' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 20px 20px no-repeat;
  box-shadow: inset 0 0 0 2px #2e9e5b;
  animation: ctNudgeDone .35s cubic-bezier(.3, 1.6, .5, 1);
}
/* фокусът в попълнено поле пак се вижда */
.ct-swipe-wish .ct-swipe-wish-who .is-done > input:focus { box-shadow: inset 0 0 0 2px #2e9e5b, 0 0 0 3px color-mix(in srgb, #2e9e5b 30%, transparent); }
.ct-swipe-wish .ct-swipe-sheet-check.is-next .ct-swipe-check-box { animation: ctNudgeRing 1.7s ease-out infinite, ctNudgeTap 1.7s ease-in-out infinite; }
.ct-swipe-wish-send.is-ready .ct-swipe-cta {
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .38) 50%, transparent 62%) 0 0 / 260% 100% no-repeat, var(--accent);
  animation: ctNudgeShine 1.7s linear infinite;
}
.ct-swipe-wish-send.is-ready .ct-swipe-cta .material-icons { animation: ctSwipeNudge 1.2s ease-in-out infinite; }
.ct-swipe-wish-send.is-ready .ct-swipe-cta:disabled,
.ct-swipe-wish-send.is-ready .ct-swipe-cta:disabled .material-icons { animation: none; }   /* докато се изпраща */
@keyframes ctNudgeArrow { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes ctNudgeShine { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes ctNudgeRing {
  0% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  70%, 100% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 9px transparent; }
}
@keyframes ctNudgeTap { 0%, 100% { transform: none; } 50% { transform: scale(1.12); } }
@keyframes ctNudgeDone { from { background-size: 0 0; } to { background-size: 20px 20px; } }
.ct-swipe-intro ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ct-swipe-intro li { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.ct-swipe-intro li b { display: block; color: var(--ink); font-size: .98rem; }
.ct-swipe-intro li > .material-icons,
.ct-swipe-intro li > .material-icons-outlined {
  flex: 0 0 auto;
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 21px;
}
.ct-swipe-intro li > .is-nope { background: color-mix(in srgb, var(--sw-nope) 12%, #fff); color: var(--sw-nope); }

/* --- телефон и таблет: на цял екран, върху шапката и футъра --- */
@media (max-width: 991.98px) {
  body.ct-swipe-page { overflow: hidden; }
  .ct-swipe {
    position: fixed;
    inset: 0;
    z-index: 1040;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    padding: max(10px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
    background: var(--sw-bg);
  }
  .ct-swipe-heading p { display: none; }
  .ct-swipe-filters {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin: 0 -14px;
    padding: 2px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ct-swipe-select select { max-width: 46vw; }
  .ct-swipe-stage { flex: 1 1 auto; min-height: 0; align-items: center; }
  .ct-swipe-deck { flex: 1 1 auto; height: auto; max-width: 460px; }
  .ct-swipe-state { left: 50%; right: auto; width: min(100%, 460px); transform: translateX(-50%); }
  .ct-swipe-keys { display: none; }
  .ct-swipe-actions { flex: 0 0 auto; width: 100%; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 419.98px) {
  .ct-swipe-actions { gap: 8px; }
  .ct-swipe-btn { width: 50px; height: 50px; }
  .ct-swipe-btn.is-undo { width: 40px; height: 40px; }
  .ct-swipe-btn.is-count { width: 42px; height: 42px; }
  .ct-swipe-actions .ct-swipe-cta { padding: 8px 10px; }
  .ct-swipe-actions .ct-swipe-cta .material-icons { display: none; }
}
/* нисък екран: краят на подбора остава без иконата и допълнителния ред, за да се виждат всички бутони */
@media (max-height: 640px) {
  .ct-swipe-end .ct-swipe-state-ico,
  .ct-swipe-state p.ct-swipe-end-sub { display: none; }
}
@media (max-width: 359.98px) {
  .ct-swipe-actions { gap: 6px; }
  .ct-swipe-btn { width: 46px; height: 46px; }
  .ct-swipe-btn.is-undo { width: 36px; height: 36px; }
  .ct-swipe-btn.is-count { width: 40px; height: 40px; }
  .ct-swipe-actions .ct-swipe-cta { padding: 8px 6px; font-size: .86rem; }
  .ct-swipe-actions .ct-swipe-cta .material-icons { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-swipe-card.is-moving, .ct-swipe-photo img, .ct-swipe-btn, .ct-swipe-cta, .ct-swipe-round, .ct-swipe-end-btn, .ct-ask-choice { transition: none; }
  .ct-swipe-why, .ct-swipe-spin, .ct-swipe-wish-mic.is-on, .ct-swipe-end-num, .ct-swipe-end-go,
  .ct-swipe.can-dictate .ct-swipe-end-mic, .ct-ask-choices.is-in, .ct-swipe-sheet form .ct-swipe-sheet-check.is-missing { animation: none; }
  .ct-swipe-sheet-check, .ct-swipe-check-box .material-icons, .ct-swipe-wish-channel span { transition: none; }
  /* подканата остава като рамка и отметка, без движение */
  .ct-swipe-wish .is-next > label::after, .ct-swipe-wish .ct-swipe-wish-who .is-next > input, .ct-swipe-wish .ct-swipe-wish-say.is-next textarea,
  .ct-swipe-wish .ct-swipe-wish-who .is-next > input:focus, .ct-swipe-wish .ct-swipe-wish-say.is-next textarea:focus,
  .ct-swipe-wish .ct-swipe-wish-who .is-done > input, .ct-swipe-wish .ct-swipe-sheet-check.is-next .ct-swipe-check-box,
  .ct-swipe-wish-send.is-ready .ct-swipe-cta, .ct-swipe-wish-send.is-ready .ct-swipe-cta .material-icons { animation: none; }
}

/* ====================================================================
   БЪРЗИТЕ ВЪПРОСИ ОТ НАЧАЛНАТА СТРАНИЦА
   (themes/clarity/templates/modules/swipe_ask.html, swipe_ask.js)

   Лист с четири въпроса; всеки е мрежа от големи бутони със същия „ръб“
   като бутоните в края на подбора. На телефон листът стои долу, при палеца,
   и е с една височина за всички въпроси, за да не подскача между тях.
   Самият бутон „Кажи ни какво търсиш?“ в героя е в clarity.css.
==================================================================== */
.ct-ask-sheet { padding: 16px 18px 18px; }
.ct-ask-sheet[open] { display: flex; flex-direction: column; }
.ct-ask-top { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.ct-ask-top .ct-swipe-round { box-shadow: none; background: var(--paper-2); }
.ct-ask-top .ct-swipe-round[hidden] { display: grid; visibility: hidden; }   /* „Назад“ го няма на първия въпрос, но мястото му остава */
.ct-ask-dots { flex: 1 1 auto; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ct-ask-dots li { flex: 1 1 0; height: 8px; border-radius: 999px; background: var(--line); transition: background .25s; }
.ct-ask-dots li[hidden] { display: none; }
.ct-ask-dots li.is-done { background: var(--accent); }
.ct-ask-dots li.is-now { background: color-mix(in srgb, var(--accent) 45%, #fff); }
.ct-ask-count { flex: 0 0 auto; margin: 16px 0 2px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ct-swipe-sheet.ct-ask-sheet h2 { flex: 0 0 auto; display: block; margin: 0 0 14px; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em; outline: none; }
.ct-ask-choices {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 13px 10px;
  margin: 0 -6px;
  padding: 8px 6px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ct-ask-choices.is-in { animation: ctAskIn .22s ease-out; }
@keyframes ctAskIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.ct-ask-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line);
  transition: transform .08s, box-shadow .08s, background .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
}
.ct-ask-choice .material-icons-outlined { flex: 0 0 auto; font-size: 22px; color: var(--accent); }
.ct-ask-choice-name { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
/* броят обяви стои на ъгъла на бутона като значка - така името има място да не се чупи насред дума */
.ct-ask-choice small { position: absolute; top: -7px; right: -4px; min-width: 22px; padding: 3px 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 800; line-height: 1; text-align: center; }
.ct-ask-choice.is-all { grid-column: 1 / -1; background: var(--accent-soft); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 30%, #fff), 0 4px 0 color-mix(in srgb, var(--accent) 30%, #fff); }
.ct-ask-choice.is-current { box-shadow: inset 0 0 0 2px var(--accent), 0 4px 0 var(--accent); }
.ct-ask-choice:active,
.ct-ask-choice.is-picked { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--accent), 0 1px 0 var(--accent); }
.ct-ask-choice.is-picked { background: var(--accent); color: #fff; }
.ct-ask-choice.is-picked .material-icons-outlined { color: #fff; }
.ct-ask-choice.is-picked small { background: #fff; color: var(--accent); }
.ct-ask-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* „Купи“ / „Наеми“: два високи бутона с иконата отгоре */
.ct-ask-choices.is-deal .ct-ask-choice { flex-direction: column; justify-content: center; gap: 12px; min-height: 170px; font-size: 1.2rem; font-weight: 800; text-align: center; }
.ct-ask-choices.is-deal .ct-ask-choice-name { flex: 0 0 auto; }
.ct-ask-choices.is-deal .material-icons-outlined { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); font-size: 30px; }
.ct-ask-choices.is-deal .is-picked .material-icons-outlined { background: rgba(255, 255, 255, .22); }
.ct-ask-wait { grid-column: 1 / -1; justify-self: center; margin: 40px 0; }
.ct-ask-skip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.ct-ask-skip .material-icons { font-size: 17px; }
.ct-ask-skip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 991.98px) {
  .ct-ask-sheet { height: min(560px, calc(100dvh - 24px)); margin: auto auto max(12px, env(safe-area-inset-bottom)); }
}
