/* Guesty search widget skin: the #booking-search band on Home and the two stay pages.
   Guesty injects its own markup and stylesheet at runtime, so every rule here goes through
   #booking-search to let the id outrank Guesty's class-based selectors.
   The layout ignores Guesty's JS "small-size" switch (it trips at 782px of widget width,
   wider than the band allows) and follows the width of its own slot instead, via a container
   query, so it suits whichever column or band it is placed in:
     slot under 35rem — two-row card: dates, then guests + Search
     slot 35rem and up — one pill bar: check in | check out | guests | Search
   The dark accents come from the snippet's "color" setting (--guesty-brand-primary). */

#booking-search .cs-container{container-type:inline-size}
/* Holds the widget's final height before Guesty's script fills it, so the page doesn't jump. */
#booking-search [id^="search-widget_"]{min-height:7.5rem}

/* ---- Shell ---- */
#booking-search .guesty-widget__container{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch;row-gap:0.75rem;width:100%;box-sizing:border-box;margin:0;padding:0.375rem;background-color:#fff;border-radius:1.875rem;box-shadow:0 0.75rem 2rem rgba(26,26,26,0.18);font-family:var(--bodyFontFamily);font-size:1rem;font-weight:400;line-height:1.2;color:var(--headerColor);text-align:left}
#booking-search .guesty-widget__item{display:flex;align-items:center;position:relative;margin:0;font-size:1rem}
/* The Mosaic booking site has a single location, so the destination picker never applies. */
#booking-search .guesty-widget__item.cities-dropdown{display:none}

/* ---- Dates ---- */
/* The dates item and Guesty's datepicker are left unpositioned so the calendar anchors to the whole
   widget, letting it line up with either edge. The row hairline is therefore placed from the top
   of the widget: padding + one 3rem row + half the row gap. */
#booking-search .guesty-widget__item:has(> #guesty-search-widget__datepicker){position:static;flex:1 1 100%;min-width:0}
#booking-search .guesty-widget__item:has(> #guesty-search-widget__datepicker)::after{content:"";position:absolute;left:1.25rem;right:1.25rem;top:3.75rem;height:1px;background-color:#E4DCD1}
#booking-search #guesty-search-widget__datepicker{position:static;display:flex;width:100%;margin:0}
#booking-search #guesty-search-widget__datepicker [id^=date-picker-wrapper]{flex:1 1 50%;width:auto;min-width:0;position:relative;background:transparent;border-radius:1.5rem;font-family:var(--bodyFontFamily);transition:background-color 0.2s}
#booking-search #guesty-search-widget__datepicker [id^=date-picker-wrapper] + [id^=date-picker-wrapper]::before{content:"";position:absolute;left:0;top:0.875rem;bottom:0.875rem;width:1px;background-color:#E4DCD1}
#booking-search #guesty-search-widget__datepicker [id^=date-picker-wrapper].guesty-focused{background-color:#F5F1EB}
#booking-search #guesty-search-widget__datepicker .__super-input{display:block;width:100%;height:3rem;box-sizing:border-box;padding:0 1.25rem;border:0;border-radius:1.5rem;background-color:transparent !important;font-family:var(--bodyFontFamily);font-size:1rem;font-weight:400;color:var(--headerColor);cursor:pointer;text-overflow:ellipsis}
#booking-search #guesty-search-widget__datepicker .__super-input::placeholder{color:#6E685F;opacity:1}
#booking-search #guesty-search-widget__datepicker [id^=date-picker-wrapper].guesty-focused .__super-input::placeholder{color:var(--headerColor)}

