/* Shared availability-search component used by Home and Rentals. */
.a1avr-search-filter { position: relative; z-index: 8; margin-top: 18px; }
.a1avr-search-filter .search-card { padding: 14px; border: 1px solid #dce9eb; border-radius: 26px; background: #fff; box-shadow: 0 18px 48px rgba(24, 50, 59, .1); }
.a1avr-search-filter .search-main { position: relative; display: grid; grid-template-columns: 1.12fr repeat(4, minmax(0, 1fr)) minmax(178px, .78fr); gap: 10px; align-items: stretch; }
.a1avr-search-filter .booking-control { position: relative; display: grid; min-width: 0; min-height: 76px; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #dce7e9; border-radius: 18px; background: #f8fbfc; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.a1avr-search-filter .booking-control:hover,
.a1avr-search-filter .booking-control.is-open,
.a1avr-search-filter .booking-control:focus-within { border-color: #a8d2da; background: #fff; box-shadow: 0 0 0 4px rgba(46, 143, 168, .08); }
.a1avr-search-filter .booking-control.featured-control { border-color: #e8cf9e; background: #fffaf0; }
.a1avr-search-filter .booking-control.featured-control:hover,
.a1avr-search-filter .booking-control.featured-control.is-open { border-color: #d5aa58; box-shadow: 0 0 0 4px rgba(255, 189, 82, .12); }
.a1avr-search-filter .control-icon { position: relative; z-index: 3; display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: #e9f7fa; color: var(--blue-dark, var(--teal-dark, var(--teal-dark))); font-size: 19px; pointer-events: none; }
.a1avr-search-filter .featured-control .control-icon { background: #fff0cf; color: #9a6814; }
.a1avr-search-filter .control-trigger { position: absolute; z-index: 2; inset: 0; display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 10px; padding: 10px 12px 10px 70px; border: 0; background: transparent; color: var(--ink, var(--ink)); text-align: left; cursor: pointer; }
.a1avr-search-filter .control-trigger:focus-visible { border-radius: 18px; outline: 3px solid rgba(45, 141, 165, .45); outline-offset: 2px; }
.a1avr-search-filter .control-copy { min-width: 0; }
.a1avr-search-filter .control-label { display: block; margin-bottom: 5px; color: #74868c; font-size:14px; font-weight: 700; letter-spacing: .09em; line-height: 1.1; text-transform: uppercase; }
.a1avr-search-filter .featured-control .control-label { color: #8f6a2b; }
.a1avr-search-filter .control-value { display: block; overflow: hidden; color: var(--ink, var(--ink)); font-size: 15px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.a1avr-search-filter .control-chevron { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #71868c; transition: transform .2s ease, background .2s ease, color .2s ease; }
.a1avr-search-filter .control-chevron::before { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: translateY(-2px) rotate(45deg); }
.a1avr-search-filter .booking-control.is-open .control-chevron { background: #eef7f9; color: var(--blue-dark, var(--teal-dark, var(--teal-dark))); transform: rotate(180deg); }
.a1avr-search-filter .featured-control .control-chevron { color: #936d24; }
.a1avr-search-filter .control-menu { position: absolute; z-index: 80; top: calc(100% + 10px); left: 0; visibility: hidden; width: max-content; min-width: 100%; max-width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border: 1px solid #dce8ea; border-radius: 18px; background: #fff; box-shadow: 0 22px 48px rgba(24, 50, 59, .16); opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.a1avr-search-filter .booking-control.is-open .control-menu { visibility: visible; opacity: 1; transform: none; }
.a1avr-search-filter .booking-control.opens-upward .control-menu { top: auto; bottom: calc(100% + 10px); transform: translateY(6px); }
.a1avr-search-filter .booking-control.is-open.opens-upward .control-menu { transform: none; }
.a1avr-search-filter .control-option { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 12px; border: 0; border-radius: 12px; background: transparent; color: #40575e; font-size:14px; font-weight: 500; text-align: left; white-space: nowrap; cursor: pointer; }
.a1avr-search-filter .control-option:hover { background: #f2f9fa; color: var(--blue-dark, var(--teal-dark, var(--teal-dark))); }
.a1avr-search-filter .control-option.is-selected { background: var(--sea); color: var(--blue-dark, var(--teal-dark, var(--teal-dark))); font-weight: 700; }
.a1avr-search-filter .control-option.is-selected::after { content: "✓"; }
.a1avr-search-filter .guest-picker-control.has-value .control-chevron::before { width: auto; height: auto; border: 0; content: "✓"; font-size: 13px; transform: none; }
.a1avr-search-filter .guest-picker { width: min(360px, calc(100vw - 32px)); padding: 8px 16px; }
.a1avr-search-filter .guest-picker-row { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid #edf2f3; }
.a1avr-search-filter .guest-picker-row > div:first-child { display: grid; gap: 3px; }
.a1avr-search-filter .guest-picker-row strong { color: var(--ink, var(--ink)); font-size: 14px; }
.a1avr-search-filter .guest-picker-row span { color: #829399; font-size:14px; }
.a1avr-search-filter .guest-stepper { display: grid; grid-template-columns: 34px 28px 34px; align-items: center; gap: 5px; }
.a1avr-search-filter .guest-stepper button { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid #cbdcdf; border-radius: 50%; background: #fff; color: var(--blue-dark, var(--teal-dark, var(--teal-dark))); font-size: 20px; line-height: 1; cursor: pointer; }
.a1avr-search-filter .guest-stepper button:hover:not(:disabled) { border-color: var(--blue, var(--teal, var(--teal))); background: #eef8fa; }
.a1avr-search-filter .guest-stepper button:disabled { color: #c7d0d2; cursor: not-allowed; }
.a1avr-search-filter .guest-stepper output { color: var(--ink, var(--ink)); font-size: 14px; font-weight: 700; text-align: center; }
.a1avr-search-filter .guest-picker-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 4px; }
.a1avr-search-filter .guest-picker-footer button { padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--blue-dark, var(--teal-dark, var(--teal-dark))); font-size:14px; font-weight: 700; cursor: pointer; }
.a1avr-search-filter .guest-picker-footer .guest-picker-done { padding-inline: 16px; background: var(--blue, var(--teal, var(--teal))); color: #fff; }
.a1avr-search-filter .native-control-hidden,
.a1avr-search-filter .native-date-input { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; opacity: 0 !important; pointer-events: none !important; }
.a1avr-search-filter .calendar-popover { position: absolute; z-index: 90; top: calc(100% + 10px); left: 0; visibility: hidden; width: 320px; max-width: calc(100vw - 28px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 16px; border: 1px solid #d8e7ea; border-radius: 22px; background: #fff; box-shadow: 0 24px 54px rgba(24, 50, 59, .18); opacity: 0; transform: translateY(-7px) scale(.985); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.a1avr-search-filter .date-range-popover { top: var(--date-popover-top, calc(100% + 10px)); right: auto; bottom: auto; left: var(--date-popover-left, 0); width: min(680px, calc(100vw - 40px)); transform: translateY(-7px) scale(.985); transform-origin: top center; }
.a1avr-search-filter .date-range-popover.is-open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.a1avr-search-filter .date-range-popover.opens-upward { top: var(--date-popover-top, auto); right: auto; bottom: auto; transform: translateY(7px) scale(.985); transform-origin: bottom center; }
.a1avr-search-filter .date-range-popover.is-open.opens-upward { transform: translateY(0) scale(1); }
.a1avr-search-filter .date-range-summary { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; padding: 2px 0 14px; border-bottom: 1px solid #edf2f3; }
.a1avr-search-filter .date-range-summary > div { display: grid; gap: 3px; }
.a1avr-search-filter .date-range-summary span { color: #84959a; font-size:14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.a1avr-search-filter .date-range-summary strong { color: var(--ink, var(--ink)); font-size: 14px; }
.a1avr-search-filter .calendar-range-head { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 8px; margin-bottom: 12px; }
.a1avr-search-filter .calendar-range-head p { margin: 0; color: #71858b; font-size:14px; text-align: center; }
.a1avr-search-filter .calendar-months { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.a1avr-search-filter .calendar-title { margin: 0 0 8px; color: var(--ink, var(--ink)); font-size: 15px; font-weight: 700; text-align: center; }
.a1avr-search-filter .calendar-nav { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #e0eaec; border-radius: 12px; background: #f8fbfc; color: var(--blue-dark, var(--teal-dark, var(--teal-dark))); cursor: pointer; }
.a1avr-search-filter .calendar-weekdays,
.a1avr-search-filter .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.a1avr-search-filter .calendar-weekdays { margin-bottom: 5px; }
.a1avr-search-filter .calendar-weekdays span { padding: 5px 0; color: #93a2a7; font-size:14px; font-weight: 700; text-align: center; }
.a1avr-search-filter .calendar-day { position: relative; display: grid; aspect-ratio: 1; place-items: center; border: 0; border-radius: 11px; background: transparent; color: #40575e; font-size:14px; font-weight: 600; cursor: pointer; }
.a1avr-search-filter .calendar-day:hover:not(:disabled) { background: #eef8fa; color: var(--blue-dark, var(--teal-dark, var(--teal-dark))); }
.a1avr-search-filter .calendar-day.is-range-start,
.a1avr-search-filter .calendar-day.is-range-end { background: var(--blue, var(--teal, var(--teal))); color: #fff; }
.a1avr-search-filter .calendar-day.is-range-start { border-radius: 11px 0 0 11px; }
.a1avr-search-filter .calendar-day.is-range-end { border-radius: 0 11px 11px 0; }
.a1avr-search-filter .calendar-day.is-in-range { border-radius: 0; background: #d9f1f6; color: var(--blue-dark, var(--teal-dark, var(--teal-dark))); }
.a1avr-search-filter .calendar-day.is-empty { visibility: hidden; }
.a1avr-search-filter .calendar-day.is-today::after { position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: #ffbd52; content: ""; }
.a1avr-search-filter .calendar-day:disabled { background: transparent; color: #d6dddf; cursor: not-allowed; }
.a1avr-search-filter .calendar-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf2f3; }
.a1avr-search-filter .calendar-footer button { padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--blue-dark, var(--teal-dark, var(--teal-dark))); font-size:14px; font-weight: 700; cursor: pointer; }
.a1avr-search-filter .calendar-apply { background: var(--blue, var(--teal, var(--teal))) !important; color: #fff !important; }
.a1avr-search-filter .calendar-apply:disabled { opacity: .45; cursor: not-allowed; }
.a1avr-search-filter .date-control.has-value .control-chevron::before { width: auto; height: auto; border: 0; content: "✓"; font-size: 13px; transform: none; }
.a1avr-search-filter .search-main > .btn { min-height: 76px; height: auto; align-self: stretch; padding: 0 22px; border-radius: 18px; white-space: nowrap; box-shadow: 0 10px 24px rgba(46, 143, 168, .2); }
.a1avr-search-filter .advanced-filters { display: grid; grid-template-columns: minmax(260px, 420px); gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #edf2f3; }
.a1avr-search-filter .advanced-filters[hidden] { display: none; }
.a1avr-search-filter .search-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 4px 1px; }
.a1avr-search-filter .search-tools-left,
.a1avr-search-filter .search-tools-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.a1avr-search-filter .filter-toggle,
.a1avr-search-filter .search-utility { display: inline-flex; height: 36px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #dbe7e9; border-radius: 999px; background: #fff; color: #466068; font-size:14px; font-weight: 600; cursor: pointer; }
.a1avr-search-filter .search-note { margin-left: 2px; color: #7a8c92; font-size:14px; }

@media (max-width: 1180px) {
  .a1avr-search-filter .search-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .a1avr-search-filter .booking-control,
  .a1avr-search-filter .search-main > .btn { min-height: 70px; }
}

@media (max-width: 900px) {
  .a1avr-search-filter .search-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a1avr-search-filter .advanced-filters { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .a1avr-search-filter { margin-top: 14px; }
  .a1avr-search-filter .search-card { padding: 10px; border-radius: 20px; }
  .a1avr-search-filter .search-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a1avr-search-filter .booking-control { min-height: 66px; grid-template-columns: 42px minmax(0, 1fr); padding: 8px 10px; border-radius: 15px; }
  .a1avr-search-filter .control-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 17px; }
  .a1avr-search-filter .control-value { font-size: 14px; }
  .a1avr-search-filter .control-menu { right: auto; left: 0; width: 100%; min-width: 100%; max-width: none; }
  .a1avr-search-filter .featured-control,
  .a1avr-search-filter .search-main > .btn { grid-column: 1 / -1; }
  .a1avr-search-filter .search-main > .btn { min-height: 56px; border-radius: 15px; }
  .a1avr-search-filter .search-tools { align-items: flex-start; flex-direction: column; }
  .a1avr-search-filter .search-tools-left,
  .a1avr-search-filter .search-tools-right { width: 100%; }
  .a1avr-search-filter .search-tools-left { display: grid; grid-template-columns: auto 1fr; }
  .a1avr-search-filter .search-tools-right { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .a1avr-search-filter .search-utility,
  .a1avr-search-filter .filter-toggle { min-width: 0; justify-content: center; padding: 0 8px; white-space: nowrap; }
  .a1avr-search-filter .search-note { font-size:14px; line-height: 1.45; }
  .a1avr-search-filter .calendar-months { grid-template-columns: 1fr; }
  .a1avr-search-filter .calendar-month:nth-child(2) { display: none; }
}

@media (max-width: 480px) {
  .a1avr-search-filter .search-main { grid-template-columns: minmax(0, 1fr); }
  .a1avr-search-filter .booking-control,
  .a1avr-search-filter .search-main > .btn { grid-column: 1 / -1; }
  .a1avr-search-filter .search-tools-right { grid-template-columns: 1fr; }
  .a1avr-search-filter .search-utility { width: 100%; height: auto; min-height: 44px; padding: 8px 12px; text-align: center; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .a1avr-search-filter *,
  .a1avr-search-filter *::before,
  .a1avr-search-filter *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
