/* Shared discovery list shell: Stays, Public Venues, and Networks. */
.discovery-list-shell {
  display: grid;
  gap: 0;
  min-width: 0;
}

.discovery-list-band {
  height: 58px;
  min-height: 58px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  box-sizing: border-box;
  flex-wrap: nowrap;
  overflow: visible;
}

.discovery-list-band > form {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
}

.discovery-list-band .top-strip {
  flex: 0 1 auto;
  margin: 0;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.discovery-list-band .chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.discovery-list-band :is(input, select, button, a):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 32%, transparent);
  outline-offset: 2px;
}

/* At tablet widths the search form and the List/Map controls cannot share a
   single row without forcing the whole discovery shell wider than the view.
   Keep the same shell and let its two control groups take separate rows. */
@media (min-width: 761px) and (max-width: 900px) {
  .discovery-list-band {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
  }

  .discovery-list-band > form {
    flex: 1 1 100%;
  }
}

.discovery-list-band .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The list toolbar is a compact single-row control, independent from each
   product's original, full-width search form. */
.discovery-list-band .hotel-search-topbar,
.discovery-list-band .pv-results-search-bar {
  flex: 1 1 0;
  width: auto !important;
  min-width: 0 !important;
  max-width: 670px;
  min-height: 40px !important;
  height: 40px;
  margin: 0 0 0 auto !important;
  padding: 0 6px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: var(--surface) !important;
  box-shadow: none !important;
  align-items: center !important;
  gap: 0 !important;
}

.discovery-list-band .hotel-search-topbar {
  display: grid !important;
  grid-template-columns: minmax(116px, 1.45fr) minmax(72px, .75fr) minmax(72px, .75fr) minmax(94px, .9fr) 40px !important;
}

.discovery-list-band .pv-results-search-bar {
  display: grid !important;
  grid-template-columns: minmax(132px, 1.35fr) minmax(108px, 1fr) minmax(100px, .9fr) 76px !important;
}

.discovery-list-band .hotel-search-field,
.discovery-list-band .pv-search-field {
  min-width: 0 !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border-right: 1px solid var(--line) !important;
}

.discovery-list-band .hotel-search-field span,
.discovery-list-band .pv-search-field > span {
  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

.discovery-list-band .hotel-search-field input,
.discovery-list-band .hotel-search-field select,
.discovery-list-band .hotel-search-field .search-field-trigger,
.discovery-list-band .pv-search-field input,
.discovery-list-band .pv-search-field select {
  min-width: 0 !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
}

.discovery-list-band .hotel-search-submit {
  width: 36px !important;
  height: 36px !important;
  border-radius: 9px !important;
  font-size: 16px !important;
}

.discovery-list-band .hotel-search-submit svg { width: 16px !important; height: 16px !important; }

.discovery-list-band .pv-search-submit {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
}

.discovery-list-band .view-toggle {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  order: 5;
  height: 36px !important;
  padding: 2px !important;
  gap: 2px !important;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #f3f6fb !important;
}

.discovery-list-band .view-toggle a,
.discovery-list-band .view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px !important;
  height: 30px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--text) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer;
}

.discovery-list-band .view-toggle .is-active {
  background: var(--surface) !important;
  color: var(--text) !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.10) !important;
}