/* ---- Guests ---- */
/* A real basis (not 0) keeps guests from squeezing onto the dates row when the card wraps. */
#booking-search .guesty-widget__item.guests-dropdown{flex:1 1 8rem;width:auto;min-width:0}
#booking-search .guests-dropdown .selectr-container{width:100%;margin:0}
#booking-search .guests-dropdown .selectr-selected{display:flex;align-items:center;height:3rem;box-sizing:border-box;padding:0 2.75rem 0 1.25rem;border:0;border-radius:1.5rem;background-color:transparent;color:var(--headerColor);transition:background-color 0.2s}
#booking-search .guests-dropdown .selectr-container.open .selectr-selected{background-color:#F5F1EB;border-radius:1.5rem}
#booking-search .guests-dropdown .selectr-selected::before{top:calc(50% - 0.4375rem);right:1.375rem;padding:0.1875rem;border-color:var(--bodyTextColor);border-width:0 1.5px 1.5px 0}
#booking-search .guests-dropdown .selectr-container.open .selectr-selected::before{top:calc(50% - 0.125rem)}
#booking-search .guests-dropdown .selectr-label{font-family:var(--bodyFontFamily);font-size:1rem;font-weight:400;color:var(--headerColor)}
/* data-label tracks the selection: muted while it still reads "Guests", then "4 guests" rather than a bare "4". */
#booking-search .guests-dropdown .selectr-label[data-label="Guests"]{color:#6E685F}
#booking-search .guests-dropdown .selectr-label:not([data-label="Guests"])::after{content:" guests"}
#booking-search .guests-dropdown .selectr-label[data-label="1"]::after{content:" guest"}
#booking-search .guests-dropdown .selectr-options-container{top:calc(100% + 0.75rem);left:0;width:100%;min-width:9rem;box-sizing:border-box;padding:0.375rem 0;border:0;border-radius:1rem;background-color:#fff;box-shadow:0 1rem 2.5rem rgba(26,26,26,0.22);overflow:hidden}
#booking-search .guests-dropdown .selectr-container.inverted .selectr-options-container{top:auto;bottom:calc(100% + 0.75rem);border:0;border-radius:1rem}
#booking-search .guests-dropdown .selectr-options{max-height:15rem;overflow-y:auto}
#booking-search .guests-dropdown .selectr-option{padding:0.5rem 1.25rem;font-family:var(--bodyFontFamily);font-size:1rem;font-weight:400;line-height:1.5;color:var(--bodyTextColor)}
#booking-search .guests-dropdown .selectr-option.active{background-color:#F5F1EB;color:var(--headerColor)}
#booking-search .guests-dropdown .selectr-option.selected{font-weight:700;color:var(--headerColor)}

/* ---- Search: the site's dark gradient pill, with its chevron ---- */
#booking-search .guesty-widget__item:has(> .guesty-search-submit-btn){flex:0 0 auto;margin-left:0.375rem}
#booking-search .guesty-search-submit-btn{display:inline-flex;align-items:center;justify-content:center;gap:0.375rem;width:auto;height:3rem;box-sizing:border-box;padding:0 1.25rem 0 1.75rem;border:0;border-radius:1.5rem;background:linear-gradient(to right, var(--headerColor), #3a352f);color:#fff;font-family:var(--bodyFontFamily);font-size:1rem;font-weight:700;line-height:1;cursor:pointer;transition:opacity 0.2s}
#booking-search .guesty-search-submit-btn::after{content:"";width:1.25rem;height:1.25rem;background-color:currentColor;-webkit-mask:url("/assets/images/e78aafff21e0.svg") center/contain no-repeat;mask:url("/assets/images/e78aafff21e0.svg") center/contain no-repeat;transition:transform 0.3s}
#booking-search .guesty-search-submit-btn:focus-visible{outline:2px solid var(--secondary);outline-offset:2px}
@media (hover: hover){
  #booking-search #guesty-search-widget__datepicker [id^=date-picker-wrapper]:hover,
  #booking-search .guests-dropdown .selectr-selected:hover{background-color:#F5F1EB}
  #booking-search .guesty-search-submit-btn:hover{opacity:0.88}
  #booking-search .guesty-search-submit-btn:hover::after{transform:translateX(0.1875rem)}
}

