/* Qualoo Stays search page styles. Consolidated in cascade order from the former inline layers. */
/* ?? Page-load flash prevention ?? */
    body.page-loading .site-shell {
      opacity: 0;
      pointer-events: none;
}

/* Consolidated page typography contract, replacing legacy forced declarations. */
#stays-app body { font-family: "DM Sans", sans-serif; }
#stays-app .stays-prefs-trigger { font-family: "DM Sans", sans-serif !important; }
    .site-shell {
      transition: opacity .35s ease;
    }
    .page-loader {
      position: fixed;
      inset: 0;
      z-index: 99999;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 18px;
      background: var(--stays-dark-panel-raised);
      transition: opacity .3s ease;
    }
    .page-loader.is-hidden {
      opacity: 0;
      pointer-events: none;
    }
    .page-loader-spinner {
      width: 36px;
      height: 36px;
      border: 3px solid rgba(255,255,255,.12);
      border-top-color: #4c8fff;
      border-radius: 50%;
      animation: ql-spin .7s linear infinite;
    }
    @keyframes ql-spin { to { transform: rotate(360deg); } }
    .page-loader-text {
      color: #8898b9;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: .02em;
    }
    html:not([data-theme="dark"]) .page-loader {
      background: var(--stays-canvas);
    }
    html:not([data-theme="dark"]) .page-loader-spinner {
      border-color: rgba(15,23,42,.1);
      border-top-color: var(--stays-signal);
    }
    html:not([data-theme="dark"]) .page-loader-text {
      color: var(--stays-ink-muted);
    }
    .page-load-error {
      position: fixed;
      inset: 0;
      z-index: 99999;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
      background: var(--stays-dark-panel-raised);
      color: #c9d1e4;
      font-size: 15px;
      text-align: center;
      padding: 24px;
    }
    html:not([data-theme="dark"]) .page-load-error {
      background: var(--stays-canvas);
      color: var(--stays-ink-muted);
    }
    .page-load-error strong {
      color: var(--stays-surface);
      font-size: 18px;
    }
    html:not([data-theme="dark"]) .page-load-error strong {
      color: var(--stays-ink);
    }
    .page-load-error button {
      margin-top: 6px;
      padding: 8px 20px;
      border: 0;
      border-radius: 6px;
      background: var(--stays-signal);
      color: var(--stays-surface);
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }

    :root {
      --hotel-card-bg: var(--stays-surface);
      --hotel-card-body-bg: linear-gradient(180deg, var(--stays-surface) 0%, var(--stays-canvas) 100%);
      --hotel-card-border: rgba(15, 23, 42, 0.12);
      --hotel-card-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
      --hotel-card-media-bg: var(--stays-signal-soft);
      --hotel-card-title: var(--stays-ink);
      --hotel-card-meta: #536179;
      --hotel-card-subtle: var(--stays-ink-muted);
      --hotel-card-price: var(--stays-ink);
    }

    html[data-theme="dark"] {
      --hotel-card-bg: #11182e;
      --hotel-card-body-bg: linear-gradient(180deg, #111a32 0%, #0d1428 100%);
      --hotel-card-border: rgba(255, 255, 255, 0.16);
      --hotel-card-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
      --hotel-card-media-bg: #0a1022;
      --hotel-card-title: var(--stays-surface);
      --hotel-card-meta: #d9e2f2;
      --hotel-card-subtle: #eef3fb;
      --hotel-card-price: var(--stays-surface);
    }

    .results-list {
      display: flex;
      flex-direction: column;
      padding-right: 2px;
    }

    .results-list .listing-card.hotel-result-card {
      position: relative;
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      min-height: 280px;
      height: 280px;
      width: 100%;
      border-radius: 20px;
      overflow: hidden;
      isolation: isolate;
      background: var(--hotel-card-bg);
      border: 1px solid var(--hotel-card-border);
      box-shadow: var(--hotel-card-shadow);
      transform: none;
      transition: none;
    }

    .results-list > .listing-card:not(.hotel-result-card) {
      min-height: 280px;
    }

    .results-list .listing-card.hotel-result-card:hover {
      border-color: var(--hotel-card-border);
      box-shadow: var(--hotel-card-shadow);
      transform: none;
    }

    .results-list .hotel-card-media {
      min-height: 0;
      width: 220px;
      height: 278px;
      overflow: hidden;
      background: var(--hotel-card-media-bg);
      align-self: center;
      padding: 10px;
      box-sizing: border-box;
    }

    .results-list .hotel-card-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-radius: 12px;
    }

    .results-list .hotel-card-body {
      position: relative;
      min-width: 0;
      height: 100%;
      padding: 14px 12px 12px 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 8px;
      overflow: hidden;
      background: var(--hotel-card-body-bg);
    }

    .results-list .hotel-card-main {
      min-width: 0;
      max-width: calc(100% - 54px);
    }

    .results-list .hotel-card-rating {
      color: #ffd23f;
      letter-spacing: 2px;
      font-size: 13px;
      line-height: 1;
      font-weight: 800;
      margin: 0 0 9px 0;
      text-shadow: none;
    }

    .results-list .hotel-card-title {
      margin: 0;
      color: var(--hotel-card-title);
      font-size: 20px;
      line-height: 1.15;
      font-weight: 800;
      letter-spacing: -0.01em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .results-list .hotel-card-location {
      margin: 7px 0 0 0;
      color: var(--hotel-card-meta);
      font-size: 15px;
      line-height: 1.35;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .results-list .hotel-score-badge {
      position: absolute;
      top: 12px;
      right: 12px;
      min-width: 34px;
      height: 28px;
      padding: 0 8px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #22c55e;
      color: var(--hotel-card-price);
      font-size: 13px;
      line-height: 1;
      font-weight: 900;
      box-shadow: none;
    }

    .results-list .hotel-card-booking {
      align-self: flex-end;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
      min-width: 120px;
      padding: 10px 0 0 12px;
      margin-top: auto;
    }

    .results-list .hotel-card-price {
      display: flex;
      align-items: baseline;
      justify-content: flex-end;
      gap: 4px;
      color: var(--hotel-card-price);
      white-space: nowrap;
    }

    .results-list .hotel-card-price strong {
      color: var(--hotel-card-price);
      font-size: 24px;
      line-height: 1;
      font-weight: 600;
      letter-spacing: -0.02em;
    }

    .results-list .hotel-card-price span {
      color: var(--hotel-card-subtle);
      font-size: 12px;
      font-weight: 700;
    }

    .results-list .hotel-card-stay-meta {
      color: var(--hotel-card-subtle);
      font-size: 13px;
      line-height: 1.2;
      font-weight: 700;
      text-align: right;
      white-space: nowrap;
    }

    .results-list .hotel-card-public-price {
      color: var(--hotel-card-meta);
      font-size: 15px;
      line-height: 1.2;
      font-weight: 800;
      text-align: right;
      white-space: nowrap;
    }

    .results-list .hotel-availability-btn {
      min-width: 106px;
      height: 34px;
      padding: 0 12px;
      border-radius: 10px;
      border: 0;
      background: linear-gradient(180deg, #4c8fff 0%, var(--stays-signal) 100%);
      color: var(--stays-surface);
      font-size: 11px;
      line-height: 1;
      font-weight: 900;
      white-space: nowrap;
      box-shadow: none;
      cursor: pointer;
    }

    @media (max-width: 900px) {
      .results-list .listing-card.hotel-result-card {
        grid-template-columns: 134px minmax(0, 1fr);
        height: auto;
        min-height: 140px;
      }

      .results-list .hotel-card-body {
        padding: 12px 10px 10px 12px;
      }
    }
.results-layout {
      display: grid;
      grid-template-columns: 300px minmax(0, 1fr);
      gap: 16px;
    }

    .stays-results-filters.hotel-filter-panel {
      position: sticky;
      top: 86px;
      background: var(--stays-surface);
      color: var(--stays-ink);
      border: 1px solid var(--stays-border);
      border-radius: 0;
      padding: 18px 18px 28px;
      height: calc(100vh - 106px);
      min-height: 0;
      max-height: calc(100vh - 106px);
      overflow-y: auto;
      overflow-x: hidden;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: #b8c4d4 var(--stays-signal-soft);
    }

    .stays-results-filters.hotel-filter-panel::-webkit-scrollbar {
      width: 8px;
      height: 8px;
      display: block;
    }

    .stays-results-filters.hotel-filter-panel::-webkit-scrollbar-thumb {
      background: #b8c4d4;
      border-radius: 999px;
    }

    .stays-results-filters.hotel-filter-panel::-webkit-scrollbar-track {
      background: var(--stays-signal-soft);
    }

    .template-search-state-hidden {
      display: none;
    }

    .hotel-filter-panel .filters-head {
      display: none;
    }

    .hotel-filter-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--stays-border-soft);
    }

    .hotel-filter-head h2 {
      margin: 0;
      color: var(--stays-ink);
      font-size: 22px;
      line-height: 1.1;
    }

    .hotel-filter-clear {
      height: 34px;
      padding: 0 12px;
      border: 1px solid var(--stays-border);
      border-radius: 8px;
      background: var(--stays-surface);
      color: var(--stays-ink-muted);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }

    .hotel-filter-clear:disabled {
      opacity: .45;
      cursor: default;
    }

    .hotel-filter-section {
      padding: 16px 0;
      border-bottom: 1px solid #e9eff6;
    }

    .hotel-filter-section h3 {
      margin: 0 0 12px;
      color: var(--stays-ink);
      font-size: 15px;
      line-height: 1.2;
      font-weight: 800;
    }

    .hotel-filter-section h3 span {
      color: var(--stays-ink-muted);
      font-weight: 700;
    }

    .hotel-filter-text {
      width: 100%;
      height: 34px;
      border: 1px solid #b9c3d0;
      border-radius: 8px;
      background: var(--stays-surface);
      color: var(--stays-ink);
      font-size: 15px;
      padding: 0 10px;
      outline: none;
      box-sizing: border-box;
    }

    .hotel-filter-text:focus {
      border-color: var(--stays-signal);
      box-shadow: none;
    }

    .hotel-price-label {
      color: var(--stays-ink);
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .hotel-price-histogram {
      height: 54px;
      display: flex;
      align-items: end;
      gap: 2px;
      padding: 0 6px;
      margin-bottom: -8px;
    }

    .hotel-price-histogram span {
      display: block;
      flex: 1;
      min-width: 3px;
      border-radius: 2px 2px 0 0;
      background: #dce8f7;
    }

    .hotel-price-range {
      width: 100%;
      accent-color: var(--stays-signal);
    }

    .hotel-filter-options {
      display: grid;
      gap: 9px;
    }

    .hotel-filter-check {
      display: grid;
      grid-template-columns: 22px minmax(0, 1fr);
      align-items: start;
      gap: 10px;
      color: #10213d;
      font-size: 14px;
      line-height: 1.25;
      cursor: pointer;
    }

    .hotel-filter-check input {
      width: 20px;
      height: 20px;
      margin: 0;
      border: 1px solid #c5cfdc;
      border-radius: 4px;
      accent-color: var(--stays-signal);
    }

    .hotel-filter-check span {
      min-width: 0;
    }

    .hotel-filter-more {
      justify-self: start;
      border: 0;
      background: transparent;
      color: #075bd8;
      font-size: 14px;
      font-weight: 700;
      padding: 2px 0;
      text-decoration: underline;
      cursor: pointer;
    }

    .hotel-filter-empty {
      color: var(--stays-ink-muted);
      font-size: 13px;
      line-height: 1.35;
    }

    html[data-theme="dark"] .stays-results-filters.hotel-filter-panel {
      background: var(--stays-dark-panel-raised);
      color: #eef4ff;
      border-color: rgba(255,255,255,0.12);
      scrollbar-color: #33415f #0a1228;
    }

    html[data-theme="dark"] .stays-results-filters.hotel-filter-panel::-webkit-scrollbar-thumb {
      background: #33415f;
    }

    html[data-theme="dark"] .stays-results-filters.hotel-filter-panel::-webkit-scrollbar-track {
      background: #0a1228;
    }

    html[data-theme="dark"] .hotel-filter-head,
    html[data-theme="dark"] .hotel-filter-section {
      border-color: rgba(255,255,255,0.12);
    }

    html[data-theme="dark"] .hotel-filter-head h2,
    html[data-theme="dark"] .hotel-filter-section h3,
    html[data-theme="dark"] .hotel-price-label,
    html[data-theme="dark"] .hotel-filter-check {
      color: var(--stays-night-text);
    }

    html[data-theme="dark"] .hotel-filter-section h3 span,
    html[data-theme="dark"] .hotel-filter-empty {
      color: var(--stays-night-muted);
    }

    html[data-theme="dark"] .hotel-filter-text,
    html[data-theme="dark"] .hotel-filter-clear {
      background: var(--stays-dark-panel-raised);
      border-color: rgba(255,255,255,0.16);
      color: var(--stays-night-text);
    }

    html[data-theme="dark"] .hotel-filter-text::placeholder {
      color: #aab6cf;
      opacity: 1;
    }

    html[data-theme="dark"] .hotel-filter-check input {
      border-color: rgba(255,255,255,0.28);
      background: var(--stays-dark-panel-raised);
    }

    html[data-theme="dark"] .hotel-price-histogram span {
      background: #263653;
    }

    @media (max-width: 980px) {
      .results-layout {
        grid-template-columns: 1fr;
      }

      .stays-results-filters.hotel-filter-panel {
        overflow: visible;
      }
    }
html, body { overflow-x: hidden; }

    .page-wrap {
      background: var(--stays-canvas);
      min-height: calc(100vh - 80px);
      padding-top: 18px;
    }

    html[data-theme="dark"] .page-wrap {
      background: var(--stays-ink);
    }

    .page-wrap > .container {
      max-width: 1280px;
      width: 100%;
      padding-top: 0;
    }

    .results-layout {
      align-items: start;
    }

    .results-main-panel {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .hotel-search-topbar {
      width: 100%;
      min-width: 0;
      display: grid;
      grid-template-columns: minmax(220px, 1.35fr) minmax(130px, .75fr) minmax(130px, .75fr) minmax(150px, .82fr) 58px;
      align-items: center;
      gap: 0;
      background: var(--stays-surface);
      border: 1px solid var(--stays-border);
      border-radius: 0;
      box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
      padding: 8px 8px 8px 18px;
      min-height: 68px;
    }

    html[data-theme="dark"] .hotel-search-topbar {
      background: var(--stays-dark-panel-raised);
      border-color: rgba(255,255,255,.12);
      box-shadow: 0 12px 28px rgba(0,0,0,.22);
    }

    .hotel-search-field {
      min-width: 0;
      height: 48px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 2px;
      padding: 0 18px 0 0;
      margin-right: 18px;
      border-right: 1px solid var(--stays-border-soft);
      color: var(--stays-ink);
    }

    html[data-theme="dark"] .hotel-search-field {
      color: var(--stays-night-text);
      border-right-color: rgba(255,255,255,.12);
    }

    .hotel-search-field span {
      display: block;
      font-size: 11px;
      line-height: 1.1;
      font-weight: 800;
      color: var(--stays-ink-muted);
      letter-spacing: .01em;
    }

    html[data-theme="dark"] .hotel-search-field span {
      color: var(--stays-night-muted);
    }

    .hotel-search-field input,
    .hotel-search-field select {
      width: 100%;
      min-width: 0;
      border: 0;
      outline: 0;
      background: transparent;
      color: var(--stays-ink);
      padding: 0;
      font-family: inherit;
      font-size: 14px;
      line-height: 1.2;
      font-weight: 800;
      appearance: none;
    }

    html[data-theme="dark"] .hotel-search-field input,
    html[data-theme="dark"] .hotel-search-field select {
      color: var(--stays-night-text);
    }

    .hotel-search-field input::placeholder {
      color: var(--stays-ink);
      opacity: 1;
    }

    html[data-theme="dark"] .hotel-search-field input::placeholder {
      color: var(--stays-night-text);
    }

    .hotel-search-submit {
      width: 48px;
      height: 48px;
      border: 0;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--stays-signal);
      color: var(--stays-surface);
      font-size: 20px;
      line-height: 1;
      font-weight: 900;
      cursor: pointer;
      box-shadow: none;
    }

    .hotel-search-submit svg {
      width: 20px;
      height: 20px;
      display: block;
    }

    .results-control-row {
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      background: var(--stays-surface);
      border: 1px solid var(--stays-border-soft);
      border-radius: 20px;
      padding: 18px 20px;
      margin: 0;
      box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
    }

    html[data-theme="dark"] .results-control-row {
      background: var(--stays-dark-panel-raised);
      border-color: rgba(255,255,255,.12);
      box-shadow: 0 12px 28px rgba(0,0,0,.18);
    }

    .results-count-block h1,
    .results-count-block h2 {
      margin: 0;
      color: var(--stays-ink);
      font-size: 21px;
      line-height: 1.2;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    html[data-theme="dark"] .results-count-block h1,
    html[data-theme="dark"] .results-count-block h2 {
      color: var(--stays-night-text);
    }

    .results-count-block p,
    .results-head-main p {
      display: none;
    }

    .results-actions-group {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      min-width: 0;
    }

    .sort-control {
      position: relative;
      min-width: 0;
    }

    .sort-button {
      height: 40px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--stays-ink);
      font-family: inherit;
      font-size: 14px;
      line-height: 1;
      font-weight: 700;
      white-space: nowrap;
      cursor: pointer;
      padding: 0 8px;
    }

    html[data-theme="dark"] .sort-button {
      color: var(--stays-night-text);
    }

    .sort-button strong {
      font-weight: 900;
    }

    .sort-icon,
    .sort-caret {
      color: var(--stays-ink-muted);
      font-size: 16px;
      line-height: 1;
    }

    html[data-theme="dark"] .sort-icon,
    html[data-theme="dark"] .sort-caret {
      color: var(--stays-night-muted);
    }

    .sort-menu {
      position: absolute;
      top: calc(100% + 9px);
      right: 0;
      z-index: 90;
      width: 240px;
      padding: 8px 0;
      background: var(--stays-surface);
      border: 1px solid #dce4ef;
      border-radius: 12px;
      box-shadow: 0 18px 38px rgba(15,23,42,.18);
      display: none;
    }

    .sort-control.is-open .sort-menu {
      display: block;
    }

    html[data-theme="dark"] .sort-menu {
      background: var(--stays-dark-panel-raised);
      border-color: rgba(255,255,255,.14);
      box-shadow: 0 20px 44px rgba(0,0,0,.42);
    }

    .sort-menu button {
      width: 100%;
      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border: 0;
      background: transparent;
      color: var(--stays-ink);
      font-family: inherit;
      font-size: 16px;
      line-height: 1.2;
      font-weight: 500;
      text-align: left;
      padding: 0 18px;
      cursor: pointer;
    }

    html[data-theme="dark"] .sort-menu button {
      color: #eef4ff;
    }

    .sort-menu button:hover {
      background: #f5f8fc;
    }

    html[data-theme="dark"] .sort-menu button:hover {
      background: rgba(255,255,255,.06);
    }

    .sort-check {
      color: var(--stays-signal);
      font-size: 18px;
      opacity: 0;
    }

    .sort-menu button.is-active .sort-check {
      opacity: 1;
    }

    .view-toggle {
      height: 42px;
      display: inline-grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      background: #f3f6fb;
      border: 1px solid #e0e8f2;
      border-radius: 12px;
      padding: 4px;
      gap: 4px;
      white-space: nowrap;
    }

    html[data-theme="dark"] .view-toggle {
      background: var(--stays-dark-panel-raised);
      border-color: rgba(255,255,255,.14);
    }

    .view-toggle a,
    .view-toggle button {
      height: 32px;
      min-width: 68px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--stays-ink-muted);
      font-family: inherit;
      font-size: 14px;
      line-height: 1;
      font-weight: 800;
      text-decoration: none;
      cursor: pointer;
      padding: 0 10px;
    }

    .view-toggle .is-active {
      background: var(--stays-surface);
      color: var(--stays-ink);
      box-shadow: 0 4px 10px rgba(15,23,42,.08);
    }

    html[data-theme="dark"] .view-toggle .is-active {
      background: #1a2545;
      color: var(--stays-surface);
      box-shadow: none;
    }

    html[data-theme="dark"] .view-toggle a,
    html[data-theme="dark"] .view-toggle button {
      color: var(--stays-night-muted);
    }

    .results-list {
      gap: 8px;
    }

    @media (max-width: 1120px) {
    }

    @media (max-width: 980px) {
      .results-main-panel {
        order: -1;
      }
      .hotel-search-topbar {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 14px;
        border-radius: 10px;
      }
      .hotel-search-field,
      .hotel-search-field-guests {
        display: flex;
        height: auto;
        min-height: 56px;
        margin: 0;
        padding: 10px 0;
        border-right: 0;
        border-bottom: 1px solid var(--stays-border-soft);
      }
      html[data-theme="dark"] .hotel-search-field,
      html[data-theme="dark"] .hotel-search-field-guests {
        border-bottom-color: rgba(255,255,255,.12);
      }
      .hotel-search-submit {
        width: 100%;
        height: 46px;
        margin-top: 14px;
        border-radius: 8px;
      }
      .results-control-row {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
        border-radius: 16px;
      }
      .results-actions-group {
        width: 100%;
        justify-content: space-between;
      }
      .sort-control {
        flex: 1 1 auto;
      }
      .sort-button {
        width: 100%;
        justify-content: flex-start;
      }
      .sort-menu {
        left: 0;
        right: auto;
        width: min(280px, calc(100vw - 32px));
      }
      .view-toggle {
        flex: 0 0 auto;
      }
    }

    @media (max-width: 620px) {
      .page-wrap {
        padding-top: 12px;
      }
      .page-wrap > .container {
        padding-left: 12px;
        padding-right: 12px;
      }
      .results-actions-group {
        flex-direction: column;
        align-items: stretch;
      }
      .view-toggle {
        width: 100%;
      }
      .view-toggle a,
      .view-toggle button {
        width: 100%;
      }
      .results-count-block h1,
      .results-count-block h2 {
        font-size: 19px;
      }
    }
.hotel-search-topbar {
      position: relative;
      z-index: 120;
      overflow: visible;
    }

    .hotel-search-field {
      cursor: pointer;
    }

    .search-field-trigger {
      width: 100%;
      min-width: 0;
      border: 0;
      outline: 0;
      background: transparent;
      color: var(--stays-ink);
      padding: 0;
      margin: 0;
      font-family: inherit;
      text-align: left;
      cursor: pointer;
    }

    .search-field-trigger strong {
      display: block;
      color: inherit;
      font-size: 14px;
      line-height: 1.2;
      font-weight: 900;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    html[data-theme="dark"] .search-field-trigger {
      color: var(--stays-night-text);
    }

    .hotel-search-field.is-active span,
    .hotel-search-field:focus-within span {
      color: var(--stays-signal);
    }

    .search-popover {
      position: absolute;
      top: calc(100% + 8px);
      z-index: 160;
      background: var(--stays-surface);
      color: var(--stays-ink);
      border: 1px solid #dce4ef;
      border-radius: 8px;
      box-shadow: 0 18px 42px rgba(15, 23, 42, .20);
    }

    html[data-theme="dark"] .search-popover {
      background: var(--stays-dark-panel-raised);
      color: var(--stays-night-text);
      border-color: rgba(255,255,255,.16);
      box-shadow: 0 22px 48px rgba(0,0,0,.48);
    }

    .calendar-popover {
      left: 92px;
      width: min(650px, calc(100vw - 40px));
      padding: 16px 18px 20px;
    }

    .calendar-header-row {
      position: absolute;
      top: 16px;
      left: 18px;
      right: 18px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      pointer-events: none;
    }

    .calendar-nav-btn {
      width: 28px;
      height: 28px;
      border: 0;
      border-radius: 4px;
      background: #eef2f7;
      color: var(--stays-ink-muted);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      line-height: 1;
      font-weight: 700;
      cursor: pointer;
      pointer-events: auto;
    }

    html[data-theme="dark"] .calendar-nav-btn {
      background: #1a2545;
      color: #cbd5e1;
    }

    .calendar-months {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    .calendar-month-title {
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 0 14px;
      color: var(--stays-ink);
      font-size: 13px;
      line-height: 1;
      font-weight: 800;
    }

    html[data-theme="dark"] .calendar-month-title {
      color: var(--stays-night-text);
    }

    .calendar-weekdays,
    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 0;
    }

    .calendar-weekdays span {
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--stays-ink-muted);
      font-size: 12px;
      line-height: 1;
      font-weight: 800;
    }

    html[data-theme="dark"] .calendar-weekdays span {
      color: var(--stays-night-muted);
    }

    .calendar-day {
      height: 36px;
      border: 0;
      background: transparent;
      color: var(--stays-ink);
      font-family: inherit;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      border-radius: 0;
      position: relative;
    }

    html[data-theme="dark"] .calendar-day {
      color: #e5edf8;
    }

    .calendar-day.is-muted {
      color: #c5cbd5;
      cursor: default;
      pointer-events: none;
    }

    html[data-theme="dark"] .calendar-day.is-muted {
      color: #526078;
    }

    .calendar-day.is-in-range {
      background: #eaf2ff;
      color: #075bd8;
    }

    html[data-theme="dark"] .calendar-day.is-in-range {
      background: rgba(22,119,255,.16);
      color: #93c5fd;
    }

    .calendar-day.is-selected {
      background: var(--stays-signal);
      color: var(--stays-surface);
      border-radius: 6px;
      font-weight: 900;
      box-shadow: none;
    }

    .guests-popover {
      right: 58px;
      width: min(320px, calc(100vw - 40px));
      padding: 18px 18px 14px;
    }

    .guests-popover h3 {
      margin: 0 0 20px;
      color: inherit;
      font-size: 16px;
      line-height: 1.2;
      font-weight: 800;
    }

    .guest-room-title {
      color: inherit;
      font-size: 14px;
      line-height: 1.2;
      font-weight: 800;
      margin-bottom: 14px;
    }

    .guest-counter-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 14px;
    }

    .guest-counter-row strong {
      display: block;
      color: inherit;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.2;
    }

    .guest-counter-row small {
      display: block;
      color: #8a96aa;
      font-size: 11px;
      font-weight: 700;
      line-height: 1.2;
      margin-top: 2px;
    }

    html[data-theme="dark"] .guest-counter-row small {
      color: var(--stays-night-muted);
    }

    .guest-stepper {
      display: grid;
      grid-template-columns: 28px 30px 28px;
      align-items: center;
      justify-content: end;
      gap: 6px;
    }

    .guest-stepper button {
      width: 28px;
      height: 28px;
      border: 1px solid var(--stays-border);
      border-radius: 999px;
      background: var(--stays-surface);
      color: var(--stays-night-muted);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
    }

    html[data-theme="dark"] .guest-stepper button {
      background: var(--stays-dark-panel-raised);
      border-color: rgba(255,255,255,.18);
      color: #cbd5e1;
    }

    .guest-stepper button:disabled {
      opacity: .45;
      cursor: default;
    }

    .guest-stepper span {
      color: inherit;
      text-align: center;
      font-size: 15px;
      font-weight: 600;
    }

    .guest-popover-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 18px;
    }

    .guest-secondary-btn,
    .guest-primary-btn {
      height: 38px;
      border-radius: 6px;
      font-family: inherit;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }

    .guest-secondary-btn {
      background: var(--stays-surface);
      color: var(--stays-ink);
      border: 1px solid var(--stays-border);
    }

    html[data-theme="dark"] .guest-secondary-btn {
      background: var(--stays-dark-panel-raised);
      color: var(--stays-night-text);
      border-color: rgba(255,255,255,.16);
    }

    .guest-primary-btn {
      background: var(--stays-signal);
      color: var(--stays-surface);
      border: 1px solid var(--stays-signal);
    }

    @media (max-width: 1120px) {
      .hotel-search-topbar {
        grid-template-columns: minmax(220px, 1.2fr) minmax(124px, .72fr) minmax(124px, .72fr) minmax(140px, .82fr) 58px;
      }
      .hotel-search-field-guests {
        display: flex;
      }
    }

    @media (max-width: 980px) {
      .calendar-popover,
      .guests-popover {
        left: 14px;
        right: 14px;
        width: auto;
      }
      .calendar-months {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 620px) {
      .search-popover {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 94px;
        width: auto;
        max-height: calc(100vh - 112px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      .calendar-popover {
        padding: 16px 14px 18px;
      }
      .calendar-day {
        height: 34px;
      }
      .guest-popover-actions {
        grid-template-columns: 1fr;
      }
    }
/* Accessibility/design polish from review: contrast, calmer actions, and less cramped metadata. */
  html,
  body,
  button,
  input,
  select,
  textarea,
  .stays-results-page,
  .stays-results-page * {
    font-family: 'DM Sans', sans-serif;
  }

  .results-list .hotel-card-location,
  .results-list .listing-location.hotel-card-location {
    line-height: 1.42;
    color: #d9e2f2;
  }

  html[data-theme="light"] .results-list .hotel-card-location,
  html[data-theme="light"] .results-list .listing-location.hotel-card-location {
    color: var(--stays-ink-muted);
  }

  .results-list .hotel-score-badge,
  html[data-theme="light"] .results-list .hotel-score-badge,
  html[data-theme="dark"] .results-list .hotel-score-badge {
    background: var(--stays-evidence-deep);
    color: var(--stays-surface);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: none;
    text-shadow: none;
  }

  .results-list .hotel-availability-btn,
  .results-list .hotel-availability-btn:hover,
  .results-list .hotel-availability-btn:focus,
  .results-list .hotel-availability-btn:active {
    background: var(--stays-signal);
    color: var(--stays-surface);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, .18);
    text-shadow: none;
  }

  .results-list .hotel-card-price span,
  .results-list .hotel-card-stay-meta,
  .results-list .hotel-card-public-price {
    color: #dbe6f7;
  }

  html[data-theme="light"] .results-list .hotel-card-price span,
  html[data-theme="light"] .results-list .hotel-card-stay-meta {
    color: var(--stays-ink-muted);
  }
@media (max-width: 980px) {
    #staysQuickSearchForm.hotel-search-topbar {
      display: grid;
      grid-template-columns: 1fr;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      overflow: visible;
      box-sizing: border-box;
    }

    #staysQuickSearchForm .hotel-search-field,
    #staysQuickSearchForm .hotel-search-field-date,
    #staysQuickSearchForm .hotel-search-field-guests {
      display: flex;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      margin: 0;
      padding: 10px 0;
      border-right: 0;
      box-sizing: border-box;
    }

    #staysQuickSearchForm .search-field-trigger,
    #staysQuickSearchForm .search-field-trigger strong,
    #staysQuickSearchForm input {
      max-width: 100%;
      min-width: 0;
    }
  }

  @media (max-width: 620px) {
    html,
    body,
    .site-shell,
    .page-wrap,
    .page-wrap > .container,
    .results-main-panel {
      max-width: 100vw;
      overflow-x: hidden;
    }

    #staysQuickSearchForm.hotel-search-topbar {
      padding: 12px;
      border-radius: 10px;
    }

    .results-control-row,
    .results-actions-group,
    .sort-control,
    .view-toggle {
      max-width: 100%;
      min-width: 0;
    }

    .results-list .listing-card.hotel-result-card {
      display: grid;
      grid-template-columns: 1fr;
      width: 100%;
      max-width: 100%;
      height: auto;
      min-height: 0;
      border-radius: 12px;
      overflow: hidden;
    }

    .results-list .hotel-card-media {
      width: 100%;
      height: clamp(188px, 54vw, 240px);
      min-height: clamp(188px, 54vw, 240px);
      align-self: stretch;
      padding: 0;
    }

    .results-list .hotel-card-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 0;
    }

    .results-list .hotel-card-body {
      height: auto;
      min-height: 0;
      padding: 16px;
      gap: 14px;
      overflow: visible;
    }

    .results-list .hotel-card-main {
      max-width: 100%;
      padding-right: 48px;
    }

    .results-list .hotel-card-title {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      font-size: 18px;
      line-height: 1.18;
    }

    .results-list .hotel-card-location {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      font-size: 13px;
      line-height: 1.42;
    }

    .results-list .hotel-card-booking {
      position: static;
      align-self: stretch;
      align-items: stretch;
      width: 100%;
      min-width: 0;
      margin-top: 4px;
      padding: 14px 0 0;
      border-top: 1px solid rgba(148, 163, 184, .18);
    }

    .results-list .hotel-card-price,
    .results-list .hotel-card-stay-meta,
    .results-list .hotel-card-public-price {
      justify-content: flex-start;
      text-align: left;
      white-space: normal;
      overflow: visible;
    }

    .results-list .hotel-card-price strong {
      font-size: 24px;
    }

    .results-list .hotel-availability-btn,
    .results-list .hotel-availability-btn:hover,
    .results-list .hotel-availability-btn:focus,
    .results-list .hotel-availability-btn:active {
      width: 100%;
      max-width: none;
      min-width: 0;
      height: 46px;
      font-size: 12px;
    }
  }
