/* Search lives outside the scaled landing stage so the dialog fits the viewport. */
[hidden] { display: none !important; }
/* the page keeps its scrollbar's room while the search locks scrolling, so
   nothing under the backdrop shifts and the bar flies back to the right spot */
html { scrollbar-gutter: stable; background-color: var(--page); transition: background-color 220ms ease-out; }
/* The browser paints its reserved gutter above top-layer dialogs. Tint that
   small strip with the backdrop, keeping the original page width unchanged. */
html:has(.search-modal[open]:not(.is-closing)) { background-color: #514e4c; }
body.search-open { overflow: hidden; }
body.search-showing-results { background: #fff; }
.composer .field, .composer__go { cursor: pointer; }
.search-modal button, .search-results button { cursor: pointer; }
.search-modal button:disabled, .search-results button:disabled { cursor: default; }
.search-modal {
  position: fixed; inset: 0; width: 100vw; max-width: none; height: 100%;
  max-height: none; margin: 0; padding: 0; border: 0; background: transparent;
  color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
.search-modal::backdrop { background: transparent; }
/* Fade a separate layer: the search itself stays crisp and fully opaque. */
.search-modal__backdrop {
  position: fixed; inset: 0; width: 100vw;
  background: rgb(15 12 10 / 72%); backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.search-modal__scene {
  position: relative;
  width: min(800px, calc(100% - 120px)); margin: clamp(80px, 23vh, 220px) auto 40px;
}
/* the open and close motion is in customer-search.js: the bar flies out of
   the hero's search bar and back into it */
.search-form { position: relative; }
.search-modal.is-closing { pointer-events: none; }
.search-form__bar {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 140px;
  gap: 8px; padding: 7px; background: #fbf8f6; border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 100px;
  box-shadow: 0 3px 0 #d8cec7, 0 9px 18px rgb(0 0 0 / 12%), 0 30px 65px rgb(0 0 0 / 28%), inset 0 1px 0 #fff;
  transform-origin: 50% 50%;
}
.search-field {
  min-width: 0; height: 58px; display: flex; flex-direction: column; justify-content: center;
  gap: 3px; padding: 8px 24px; border: 1px solid transparent; border-radius: 100px;
  background: #fff; text-align: left; cursor: pointer; transition: border-color 180ms, box-shadow 180ms;
}
.search-field > span:first-child { font: 11px var(--font-body); color: var(--ink-2); }
.search-field.is-active { border-color: var(--orange); box-shadow: 0 3px 7px rgb(78 47 28 / 12%); }
.search-field input {
  width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font: 500 14px var(--font-body); text-overflow: ellipsis;
  cursor: text;
}
.search-field input::placeholder, .search-field__date {
  color: var(--serif-orange); font: italic 20px var(--font-serif);
}
.search-field__date.is-selected { color: var(--ink); font: 500 14px var(--font-body); }
.search-field[data-search-field="when"] { cursor: pointer; }
.search-submit {
  cursor: pointer;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  border-radius: 100px; background: var(--red); color: #fff; font-size: 13px;
  transition: background 180ms, transform 180ms;
}
.search-submit img { width: 22px; height: 22px; }
.search-submit:hover { background: #ec1632; transform: translateY(-1px); }
.search-close {
  cursor: pointer;
  position: absolute; left: calc(100% + 24px); top: 18px; width: 38px; height: 38px;
  display: grid; place-items: center; padding: 0;
  border-radius: 50%; background: rgb(255 255 255 / 18%); color: #fff;
  transition: background 180ms;
}
.search-close svg { display: block; }
.search-close:hover { background: rgb(255 255 255 / 30%); }
.search-panel {
  position: relative; width: 340px; max-width: 100%; margin-top: 14px; padding: 30px 26px 24px;
  background: #fff; border-radius: 30px; box-shadow: 0 30px 70px rgb(0 0 0 / 20%);
}
.search-panel h3 { margin: 0 0 26px; font: 400 16px var(--font-display); }
.search-panel--places { margin-left: 21%; }
.search-panel--calendar { margin-left: 42%; }
.search-options { display: grid; gap: 9px; max-height: 325px; overflow-y: auto; scrollbar-width: thin; }
.search-option {
  cursor: pointer;
  width: 100%; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 5px; border-radius: 12px; background: transparent; text-align: left;
  font-size: 13px; transition: background 150ms;
}
.search-option:hover, .search-option[aria-pressed="true"] { background: #faf6f3; }
.search-option img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.search-option small { margin-left: auto; color: var(--ink-2); font-size: 10px; white-space: nowrap; }
.search-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.search-places .search-option { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 10px; }
.search-places small { margin-left: 0; }
.search-options__empty { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.search-calendar__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.search-calendar__nav button { width: 32px; height: 32px; background: transparent; font-size: 23px; border-radius: 50%; }
.search-calendar__nav button:hover { background: var(--page); }
.search-calendar__nav button:disabled { opacity: .3; cursor: default; }
.search-calendar__month { font-size: 12px; }
.search-calendar__week, .search-calendar__days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.search-calendar__week { color: #b6aaa1; font-size: 12px; padding-bottom: 10px; }
.search-calendar__days { gap: 4px 0; }
.search-calendar__days button { justify-self: center; width: 34px; height: 34px; border-radius: 50%; background: transparent; font-size: 12px; }
.search-calendar__days button:hover:not(:disabled) { background: #fff0e9; }
.search-calendar__days button:disabled { color: #cfc8c3; cursor: default; }
.search-calendar__days button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.search-calendar__days button.is-today:not([aria-pressed="true"]) { box-shadow: inset 0 0 0 1px var(--orange); }
.search-calendar__actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.search-clear { padding: 10px; color: #ff673d; background: transparent; font-size: 12px; }
.search-continue { padding: 11px 24px; border: 1px solid var(--line); border-radius: 100px; background: #fff; font-size: 12px; }
.search-results { min-height: 100vh; outline: none; }
.search-results__header { background: var(--page); padding: 28px max(24px, calc((100vw - 1240px) / 2)) 22px; }
.search-results__nav .nav { position: static; width: 100%; height: auto; transform: none; padding: 0; opacity: 1; scale: 1; translate: none; }
.search-results__nav .logo img { width: 125px; height: auto; }
.search-results__toolbar { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.search-back { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink-2); font-size: 21px; flex: none; }
.search-results__composer { width: min(600px, 100%); margin: 0 auto; }
.search-results__composer .search-form__bar { grid-template-columns: repeat(3, minmax(0, 1fr)) 48px; padding: 5px; gap: 6px; box-shadow: none; }
.search-results__composer .search-field { height: 44px; padding: 7px 18px; background: var(--page); cursor: pointer; }
.search-results__composer .search-field > span:last-child { color: var(--ink); font: 500 12px var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results__composer .search-submit span { display: none; }
.search-results__content { max-width: 1240px; margin: auto; padding: 34px 24px 0; }
.search-results__summary { color: var(--ink-2); font-size: 13px; margin-bottom: 34px; }
.search-results__shelf { margin-bottom: 65px; }
.search-results__shelf h2 { font: 400 22px var(--font-display); margin: 0 0 22px; }
.search-results__filters { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.search-results__filters .chip { font-size: 12px; height: 36px; padding: 8px 17px; }
.search-results__arrows { margin-left: auto; display: flex; gap: 10px; }
.search-results__arrows button { width: 34px; height: 34px; border-radius: 50%; background: var(--page); color: var(--orange); font-size: 25px; }
.search-results__arrows button:disabled { opacity: .35; cursor: default; }
.search-results__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.search-results__track::-webkit-scrollbar { display: none; }
.search-results .venue { width: 100%; align-items: stretch; gap: 12px; }
.search-results .venue__img { width: 100%; height: auto; aspect-ratio: 1.12; border-radius: 18px; opacity: 1; }
.search-results .venue__foot { padding: 0 3px; gap: 8px; }
.search-results .venue__text { width: auto; flex: 1; min-width: 0; gap: 7px; }
.search-results .venue__name { font-size: 13px; line-height: 1.4; }
.search-results .venue__meta { flex-wrap: wrap; white-space: normal; font-size: 10px; line-height: 1.5; }
.search-results .venue__rate { width: auto; flex: none; }
.search-results .venue__rate span { font-size: 11px; }
.search-results__empty { border-radius: 20px; background: var(--page); padding: 28px; font-size: 13px; line-height: 1.7; }
.search-results__empty button { display: block; margin-top: 15px; border: 1px solid var(--line); border-radius: 100px; padding: 10px 20px; background: #fff; }
.search-download { position: relative; min-height: 540px; margin-top: 75px; overflow: hidden; }
.search-download__copy { position: relative; z-index: 1; width: 380px; max-width: 100%; padding: 150px 0 50px 40px; }
.search-download__copy > img { margin-bottom: 26px; }
.search-download h2 { font: 400 28px var(--font-display); color: var(--orange); margin-bottom: 16px; }
.search-download p { color: var(--ink-2); font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
.search-download .btn { display: inline-flex; min-height: 46px; padding: 12px 24px; }
.search-download__art { position: absolute; right: -60px; top: 0; width: 740px; max-width: 80%; }
@media (max-width: 700px) {
  .search-modal__scene { width: calc(100% - 28px); margin-top: 100px; }
  .search-form__bar { grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; padding: 5px; gap: 4px; }
  .search-field { height: 52px; padding: 7px 12px; }
  .search-field input, .search-field__date.is-selected { font-size: 12px; }
  .search-field input::placeholder, .search-field__date { font-size: 17px; }
  .search-submit span { display: none; }
  .search-submit img { width: 20px; height: 20px; }
  .search-close { left: auto; right: 2px; top: -50px; }
  .search-panel { width: min(340px, 100%); border-radius: 24px; padding: 26px 22px 20px; }
  .search-panel--places { margin-left: auto; margin-right: auto; }
  .search-panel--calendar { margin-left: auto; }
  .search-results__header { padding: 22px 16px; }
  .search-results__nav .logo img { width: 95px; }
  .search-results__nav .btn { min-width: 0; width: auto; height: 38px; padding: 8px 13px; font-size: 10px; }
  .search-results__nav .nav__actions { gap: 8px; }
  .search-results__nav .btn__icon { display: none; }
  .search-results__toolbar { gap: 10px; }
  .search-results__composer .search-field { padding: 7px 10px; }
  .search-results__content { padding: 26px 16px 0; }
  .search-results__track { grid-auto-columns: 72%; }
  .search-results__filters { gap: 4px; flex-wrap: wrap; }
  .search-results__filters .chip { padding: 8px 10px; }
  .search-download { min-height: 600px; margin-top: 20px; }
  .search-download__copy { padding: 20px 8px; width: 100%; }
  .search-download__copy > img { width: 95px; height: 95px; }
  .search-download__art { top: 310px; right: -40px; width: 440px; max-width: 115%; }
}
@media (min-width: 701px) and (max-width: 999px) { .search-results__track { grid-auto-columns: calc((100% - 36px) / 3); } }
@media (prefers-reduced-motion: reduce) {
  html { transition: none; }
  .search-panel { animation: none; }
  .search-field, .search-submit, .search-close, .search-option { transition: none; }
}
