/* EIOS_CLUB_GLASS_CURVES_R4 — candidate; load after stars-comets R3.
 * Catalog and its dialogs only. Existing black sky, structure, fonts and images stay.
 * Alpha belongs to surface colors; never to text, photos or the whole card.
 */
html:root body .club-catalog-v8 {
  --cc-r4-glass: rgba(6, 13, 23, .38);
  --cc-r4-line: rgba(122, 196, 255, .34);
  --cc-r4-radius: 26px;
  --cc-r4-sky: #a6d8ff;
  --cc-r4-white: #f8fbff;
  --cc-r4-muted: #d5e3f1;
}

/* The :is() branches cover the catalog in #root and the existing Radix portals. */
html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) :is(.cc-card, .cc-concierge, .cc-empty) {
  background: var(--cc-r4-glass) !important;
  background-image: none !important;
  border: 1px solid var(--cc-r4-line) !important;
  border-radius: var(--cc-r4-radius) !important;
  box-shadow: inset 0 1px 0 rgba(223, 242, 255, .12), 0 12px 28px rgba(0, 0, 0, .18), 0 0 18px rgba(83, 171, 255, .035) !important;
  -webkit-backdrop-filter: blur(8px) saturate(110%) !important;
  backdrop-filter: blur(8px) saturate(110%) !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) :is(.cc-card:hover, .cc-card:focus-within) {
  border-color: rgba(151, 214, 255, .62) !important;
  box-shadow: inset 0 1px 0 rgba(232, 247, 255, .18), 0 14px 30px rgba(0, 0, 0, .22), 0 0 20px rgba(83, 171, 255, .08) !important;
}

/* Replace the old straight highlight and moving card sheen with the fixed rim. */
html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-card::before,
html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-card::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-card-body {
  background: transparent !important;
  padding: 24px;
}