.stays-mobile-filter-toggle,
  .stays-mobile-filter-close,
  .stays-mobile-filter-backdrop {
    display: none;
  }

  @media (max-width: 980px) {
    .stays-mobile-filter-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0 14px;
      border: 1px solid rgba(15, 23, 42, .14);
      border-radius: 999px;
      background: var(--stays-surface);
      color: var(--stays-ink);
      font-size: 13px;
      font-weight: 800;
      line-height: 1;
      box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    }

    html[data-theme="dark"] .stays-mobile-filter-toggle {
      background: var(--stays-dark-panel-raised);
      color: var(--stays-night-text);
      border-color: rgba(255, 255, 255, .14);
      box-shadow: none;
    }

    .stays-mobile-filter-backdrop {
      position: fixed;
      inset: 0;
      z-index: 1090;
      width: 100%;
      height: 100%;
      border: 0;
      padding: 0;
      background: rgba(2, 6, 23, .56);
      cursor: pointer;
    }

    body.stays-filter-drawer-open .stays-mobile-filter-backdrop {
      display: block;
    }

    .stays-mobile-filter-close {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border: 1px solid rgba(15, 23, 42, .12);
      border-radius: 999px;
      background: var(--stays-canvas);
      color: var(--stays-ink);
      font-size: 18px;
      font-weight: 800;
      line-height: 1;
      cursor: pointer;
    }

    html[data-theme="dark"] .stays-mobile-filter-close {
      background: #18243b;
      color: var(--stays-night-text);
      border-color: rgba(255, 255, 255, .14);
    }

    .stays-results-filters.hotel-filter-panel {
      position: fixed;
      z-index: 1100;
      left: 0;
      right: 0;
      bottom: 0;
      top: auto;
      width: 100%;
      max-width: 100%;
      height: min(78dvh, 680px);
      max-height: min(78dvh, 680px);
      padding: 16px;
      border-radius: 18px 18px 0 0;
      overflow-y: auto;
      overflow-x: hidden;
      transform: translateY(105%);
      transition: transform .22s ease;
      box-shadow: 0 -18px 46px rgba(2, 6, 23, .28);
      -webkit-overflow-scrolling: touch;
    }

    .stays-results-filters.hotel-filter-panel.is-mobile-filter-open {
      transform: translateY(0);
    }

    body.stays-filter-drawer-open {
      overflow: hidden;
    }
  }

  @media (max-width: 760px) {
    .nav-global .nav-inner {
      gap: 8px;
      padding: 9px 12px;
      min-height: 0;
    }

    .nav-global .nav-brand img {
      height: 24px;
      width: auto;
    }

    .nav-global .nav-tabs {
      gap: 4px;
      padding: 4px;
    }

    .nav-global .nav-tab {
      min-height: 30px;
      padding: 0 9px;
      font-size: 11px;
      line-height: 1;
    }

    .nav-global .nav-actions {
      gap: 6px;
    }

    .nav-global .theme-toggle,
    .nav-global .stays-prefs-trigger {
      min-height: 32px;
      height: 32px;
      padding: 0 9px;
      font-size: 11px;
    }

    .nav-global .badge-link {
      height: 30px;
      min-width: 92px;
    }

    .nav-global .badge-link img {
      height: 30px;
      width: auto;
    }

    .results-list .hotel-card-media {
      height: clamp(178px, 49vw, 218px);
      min-height: clamp(178px, 49vw, 218px);
    }

    .results-list .hotel-card-body {
      padding: 14px;
      gap: 10px;
    }

    .results-list .hotel-card-main {
      padding-right: 42px;
    }

    .results-list .hotel-card-title {
      font-size: 16px;
      line-height: 1.22;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .results-list .hotel-card-location {
      font-size: 12.5px;
      line-height: 1.34;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .results-list .hotel-card-booking {
      margin-top: 0;
      padding-top: 10px;
      gap: 7px;
    }

    .results-list .hotel-card-price strong {
      font-size: 22px;
      line-height: 1.08;
    }

    .results-list .hotel-card-stay-meta,
    .results-list .hotel-card-public-price {
      font-size: 12px;
      line-height: 1.3;
    }

    .results-list .hotel-availability-btn,
    .results-list .hotel-availability-btn:hover,
    .results-list .hotel-availability-btn:focus,
    .results-list .hotel-availability-btn:active {
      height: 44px;
      min-height: 44px;
      font-size: 12px;
    }
  }

  @media (max-width: 430px) {
    .nav-global .badge-link {
      display: none;
    }

    .results-actions-group {
      gap: 8px;
    }
  }
