/* Homepage stage search (shared/js/stage-search.js, owner 2026-10-29; redesigned
   the same day). Brand colours come from each site's own variables; the
   fallbacks are Lycian Way's. Text colours keep AA contrast on their grounds. */
.stage-search {
  --ss-green: var(--green, #2d5016);
  --ss-accent: var(--terracotta-text, #a8512d);
  --ss-ink: var(--text, #1a1a1a);
  --ss-muted: #5b6370;
  --ss-line: rgba(0, 0, 0, .09);
  --ss-card: var(--white, #fff);
  --ss-soft: var(--sand, #f1ead9);
  --ss-feat: #2e7d32;
  --ss-radius: 18px;
  --ss-tint: rgba(74, 124, 41, .12);
  --ss-tint-soft: rgba(74, 124, 41, .1);
  --ss-tint-strong: rgba(74, 124, 41, .16);
  --ss-tint-faint: rgba(74, 124, 41, .04);
  --ss-tint-line: rgba(74, 124, 41, .45);
  --ss-ring: rgba(74, 124, 41, .18);
  position: relative;
  padding: 44px 16px 36px;
  background: linear-gradient(180deg, var(--cream, #faf7f0) 0%, var(--sand, #f1ead9) 100%);
  color: var(--ss-ink);
}
.stage-search__inner { max-width: 1040px; margin: 0 auto; }
/* Tints from the brand's own colour (Göbeklitepe is gold, not green). */
@supports (color: color-mix(in srgb, red 10%, transparent)) {
  .stage-search {
    --ss-tint: color-mix(in srgb, var(--ss-green) 12%, transparent);
    --ss-tint-soft: color-mix(in srgb, var(--ss-green) 10%, transparent);
    --ss-tint-strong: color-mix(in srgb, var(--ss-green) 16%, transparent);
    --ss-tint-faint: color-mix(in srgb, var(--ss-green) 4%, transparent);
    --ss-tint-line: color-mix(in srgb, var(--ss-green) 45%, transparent);
    --ss-ring: color-mix(in srgb, var(--ss-green) 18%, transparent);
  }
}
.stage-search__svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only-stage { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── Intro ── */
.stage-search__intro { text-align: center; margin: 0 auto 20px; max-width: 680px; }
.stage-search__heading { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.15; color: var(--ss-green); }
.stage-search__lead { margin: 8px 0 0; font-size: 1.02rem; color: var(--ss-muted); }

/* ── The search card ── */
.stage-search__card { max-width: 760px; margin: 0 auto; }
.stage-search__box {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 18px; background: var(--ss-card);
  border: 1px solid var(--ss-line); border-radius: 999px;
  box-shadow: 0 14px 34px -14px rgba(31, 41, 26, .35), 0 2px 6px rgba(31, 41, 26, .06);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.stage-search__box:focus-within { border-color: var(--ss-green); box-shadow: 0 0 0 4px var(--ss-ring), 0 14px 34px -14px rgba(31, 41, 26, .35); }
.stage-search.is-open .stage-search__box { border-radius: 26px 26px 0 0; }
.stage-search__icon { width: 22px; height: 22px; color: var(--ss-green); }
.stage-search__input {
  flex: 1; min-width: 0; height: 46px; padding: 0 4px; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1.05rem; color: var(--ss-ink);
}
.stage-search__input::placeholder { color: #6b7280; }
.stage-search__input::-webkit-search-cancel-button { display: none; }
.stage-search__clear {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ss-muted); cursor: pointer;
}
.stage-search__clear:hover { background: var(--ss-soft); color: var(--ss-ink); }
.stage-search__clear[hidden] { display: none; }
.stage-search__go {
  display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 22px; flex: none;
  border: 0; border-radius: 999px; background: var(--ss-green); color: #fff;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; transition: filter .15s ease, transform .15s ease;
}
.stage-search__go:hover { filter: brightness(1.08); }
.stage-search__go:active { transform: translateY(1px); }
.stage-search__go:focus-visible, .stage-search__clear:focus-visible, .stage-search__chip:focus-visible,
.stage-search__jump-chip:focus-visible, .stage-search__close:focus-visible { outline: 3px solid var(--ss-green); outline-offset: 2px; }

/* Places to try */
.stage-search__try { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .9rem; color: var(--ss-muted); }
.stage-search__try[hidden] { display: none; }
.stage-search__chips { display: contents; }
.stage-search__chip {
  padding: 6px 14px; border: 1px solid var(--ss-line); border-radius: 999px; background: rgba(255, 255, 255, .75);
  font: inherit; font-size: .88rem; color: var(--ss-ink); cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.stage-search__chip:hover { background: #fff; border-color: var(--ss-green); color: var(--ss-green); }

/* ── Dropdown ── */
.stage-search__list {
  position: absolute; z-index: 40; left: -1px; right: -1px; top: 100%; margin: 0; padding: 6px;
  list-style: none; background: var(--ss-card); border: 1px solid var(--ss-green); border-top-color: var(--ss-line);
  border-radius: 0 0 22px 22px; box-shadow: 0 22px 40px -18px rgba(31, 41, 26, .45);
  max-height: min(420px, 60vh); overflow-y: auto; text-align: left;
}
.stage-search__list[hidden] { display: none; }
.stage-search__option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; }
.stage-search__option[aria-selected="true"], .stage-search__option:hover { background: var(--ss-soft); }
.stage-search__opt-badge {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px;
  background: var(--ss-green); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: -.01em;
}
.stage-search__opt-badge--icon { background: var(--ss-tint); color: var(--ss-green); }
.stage-search__opt-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.stage-search__name { font-weight: 650; color: var(--ss-ink); line-height: 1.3; }
.stage-search__name mark { background: rgba(255, 213, 79, .55); color: inherit; border-radius: 3px; padding: 0 1px; }
.stage-search__sub { font-size: .85rem; color: var(--ss-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.stage-search__opt-go { color: #9aa1ab; }
.stage-search__option[aria-selected="true"] .stage-search__opt-go { color: var(--ss-green); }
.stage-search__none { padding: 14px; color: var(--ss-muted); text-align: center; }

/* Difficulty pill */
.stage-search__diff { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1.5; }
.stage-search__diff--easy { background: #e3f2e4; color: #1e5a22; }
.stage-search__diff--moderate { background: #fff1d6; color: #7a4b00; }
.stage-search__diff--hard { background: #fde6e2; color: #9b2c1f; }
.stage-search__diff--very_hard { background: #efe3f6; color: #5e2380; }

/* ── Results ── */
.stage-search__results { max-width: 1040px; margin: 26px auto 0; }
.stage-search__results:empty { display: none; }
.stage-search__head {
  position: relative; display: grid; grid-template-columns: 260px 1fr; gap: 0; overflow: hidden;
  background: var(--ss-card); border: 1px solid var(--ss-line); border-radius: var(--ss-radius);
  box-shadow: 0 16px 36px -22px rgba(31, 41, 26, .45);
}
.stage-search__head--plain { grid-template-columns: 88px 1fr; align-items: center; }
.stage-search__cover { width: 100%; height: 100%; min-height: 190px; object-fit: cover; display: block; background: var(--ss-soft); }
.stage-search__cover--icon { display: grid; place-items: center; color: var(--ss-green); background: linear-gradient(135deg, var(--ss-tint-strong), var(--ss-tint-faint)); }
.stage-search__cover--icon .stage-search__svg { width: 48px; height: 48px; stroke-width: 1.4; }
.stage-search__head--plain .stage-search__cover { min-height: 88px; }
.stage-search__head--plain .stage-search__cover--icon .stage-search__svg { width: 34px; height: 34px; }
.stage-search__head-body { padding: 20px 64px 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.stage-search__eyebrow { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ss-accent); }
.stage-search__title { margin: 0; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); line-height: 1.2; color: var(--ss-ink); }
.stage-search__route { margin: 0; color: var(--ss-muted); }
.stage-search__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; padding: 0; list-style: none; }
.stage-search__facts li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--ss-soft); font-size: .86rem; font-weight: 600; color: var(--ss-ink); }
.stage-search__facts li .stage-search__svg { width: 15px; height: 15px; color: var(--ss-green); }
.stage-search__facts .stage-search__fact-diff { padding: 0; background: none; }
.stage-search__facts .stage-search__diff { padding: 5px 11px; font-size: .82rem; }
.stage-search__details {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 9px 16px;
  border-radius: 999px; background: var(--ss-green); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none;
}
.stage-search__details:hover { filter: brightness(1.08); color: #fff; }
.stage-search__details .stage-search__svg { width: 16px; height: 16px; }
.stage-search__close {
  position: absolute; top: 12px; right: 12px; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--ss-line); border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ss-ink); cursor: pointer;
}
.stage-search__close:hover { background: var(--ss-soft); }

/* Category chips that jump to a section */
.stage-search__jump { display: flex; gap: 8px; margin: 18px 0 4px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.stage-search__jump::-webkit-scrollbar, .stage-search__try::-webkit-scrollbar { display: none; }
.stage-search__jump-chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 12px 8px 12px;
  border: 1px solid var(--ss-line); border-radius: 999px; background: var(--ss-card);
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ss-ink); cursor: pointer; white-space: nowrap;
}
.stage-search__jump-chip:hover { border-color: var(--ss-green); color: var(--ss-green); }
.stage-search__jump-chip .stage-search__svg { color: var(--ss-green); }
.stage-search__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ss-soft); font-size: .78rem; font-weight: 800; color: var(--ss-ink); }

/* Sections */
.stage-search__sec { margin-top: 22px; scroll-margin-top: 96px; }
.stage-search__sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.stage-search__sec-head h4 { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 1.08rem; color: var(--ss-ink); }
.stage-search__sec-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ss-tint); color: var(--ss-green); }
.stage-search__sec-head > a { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; font-weight: 700; color: var(--ss-accent); text-decoration: none; white-space: nowrap; }
.stage-search__sec-head > a:hover { text-decoration: underline; }
.stage-search__sec-head > a .stage-search__svg { width: 15px; height: 15px; }
.stage-search__sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Cards */
.stage-search__item > a, .stage-search__item > div {
  position: relative; display: flex; align-items: center; gap: 12px; height: 100%; box-sizing: border-box; padding: 12px;
  background: var(--ss-card); border: 1px solid var(--ss-line); border-radius: 16px; color: inherit; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stage-search__item > a:hover { transform: translateY(-2px); border-color: var(--ss-tint-line); box-shadow: 0 14px 26px -18px rgba(31, 41, 26, .55); }
.stage-search__item.is-featured > a, .stage-search__item.is-featured > div {
  border: 1.5px solid var(--ss-feat); background: linear-gradient(180deg, #f3faf3 0%, var(--ss-card) 60%);
  padding-top: 30px;
}
.stage-search__thumb { position: relative; display: block; width: 64px; height: 64px; flex: none; overflow: hidden; border-radius: 12px; background: var(--ss-soft); }
.stage-search__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-search__thumb--icon { display: grid; place-items: center; color: var(--ss-green); background: var(--ss-tint-soft); }
.stage-search__thumb--icon .stage-search__svg { width: 26px; height: 26px; stroke-width: 1.6; }
.stage-search__thumb--deal { display: grid; place-items: center; background: var(--ss-accent); color: #fff; font-weight: 800; font-size: 1rem; }
.stage-search__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.stage-search__item-name { font-weight: 700; line-height: 1.3; color: var(--ss-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stage-search__item-sub { font-size: .85rem; color: var(--ss-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-search__item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .84rem; }
.stage-search__rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ss-ink); }
.stage-search__rating .stage-search__svg { width: 14px; height: 14px; fill: #f5a524; stroke: #f5a524; }
.stage-search__rating span { font-weight: 500; color: var(--ss-muted); }
.stage-search__price { font-weight: 800; color: var(--ss-green); }
.stage-search__badge {
  position: absolute; top: 8px; left: 12px; display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px 2px 7px; border-radius: 999px; background: #e3f2e4; color: #1e5a22; font-size: .72rem; font-weight: 800; letter-spacing: .02em;
}
.stage-search__badge .stage-search__svg { width: 12px; height: 12px; fill: currentColor; }
.stage-search__msg { margin: 18px 0 0; padding: 18px; border-radius: 14px; background: var(--ss-card); border: 1px dashed var(--ss-line); color: var(--ss-muted); text-align: center; }

/* Loading */
.is-skeleton .stage-search__thumb, .is-skeleton .stage-search__cover, .stage-search__line {
  background: linear-gradient(90deg, #ece5d6 0%, #f6f1e7 50%, #ece5d6 100%); background-size: 200% 100%; animation: stage-search-shimmer 1.2s linear infinite;
}
.stage-search__line { display: block; height: 12px; border-radius: 6px; width: 80%; }
.stage-search__line--short { width: 45%; margin-top: 8px; }
.stage-search__head.is-skeleton .stage-search__head-body { padding: 28px 24px; }
.stage-search__item.is-skeleton > div { min-height: 88px; }
@keyframes stage-search-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .stage-search__line, .is-skeleton .stage-search__thumb, .is-skeleton .stage-search__cover { animation: none; }
  .stage-search__item > a, .stage-search__go, .stage-search__box { transition: none; }
}

/* ── Narrow screens ── */
@media (max-width: 900px) {
  .stage-search__sec ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .stage-search { padding: 32px 16px 28px; }
  .stage-search__box { padding: 6px 6px 6px 14px; }
  .stage-search__input { height: 42px; font-size: 1rem; }
  .stage-search__go { height: 42px; padding: 0 14px; }
  .stage-search__go span { display: none; }
  .stage-search__head { grid-template-columns: 1fr; }
  .stage-search__cover { min-height: 0; height: 150px; }
  .stage-search__head--plain { grid-template-columns: 64px 1fr; }
  .stage-search__head--plain .stage-search__cover { height: 64px; min-height: 64px; }
  .stage-search__head-body { padding: 16px 18px 18px; }
  .stage-search__head--plain .stage-search__head-body { padding-right: 56px; }
  .stage-search__sec ul { grid-template-columns: 1fr; }
  .stage-search__try { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .stage-search__chip { flex: none; }
}
