/* Search and listing presentation. Keep booking controls and their states intact. */
body[data-page="results"] .premium-banner {
  padding: 28px 32px;
  border-radius: 8px;
}

body[data-page="results"] .premium-banner h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

body[data-page="results"] .banner-metrics .metric-card {
  border-radius: 6px;
}

body[data-page="results"] .result-list > .result-card.swipe-result-card {
  grid-template-columns: minmax(220px, 32%) minmax(0, 1fr) minmax(150px, 20%);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(32, 37, 46, .12);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(25, 31, 38, .06);
}

body[data-page="results"] .result-card.swipe-result-card::before,
body[data-page="results"] .result-card.swipe-result-card::after,
body[data-page="results"] .result-card.swipe-result-card .card-media::before,
body[data-page="results"] .result-card.swipe-result-card .card-media::after {
  display: none !important;
}

body[data-page="results"] .result-card.swipe-result-card > .card-media {
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #e5e8e9;
}

body[data-page="results"] .result-card.swipe-result-card > .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

body[data-page="results"] #resultsList > .result-card.swipe-result-card {
  gap: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(32, 37, 46, .12) !important;
  border-radius: 8px !important;
}

body[data-page="results"] #resultsList > .result-card.swipe-result-card > .card-media {
  border-radius: 0 !important;
  margin: 0 !important;
}

body[data-page="results"] .result-card.swipe-result-card > .result-main {
  min-width: 0;
  padding: 22px 24px;
}

body[data-page="results"] .result-card.swipe-result-card .result-main h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}

body[data-page="results"] .result-card.swipe-result-card .result-main > p.muted {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 12px 0;
}

body[data-page="results"] .result-availability {
  color: #187663;
  font-size: .82rem;
  font-weight: 700;
}

body[data-page="results"] .result-card.swipe-result-card > .result-side {
  padding: 22px 18px;
  border-left: 1px solid rgba(32, 37, 46, .1);
}

body[data-page="results"] .result-card.swipe-result-card .result-price strong {
  font-size: 1.15rem;
}

body[data-page="listing"] .detail-hero {
  border-radius: 8px;
}

body[data-page="listing"] .detail-hero h2 {
  line-height: 1.12;
}

body[data-page="listing"] .detail-hero-preview img {
  object-fit: cover;
}

body[data-page="listing"] #couponPanel[hidden] {
  display: none !important;
}

body[data-page="listing"] .detail-grid > .info-panel {
  gap: 16px;
}

body[data-page="listing"] .gallery-panel {
  border-radius: 8px !important;
}

body[data-page="listing"] .gallery-main,
body[data-page="listing"] .gallery-main img,
body[data-page="listing"] .gallery-grid button,
body[data-page="listing"] .gallery-grid img {
  border-radius: 5px !important;
}

@media (max-width: 760px) {
  body[data-page="listing"] #listingAvailabilityPanel {
    display: none !important;
  }

  body[data-page="listing"] .detail-shell > .section-head {
    border-radius: 8px;
  }

  body[data-page="listing"] .host-meta-row {
    display: grid;
  }

  body[data-page="listing"] .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 7px !important;
    overflow: visible !important;
  }

  body[data-page="listing"] .gallery-grid button {
    width: 100%;
    aspect-ratio: 4 / 3 !important;
  }

  body[data-page="results"] .premium-banner {
    padding: 20px;
  }

  body[data-page="results"] .banner-metrics {
    display: none;
  }

  body[data-page="results"] .result-list > .result-card.swipe-result-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 8px;
  }

  body[data-page="results"] #resultsList > .result-card.swipe-result-card {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    gap: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
  }

  body[data-page="results"] .result-card.swipe-result-card > .card-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  body[data-page="results"] #resultsList > .result-card.swipe-result-card > .card-media {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
  }

  body[data-page="results"] .result-card.swipe-result-card > .result-main {
    padding: 16px 16px 8px;
  }

  body[data-page="results"] #resultsList > .result-card.swipe-result-card > .result-main {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 16px 16px 8px !important;
  }

  body[data-page="results"] .result-card.swipe-result-card .result-main > p.muted {
    margin: 8px 0;
  }

  body[data-page="results"] .result-card.swipe-result-card > .result-side {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 16px;
    border: 0;
  }

  body[data-page="results"] #resultsList > .result-card.swipe-result-card > .result-side {
    grid-column: 1 !important;
    grid-row: 3 !important;
    display: flex !important;
    padding: 8px 16px 16px !important;
  }

  body[data-page="results"] .result-card.swipe-result-card .result-side .rating-box,
  body[data-page="results"] .result-card.swipe-result-card .result-side .ghost-btn,
  body[data-page="results"] .result-card.swipe-result-card .result-side > button:not(.favorite-btn) {
    display: none;
  }

  body[data-page="results"] .result-card.swipe-result-card .result-price {
    margin-right: auto;
  }

  body[data-page="results"] .result-card.swipe-result-card .result-side .btn {
    flex: 0 0 auto;
    min-width: 110px;
  }

  body[data-page="results"] .filters-panel {
    max-height: min(88dvh, 760px);
    max-height: min(88svh, 760px);
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    border-radius: 8px 8px 0 0;
    overscroll-behavior: contain;
  }

  body[data-page="results"] .filter-drawer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 0;
    background: #fff;
  }

  body[data-page="results"] .filter-actions-row {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid rgba(32, 37, 46, .12);
  }
}
