/* Filtr „Najdi si pokoj" na stránce Pokoje (tools/room-filter.mjs) – barvy a tvary podle průvodce .bcs-quiz a brandmanuálu */
.bcs-rf { padding: 8px 16px 28px; position: relative; z-index: 2; }
.bcs-rf-card { max-width: 1080px; margin: 0 auto; background: #FEF17D; border-radius: 32px; padding: 34px 36px 36px; color: #4B463C; }
.bcs-rf-card h2 { font-size: 30px; line-height: 1.15; margin: 6px 0 8px; color: #4B463C; }
.bcs-rf-card .bcs-rf-lead { margin: 0 0 22px !important; font-size: 16px; line-height: 1.45; }
/* jedna bílá lišta se 4 poli (jako vyhledávání na Booking/Airbnb) */
.bcs-rf-form { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; background: #fff; border-radius: 26px; padding: 6px; min-width: 0; }
.bcs-rf-f { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; margin: 0; padding: 12px 18px; position: relative; }
.bcs-rf-f + .bcs-rf-f::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: #E4DFC8; }
.bcs-rf-l { font-size: 13px; font-weight: 700; line-height: 1.2; }
.bcs-rf-sel { position: relative; display: block; }
.bcs-rf-sel::after { content: ""; position: absolute; right: 2px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid #4B463C; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.bcs-rf-f select { -webkit-appearance: none; appearance: none; width: 100%; margin: 0; padding: 4px 22px 4px 0 !important; border: 0 !important; background: transparent !important; color: #4B463C; font: inherit; font-size: 16px !important; font-weight: 600; line-height: 1.3; cursor: pointer; box-shadow: none !important; height: auto !important; }
.bcs-rf-f select:focus-visible { outline: 3px solid #93F1A2; outline-offset: 2px; border-radius: 6px; }
.bcs-rf-budget { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.bcs-rf-budget .bcs-rf-l { grid-column: 1; }
.bcs-rf-bval { grid-column: 2; font-size: 16px; font-weight: 700; white-space: nowrap; }
.bcs-rf-budget input[type=range] { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box !important; width: 100% !important; height: 24px !important; min-height: 0 !important; margin: 4px 0 0 !important; padding: 0 !important; border: 0 !important; border-radius: 6px !important; box-shadow: none !important; outline: 0; cursor: pointer;
  /* čára 6 px uprostřed; tmavá část končí přesně ve středu kuličky (24 px): 12 px + (šířka − 24 px) × podíl */
  background: linear-gradient(#4B463C, #4B463C) 0 50% / calc(12px + (100% - 24px) * var(--f, 1)) 6px no-repeat, linear-gradient(#E4DFC8, #E4DFC8) 0 50% / 100% 6px no-repeat !important; background-color: transparent !important; }
.bcs-rf-budget input[type=range]::-webkit-slider-runnable-track { height: 24px; background: transparent; border: 0; }
.bcs-rf-budget input[type=range]::-moz-range-track { height: 6px; background: transparent; border: 0; }
.bcs-rf-budget input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; box-sizing: border-box; width: 24px; height: 24px; margin: 0; border-radius: 50%; background: #93F1A2; border: 3px solid #4B463C; }
.bcs-rf-budget input[type=range]::-moz-range-thumb { box-sizing: border-box; width: 24px; height: 24px; border-radius: 50%; background: #93F1A2; border: 3px solid #4B463C; }
.bcs-rf-budget input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid #93F1A2; outline-offset: 2px; }
.bcs-rf-budget input[type=range]:focus-visible::-moz-range-thumb { outline: 3px solid #93F1A2; outline-offset: 2px; }
/* +/− počet lidí */
.bcs-rf-step { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bcs-rf-step button { width: 32px; height: 32px; flex: none; border-radius: 50% !important; border: 2px solid #4B463C !important; background: #fff !important; color: #4B463C !important; font-size: 18px !important; font-weight: 700; line-height: 1 !important; padding: 0 !important; cursor: pointer; box-shadow: none !important; }
.bcs-rf-step button:disabled { opacity: .3; cursor: default; }
.bcs-rf-pval { flex: 1; text-align: center; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcs-rf-clear { background: none !important; border: 0 !important; padding: 4px 0 !important; color: #4B463C !important; font: inherit; font-size: 15px !important; font-weight: 700; text-decoration: underline; cursor: pointer; box-shadow: none !important; }
.bcs-rf-show { display: none; }
/* „čím déle, tím levněji" (jako The Base) */
.bcs-rf-longer { display: flex; align-items: center; gap: 18px 28px; margin-top: 22px; padding: 18px 20px; border-radius: 22px; background: #fff; }
.bcs-rf-longer > div:first-child { flex: 1 1 220px; }
.bcs-rf-card .bcs-rf-longer h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #4B463C; }
.bcs-rf-card .bcs-rf-longer p { margin: 0 !important; font-size: 14px; }
.bcs-rf-bands { display: flex; gap: 8px; flex: 2 1 380px; }
.bcs-rf-bands button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px !important; border-radius: 16px !important; border: 2px solid #E4DFC8 !important; background: #fff !important; color: #4B463C !important; font: inherit; cursor: pointer; box-shadow: none !important; line-height: 1.2 !important; }
.bcs-rf-bands button:last-child { background: #93F1A2 !important; border-color: #93F1A2 !important; }
.bcs-rf-bands button.on { border-color: #4B463C !important; }
.bcs-rf-bands b { font-size: 17px; white-space: nowrap; }
.bcs-rf-bands small { font-size: 12px; font-weight: 600; }
.bcs-rf-out { margin-top: 26px; }
.bcs-rf-none { margin: 0; font-size: 15px; }
.bcs-rf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bcs-rf-head p { margin: 0 !important; font-weight: 700; font-size: 17px; }
.bcs-rf-more { background: none !important; border: 0 !important; padding: 4px 0 !important; color: #4B463C !important; font: inherit; font-size: 15px !important; font-weight: 700; text-decoration: underline; cursor: pointer; box-shadow: none !important; }
.bcs-rf-more { display: block; margin: 18px auto 0; background: #fff !important; text-decoration: none; border-radius: 50px; padding: 12px 26px !important; }
.bcs-rf-card .bcs-rf-also { font-size: 18px; font-weight: 700; margin: 18px 0 12px; color: #4B463C; }
.bcs-rf-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bcs-rf-item { display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; }
.bcs-rf-pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #93F1A2; }
.bcs-rf-card .bcs-rf-pic img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; border-radius: 0; }
.bcs-rf-house, .bcs-rf-tag { position: absolute; top: 12px; padding: 6px 12px; border-radius: 50px; font-size: 13px; font-weight: 700; line-height: 1; color: #4B463C; }
.bcs-rf-house { left: 12px; background: #fff; }
.bcs-rf-tag { right: 12px; background: #93F1A2; }
.bcs-rf-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.bcs-rf-name { font-size: 17px; font-weight: 700; line-height: 1.25; color: #4B463C !important; text-decoration: none; }
.bcs-rf-ppl { margin-top: 4px; font-size: 14px; }
.bcs-rf-card .bcs-rf-price { margin: 10px 0 14px !important; font-size: 20px; font-weight: 700; line-height: 1.2; }
.bcs-rf-price small { font-size: 13px; font-weight: 500; }
.bcs-rf-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.bcs-rf-btns a { flex: 1 1 0; min-width: max-content; text-align: center; padding: 11px 12px; border-radius: 50px; font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; color: #4B463C !important; }
.bcs-rf-book { background: #93F1A2; }
.bcs-rf-ghost { border: 2px solid #4B463C; padding: 9px 12px !important; }
.bcs-rf-note { margin: 14px 0 0; font-size: 13px; opacity: .8; }
@media (max-width: 980px) { .bcs-rf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bcs-rf-form { grid-template-columns: 1fr 1fr; } .bcs-rf-f:nth-child(3)::before { display: none; } .bcs-rf-f:nth-child(n+3) { border-top: 1px solid #E4DFC8; } }
@media (max-width: 640px) {
  .bcs-rf { padding: 8px 12px 24px; }
  .bcs-rf-card { padding: 24px 16px; border-radius: 24px; }
  .bcs-rf-card h2 { font-size: 24px; }
  .bcs-rf-form { grid-template-columns: minmax(0, 1fr); padding: 4px 6px; }
  .bcs-rf-f { padding: 12px 10px; }
  .bcs-rf-f::before { display: none; }
  .bcs-rf-f + .bcs-rf-f { border-top: 1px solid #E4DFC8; }
  .bcs-rf-sel select, .bcs-rf-pval { font-size: 16px !important; }
  .bcs-rf-step { justify-content: flex-start; }
  .bcs-rf-pval { flex: 0 1 auto; min-width: 120px; }
  /* tlačítko „Ukázat pokoje (N)" drží dole, dokud je vidět filtr (jako Airbnb) */
  .bcs-rf-show { display: block; position: sticky; bottom: 12px; z-index: 3; width: 100%; margin-top: 14px; padding: 15px 18px !important; border: 0 !important; border-radius: 50px !important; background: #4B463C !important; color: #FEF17D !important; font: inherit; font-size: 16px !important; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.22) !important; cursor: pointer; }
  .bcs-rf-longer { flex-direction: column; align-items: stretch; padding: 16px 14px; }
  .bcs-rf-longer > div:first-child, .bcs-rf-bands { flex: none; }
  .bcs-rf-bands button { padding: 10px 4px !important; }
  .bcs-rf-bands b { font-size: 15px; }
  .bcs-rf-list { grid-template-columns: 1fr; }
}
/* ceny podle délky smlouvy na kartě */
.bcs-rf-prices { margin: 12px 0 14px; }
.bcs-rf-prices ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bcs-rf-prices li { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2px; padding: 7px 4px; border-radius: 12px; background: #F6F3E4; text-align: center; }
.bcs-rf-prices li small { font-size: 11px; font-weight: 600; line-height: 1.15; }
.bcs-rf-prices li b { font-size: 14px; line-height: 1.2; white-space: nowrap; }
.bcs-rf-prices li.on { background: #93F1A2; }
.bcs-rf-under { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.bcs-rf-per { display: block; margin-left: auto; font-size: 12px; text-align: right; opacity: .8; white-space: nowrap; }
.bcs-rf-card .bcs-rf-save { margin: 0 !important; line-height: 1.25; font-size: 13px; font-weight: 700; color: #1E7A34; }

/* dotyková plocha aspoň 44 px (kontrola 25. 11. 2026) */
.bcs-rf-btns a { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
/* uživatelka 26. 11. 2026: „čím déle, tím levněji" + celková úspora */
.bcs-rf-card .bcs-rf-longer { margin: 6px 0 22px; border: 2px solid #93F1A2; }
.bcs-rf-card .bcs-rf-longer p.bcs-rf-tap { margin-top: 6px !important; font-size: 13px; color: #6F6A62; }
.bcs-rf-bands em { font-style: normal; font-size: 12px; font-weight: 700; line-height: 1.25; color: #1E7A34; margin-top: 4px; text-align: center; }
.bcs-rf-bands button:last-child em { color: #14532D; }
.bcs-rf-bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bcs-rf-bands button { min-width: 0; justify-content: flex-start; }
.bcs-rf-bands em, .bcs-rf-bands small { white-space: normal; overflow-wrap: anywhere; }
