/* PRANATARA chat-181 — progressive smooth dropdown presentation.
   The native selects remain the single application state and no-JS fallback.
   They are visually replaced only after the companion script has completed
   one accessible trigger/listbox enhancement for all four collection controls. */

body[data-collection-smooth-dropdown="progressive-v001"]
  .museum-filter-deck .reference-select-shell[data-smooth-dropdown-ready="true"] {
  z-index: 24;
  overflow: visible;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .museum-filter-deck .reference-select-shell[data-smooth-dropdown-ready="true"][data-dropdown-open="true"] {
  z-index: 90;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .museum-filter-deck .reference-select-shell[data-smooth-dropdown-ready="true"] > select {
  position: absolute !important;
  top: 50% !important;
  left: var(--reference-label-left) !important;
  z-index: -1 !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .pranatara-smooth-select-trigger-v001 {
  position: relative;
  z-index: 3;
  display: flex !important;
  align-items: center;
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 34px 0 var(--reference-label-left);
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #c8baa0;
  box-shadow: none !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .2px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 160ms ease,
    text-shadow 180ms ease,
    background-color 180ms ease;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .pranatara-smooth-select-trigger-v001 > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .reference-select-shell[data-smooth-dropdown-ready="true"] .reference-control-frame,
body[data-collection-smooth-dropdown="progressive-v001"]
  .reference-select-shell[data-smooth-dropdown-ready="true"] .reference-control-icon,
body[data-collection-smooth-dropdown="progressive-v001"]
  .reference-select-shell[data-smooth-dropdown-ready="true"] .reference-control-chevron {
  transition:
    filter 190ms ease,
    opacity 160ms ease,
    transform 220ms cubic-bezier(.22, .8, .28, 1);
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .reference-select-shell[data-smooth-dropdown-ready="true"] .reference-control-chevron {
  transform: rotate(0deg);
  transform-origin: 50% 43%;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .reference-select-shell[data-smooth-dropdown-ready="true"][data-dropdown-open="true"] .reference-control-chevron {
  transform: rotate(180deg);
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .reference-select-shell[data-smooth-dropdown-ready="true"]:focus-within {
  outline: none;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .pranatara-smooth-select-trigger-v001:focus-visible {
  outline: 2px solid #ffe5a2;
  outline-offset: -4px;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .reference-select-shell[data-smooth-dropdown-ready="true"][data-dropdown-open="true"] .reference-control-frame {
  filter:
    brightness(1.13)
    drop-shadow(0 0 5px rgba(255, 229, 162, .34))
    drop-shadow(0 3px 5px rgba(0, 0, 0, .44));
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .reference-select-shell[data-smooth-dropdown-ready="true"][data-dropdown-open="true"] .reference-control-icon {
  filter:
    brightness(1.12)
    drop-shadow(0 0 3px rgba(231, 201, 137, .24))
    drop-shadow(0 1px 1px rgba(0, 0, 0, .72));
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .reference-select-shell[data-smooth-dropdown-ready="true"][data-dropdown-open="true"]
  .pranatara-smooth-select-trigger-v001 {
  color: #f0d9a8;
  text-shadow: 0 1px 6px rgba(207, 171, 101, .18);
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .pranatara-smooth-select-panel-v001 {
  position: absolute;
  top: calc(100% - 3px);
  left: 0;
  z-index: 120;
  width: max-content;
  min-width: 100%;
  max-width: min(280px, calc(100vw - 24px));
  padding: 6px;
  overflow: hidden;
  visibility: hidden;
  border: 1px solid rgba(178, 139, 80, .72);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(230, 197, 128, .035), transparent 38%),
    repeating-linear-gradient(4deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #19191c 0%, #111318 52%, #0c0f14 100%);
  box-shadow:
    inset 0 1px rgba(255, 235, 191, .09),
    inset 0 0 0 2px rgba(5, 6, 8, .58),
    0 16px 34px rgba(0, 0, 0, .58),
    0 0 14px rgba(151, 112, 58, .08);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -7px, 0) scale(.985);
  transform-origin: 50% 0;
  transition:
    opacity 150ms ease,
    transform 220ms cubic-bezier(.22, .8, .28, 1),
    visibility 0s linear 220ms;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .reference-select-shell[data-dropdown-placement="top"] .pranatara-smooth-select-panel-v001 {
  top: auto;
  bottom: calc(100% - 3px);
  transform: translate3d(0, 7px, 0) scale(.985);
  transform-origin: 50% 100%;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .reference-select-shell[data-reference-control="sort"] .pranatara-smooth-select-panel-v001 {
  right: 0;
  left: auto;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .reference-select-shell[data-dropdown-open="true"] .pranatara-smooth-select-panel-v001,
body[data-collection-smooth-dropdown="progressive-v001"]
  .reference-select-shell[data-dropdown-open="true"][data-dropdown-placement="top"] .pranatara-smooth-select-panel-v001 {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0s;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .pranatara-smooth-select-list-v001 {
  display: grid;
  gap: 2px;
  max-height: min(320px, 46vh);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #8e6d3e #121419;
  scrollbar-width: thin;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .pranatara-smooth-select-option-v001 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 156px;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px 8px 12px;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #c9bda8;
  box-shadow: none !important;
  font: 500 13px/1.25 Georgia, "Times New Roman", serif;
  letter-spacing: .015em;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 140ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 180ms ease;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .pranatara-smooth-select-option-v001 > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .pranatara-smooth-select-option-marker-v001 {
  color: transparent;
  font-size: 9px;
  line-height: 1;
  text-align: center;
  text-shadow: none;
  transition: color 150ms ease, text-shadow 170ms ease;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .pranatara-smooth-select-option-v001[aria-selected="true"] {
  border-color: rgba(207, 168, 96, .46) !important;
  background:
    linear-gradient(90deg, rgba(190, 145, 76, .2), rgba(123, 91, 49, .07)) !important;
  color: #f3ddb0;
  box-shadow:
    inset 3px 0 rgba(220, 178, 101, .68),
    inset 0 1px rgba(255, 238, 196, .04) !important;
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .pranatara-smooth-select-option-v001[aria-selected="true"]
  .pranatara-smooth-select-option-marker-v001 {
  color: #e2bd76;
  text-shadow: 0 0 7px rgba(226, 189, 118, .36);
}

body[data-collection-smooth-dropdown="progressive-v001"]
  .pranatara-smooth-select-option-v001:focus-visible {
  outline: 2px solid #ffe5a2;
  outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
  body[data-collection-smooth-dropdown="progressive-v001"]
    .reference-select-shell[data-smooth-dropdown-ready="true"]:hover .reference-control-frame {
    filter:
      brightness(1.09)
      drop-shadow(0 2px 3px rgba(0, 0, 0, .36));
  }

  body[data-collection-smooth-dropdown="progressive-v001"]
    .pranatara-smooth-select-option-v001:hover {
    border-color: rgba(198, 157, 91, .28) !important;
    background: rgba(183, 139, 76, .11) !important;
    color: #f0d7a4;
  }
}

@media (min-width: 721px) and (max-width: 840px) {
  body[data-collection-smooth-dropdown="progressive-v001"]
    .pranatara-smooth-select-trigger-v001 {
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  body[data-collection-smooth-dropdown="progressive-v001"]
    .pranatara-smooth-select-panel-v001 {
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-collection-smooth-dropdown="progressive-v001"]
    .reference-select-shell[data-smooth-dropdown-ready="true"] *,
  body[data-collection-smooth-dropdown="progressive-v001"]
    .reference-select-shell[data-smooth-dropdown-ready="true"] *::before,
  body[data-collection-smooth-dropdown="progressive-v001"]
    .reference-select-shell[data-smooth-dropdown-ready="true"] *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  body[data-collection-smooth-dropdown="progressive-v001"]
    .pranatara-smooth-select-panel-v001,
  body[data-collection-smooth-dropdown="progressive-v001"]
    .reference-select-shell[data-dropdown-placement="top"] .pranatara-smooth-select-panel-v001 {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  body[data-collection-smooth-dropdown="progressive-v001"]
    .pranatara-smooth-select-trigger-v001,
  body[data-collection-smooth-dropdown="progressive-v001"]
    .pranatara-smooth-select-panel-v001,
  body[data-collection-smooth-dropdown="progressive-v001"]
    .pranatara-smooth-select-option-v001 {
    border: 1px solid ButtonText !important;
    background: ButtonFace !important;
    color: ButtonText;
    box-shadow: none !important;
    forced-color-adjust: auto;
  }

  body[data-collection-smooth-dropdown="progressive-v001"]
    .pranatara-smooth-select-option-v001[aria-selected="true"] {
    border-color: Highlight !important;
    background: Highlight !important;
    color: HighlightText;
  }

  body[data-collection-smooth-dropdown="progressive-v001"]
    .pranatara-smooth-select-option-marker-v001 {
    color: currentColor;
    text-shadow: none;
  }

  body[data-collection-smooth-dropdown="progressive-v001"]
    .pranatara-smooth-select-trigger-v001:focus-visible,
  body[data-collection-smooth-dropdown="progressive-v001"]
    .pranatara-smooth-select-option-v001:focus-visible {
    outline-color: Highlight;
  }
}