/* One cover ratio at every breakpoint; hero and detail photos are not selected. */
html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-card-cover {
  aspect-ratio: 16 / 9 !important;
  width: 100%;
  border-radius: 25px 25px 0 0 !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-card-cover > .cc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) :is(.cc-hero, .cc-skeleton) {
  border-radius: var(--cc-r4-radius) !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-hero {
  outline-color: rgba(122, 196, 255, .36);
  box-shadow: 0 0 0 1px rgba(122, 196, 255, .16), 0 0 22px rgba(83, 171, 255, .04) !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) :is(.cc-hero-caption, .cc-search) {
  background: rgba(6, 13, 23, .42) !important;
  background-image: none !important;
  border: 1px solid var(--cc-r4-line) !important;
  border-radius: 22px !important;
  box-shadow: inset 0 1px 0 rgba(223, 242, 255, .10) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) :is(.cc-card h3, .cc-card h3 button, .cc-detail-title) {
  color: var(--cc-r4-white) !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) :is(.cc-card-summary, .cc-detail-description, .cc-results-heading, .cc-detail-note, .cc-concierge p:last-child) {
  color: var(--cc-r4-muted) !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) :is(.cc-source, .cc-text-link, .cc-search svg, .cc-concierge-symbol) {
  color: var(--cc-r4-sky) !important;
  text-shadow: none !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-card-bottom {
  border-top-color: rgba(122, 196, 255, .20);
  flex-wrap: wrap;
  gap: 8px 12px;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-card-bottom > span {
  color: var(--cc-r4-muted);
  font-size: 11px;
}

/* Keep horizontal scrolling inside each filter group instead of the page. */
html:root body #root .club-catalog-v8 :is(.cc-wrap, .cc-grid, .cc-discovery-bar, .cc-filters, .cc-search) {
  min-width: 0;
  max-width: 100%;
}

html:root body #root .club-catalog-v8 .cc-filters {
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 6px 10px;
  scroll-padding-inline: 6px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 196, 255, .44) transparent;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) :is(.cc-filter, .cc-button, .cc-clear, .cc-back, .cc-member) {
  min-height: 44px;
  border-radius: 22px !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-filter {
  flex: 0 0 auto;
  padding: 10px 15px;
  font-size: 12px !important;
  color: var(--cc-r4-muted) !important;
  border-color: rgba(122, 196, 255, .22) !important;
  background: rgba(6, 13, 23, .32) !important;
  box-shadow: none !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-filter[aria-pressed="true"] {
  color: var(--cc-r4-white) !important;
  background: rgba(36, 104, 166, .34) !important;
  border-color: rgba(151, 214, 255, .68) !important;
  box-shadow: inset 0 1px 0 rgba(225, 244, 255, .14), 0 0 14px rgba(83, 171, 255, .07) !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-button > svg {
  flex-shrink: 0;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) :is(.cc-button-primary, .cc-button-primary:hover) {
  background: rgba(31, 100, 162, .46) !important;
  color: var(--cc-r4-white) !important;
  border-color: rgba(151, 214, 255, .72) !important;
  box-shadow: inset 0 1px 0 rgba(225, 244, 255, .16), 0 0 16px rgba(83, 171, 255, .08) !important;
  text-shadow: none !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) :is(.cc-button-outline, .cc-button-outline:hover) {
  background: rgba(6, 13, 23, .32) !important;
  color: var(--cc-r4-white) !important;
  border-color: rgba(151, 214, 255, .44) !important;
  box-shadow: inset 0 1px 0 rgba(225, 244, 255, .08) !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-back {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-text-link {
  min-height: 44px;
  align-items: center;
}

html:root body #root .club-catalog-v8 .cc-search {
  min-height: 48px;
}

html:root body #root .club-catalog-v8 .cc-search input {
  min-width: 0;
  min-height: 44px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--cc-r4-white) !important;
}

html:root body #root .club-catalog-v8 .cc-search input::placeholder {
  color: #c2d5e7;
}

/* Keep portals scoped, curved and readable over their existing dark overlay. */
html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]):is(.cc-detail-dialog, .cc-inquiry-dialog) {
  background: rgba(3, 8, 15, .50) !important;
  background-image: none !important;
  border: 1px solid rgba(151, 214, 255, .40) !important;
  border-radius: var(--cc-r4-radius) !important;
  color: var(--cc-r4-white) !important;
  box-shadow: inset 0 1px 0 rgba(225, 244, 255, .14), 0 24px 60px rgba(0, 0, 0, .42), 0 0 24px rgba(83, 171, 255, .07) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]):is(.cc-detail-dialog, .cc-inquiry-dialog) > button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 22px;
  background: rgba(3, 8, 15, .64) !important;
  color: var(--cc-r4-white) !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]).cc-inquiry-dialog :is(input, textarea) {
  min-width: 0;
  min-height: 44px;
  border-radius: 22px;
  background: rgba(3, 8, 15, .38) !important;
  border-color: rgba(151, 214, 255, .34) !important;
  color: var(--cc-r4-white) !important;
}

html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) :is(button, a, input, textarea, select):focus-visible {
  outline: 2px solid #bce3ff !important;
  outline-offset: 3px;
}

html:root body #root .club-catalog-v8 .cc-card-cover:focus-visible {
  outline-offset: -4px;
}

@media (min-width: 768px) and (max-width: 1100px) {
  html:root body #root .club-catalog-v8 .cc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  html:root body #root .club-catalog-v8 .cc-wrap {
    width: 100%;
    margin-inline: 0;
  }

  html:root body #root .club-catalog-v8 .cc-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px;
  }

  html:root body #root .club-catalog-v8 .cc-card-body {
    padding: 21px;
  }

  html:root body #root .club-catalog-v8 .cc-discovery-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  html:root body #root .club-catalog-v8 .cc-filters {
    flex: none;
    width: 100%;
  }

  html:root body #root .club-catalog-v8 .cc-filter {
    max-width: 100%;
    white-space: normal;
  }

  html:root body #root .club-catalog-v8 .cc-search {
    width: 100%;
  }

  html:root body #root .club-catalog-v8 .cc-search input,
  html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]).cc-inquiry-dialog :is(input, textarea) {
    font-size: 16px;
  }

  html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]):is(.cc-detail-dialog, .cc-inquiry-dialog) {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
  }

  html:root body :is(#root .club-catalog-v8, .club-catalog-v8[role="dialog"]) .cc-detail-actions .cc-button {
    width: 100%;
  }
}
