/* Qualoo Stays index page styles. Consolidated in cascade order from the former inline layers. */

/* Layer 1 */
body.stays-landing-page {
      --font: 'DM Sans', system-ui, sans-serif;
      font-family: 'DM Sans', system-ui, sans-serif;
    }
    body.stays-landing-page .page-wrap {
      padding-top: 0;
    }
    body.stays-landing-page .landing-hero-bleed .stays-liteapi-strip,
    body.stays-landing-page .landing-hero-bleed .hero-tags {
      display: none !important;
    }
    .landing-hero-bleed {
      opacity: 1;
      filter: none;
      background: url("../../stays/index-hero-optimized.jpg") center center / cover no-repeat;
      overflow: visible !important;
      position: relative;
      z-index: 20;
    }
    .landing-hero-bleed::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      border-radius: inherit;
      background: rgba(7, 8, 12, .28);
      pointer-events: none;
    }
    .landing-hero-bleed .hero-inner {
      overflow: visible !important;
      position: relative;
      z-index: 21;
    }
    .stays-landing-page .page-wrap,
    .stays-landing-page .page-wrap > .container {
      overflow: visible !important;
      position: relative;
    }
    .stays-landing-page .page-wrap > .container {
      z-index: 1;
    }
    .stays-hero-search { margin-inline: auto; }
    .hotel-search-topbar {
      width: min(780px, calc(100% - 48px));
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) 128px;
      align-items: center;
      gap: 0;
      background: var(--stays-surface);
      border: 1px solid var(--stays-border);
      border-radius: 16px;
      box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
      padding: 8px;
      min-height: 64px;
      position: relative;
      z-index: 130;
      overflow: visible;
      margin-left: auto;
      margin-right: auto;
    }
    html[data-theme="dark"] .hotel-search-topbar { background: var(--stays-surface); border-color: var(--stays-border); box-shadow: 0 12px 28px rgba(15, 23, 42, .14); }
    .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);
      position: relative;
    }
    .hotel-search-field:first-of-type {
      padding-left: 10px;
      border-top-left-radius: 12px;
      border-bottom-left-radius: 12px;
    }
    html[data-theme="dark"] .hotel-search-field { color: var(--stays-ink); border-right-color: var(--stays-border-soft); }
    .hotel-search-field span {
      display: block;
      font-size: 11px;
      line-height: 1.1;
      font-weight: 800;
      color: var(--stays-ink-muted);
      letter-spacing: .01em;
      margin: 0;
      text-align: left;
    }
    html[data-theme="dark"] .hotel-search-field span { color: var(--stays-ink-muted); }
    .hotel-search-field input {
      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;
      cursor: pointer;
    }
    html[data-theme="dark"] .hotel-search-field input { color: var(--stays-ink); }
    .hotel-search-field input::placeholder {
      color: var(--stays-ink);
      opacity: 1;
    }
    html[data-theme="dark"] .hotel-search-field input::placeholder { color: var(--stays-ink); }
    .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;
    }
    html[data-theme="dark"] .search-field-trigger { color: var(--stays-ink); }
    .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;
    }
    .hotel-search-field-guests .search-field-trigger strong {
      position: relative;
      top: -2px;
    }
    .hotel-search-submit {
      height: 48px;
      border: 0;
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--stays-signal);
      color: var(--stays-surface);
      font-size: 18px;
      line-height: 1;
      font-weight: 900;
      cursor: pointer;
      padding: 0 18px;
      border-top-right-radius: 12px;
      border-bottom-right-radius: 12px;
    }
    .search-popover {
      position: absolute;
      z-index: 9999;
      top: calc(100% + 8px);
      left: 0;
      width: 320px;
      border-radius: 16px;
      border: 1px solid rgba(216, 224, 234, .95);
      background: var(--stays-surface);
      color: var(--stays-ink);
      box-shadow: 0 20px 44px rgba(15, 23, 42, .18);
      padding: 16px;
    }
    .date-popover {
      width: min(640px, calc(100vw - 40px));
      left: 58%;
      right: auto;
      transform: translateX(-50%);
      padding: 16px;
    }
    .date-popover-head {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr) 34px;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
    }
    .date-popover-status {
      text-align: center;
      font-size: 13px;
      font-weight: 800;
      color: var(--stays-ink-muted);
    }
    html[data-theme="dark"] .date-popover-status {
      color: #d7e3ff;
    }
    .date-nav-btn {
      width: 34px;
      height: 34px;
      border-radius: 999px;
      border: 1px solid var(--stays-border);
      background: var(--stays-surface);
      color: var(--stays-ink);
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
    }
    html[data-theme="dark"] .date-nav-btn {
      background: var(--stays-dark-panel-raised);
      border-color: rgba(255,255,255,.16);
      color: var(--stays-night-text);
    }
    .date-popover-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px;
    }
    .month-block {
      border: 0;
      border-radius: 0;
      padding: 4px;
    }
    .month-title {
      text-align: center;
      font-size: 16px;
      font-weight: 800;
      margin-bottom: 8px;
    }
    .weekday-row,
    .month-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 2px;
    }
    .weekday-row span {
      text-align: center;
      font-size: 11px;
      font-weight: 700;
      color: var(--stays-ink-muted);
      padding: 4px 0;
    }
    html[data-theme="dark"] .weekday-row span {
      color: var(--stays-night-muted);
    }
    .date-cell {
      display: block;
      min-height: 34px;
    }
    .date-cell.is-empty {
      pointer-events: none;
    }
    .date-cell-btn {
      width: 100%;
      min-height: 34px;
      border: 0;
      border-radius: 6px;
      background: transparent;
      font-size: 13px;
      font-weight: 700;
      color: var(--stays-ink);
      cursor: pointer;
    }
    .date-cell-btn:hover {
      background: rgba(30,64,175,.12);
    }
    .date-cell-btn.is-range {
      background: rgba(37,99,235,.14);
    }
    .date-cell-btn.is-selected {
      background: var(--stays-signal);
      color: var(--stays-surface);
    }
    .date-cell-btn.is-disabled {
      color: var(--stays-night-muted);
      cursor: default;
      background: transparent;
    }
    html[data-theme="dark"] .date-cell-btn { color: var(--stays-ink); }
    html[data-theme="dark"] .date-cell-btn.is-range { background: rgba(37,99,235,.14); }
    html[data-theme="dark"] .date-cell-btn:hover { background: rgba(30,64,175,.12); }
    html[data-theme="dark"] .search-popover { background: var(--stays-surface); border-color: rgba(216, 224, 234, .95); color: var(--stays-ink); }
    .guests-popover h3 {
      margin: 0 0 14px;
      font-size: 16px;
      font-weight: 900;
      text-align: left;
    }
    .guest-room-title {
      margin: 0 0 14px;
      font-size: 13px;
      font-weight: 800;
      color: var(--stays-ink-muted);
      text-align: left;
    }
    html[data-theme="dark"] .guest-room-title { color: var(--stays-ink-muted); }
    .guest-counter-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      padding: 12px 0;
    }
    .guest-counter-row strong {
      display: block;
      font-size: 14px;
      font-weight: 900;
      text-align: left;
    }
    .guest-counter-row small {
      display: block;
      margin-top: 2px;
      color: var(--stays-ink-muted);
      font-size: 12px;
      font-weight: 700;
      text-align: left;
    }
    html[data-theme="dark"] .guest-counter-row small { color: var(--stays-ink-muted); }
    .guest-stepper {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }
    .guest-stepper button {
      width: 32px;
      height: 32px;
      border: 1px solid var(--stays-border);
      border-radius: 999px;
      background: var(--stays-surface);
      color: var(--stays-ink);
      font-size: 18px;
      font-weight: 800;
      line-height: 1;
      cursor: pointer;
    }
    html[data-theme="dark"] .guest-stepper button { background: var(--stays-surface); color: var(--stays-ink); border-color: var(--stays-border); }
    .guest-stepper button:disabled {
      opacity: .45;
      cursor: default;
    }
    .guest-stepper span {
      min-width: 22px;
      text-align: center;
      font-size: 15px;
      font-weight: 900;
    }
    .guest-popover-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 16px;
    }
    .guest-secondary-btn,
    .guest-primary-btn {
      height: 38px;
      border: 1px solid var(--stays-border);
      border-radius: 8px;
      font: inherit;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }
    .guest-secondary-btn {
      background: var(--stays-surface);
      color: var(--stays-ink);
    }
    html[data-theme="dark"] .guest-secondary-btn { background: var(--stays-surface); color: var(--stays-ink); border-color: var(--stays-border); }
    .guests-popover { left: auto; right: 0; width: 300px; }
    .guest-primary-btn {
      background: var(--stays-signal);
      color: var(--stays-surface);
      border-color: var(--stays-signal);
    }
    .hidden-search-input {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    .stays-liteapi-strip {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 14px;
      color: rgba(255,255,255,.9);
      font-size: 13px;
      font-weight: 800;
    }
    .stays-liteapi-strip span {
      border: 1px solid rgba(255,255,255,.16);
      background: rgba(255,255,255,.12);
      border-radius: 999px;
      padding: 8px 12px;
    }
    @media (max-width: 1180px) {
      .hotel-search-topbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .hotel-search-submit { grid-column: 1 / -1; }
      .hotel-search-field { height: 52px; }
      .search-popover { width: min(100%, 360px); }
      .date-popover {
        width: min(620px, calc(100vw - 40px));
      }
      .date-popover-grid {
        grid-template-columns: 1fr;
      }
    }
    @media (max-width: 680px) {
      .hotel-search-topbar { grid-template-columns: 1fr; }
      .hotel-search-submit { grid-column: auto; }
      .hotel-search-field {
        height: 52px;
        margin-right: 0;
        padding-right: 0;
        border-right: 0;
        border-bottom: 1px solid var(--stays-border-soft);
      }
      html[data-theme="dark"] .hotel-search-field { border-bottom-color: var(--stays-border-soft); }
      .search-popover {
        left: 0;
        right: 0;
        width: auto;
      }
      .date-popover { width: min(100vw - 26px, 360px); left: 50%; transform: translateX(-50%); }
      .guest-popover-actions { grid-template-columns: 1fr; }
    }

    /* ── Featured picks cards ── */
    .featured-hotel-card {
      display: flex;
      flex-direction: column;
      border-radius: 14px;
      overflow: hidden;
      background: var(--card, var(--stays-surface));
      border: 1px solid var(--border, rgba(0,0,0,.08));
      box-shadow: 0 2px 12px rgba(15,23,42,.06);
      transition: transform .15s ease, box-shadow .15s ease;
      text-decoration: none;
      color: inherit;
    }
    .featured-hotel-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(15,23,42,.12);
    }
    .featured-hotel-card .listing-card-media {
      position: relative;
      height: 190px;
      flex-shrink: 0;
    }
    .featured-hotel-card .listing-card-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .featured-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 2;
      background: rgba(255,255,255,.96);
      color: var(--stays-ink);
      font-size: 11px;
      font-weight: 800;
      padding: 4px 10px;
      border-radius: 999px;
      letter-spacing: .01em;
      backdrop-filter: blur(6px);
    }
    .featured-hotel-card .listing-card-body {
      padding: 14px 16px 16px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .featured-card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }
    .featured-card-stars {
      display: flex;
      gap: 1px;
      align-items: center;
    }
    .featured-card-stars svg {
      width: 13px;
      height: 13px;
      fill: var(--stays-rating);
      flex-shrink: 0;
    }
    .featured-score {
      font-size: 12px;
      font-weight: 900;
      color: var(--stays-surface);
      background: var(--stays-evidence-deep);
      padding: 3px 8px;
      border-radius: 6px;
      line-height: 1;
    }
    .featured-hotel-card .listing-title {
      font-size: 15px;
      font-weight: 800;
      line-height: 1.3;
      color: var(--text, var(--stays-ink));
      margin: 0 0 4px;
    }
    .featured-hotel-card .listing-location {
      font-size: 12px;
      color: var(--muted, var(--stays-ink-muted));
      margin: 0 0 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .featured-rating-label {
      font-size: 12px;
      color: var(--muted, var(--stays-ink-muted));
      margin: 0 0 12px;
    }
    .featured-price {
      font-size: 15px;
      font-weight: 800;
      color: var(--text, var(--stays-ink));
      margin: 0 0 10px;
    }
    .featured-price span {
      font-size: 12px;
      font-weight: 600;
      color: var(--muted, var(--stays-ink-muted));
    }
    .featured-cta {
      display: block;
      margin-top: auto;
      text-align: center;
      background: var(--stays-signal);
      color: var(--stays-surface);
      font-size: 13px;
      font-weight: 800;
      padding: 9px 14px;
      border-radius: 8px;
      text-decoration: none;
      letter-spacing: .01em;
    }
    .featured-cta:hover { background: var(--stays-signal-hover); }

    /* ── Skeleton loading ── */
    .featured-skeleton {
      border-radius: 14px;
      height: 340px;
      background: linear-gradient(90deg, var(--stays-canvas) 25%, var(--stays-border) 50%, var(--stays-canvas) 75%);
      background-size: 200% 100%;
      animation: featured-shimmer 1.4s infinite;
    }
    html[data-theme="dark"] .featured-skeleton {
      background: linear-gradient(90deg, var(--stays-ink) 25%, #273347 50%, var(--stays-ink) 75%);
      background-size: 200% 100%;
    }
    @keyframes featured-shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    .qualoo-featured-status {
      grid-column: 1 / -1;
      text-align: center;
      color: var(--muted, var(--stays-ink-muted));
      padding: 40px 0;
      font-size: 14px;
    }

    /* ── Destination card active state ── */
    .destination-card.is-active {
      outline: none;
    }

/* Layer 4 */
body.stays-landing-page .hotel-search-topbar,
  body.stays-landing-page .destination-card,
  body.stays-landing-page .featured-hotel-card {
    border-radius: 16px !important;
  }
