/* Shared EspaGlobal palette; never hard-code a tenant brand color here. */
.espa-hotel-search {
  --hotel-brand: var(--espa-search-accent, var(--espa-primary, #ED1C24));
  --hotel-brand-hover: var(--espa-primary-hover, var(--hotel-brand));
  --hotel-ink: var(--espa-search-text, var(--espa-heading, #193648));
  --hotel-muted: var(--espa-muted, #667a86);
  --hotel-border: var(--espa-border, #dde7eb);
  --hotel-surface: var(--espa-surface, #fff);
  --hotel-on-brand: var(--espa-button-text, #fff);
  --hotel-danger: var(--espa-danger, #c33424);
  width:100%; max-width:1250px; margin:0 auto; position:relative; z-index:10; font-family:inherit; color:var(--hotel-ink); }
.espa-hotel-search *, .espa-hotel-search *::before, .espa-hotel-search *::after { box-sizing:border-box; }
.espa-hotel-search__form { background:var(--hotel-surface); border:1px solid var(--hotel-border); border-radius:21px; padding:12px 14px; display:grid; grid-template-columns:minmax(210px,2.1fr) minmax(258px,1.75fr) minmax(182px,1.42fr) minmax(130px,.8fr); align-items:stretch; gap:0; box-shadow:0 14px 38px rgba(22,52,72,.12); }
.espa-hotel-search__field { min-width:0; padding:3px 15px; border-right:1px solid var(--hotel-border); position:relative; }
.espa-hotel-search__field>label { display:block; font-size:11px; font-weight:750; color:var(--hotel-brand); letter-spacing:.065em; line-height:18px; margin:1px 0 3px; }
.espa-hotel-search__input-wrap, .espa-hotel-search__date-controls { display:flex; align-items:center; min-height:43px; }
.espa-hotel-search__input-wrap>iconify-icon { font-size:22px; color:var(--hotel-brand); margin-right:11px; }
.espa-hotel-search__input-wrap input { min-width:0; flex:1; appearance:none; font:inherit; font-size:14px; border:0; outline:0; color:var(--hotel-ink); background:transparent; }
.espa-hotel-search__input-wrap input::placeholder { color:#91a0a9; }
.espa-hotel-search__clear { background:transparent; border:0; padding:5px; color:#73858d; cursor:pointer; }
.espa-hotel-search__date-controls { gap:8px; }
.espa-hotel-search__date-button { appearance:none; border:0; background:none; color:var(--hotel-ink); display:flex; align-items:center; gap:8px; min-width:0; flex:1; text-align:left; cursor:pointer; padding:2px 0; }
.espa-hotel-search__date-button iconify-icon { color:var(--hotel-brand); font-size:21px; }
.espa-hotel-search__date-button span { min-width:0; display:flex; flex-direction:column; }
.espa-hotel-search__date-button small { color:#8999a2; font-size:10px; font-weight:600; }
.espa-hotel-search__date-button strong { color:var(--hotel-ink); font-size:13px; white-space:nowrap; font-weight:650; }
.espa-hotel-search__date-divider { color:#b3c0c7; flex-shrink:0; }
.espa-hotel-search__guests-button { width:100%; display:flex; align-items:center; border:0; min-height:43px; gap:8px; padding:2px 0; background:transparent; color:var(--hotel-ink); text-align:left; cursor:pointer; }
.espa-hotel-search__guests-button iconify-icon:first-child { color:var(--hotel-brand); font-size:21px; }
.espa-hotel-search__guests-button span { flex:1; min-width:0; font-size:13px; font-weight:650; }
.espa-hotel-search__guests-button iconify-icon:last-child { color:#718894; }
.espa-hotel-search__submit-wrap { display:flex; align-items:stretch; padding-left:12px; }
.espa-hotel-search__submit { width:100%; border:0; background:var(--hotel-brand); border-radius:12px; color:var(--hotel-on-brand); display:flex; align-items:center; justify-content:center; gap:8px; font-weight:700; cursor:pointer; font-size:13px; min-height:62px; transition:background .2s; }
.espa-hotel-search__submit:hover { background:var(--hotel-brand-hover); }
.espa-hotel-search__submit iconify-icon { font-size:20px; }
.espa-hotel-search__suggestions { position:absolute; z-index:100; left:0; top:calc(100% + 13px); width:max(100%,350px); max-width:min(430px,92vw); max-height:360px; overflow-y:auto; background:var(--hotel-surface); border:1px solid var(--hotel-border); box-shadow:0 16px 42px rgba(22,52,72,.23); border-radius:14px; padding:7px; }
.espa-hotel-search__suggestion { display:flex; width:100%; align-items:center; gap:12px; padding:11px 12px; background:transparent; border:0; border-bottom:1px solid #f0f3f4; text-align:left; cursor:pointer; font-size:13px; color:var(--hotel-ink); border-radius:7px; }
.espa-hotel-search__suggestion:hover, .espa-hotel-search__suggestion.is-highlighted { background:#f2f6f8; }
.espa-hotel-search__suggestion>iconify-icon { color:var(--hotel-brand); background:#eef2f5; border-radius:50%; padding:9px; font-size:18px; }
.espa-hotel-search__suggestion-copy { flex:1; min-width:0; }
.espa-hotel-search__suggestion-copy strong { display:block; font-size:13px; }
.espa-hotel-search__suggestion-copy small { color:#90a0a9; font-size:11px; }
.espa-hotel-search__suggestion-empty { padding:14px; color:#6d7d85; font-size:13px; }
.espa-hotel-search__calendar, .espa-hotel-search__occupancy { position:absolute; top:calc(100% + 9px); right:0; z-index:99; background:var(--hotel-surface); color:var(--hotel-ink); border:1px solid var(--hotel-border); border-radius:17px; box-shadow:0 18px 46px rgba(12,36,52,.25); }
.espa-hotel-search__calendar { width:min(690px,96vw); padding:19px; }
.espa-hotel-search__occupancy { width:min(390px,96vw); padding:14px 18px; max-height:min(600px,80vh); overflow-y:auto; }
.espa-hotel-search__calendar-top, .espa-hotel-search__occupancy-head { display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:15px; margin-bottom:10px; }
.espa-hotel-search__calendar-top button, .espa-hotel-search__occupancy-head button { border:0; background:#f0f4f6; border-radius:50%; width:30px; height:30px; color:var(--hotel-ink); }
.espa-hotel-search__calendar-nav { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; font-weight:650; font-size:14px; }
.espa-hotel-search__calendar-nav button { border:1px solid #e1e8ec; color:var(--hotel-ink); background:var(--hotel-surface); width:33px; height:33px; border-radius:50%; cursor:pointer; }
.espa-hotel-search__calendar-nav button:disabled { opacity:.35; cursor:default; }
.espa-hotel-search__calendar-months { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.espa-hotel-search__month-title { font-weight:650; text-align:center; font-size:14px; margin-bottom:9px; }
.espa-hotel-search__month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; text-align:center; }
.espa-hotel-search__weekday { color:#94a1aa; font-size:11px; font-weight:700; padding:7px 0; }
.espa-hotel-search__day { border:0; height:34px; border-radius:8px; font-weight:600; font-size:12px; background:transparent; color:var(--hotel-ink); cursor:pointer; }
.espa-hotel-search__day:disabled { color:#d0d8dd; cursor:default; }
.espa-hotel-search__day:not(:disabled):hover { background:#e9f2f6; }
.espa-hotel-search__day.is-in-range { background:color-mix(in srgb, var(--hotel-brand) 12%, var(--hotel-surface)); border-radius:2px; }
.espa-hotel-search__day.is-start, .espa-hotel-search__day.is-end { background:var(--hotel-brand)!important; color:var(--hotel-on-brand)!important; border-radius:8px; }
.espa-hotel-search__calendar-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:17px; border-top:1px solid #e7edef; padding-top:13px; color:var(--hotel-muted); font-size:12px; }
.espa-hotel-search__calendar-bottom button,.espa-hotel-search__apply { color:var(--hotel-on-brand); background:var(--hotel-brand); border:0; border-radius:9px; font-weight:700; padding:9px 17px; cursor:pointer; }
.espa-hotel-search__warning { background:color-mix(in srgb,var(--hotel-danger) 8%,var(--hotel-surface)); color:var(--hotel-danger); border-radius:9px; padding:9px 12px; margin:4px 0 13px; font-size:12px; }
.espa-hotel-search__room { border-top:1px solid #e5ebee; padding:13px 0; }
.espa-hotel-search__room-head { display:flex; justify-content:space-between; gap:10px; align-items:center; font-size:13px; margin-bottom:9px; }
.espa-hotel-search__room-head button { border:0; color:#a43725; background:transparent; font-size:12px; cursor:pointer; }
.espa-hotel-search__room-line { display:flex; align-items:center; justify-content:space-between; margin:8px 0; gap:10px; font-size:13px; }
.espa-hotel-search__counter { display:flex; align-items:center; gap:12px; }
.espa-hotel-search__counter button { width:34px; height:32px; border-radius:8px; background:var(--hotel-surface); border:1px solid #d5dee3; color:var(--hotel-ink); font-size:20px; cursor:pointer; }
.espa-hotel-search__counter button:disabled { opacity:.35; cursor:default; }
.espa-hotel-search__counter strong { min-width:17px; text-align:center; }
.espa-hotel-search__ages { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:10px; }
.espa-hotel-search__ages label { display:flex; flex-direction:column; gap:4px; font-size:11px; color:#60737e; }
.espa-hotel-search__ages select { width:100%; border:1px solid #d4dfe4; border-radius:8px; background:var(--hotel-surface); padding:8px; color:var(--hotel-ink); font-size:12px; }
.espa-hotel-search__occupancy-bottom { display:flex; justify-content:space-between; align-items:center; gap:10px; border-top:1px solid #e8eef0; padding-top:13px; }
.espa-hotel-search__add-room { background:none; border:0; color:var(--hotel-brand); cursor:pointer; font-weight:650; font-size:13px; }
.espa-hotel-search__notice { color:var(--hotel-danger); background:color-mix(in srgb,var(--hotel-danger) 5%,var(--hotel-surface)); border:1px solid #f2c3be; padding:10px 14px; margin:7px 0 0; border-radius:9px; font-size:12px; }
.espa-hotel-search [hidden] { display:none!important; }
@media(max-width:991.98px) {
  .espa-hotel-search__form { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
  .espa-hotel-search__field { border:0; border-bottom:1px solid #e8edef; padding:6px 9px; }
  .espa-hotel-search__submit-wrap { padding:0; }
}
@media(max-width:575.98px) {
  .espa-hotel-search__form { grid-template-columns:1fr; padding:10px; gap:3px; border-radius:14px; }
  .espa-hotel-search__field { padding:7px; }
  .espa-hotel-search__date-button strong { font-size:12px; }
  .espa-hotel-search__submit { min-height:47px; }
  .espa-hotel-search__calendar { padding:12px; width:calc(100vw - 24px); left:50%; right:auto; transform:translateX(-50%); }
  .espa-hotel-search__calendar-months { gap:0; grid-template-columns:1fr; }
  .espa-hotel-search__calendar-months>.espa-hotel-search__month:nth-child(2) { display:none; }
  .espa-hotel-search__occupancy { width:calc(100vw - 24px); left:50%; right:auto; transform:translateX(-50%); }
  .espa-hotel-search__suggestions { max-width:calc(100vw - 24px); width:100%; }
}

/* Inline Iconify custom elements - EspaGlobal already loads the Iconify script. */
.espa-hotel-search iconify-icon { display:inline-flex; flex:0 0 auto; vertical-align:middle; }
.espa-hotel-search__input-wrap>iconify-icon { width:22px; height:22px; }
.espa-hotel-search__suggestion>iconify-icon { display:grid; place-items:center; width:39px; height:39px; flex:0 0 39px; }
.espa-hotel-search__ages { grid-template-columns:1fr; }
.espa-hotel-search__age-help { display:block; font-size:11px; line-height:1.5; color:var(--hotel-danger); padding:4px 0 0; }
.espa-hotel-search__age-help[hidden] { display:none!important; }
.espa-hotel-search__calendar-bottom button:disabled { opacity:.48; cursor:not-allowed; }
.espa-hotel-search__calendar-note { color:var(--hotel-muted); font-size:12px; }

/* Full-screen mobile hotel pickers. Overlay nodes are portalled to <body> by
   hotel-search-form.js, escaping the slider's transformed/overflow parents. */
html.espa-hotel-mobile-modal-open,
html.espa-hotel-mobile-modal-open body { overflow:hidden!important; overscroll-behavior:none; }

@media (max-width:767.98px) {
  .espa-hotel-search--mobile-portal {
    position:fixed!important; inset:0!important; z-index:2147483000!important;
    width:100%!important; max-width:none!important; height:100vh; height:100dvh;
    padding:0!important; margin:0!important; border:0!important;
    background:transparent; pointer-events:none; overflow:hidden;
    font-family:inherit; box-sizing:border-box;
  }
  .espa-hotel-search--mobile-portal.is-open { pointer-events:auto; }
  .espa-hotel-search--mobile-portal *,
  .espa-hotel-search--mobile-portal *::before,
  .espa-hotel-search--mobile-portal *::after { box-sizing:border-box; }
  .espa-hotel-search--mobile-portal .espa-hotel-search__calendar,
  .espa-hotel-search--mobile-portal .espa-hotel-search__occupancy,
  .espa-hotel-search--mobile-portal .espa-hotel-search__location-dialog {
    position:absolute!important; inset:0!important; top:0!important; left:0!important;
    right:0!important; bottom:0!important; transform:none!important;
    display:flex; flex-direction:column; width:100%!important; max-width:none!important;
    height:100%!important; max-height:none!important; min-height:0!important;
    margin:0!important; padding:0!important; border:0!important;
    border-radius:0!important; box-shadow:none!important;
    background:var(--hotel-surface,#fff); color:var(--hotel-ink,#193648);
    overflow:hidden; isolation:isolate;
  }
  .espa-hotel-search--mobile-portal [hidden] { display:none!important; }

  /* Mobile autocomplete is a dedicated full-screen destination picker. */
  .espa-hotel-search--mobile-portal .espa-hotel-search__location-header,
  .espa-hotel-search--mobile-portal .espa-hotel-search__calendar-top,
  .espa-hotel-search--mobile-portal .espa-hotel-search__occupancy-head {
    display:flex; flex:0 0 auto; align-items:center; justify-content:space-between;
    min-height:67px; margin:0!important; padding:12px 17px;
    border-bottom:1px solid var(--hotel-border,#dde7eb);
    background:var(--hotel-surface,#fff); font-size:17px; font-weight:700;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__location-header {
    justify-content:flex-start; gap:13px;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__location-header button,
  .espa-hotel-search--mobile-portal .espa-hotel-search__calendar-top button,
  .espa-hotel-search--mobile-portal .espa-hotel-search__occupancy-head button {
    appearance:none; border:1px solid var(--hotel-border,#dde7eb);
    border-radius:50%; width:40px; height:40px; flex:0 0 40px;
    background:#f5f7f9; color:var(--hotel-ink,#193648); font-size:20px;
    display:grid; place-items:center; padding:0; cursor:pointer;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__location-search {
    display:flex; flex:0 0 auto; align-items:center; gap:10px;
    margin:15px 16px 9px; padding:0 13px; min-height:54px;
    border:1px solid var(--hotel-brand,#ED1C24); border-radius:12px;
    color:var(--hotel-brand,#ED1C24); background:var(--hotel-surface,#fff);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--hotel-brand,#ED1C24) 9%, transparent);
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__location-search>iconify-icon { font-size:22px; }
  .espa-hotel-search--mobile-portal .espa-hotel-search__location-search input {
    flex:1; min-width:0; border:0; outline:0; font:inherit;
    font-size:16px; color:var(--hotel-ink,#193648); background:transparent;
    -webkit-appearance:none; appearance:none;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__location-search button {
    width:34px; height:34px; flex:0 0 34px; display:grid; place-items:center;
    border:0; border-radius:50%; background:#f1f4f6; color:var(--hotel-muted,#667a86);
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__location-results {
    flex:1 1 auto; min-height:0; padding:4px 12px max(18px,env(safe-area-inset-bottom));
    overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__suggestions {
    position:static!important; top:auto!important; left:auto!important;
    display:block; width:100%!important; max-width:none!important;
    max-height:none!important; overflow:visible!important; padding:0!important;
    border:0!important; border-radius:0!important; box-shadow:none!important;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__suggestion {
    min-height:66px; border-radius:0; padding:11px 9px; gap:12px;
    border-bottom:1px solid var(--hotel-border,#e8edef);
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__suggestion>iconify-icon {
    width:44px!important; height:44px!important; flex:0 0 44px!important;
    display:grid; place-items:center;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__suggestion-copy strong { font-size:14px; }
  .espa-hotel-search--mobile-portal .espa-hotel-search__suggestion-copy small { font-size:12px; }

  /* Two visible months in one vertically scrollable date picker. */
  .espa-hotel-search--mobile-portal .espa-hotel-search__calendar-nav {
    flex:0 0 auto; min-height:58px; margin:0!important;
    padding:8px 18px; border-bottom:1px solid var(--hotel-border,#dde7eb);
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__calendar-nav button {
    display:grid; place-items:center; width:38px; height:38px;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__calendar-months {
    display:grid!important; grid-template-columns:1fr!important; align-content:start;
    flex:1 1 auto; min-height:0; overflow-x:hidden; overflow-y:auto;
    gap:28px; padding:16px 15px 25px; overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__calendar-months >
  .espa-hotel-search__month:nth-child(2) { display:block!important; }
  .espa-hotel-search--mobile-portal .espa-hotel-search__month { min-width:0; }
  .espa-hotel-search--mobile-portal .espa-hotel-search__month-title {
    font-size:16px; margin:0 0 13px; font-weight:700;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__month-grid {
    width:100%; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__weekday {
    font-size:11px; padding:9px 0;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__day {
    min-width:0; width:100%; height:auto; min-height:40px; aspect-ratio:1;
    padding:0; border-radius:7px; font-size:13px; touch-action:manipulation;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__calendar-bottom {
    flex:0 0 auto; margin:0!important; padding:12px 17px max(14px,env(safe-area-inset-bottom));
    gap:14px; border-top:1px solid var(--hotel-border,#dde7eb);
    background:var(--hotel-surface,#fff); box-shadow:0 -5px 18px rgba(16,39,56,.06);
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__calendar-bottom span {
    min-width:0; flex:1; font-size:12px; line-height:1.4;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__calendar-bottom button {
    flex:0 0 auto; min-height:46px; min-width:105px; font-size:14px;
  }

  /* Long multi-room selections scroll *between* fixed header and footer. */
  .espa-hotel-search--mobile-portal .espa-hotel-search__occupancy-scroll {
    flex:1 1 auto; min-height:0; padding:12px 18px 24px; overflow-y:auto;
    overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__room { padding:16px 0; }
  .espa-hotel-search--mobile-portal .espa-hotel-search__room-head { font-size:15px; }
  .espa-hotel-search--mobile-portal .espa-hotel-search__room-line {
    min-height:47px; font-size:15px;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__counter button {
    min-width:43px; width:43px; height:43px; font-size:23px;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__counter { gap:15px; }
  .espa-hotel-search--mobile-portal .espa-hotel-search__ages label { font-size:12px; }
  .espa-hotel-search--mobile-portal .espa-hotel-search__ages select {
    min-height:48px; font-size:16px;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__occupancy-bottom {
    display:flex; flex:0 0 auto; justify-content:space-between;
    min-height:77px; margin:0!important; padding:12px 18px max(12px,env(safe-area-inset-bottom));
    background:var(--hotel-surface,#fff); border-top:1px solid var(--hotel-border,#dde7eb);
    box-shadow:0 -5px 18px rgba(16,39,56,.07);
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__occupancy-bottom .espa-hotel-search__apply {
    min-width:125px; min-height:48px; border-radius:11px; font-size:15px;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__add-room {
    min-height:44px; font-size:14px;
  }
  .espa-hotel-search--mobile-portal .espa-hotel-search__warning { margin-bottom:10px; }
}

/* Hotel autocomplete: visible pending state, used on homepage and listing. */
.espa-hotel-search__suggestion-loading {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:66px;
  padding:14px 16px;
  color:var(--hotel-ink, #132d45);
  font-size:13px;
  font-weight:650;
}
.espa-hotel-search__loading-spinner {
  display:inline-block;
  flex:0 0 24px;
  width:24px;
  height:24px;
  border:3px solid color-mix(in srgb, var(--hotel-brand, #ed252b) 16%, #fff);
  border-top-color:var(--hotel-brand, #ed252b);
  border-radius:50%;
  animation:espa-hotel-lookup-spin .7s linear infinite;
}
@keyframes espa-hotel-lookup-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .espa-hotel-search__loading-spinner { animation-duration:1.8s; }
}