.discovery-network-band-search { display: flex; flex: 1 1 0; min-width: 0; max-width: 430px; margin-left: auto; align-items: center; justify-content: flex-end; gap: 8px; }
.discovery-network-band-search input { flex: 1 1 auto; min-width: 0; }
.discovery-network-band-search input { width: 100%; height: 36px; min-height: 36px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.discovery-network-band-search button { height: 36px; min-height: 36px; padding: 0 14px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

.discovery-list-layout {
  display: grid !important;
  grid-template-columns: 288px minmax(0, 1fr) !important;
  gap: 0 16px !important;
  align-items: start !important;
  padding-top: 10px;
}

.discovery-list-layout > .filters-panel,
.discovery-list-layout > .stays-results-filters {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0 !important;
  position: sticky;
  top: 78px;
}

/* List pages share the Stays filter shell. Categories may have different
   fields, but they use one sidebar surface, inset and heading rhythm. */
.discovery-list-layout > .filters-panel {
  box-sizing: border-box;
  height: calc(100vh - 106px);
  min-height: 0;
  max-height: calc(100vh - 106px);
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 18px 18px 28px !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}

.discovery-list-layout > .filters-panel > .discovery-section-switcher {
  margin-bottom: 0;
}

.discovery-list-layout > .filters-panel > .filters-head,
.discovery-list-layout > .filters-panel > summary.filters-head {
  box-sizing: border-box;
  min-height: 49px;
  padding: 0 0 14px !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
}

.discovery-list-layout > .filters-panel > .filters-head h2,
.discovery-list-layout > .filters-panel > summary.filters-head h2 {
  font-size: 1.375rem !important;
  letter-spacing: -.03em !important;
}

.discovery-list-layout > .filters-panel > .filters-body {
  padding: 20px 0 0 !important;
}

/* Native selects stay native and keyboard-accessible, but the closed control
   follows the same calm field language in every discovery list sidebar. */
.discovery-list-layout > :is(.filters-panel, .stays-results-filters) select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background-color: var(--surface) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23566b8a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E") !important;
  background-position: right 14px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  box-shadow: none !important;
  color: var(--text) !important;
  cursor: pointer;
  font: 600 .875rem/1.25 var(--discovery-font, "DM Sans", system-ui, sans-serif) !important;
  transition: border-color 160ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out;
}

.discovery-list-layout > :is(.filters-panel, .stays-results-filters) select:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line)) !important;
}

.discovery-list-layout > :is(.filters-panel, .stays-results-filters) select:focus {
  border-color: var(--accent) !important;
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent) !important;
}

.discovery-list-layout > :is(.filters-panel, .stays-results-filters) select:disabled {
  cursor: not-allowed;
  opacity: .58;
}

html[data-theme="dark"] .discovery-list-layout > :is(.filters-panel, .stays-results-filters) select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23c8d1df' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E") !important;
}

.discovery-list-layout > details.filters-panel > summary.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.discovery-list-layout > details.filters-panel > summary.filters-head::-webkit-details-marker { display: none; }

.network-filter-desktop-head { display: none; }

@media (min-width: 761px) {
  /* Network filters retain their native summary for the mobile drawer. The
     desktop heading is the same visible component as Places and Stays. */
  .discovery-list-layout > details.filters-panel > summary.filters-head { display: none; }

  .discovery-list-layout > details.filters-panel > .network-filter-desktop-head {
    display: flex;
    align-items: center;
    min-height: 49px;
    box-sizing: border-box;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line);
  }

  .discovery-list-layout > details.filters-panel > .network-filter-desktop-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.375rem;
    letter-spacing: -.03em;
  }
}

@media (max-width: 760px) {
  .discovery-list-layout > .filters-panel {
    height: auto;
    max-height: none;
    padding: 16px !important;
  }

  .discovery-list-layout > .filters-panel > .filters-head,
  .discovery-list-layout > .filters-panel > summary.filters-head { padding: 0 0 14px !important; }
}

.discovery-list-layout > section,
.discovery-list-layout > .results-main-panel {
  grid-column: 2;
  min-width: 0;
}

.discovery-list-layout .results-head-main {
  min-height: 42px;
  margin: 0 !important;
  padding: 0 4px 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.discovery-list-layout .results-head-main h1,
.discovery-list-layout .results-head-main h2 {
  font-size: .95rem !important;
  letter-spacing: -.01em !important;
}

.discovery-list-layout .results-head-main p {
  display: none;
}

.discovery-list-layout .results-list { margin: 0; }

@media (max-width: 760px) {
  .discovery-list-band {
    height: auto;
    min-height: auto;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 8px;
    border-radius: 14px;
  }
  .discovery-list-band > form { flex-basis: 100%; }
  .discovery-list-band .hotel-search-topbar,
  .discovery-list-band .pv-results-search-bar {
    height: auto;
    min-height: 0 !important;
    max-width: none;
    grid-template-columns: 1fr !important;
  }
  .discovery-list-band .hotel-search-field,
  .discovery-list-band .pv-search-field { min-height: 42px; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .discovery-list-layout {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding-top: 10px;
  }
  .discovery-list-layout > .filters-panel,
  .discovery-list-layout > .stays-results-filters,
  .discovery-list-layout > section,
  .discovery-list-layout > .results-main-panel { grid-column: 1; grid-row: auto; position: static; }
}
