/* ㉑ 매장 찾기 — 초록 가로 줄무늬, 검색창 + 매장 목록 + 지도, 금·검 띠, 흐르는 오픈 매장 띠 (시안 y 19407~20615) */
.s21 {
  --s21-green: #005633;
  --s21-line: #0d5e3d;
  --s21-gold: #ddd074;
  background: var(--s21-green) repeating-linear-gradient(to bottom, transparent 0 28px, var(--s21-line) 28px 29px, transparent 29px 30px);
  color: var(--c-white);
}
.s21-head { text-align: center; }
.s21-logo { margin: 0 auto; }
.s21-title { color: var(--c-white); letter-spacing: -0.04em; text-wrap: initial; }
.s21-title em { font-style: normal; color: var(--s21-gold); }
.s21-sub { color: var(--c-white); font-weight: 500; letter-spacing: -0.07em; }

/* 판 뒤 금·검·금 가로 띠 */
.s21-stage { position: relative; }
.s21-board { position: relative; max-width: var(--wrap); margin-inline: auto; }

/* 검색창 */
.s21-search { display: flex; background: var(--c-white); border: 1px solid #000; border-radius: 11px; z-index: 3; }
.s21-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: #111;
  font-weight: 700; letter-spacing: -0.05em; outline: none; -webkit-appearance: none; appearance: none;
}
.s21-search input::placeholder { color: #969696; opacity: 1; }
.s21-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.s21-search:focus-within { box-shadow: 0 0 0 3px var(--s21-gold); }
.s21-search-btn {
  flex: none; display: flex; align-items: center; justify-content: center; margin: -1px -1px -1px 0;
  background: #000; color: var(--c-white); border: 0; border-radius: 10px; cursor: pointer;
}
.s21-search-btn:focus-visible { outline: 3px solid var(--s21-gold); outline-offset: 2px; }

/* 흰 판: 왼쪽 목록 + 오른쪽 지도 */
.s21-panel { position: relative; z-index: 1; display: grid; background: var(--c-white); border: 1px solid #000; border-radius: 40px; overflow: hidden; color: #000; }
.s21-list { list-style: none; margin: 0; border-right: 1px solid #000; background: var(--c-white); overflow-y: auto; }
.s21-store { border-bottom: 1px solid #e5e5e5; }
.s21-store-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; letter-spacing: -0.06em; color: #000; }
.s21-go { flex: none; display: block; line-height: 0; }
.s21-go svg { display: block; fill: #000; }
.s21-store-info { color: #000; letter-spacing: -0.05em; }
.s21-empty { color: var(--c-gray); }
.s21-store-info a { color: inherit; text-decoration: none; }
.s21-store.is-on { background: #f6f1d9; }
.s21-map { position: relative; min-width: 0; background: #a4d1f2; }
.s21-map > img { width: 100%; height: 100%; object-fit: cover; object-position: left bottom; }
/* 카카오 지도 키가 있을 때: 실제 지도. 시안 그림(바로 아래 img)만 숨기고, 지도 안 그림(타일·핀·로고)은 건드리지 않는다(10-28) */
.s21-map .s21-kmap { position: absolute; inset: 0; }
.s21-map .s21-kmap img { max-width: none; }
.s21-map.is-live > img { visibility: hidden; }
.s21-panel:has(.s21-map.is-live) .s21-store { cursor: pointer; }
.s21-iw { padding: 6px 28px 6px 10px; font-size: 14px; font-weight: 700; letter-spacing: -0.04em; white-space: nowrap; color: #000; }

/* 흐르는 띠: 쭉쭉~늘어나는 오픈 매장 */
.s21-ticker { display: flex; align-items: stretch; background: var(--c-white); border-top: 1px solid #000; border-bottom: 1px solid #000; }
.s21-ticker-lab { flex: none; display: flex; align-items: center; background: var(--s21-green); color: var(--c-white); border-right: 1px solid #000; font-weight: 500; letter-spacing: -0.06em; white-space: nowrap; }
.s21-ticker-run { flex: 1; min-width: 0; display: flex; overflow: hidden; }
.s21-ticker-track { flex: none; display: flex; align-items: center; list-style: none; margin: 0; padding: 0; animation: s21-flow 150s linear infinite; }
.s21-ticker-track li { white-space: nowrap; color: #000; font-weight: 500; letter-spacing: -0.04em; }
.s21-ticker-track li::before { content: "·"; }
.s21-ticker:hover .s21-ticker-track { animation-play-state: paused; }
@keyframes s21-flow { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- 데스크톱(769px~): 시안 배치, 1920에서 시안 좌표 ---------- */
@media (min-width: 769px) {
  .s21 { padding-top: 86px; }
  .s21-logo { width: 160px; }
  .s21-title { margin-top: 27px; font-size: clamp(48px, 3.34vw, 64px); line-height: 72px; letter-spacing: -0.06em; }
  .s21-sub { margin-top: 14px; font-size: 21px; line-height: 30px; }
  .s21-stage { margin-top: 38px; padding: 0 var(--gutter); }
  .s21-stage::before {
    content: ""; position: absolute; left: 0; right: 0; top: 237px; height: 131px; pointer-events: none;
    background: linear-gradient(to bottom, var(--c-khaki) 0 32px, transparent 32px 50px, #000 50px 82px, transparent 82px 99px, var(--c-khaki) 99px 131px);
  }
  .s21-search { position: absolute; left: 30.97%; top: 0; width: 38%; height: 66px; }
  .s21-search input { padding: 0 0 0 39px; font-size: 18px; }
  .s21-search-btn { width: 66px; height: 66px; }
  .s21-panel { margin-top: 27px; height: 573px; grid-template-columns: 26.5% 1fr; }
  .s21-list { padding: 22px 0 0; }
  .s21-store { padding: 38px 18px 40px 45px; }
  .s21-store-name { height: 26px; margin-right: 46px; font-size: 19px; }
  .s21-store-info { margin-top: 25px; font-size: 15px; line-height: 26px; letter-spacing: -0.03em; }
  .s21-empty { padding: 38px 45px; font-size: 16px; }
  .s21-ticker { margin-top: 79px; height: 90px; }
  .s21-ticker-lab { width: 334px; padding-left: 53px; font-size: 21px; }
  .s21-ticker-track li { padding: 0 14px 0 13px; font-size: 19px; }
  .s21-ticker-track li::before { margin-right: 26px; }
}
@media (min-width: 769px) and (max-width: 1279px) {
  .s21-ticker-lab { width: auto; padding: 0 28px; font-size: 18px; }
  .s21-store { padding: 30px 28px 32px 28px; }
  .s21-store-name { margin-right: 0; font-size: 17px; }
  .s21-store-info { font-size: 15px; }
}

/* ---------- 휴대폰: 검색 → 지도 → 목록, 띠는 그대로 흐름 ---------- */
@media (max-width: 768px) {
  .s21 { padding-top: 52px; }
  .s21-head { padding: 0 16px; }
  .s21-logo { width: 112px; }
  .s21-title { margin-top: 18px; font-size: clamp(28px, 7.6vw, 40px); line-height: 1.25; }
  .s21-sub { margin-top: 12px; font-size: 15px; line-height: 1.6; letter-spacing: -0.05em; }
  .s21-stage { margin-top: 28px; padding: 0 16px; }
  .s21-search { position: relative; height: 52px; border-radius: 10px; }
  .s21-search input { padding: 0 0 0 18px; font-size: 16px; }
  .s21-search-btn { width: 52px; height: 52px; border-radius: 9px; }
  .s21-search-btn svg { width: 24px; height: 24px; }
  .s21-panel { margin-top: 12px; grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
  .s21-map { order: -1; border-bottom: 1px solid #000; aspect-ratio: 1058 / 520; }
  .s21-list { border-right: 0; padding: 0; max-height: 460px; overscroll-behavior: contain; }
  .s21-store { padding: 20px 18px 20px 20px; }
  .s21-store:last-of-type { border-bottom: 0; }
  .s21-store-name { font-size: 17px; }
  .s21-go svg { width: 24px; height: 24px; }
  .s21-store-info { margin-top: 10px; font-size: 15px; line-height: 1.6; }
  .s21-empty { padding: 20px; font-size: 15px; }
  .s21-ticker { margin-top: 44px; height: 56px; }
  .s21-ticker-lab { padding: 0 12px; font-size: 14px; }
  .s21-ticker-track li { padding: 0 10px 0 12px; font-size: 15px; }
  .s21-ticker-track li::before { margin-right: 14px; }
}
