:root { --orange: #fc5000; }
@keyframes fade { from { opacity: 0; } }
/* Finder dropdowns (sport / resort with pictures, price histogram + range, calendar) - from the web design artifact. */
.fpill > .ffield { background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.fpill > .ffield .f-hint { color: var(--edge-a); }
.finder .shade { position: fixed; inset: 0; }
.ffield:first-child { border-radius: 41px 0 0 41px; }
.fpill.is-open::after { opacity: 1; }
.ffield .f-hint{ margin-top: 4px; overflow: hidden; font: 600 12px/16px var(--font-ka); letter-spacing: .01em; color: var(--edge-a); white-space: nowrap; text-overflow: ellipsis; }
.ffield.has-value .f-label{ font-size: 12px; line-height: 14px; }
.ffield.has-value .ffield .f-hint{ margin-top: 1px; font-size: 20px; line-height: 27px; color: var(--ink); }
.ffield:hover .f-hint:not(.on){ color: #3a3a3a; }
.go{ width: 157px; height: 52px; margin: 0 21px 0 22px; padding: 0; border: 0; border-radius: 26px; background: var(--blue); color: var(--navy); font: 700 15px/18px var(--font-ui); letter-spacing: .01em; cursor: pointer; transition: transform .35s var(--ease-pop), box-shadow .35s ease; }
.go:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(39, 142, 255, .7); }
.go:active{ transform: scale(.97); }
.fpill.is-open::after{ opacity: 1; }
.fpill.is-open .ffield + .ffield::before{ opacity: 0; }
.ffield.is-open{ z-index: 3; }
.ffield.is-open::after{ content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: var(--hl-l, -31px); right: var(--hl-r, -22px); border-radius: 41px; background: #1a1a1a; animation: fade .25s ease; }
.dd{ position: absolute; z-index: 4; top: calc(100% + 9px); box-sizing: border-box; width: 363px; margin: 0; padding: 15px 8px 22px; list-style: none; border-radius: 30.5px; background: #1a1a1a; box-shadow: 0 4px 7px rgba(0, 0, 0, .25); transform-origin: top left; animation: dd-in .35s var(--ease-pop); }
.dd[hidden]{ display: none; }
.lb button{ display: flex; align-items: center; justify-content: space-between; width: 100%; height: 80px; padding: 0 34px 0 36px; border: 0; border-radius: 30.5px; background: none; color: var(--ink); font: 700 16px/22px var(--font-ka); letter-spacing: .01em; text-align: left; cursor: pointer; transition: background-color .2s ease; }
.lb button:hover, .lb button[aria-selected="true"], .lb button:focus-visible{ background: #202020; outline: none; }
.dd .ph{ width: 50px; height: 50px; transition: transform .45s var(--ease-pop); }
.lb button:hover .ph{ transform: scale(1.06) rotate(-4deg); }
.shade{ position: fixed; inset: 0; z-index: 30; background: rgba(17, 17, 17, .78); animation: fade .3s ease; }
.shade[hidden]{ display: none; }
.dd.wide{ width: 380px; padding: 24px 22px 22px; }
.dd-title{ margin: 0; font: 700 16px/22px var(--font-ka); letter-spacing: .01em; }
.dd-note{ margin: 2px 0 0; font: 400 11px/15px var(--font-ka); color: #9a9a9a; }
.hist{ display: flex; align-items: flex-end; gap: 3px; height: 56px; margin: 20px 9px 0; }
.hist i{ flex: 1; min-height: 4px; border-radius: 3px 3px 0 0; background: #2a2a2a; transition: background-color .2s ease; }
.hist i.in{ background: rgba(39, 142, 255, .55); }
.range{ position: relative; height: 22px; margin: 0 0 0; }
.range .rail{ position: absolute; left: 9px; right: 9px; top: 9px; height: 4px; border-radius: 2px; background: #2a2a2a; }
.range .fill{ position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--blue); }
.range input{ position: absolute; inset: 0; width: 100%; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb{ pointer-events: auto; -webkit-appearance: none; width: 22px; height: 22px; border: 4px solid var(--blue); border-radius: 50%; background: #fff; cursor: grab; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); transition: transform .2s var(--ease-pop); }
.range input::-moz-range-thumb{ pointer-events: auto; width: 14px; height: 14px; border: 4px solid var(--blue); border-radius: 50%; background: #fff; cursor: grab; }
.range input::-moz-range-track{ background: none; }
.range input:active::-webkit-slider-thumb{ transform: scale(1.15); cursor: grabbing; }
.range input:focus-visible{ outline: none; }
.range input:focus-visible::-webkit-slider-thumb{ outline: 2px solid #fff; outline-offset: 2px; }
.pr-boxes{ display: grid; grid-template-columns: 1fr 14px 1fr; align-items: center; gap: 8px; margin-top: 18px; }
.pbox{ display: block; padding: 8px 14px; border: 1px solid transparent; border-radius: 19px; background: #202020; cursor: text; transition: border-color .2s ease; }
.pbox span{ display: block; font: 400 10px/14px var(--font-ka); color: #9a9a9a; }
.pbox input{ width: 100%; padding: 0; border: 0; background: none; outline: none; font: 700 15px/20px var(--font-ka); color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.pbox input::-webkit-inner-spin-button, .pbox input::-webkit-outer-spin-button{ -webkit-appearance: none; margin: 0; }
.pbox:focus-within{ border-color: var(--blue); }
.pr-boxes .dash{ height: 1px; background: #3a3a3a; }
.quick{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.qchip{ height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 16px; background: #202020; color: var(--ink); font: 600 11px/15px var(--font-ka); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .3s var(--ease-pop); }
.qchip:hover{ background: #262626; }
.qchip:active{ transform: scale(.95); }
.qchip.on{ border-color: var(--blue); background: #272626; }
.dd-actions{ display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.dd-clear{ padding: 6px 2px; border: 0; background: none; color: #9a9a9a; font: 600 13px/18px var(--font-ui); cursor: pointer; }
.dd-clear:hover{ color: var(--ink); }
.dd-ok{ height: 42px; padding: 0 24px; border: 0; border-radius: 13.5px; background: var(--blue); color: var(--ink); font: 600 14px/18px var(--font-ui); cursor: pointer; transition: transform .3s var(--ease-pop); }
.dd-ok:hover{ transform: translateY(-1px); }
.cal-head{ display: flex; align-items: center; justify-content: space-between; }
.cal-head .arr{ width: 36px; height: 36px; }
.cal-head .arr .ico{ width: 16px; height: 16px; }
.cal-month{ margin: 0; font: 700 16px/22px var(--font-ka); letter-spacing: .01em; }
.cal-week, .cal-grid{ display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week{ margin-top: 16px; }
.cal-week span{ text-align: center; font: 300 10px/14px var(--font-ka); color: #9a9a9a; }
.cal-week span:nth-child(n+6){ color: var(--orange); }
.cal-grid{ margin-top: 8px; }
.cal-grid.flip{ animation: cal-in .3s var(--ease-out); }
.day{ display: grid; place-items: center; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 14px; background: none; color: var(--ink); font: 700 14px/18px var(--font-ka); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .3s var(--ease-pop); }
.day:hover:not(:disabled){ background: #202020; }
.day:active:not(:disabled){ transform: scale(.92); }
.day.today{ color: var(--orange); }
.day.today::after{ content: ""; width: 4px; height: 4px; margin-top: -10px; border-radius: 50%; background: var(--orange); }
.day[aria-pressed="true"]{ border-color: var(--blue); background: #272626; color: var(--ink); }
.day:disabled{ color: #3a3a3a; cursor: default; }
.day.pad{ visibility: hidden; }
@media (max-width: 699px){
  .finder { margin-top: 32px; }
  .finder-box { padding: 14px; border-radius: 26px; }
  .fpill { grid-template-columns: minmax(0, 1fr); height: auto; padding: 6px 0 14px; border-radius: 22px; }
  .ffield, .ffield:first-child { height: 66px; padding: 0 22px; border-radius: 18px; }
  .ffield + .ffield::before { left: 22px; right: 22px; top: 0; height: 0; border-left: 0; border-top: 1px solid var(--edge-a); }
  .go { width: auto; margin: 10px 14px 0; }
  .fpill::after { width: 100%; bottom: 0; border-radius: 22px; }
  .ffield.is-open::after, .ffield:first-child.is-open::after { left: 6px; right: 6px; border-radius: 18px; }
  .dd { left: 0 !important; right: 0; width: auto; }
  .dd.wide { width: auto; padding: 20px 16px 18px; }
  .day { height: 40px; }
  .lb button { height: 64px; padding: 0 20px 0 22px; }
  .dd .ph { width: 42px; height: 42px; }
}
.ph-img{ border-radius: 50%; object-fit: cover; }
/* light theme = inverted dark; real pictures keep their colours */
html[data-theme="light"] .dd .ph-img, html[data-theme="light"] .scard .art, html[data-theme="light"] .go { filter: invert(1) hue-rotate(180deg); }
html[data-theme="light"] .range input::-webkit-slider-thumb { background: #fff; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cal-in { from { opacity: 0; transform: translateX(var(--dir, 0)); } to { opacity: 1; transform: none; } }
.ins-page .finder { z-index: 31; }
.fpill .ffield[data-dd="sport"] { padding-left: 52px; border-radius: 41px 0 0 41px; }
@media (max-width: 820px) { .fpill .ffield[data-dd="sport"] { padding-left: 24px; border-radius: 18px; } }
