/* jg-sok – sökförslag för julbordsguiden.se. Alla klasser börjar med jgs- för att inte krocka med UIkit. */
.jgs-field { position: relative; display: block; width: 100%; }
.jgs-drop, .jgs-drop *, .jgs-drop *::before, .jgs-drop *::after { box-sizing: border-box; }
.jgs-field input[data-jgs] { padding-right: 42px !important; }
.jgs-field input[data-jgs]::-webkit-search-cancel-button,
.jgs-field input[data-jgs]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.jgs-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #74696a; display: grid; place-items: center; cursor: pointer; }
.jgs-clear[hidden] { display: none; }
.jgs-clear:hover { background: #f3ecea; color: #1b1414; }
.jgs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.jgs-drop { background: #fff; color: #434343; font-family: "PT Sans", "Segoe UI", system-ui, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.4; letter-spacing: normal; text-transform: none; text-align: left; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.jgs-drop[hidden] { display: none; }
.jgs-drop--desktop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1010; width: 440px; max-width: calc(100vw - 32px); max-height: min(70vh, 580px); border-radius: 10px; box-shadow: 0 18px 44px -14px rgba(40, 10, 8, 0.45); }
.jgs-drop--mobile { position: static; margin-top: 8px; border-radius: 8px; max-height: 70vh; }
.jgs-open .mobile-search-prompt { display: none; }

.jgs-group + .jgs-group, .jgs-group + .jgs-hint { border-top: 6px solid #f3ecea; }
.jgs-group-title { display: flex; align-items: baseline; gap: 8px; padding: 13px 16px 5px; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0.09em; text-transform: uppercase; color: #74696a; }
.jgs-group-n { font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; }

.jgs-drop a.jgs-opt { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: #434343; text-decoration: none; border-top: 1px solid #f3ecea; }
.jgs-drop .jgs-group-title + a.jgs-opt { border-top: 0; }
.jgs-drop a.jgs-opt:hover, .jgs-drop a.jgs-opt:focus, .jgs-drop a.jgs-opt[data-first] { background: #fbf3f2; color: #434343; text-decoration: none; outline: none; }
.jgs-drop.jgs-has-active a.jgs-opt[data-first]:not(.jgs-active):not(:hover) { background: transparent; }
.jgs-drop a.jgs-opt.jgs-active { background: #fbf3f2; box-shadow: inset 3px 0 0 #c60001; }
.jgs-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f7f1f0; color: #c60001; }
.jgs-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.jgs-title { color: #1b1414; font-weight: 700; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.jgs-opt--place .jgs-title { font-family: "PT Serif", Georgia, serif; font-size: 17px; }
.jgs-meta { color: #74696a; font-size: 14px; overflow-wrap: anywhere; }
.jgs-go { flex: none; color: #9a8e8c; font-size: 18px; }
.jgs-drop mark.jgs-hit { background: transparent; color: #c60001; font-weight: 700; padding: 0; }

.jgs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jgs-chips--kids { padding: 2px 16px 14px 62px; }
.jgs-chips--pad { padding: 4px 16px 16px; }
.jgs-chips-label { width: 100%; font-size: 13px; color: #74696a; }
.jgs-drop a.jgs-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: #f7f1f0; border: 1px solid #e6dedc; color: #1b1414; font-size: 14px; line-height: 1.3; text-decoration: none; }
.jgs-drop a.jgs-chip:hover { border-color: #c60001; color: #1b1414; text-decoration: none; }
.jgs-chip-n { color: #74696a; font-variant-numeric: tabular-nums; }

.jgs-drop .jgs-more { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 12px 16px; border: 0; border-top: 1px solid #f3ecea; border-radius: 0; background: transparent; color: #c60001; font: 700 15px/1.3 "PT Sans", system-ui, sans-serif; text-transform: none; text-decoration: none; text-align: left; cursor: pointer; }
.jgs-drop .jgs-more:hover { background: #fbf3f2; color: #c60001; text-decoration: none; }
.jgs-hint, .jgs-note { padding: 14px 16px 16px; display: grid; gap: 10px; }
.jgs-hint p { margin: 0; }
.jgs-hint strong { color: #1b1414; }
.jgs-drop .jgs-link { padding: 0; border: 0; background: none; color: #c60001; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jgs-dym { justify-self: start; }
@media (prefers-reduced-motion: reduce) { .jgs-drop { scroll-behavior: auto; } }
