/* CreteCompass experiences: filter popup, chips and map (experiences.cretecompass.com). Loaded by views/tours.php only. */

.xf-hero { padding-bottom: 18px; }
.xf-sticky { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); margin: 0 0 22px; }
.xf-sticky .browse__bar { position: static; margin: 0; border-bottom: 0; }
.xf-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 12px; }
.xf-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--brand-50); color: var(--brand); border-radius: 999px; padding: 5px 7px 5px 12px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.xf-chip span { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #fff; font-size: 13px; line-height: 1; }
.xf-chip:hover { background: #dcebfa; }
.xf-chip--clear { background: none; color: var(--muted); text-decoration: underline; padding-left: 4px; }
.nearby-btn.is-active { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.vcard.is-hl { box-shadow: 0 0 0 3px var(--brand); }
html.xf-lock { overflow: hidden; }

/* ---------------- map view: list left, map right */
.xf-mapview .xf-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.xf-mapview .xf-list .grid--tours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xf-mapbox { position: sticky; top: calc(var(--header-h) + var(--xf-stick, 70px) + 12px); height: calc(100dvh - var(--header-h) - var(--xf-stick, 70px) - 24px); min-height: 380px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); isolation: isolate; }
.xf-map { position: absolute; inset: 0; z-index: 0; }
.xf-mapswitch { position: absolute; z-index: 500; top: 12px; left: 50%; transform: translateX(-50%); display: flex; background: #fff; border-radius: 999px; box-shadow: 0 2px 12px rgb(0 0 0 / .18); padding: 3px; }
.xf-mapswitch a, .xf-mapswitch span { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; color: var(--muted); text-decoration: none; }
.xf-mapswitch .is-on { background: var(--navy); color: #fff; }
.xf-mapnote { position: absolute; z-index: 500; left: 12px; bottom: 12px; margin: 0; background: #fff; border-radius: 10px; padding: 6px 10px; font-size: 12.5px; color: var(--muted); box-shadow: 0 2px 8px rgb(0 0 0 / .12); }
.xf-pinwrap { background: none; border: 0; }
.xf-pin { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; font-size: 13px; border: 3px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .35); }
.xf-pop b { color: var(--navy); }
.xf-pop ul { margin: 6px 0; padding-left: 16px; }
.xf-pop p { margin: 0 0 8px; color: var(--muted); }
.xf-pop .btn { color: #fff; }
@media (max-width: 1023px) {
  .xf-mapview .xf-split { display: block; }
  .xf-mapview .xf-list { display: none; }
  .xf-mapbox { top: calc(var(--header-h) + var(--xf-stick, 60px) + 8px); height: calc(100dvh - var(--header-h) - var(--xf-stick, 60px) - 90px); }
}

/* ---------------- popup: left drawer on desktop, bottom sheet on phones */
.xf-veil { position: fixed; inset: 0; z-index: 95; background: rgb(20 50 79 / .38); opacity: 0; transition: opacity .2s; }
.xf-veil.is-open { opacity: 1; }
.xf-sheet { position: fixed; z-index: 96; top: 0; bottom: 0; left: 0; width: 460px; max-width: 100%; background: #fff; display: flex; flex-direction: column; transform: translateX(-104%); transition: transform .22s ease; box-shadow: 8px 0 30px rgb(0 0 0 / .2); }
.xf-sheet.is-open { transform: none; }
@media (max-width: 759px) {
  .xf-sheet { top: auto; width: 100%; height: 92dvh; border-radius: 20px 20px 0 0; transform: translateY(104%); }
  .xf-sheet.is-open { transform: none; }
}
.xf-head { position: relative; display: flex; align-items: center; justify-content: center; padding: 12px 60px; border-bottom: 1px solid var(--line); }
.xf-where { position: relative; width: 100%; max-width: 230px; }
.xf-wherebtn { position: relative; width: 100%; height: 40px; border: 0; border-radius: 999px; padding: 0 36px; background: var(--brand-50); font: inherit; font-size: 14.5px; font-weight: 800; color: var(--navy); cursor: pointer; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xf-wherebtn:hover { background: #dcebfa; }
.xf-wherebtn .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; transition: transform .2s; }
.xf-wherebtn[aria-expanded=true] .icon { transform: translateY(-50%) rotate(180deg); }
.xf-wherepanel { position: absolute; z-index: 5; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 290px; max-height: 62vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgb(20 50 79 / .18); padding: 6px; text-align: left; }
.xf-wreg { display: flex; align-items: center; }
.xf-wrow { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 42px; padding: 0 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--navy); text-align: left; cursor: pointer; }
.xf-wrow:hover { background: var(--soft); }
.xf-wrow span { flex: 1; }
.xf-wrow small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.xf-wrow.is-on { background: var(--brand-50); color: var(--brand); }
.xf-wrow .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.xf-wrow--sub { padding-left: 30px; font-weight: 600; font-size: 14.5px; min-height: 38px; }
.xf-wexp { flex: none; width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.xf-wexp:hover { background: var(--soft); }
.xf-wexp .icon { width: 16px; height: 16px; transition: transform .2s; }
.xf-wexp.is-open .icon { transform: rotate(180deg); }
.xf-where select, .xf-sortsel select { width: 100%; height: 44px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 38px 0 18px; font: inherit; font-weight: 800; color: var(--navy); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2314324F' stroke-width='2.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; appearance: none; cursor: pointer; }
.xf-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.xf-x:hover { background: var(--soft); }
.xf-x .icon { width: 22px; height: 22px; }
.xf-body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; overscroll-behavior: contain; }
.xf-loading, .xf-none { color: var(--muted); padding: 14px; margin: 0; }
.xf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) 31px; border-top: 1px solid var(--line); background: #fff; }
.xf-clear { color: var(--navy); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.xf-go { border: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 13px 26px; font: inherit; font-weight: 800; font-size: 15.5px; cursor: pointer; }
.xf-go:hover { background: var(--brand-700); }
.xf-go:disabled { background: #9aa8b6; cursor: default; }

.xf-tools { display: flex; gap: 8px; margin: 0 0 10px; }
.xf-sortsel { flex: 1; }
.xf-pill { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; font: inherit; font-weight: 800; color: var(--navy); cursor: pointer; }
.xf-pill.is-on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.xf-pill .icon { width: 17px; height: 17px; }
.xf-search { position: relative; display: block; margin: 0 0 22px; }
.xf-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.xf-search input { width: 100%; height: 46px; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 0 14px 0 40px; font: inherit; background: #fff; }
.xf-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }

/* boxes: "What do you want to do?" and "Options" share one look */
.xf-box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; margin: 0 0 22px; }
.xf-box__head { margin: 0; padding: 12px 14px; background: var(--soft); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); text-align: center; font-weight: 800; border-bottom: 1px solid var(--line); }
.xf-box__head--nav { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; text-align: left; padding: 10px 10px 10px 14px; }
.xf-box__head--nav h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 16.5px; color: var(--navy); min-width: 0; }
.xf-back { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--brand); border-radius: 999px; padding: 9px 16px 9px 12px; font: inherit; font-size: 14.5px; font-weight: 800; color: var(--brand); cursor: pointer; box-shadow: 0 1px 3px rgb(30 90 156 / .15); }
.xf-back:hover { background: var(--brand); color: #fff; }
.xf-back .icon { width: 17px; height: 17px; }

.xf-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 14px; border: 0; border-top: 1px solid var(--line); background: #fff; font: inherit; text-align: left; color: var(--navy); cursor: pointer; }
.xf-box__head + .xf-row { border-top: 0; }
.xf-row:hover { background: #f8fafc; }
.xf-row input { width: 19px; height: 19px; margin: 0; accent-color: var(--brand); flex: none; cursor: pointer; }
.xf-lbl { flex: 1; font-weight: 700; font-size: 15px; cursor: pointer; }
.xf-lbl small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.xf-n { font-size: 13px; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 1px 9px; }
.xf-sel { background: var(--brand); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 800; padding: 1px 8px; }
.xf-row > .icon { width: 16px; height: 16px; color: var(--muted); flex: none; }
.xf-row--hub .xf-lbl { font-size: 15.5px; }
.xf-hubicon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-50); color: var(--brand); flex: none; }
.xf-hubicon .icon { width: 18px; height: 18px; }
.xf-row--all .xf-lbl { font-weight: 800; }
.xf-row--sub { min-height: 44px; padding-left: 46px; background: #fbfcfd; }
.xf-row--sub .xf-lbl { font-weight: 600; font-size: 14.5px; }
.xf-exp, .xf-exp-gap { width: 32px; height: 32px; flex: none; }
.xf-exp { border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.xf-exp:hover { background: var(--soft); }
.xf-exp .icon { width: 16px; height: 16px; transition: transform .2s; }
.xf-exp.is-open .icon { transform: rotate(180deg); }

/* options */
.xf-opt { padding: 14px; border-top: 1px solid var(--line); }
.xf-box__head + .xf-opt { border-top: 0; }
.xf-opt__t { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--navy); font-size: 15px; text-align: left; }
.xf-opt__t em { font-style: normal; font-weight: 700; color: var(--brand); margin-left: auto; }
.xf-range { position: relative; height: 70px; margin: 6px 11px 0; cursor: pointer; touch-action: none; }
.xf-range--one { height: 30px; }
.xf-hist { position: absolute; left: 0; right: 0; bottom: 22px; height: 42px; display: flex; align-items: flex-end; gap: 2px; }
.xf-hist i { flex: 1; background: #d7dee6; border-radius: 3px 3px 0 0; }
.xf-hist i.in { background: var(--brand); }
.xf-track { position: absolute; left: 0; right: 0; bottom: 10px; height: 4px; border-radius: 4px; background: #d7dee6; }
.xf-fill { position: absolute; top: 0; bottom: 0; background: var(--navy); border-radius: 4px; }
.xf-range input[type=range] { position: absolute; left: -11px; right: -11px; width: calc(100% + 22px); bottom: 0; height: 24px; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.xf-range--one input[type=range] { pointer-events: auto; cursor: pointer; }
.xf-range input::-webkit-slider-runnable-track { background: none; height: 24px; }
.xf-range input::-moz-range-track { background: none; }
.xf-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); box-shadow: 0 1px 4px rgb(0 0 0 / .25); cursor: grab; }
.xf-range input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); cursor: grab; }
.xf-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--brand-50); }
.xf-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 2px 2px 0; }
.xf-tod { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.xf-tod button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 4px 7px; display: grid; justify-items: center; gap: 3px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--navy); cursor: pointer; }
.xf-tod button svg { width: 24px; height: 24px; }
.xf-tod button.is-on { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.xf-tod button:disabled { opacity: .35; cursor: default; }
.xf-acc .xf-opt__t { cursor: pointer; min-height: 26px; }
.xf-acc .xf-opt__t .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; flex: none; }
.xf-acc.is-open .xf-opt__t .icon { transform: rotate(180deg); }
.xf-acc__in { display: none; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.xf-acc.is-open .xf-acc__in { display: flex; }
.xf-tag { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--navy); cursor: pointer; }
.xf-tag small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.xf-tag.is-on { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }

/* v36: bar order (map left, Filters right), blue Filters button, area dropdown, live updates */
.xf-bar .region-pill--map { margin-left: 0; flex: none; }
.xf-filters-btn { border-color: var(--brand); color: var(--brand); flex: none; }
.xf-filters-btn:hover { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }
.xf-split { transition: opacity .15s; }
body.xf-busy .xf-split { opacity: .55; }

/* v37: count left + Map button, region pill with area menu, round Nearby, bigger Filters */
.xf-bar .toolbar__count { margin: 0; }
.xf-mapbtn { gap: 6px; }
.xf-mapbtn .icon { width: 15px; height: 15px; }
.xf-regpill { position: relative; padding: 0 4px 0 14px; gap: 2px; }
.xf-regpill > a { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; min-height: 38px; }
.xf-regpill > a small { font-size: 12px; font-weight: 700; opacity: .8; margin-left: 2px; }
.xf-regpill > a small::before { content: "· "; }
.xf-regpill__caret { display: grid; place-items: center; width: 30px; height: 30px; margin-left: 4px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; cursor: pointer; }
.xf-regpill__caret:hover { background: rgb(255 255 255 / .3); }
.xf-regpill__caret .icon { width: 14px; height: 14px; transition: transform .2s; }
.xf-regpill__caret[aria-expanded=true] .icon { transform: rotate(180deg); }
.xf-townmenu { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgb(20 50 79 / .18); padding: 6px; display: grid; }
.xf-townmenu[hidden] { display: none; }
.xf-townlink { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--navy); font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.xf-townlink span { flex: 1; }
.xf-townlink small { color: var(--muted); font-weight: 600; }
.xf-townlink:hover { background: var(--soft); }
.xf-townlink.is-on { background: var(--brand-50); color: var(--brand); }
.xf-bar .region-pills { overflow: visible; }
.xf-nearbtn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
.xf-filters-btn { height: 44px; padding: 0 20px; font-size: 15px; background: var(--brand-50); border: 1.5px solid var(--brand); }
.xf-filters-btn:hover { background: #dcebfa; }
@media (max-width: 1023px) {
  .xf-bar { gap: 8px; }
  .xf-bar .toolbar__count { margin-right: auto; }
  .xf-filters-btn { height: 40px; padding: 0 16px; }
}

/* pages: 1 … 8 9 [10] 11 12 … 86 */
.xf-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 34px 0 6px; }
.xf-pg { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 42px; height: 42px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 800; font-size: 15px; text-decoration: none; }
a.xf-pg:hover { border-color: var(--brand); color: var(--brand); }
.xf-pg.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.xf-pg--gap { border: 0; min-width: 20px; padding: 0; color: var(--muted); }
.xf-pg--next { padding: 0 16px 0 18px; border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.xf-pg .icon { width: 16px; height: 16px; }
.xf-pageinfo { text-align: center; color: var(--muted); font-size: 13.5px; margin: 6px 0 18px; }
@media (max-width: 559px) { .xf-pg--far { display: none; } .xf-pg { min-width: 38px; height: 38px; padding: 0 10px; } .xf-pg--next { padding: 0 12px 0 14px; } }

/* v45: the same bar and popup on the explore pages (views/directory.php + js/dirf.js); choices are links */
.df-sheet .xf-row { gap: 10px; }
.df-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; align-self: stretch; color: inherit; text-decoration: none; }
.df-pick .xf-lbl { display: flex; align-items: center; gap: 6px; }
.df-box { flex: none; width: 19px; height: 19px; border: 2px solid #9aa8b6; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.df-box--sq { border-radius: 5px; }
.df-box.is-on { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px #fff; }
.df-box--sq.is-on { box-shadow: none; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center / 13px; }
.xf-row--hub .df-box { margin-left: auto; }
.df-sheet .xf-hubicon { background: color-mix(in srgb, var(--cat, var(--brand)) 12%, #fff); color: var(--cat, var(--brand)); }
.df-kids[hidden] { display: none; }
.df-sheet a.xf-wrow { text-decoration: none; }
a.xf-tag { display: inline-flex; align-items: baseline; text-decoration: none; }
.df-mtools { display: flex; }
@media (min-width: 1024px) { .df-mtools { display: none; } }
.df-results { transition: opacity .15s; min-height: 200px; }
body.xf-busy .df-results { opacity: .55; }
.df-page .xf-sticky { margin-top: 4px; }