/* ---- Calendar ---- */
#booking-search .lightpick{top:calc(100% + 0.5rem) !important;left:0 !important;padding:1rem;border-radius:1rem;background-color:#fff;box-shadow:0 1rem 2.5rem rgba(26,26,26,0.22);font-family:var(--bodyFontFamily);color:var(--headerColor)}
/* Guesty sizes the toolbar against the padded box from the content edge, which pushes → past the right edge. */
#booking-search .lightpick__toolbar{left:0;width:100%;margin-top:0.875rem;padding:0 1rem}
#booking-search .lightpick__previous-action,
#booking-search .lightpick__next-action{width:2rem;height:2rem;border:1px solid #E4DCD1;border-radius:50%;background-color:#fff;color:var(--headerColor);font-size:0.875rem}
#booking-search .lightpick__months{background-color:transparent;grid-gap:0 1.5rem}
#booking-search .lightpick__month{width:16.25rem;padding:0;background-color:transparent}
#booking-search .lightpick__month-title-bar{justify-content:center;margin-bottom:0.5rem}
#booking-search .lightpick .lightpick__select{-webkit-appearance:none;appearance:none;padding:0 0.125rem;border:0;background:transparent;font-family:var(--bodyFontFamily);font-size:0.9375rem;font-weight:700;color:var(--headerColor);cursor:pointer}
#booking-search .lightpick__days-of-the-week{padding:0}
#booking-search .lightpick__day-of-the-week{height:1.75rem;font-family:var(--bodyFontFamily);font-size:0.6875rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:#6E685F}
#booking-search .lightpick__days{padding:0;row-gap:0.125rem}
#booking-search .lightpick__day{height:2.25rem;margin:0;border:0;border-radius:1.125rem;font-size:0.875rem;color:var(--headerColor);cursor:pointer}
#booking-search .lightpick__day:hover{background-color:#F5F1EB}
#booking-search .lightpick__day.is-disabled,
#booking-search .lightpick__day.is-previous-month,
#booking-search .lightpick__day.is-next-month{color:#C9C1B6}
/* Selected stay: beige band between dark end caps. */
#booking-search .lightpick__day.is-in-range,
#booking-search .lightpick__day.is-in-range:hover{border:0;border-radius:0;background-color:var(--primary);color:var(--headerColor)}
#booking-search .lightpick__day.is-start-date,
#booking-search .lightpick__day.is-end-date,
#booking-search .lightpick__day.is-start-date:hover,
#booking-search .lightpick__day.is-end-date:hover{border:0;background-color:var(--headerColor);color:#fff;font-weight:700}
#booking-search .lightpick__day.is-start-date.is-in-range{border-radius:1.125rem 0 0 1.125rem}
#booking-search .lightpick__day.is-end-date.is-in-range{border-radius:0 1.125rem 1.125rem 0}
#booking-search .lightpick__day.is-start-date.is-end-date{border-radius:1.125rem}
#booking-search .lightpick__tooltip{font-family:var(--bodyFontFamily);color:var(--headerColor)}

/* ---- Wide slot: one pill bar ---- */
@container (min-width:35rem){
  #booking-search [id^="search-widget_"]{min-height:3.75rem}
  #booking-search .guesty-widget__container{flex-wrap:nowrap;row-gap:0}
  #booking-search .guesty-widget__item:has(> #guesty-search-widget__datepicker){flex:1 1 auto}
  #booking-search .guesty-widget__item:has(> #guesty-search-widget__datepicker)::after{display:none}
  #booking-search .guesty-widget__item.guests-dropdown{flex:0 0 9.5rem}
  #booking-search .guesty-widget__item.guests-dropdown::before{content:"";position:absolute;left:0;top:0.875rem;bottom:0.875rem;width:1px;background-color:#E4DCD1}
}

/* ---- The band: straddles the bottom edge of the page's hero or banner ---- */
#booking-search{position:relative;z-index:2;margin-top:-1.875rem;padding:0 1rem 1.5rem;background:linear-gradient(to bottom, transparent 1.875rem, #EAE3D9 1.875rem)}
#booking-search .cs-container{width:100%;max-width:46rem;margin:auto}
/* From 48rem the next section (sbs-2171 on the stay pages, sbsr-1599 on Home) opens with empty top
   padding, and on the stay pages its photo's soft shadow fades in from its top edge, so the band
   takes no room below the banner: the section starts right at the edge and the bar's lower half
   floats over that padding. On phones the next section's content starts higher (the stay pages'
   photo sits at its very top), so the band keeps its own space there. Home adjusts the colour of
   that space and the calendar direction in local.css. */
@media only screen and (min-width:48rem){
  #booking-search{margin-bottom:-1.875rem;padding-bottom:0;background:none}
}
