/* GREEKA custom select: replaces the browser's default dropdown everywhere */
.gs-native { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; opacity: 0; pointer-events: none; }
.gs-wrap { position: relative; display: block; width: 100%; min-width: 0; }
.gs-trigger { display: flex; width: 100%; min-width: 0; min-height: 22px; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.35; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gs-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-chev { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: #8a6a14; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms cubic-bezier(.2,.8,.2,1); }
.gs-wrap.is-open .gs-chev { transform: rotate(180deg); }
.gs-trigger:focus-visible { outline: 3px solid var(--accent, #d9a93f); outline-offset: 4px; border-radius: 6px; }

/* Filter sheet field (stays page) gets a proper boxed look */
.greeka-form-field .gs-trigger { min-height: 46px; padding: 0 14px; border: 1px solid var(--border, #e3e7f0); border-radius: 12px; background: var(--muted, #f6f8fc); font-size: 13px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.greeka-form-field .gs-wrap.is-open .gs-trigger { border-color: var(--primary, #1c2a86); box-shadow: 0 0 0 3px var(--primary-soft, #eceffc); }

/* Menu */
.gs-layer { position: fixed; inset: 0; z-index: 2000; }
.gs-scrim { position: absolute; inset: 0; background: rgb(13 21 80 / 0%); transition: background 220ms ease; }
.gs-menu { position: absolute; display: flex; flex-direction: column; min-width: 200px; max-height: min(340px, 56vh); overflow: hidden; border: 1px solid rgb(227 231 240 / 95%); border-radius: 18px; background: rgb(255 255 255 / 98%); box-shadow: 0 24px 60px rgb(19 30 102 / 26%), 0 2px 8px rgb(19 30 102 / 8%); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center; transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.gs-menu.is-up { transform-origin: bottom center; transform: translateY(6px) scale(.98); }
.gs-layer.is-in .gs-menu { opacity: 1; transform: none; }
.gs-menu::before { content: ""; position: absolute; top: 0; right: 22px; left: 22px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--accent, #d9a93f), #f1d58a 50%, var(--accent, #d9a93f)); }
.gs-title { display: none; }
.gs-list { margin: 0; padding: 10px 8px 8px; overflow-y: auto; list-style: none; overscroll-behavior: contain; scrollbar-width: thin; }
.gs-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 12px 14px; border-radius: 12px; color: var(--foreground, #162036); font-family: "Poppins", system-ui, sans-serif; font-size: 14px; font-weight: 500; line-height: 1.3; cursor: pointer; transition: background 140ms ease, color 140ms ease; }
.gs-opt + .gs-opt { margin-top: 2px; }
.gs-opt.is-hover { background: var(--primary-soft, #eceffc); color: var(--primary, #1c2a86); }
.gs-opt[aria-selected="true"] { background: linear-gradient(135deg, #fbf3df, #f8ecc8); color: #5c4208; font-weight: 600; }
.gs-opt[aria-selected="true"].is-hover { background: linear-gradient(135deg, #f8ecc8, #f3e2ac); }
.gs-tick { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: #a87a12; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity 160ms ease, transform 200ms cubic-bezier(.2,.8,.2,1); }
.gs-opt[aria-selected="true"] .gs-tick { opacity: 1; transform: none; }

/* Phones: elegant bottom sheet instead of a floating popover */
@media (max-width: 640px) {
  .gs-scrim { background: rgb(13 21 80 / 0%); }
  .gs-layer.is-in .gs-scrim { background: rgb(13 21 80 / 48%); }
  .gs-menu { right: 0 !important; bottom: 0 !important; left: 0 !important; top: auto !important; width: 100% !important; min-width: 0; max-height: 72vh; border: 0; border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); transform: translateY(100%); transform-origin: bottom center; opacity: 1; transition: transform 320ms cubic-bezier(.2,.8,.2,1); }
  .gs-menu.is-up { transform: translateY(100%); }
  .gs-layer.is-in .gs-menu { transform: none; }
  .gs-menu::before { top: 10px; right: 50%; left: auto; width: 44px; height: 4px; margin-right: -22px; border-radius: 4px; background: #d5d9e6; }
  .gs-title { display: block; padding: 26px 24px 4px; color: var(--primary-dark, #131e66); font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; font-weight: 700; line-height: 1.1; }
  .gs-list { padding: 8px 12px 18px; }
  .gs-opt { padding: 15px 16px; border-radius: 14px; font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .gs-menu, .gs-scrim, .gs-chev, .gs-tick { transition-duration: .01ms !important; } }
@media (max-width: 640px) { body.gs-lock { overflow: hidden; } }
