@import url("./theme.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; min-width: 0; color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.65; }
button, a, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* A restrained masthead; language and owner access stay visible. */
.topbar { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 14px clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgba(248,245,237,.96); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 40px; height: 44px; display: grid; place-items: center; border-radius: 20px 20px 11px 11px; background: var(--sage); color: var(--white); font: 500 25px/1 var(--font-display); }
.brand strong, .brand small { display: block; font-family: var(--font-latin); }
.brand strong { font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.brand small { margin-top: 3px; font-size: 9px; color: var(--muted); font-weight: 500; letter-spacing: .19em; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.admin-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 4px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 500; white-space: nowrap; }
.admin-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-link:hover { color: var(--coral-deep); }
.lang-nav { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.lang { min-width: 36px; min-height: 34px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: 500 11px var(--font-latin); }
.lang:hover { background: var(--sage-soft); color: var(--ink); }
.lang.is-active { background: var(--ink); color: var(--white); }

.app-shell { width: min(1480px, 100%); margin: 0 auto; padding: 36px clamp(20px, 4vw, 56px) 52px; }
.intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: center; gap: 44px; margin-bottom: 30px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--sage); font: 600 10px var(--font-latin); letter-spacing: .18em; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.intro h1 { margin: 0; color: var(--ink-deep); font: 400 clamp(34px, 3.5vw, 50px)/1.3 var(--font-display); letter-spacing: -.055em; word-break: keep-all; overflow-wrap: anywhere; }
.intro-side { max-width: 400px; justify-self: end; }
.intro-copy { margin: 0 0 15px; color: var(--muted); font-size: 14px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.curation-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 12px 4px 5px; border: 1px solid #cdd6c3; border-radius: 999px; background: var(--sage-soft); color: #4e6248; font-size: 12px; font-weight: 500; }
.curation-badge img { width: 25px; height: 25px; border-radius: 8px; }

/* Region tabs and secondary preferences form one compact search area. */
.filterbar { display: flex; align-items: center; gap: 24px; margin-bottom: 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 22px 22px 0 0; background: var(--white); }
.filter-copy { flex: 0 0 auto; }
.filter-copy span { display: block; color: var(--coral-deep); font: 600 9px var(--font-latin); letter-spacing: .13em; }
.filter-copy strong { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; }
.filter-actions { display: flex; flex: 1; min-width: 0; gap: 6px; overflow-x: auto; padding: 4px 1px; scrollbar-width: thin; scrollbar-color: #c8c4b8 transparent; }
.filter { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap; }
.filter b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 50%; background: #eeede5; color: var(--muted); font: 500 10px var(--font-latin); }
.filter:hover { background: var(--sage-soft); color: var(--ink); }
.filter.is-active { background: var(--sage); color: white; }
.filter.is-active b { background: rgba(255,255,255,.17); color: white; }

.discovery-panel { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); align-items: end; gap: 16px 28px; margin-bottom: 22px; padding: 17px 22px 19px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 22px 22px; background: #f2f1e8; }
.discovery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.discovery-head > div > span { display: block; color: var(--sage); font: 600 9px var(--font-latin); letter-spacing: .13em; }
.discovery-head strong { display: block; margin-top: 5px; font-size: 14px; font-weight: 500; }
.filter-reset { flex: 0 0 auto; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; white-space: nowrap; }
.filter-reset:hover { background: var(--white); color: var(--ink); }
.discovery-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.discovery-controls label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
.discovery-controls select { width: 100%; min-height: 40px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 400; }
.amenity-filter { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.amenity-filter legend { float: left; flex: 0 0 auto; padding: 0; color: var(--muted); font-size: 11px; font-weight: 500; }
.amenity-filter-actions { display: flex; min-width: 0; gap: 6px; overflow-x: auto; padding: 3px 1px; scrollbar-width: thin; scrollbar-color: #c8c4b8 transparent; }
.amenity-filter-actions button { flex: 0 0 auto; min-height: 34px; padding: 0 11px; border: 1px solid #d4d8cb; border-radius: 999px; background: var(--white); color: #57634f; cursor: pointer; font-size: 12px; font-weight: 400; white-space: nowrap; }
.amenity-filter-actions button:hover { border-color: var(--sage); }
.amenity-filter-actions button.is-active { border-color: var(--sage); background: var(--sage); color: white; }

/* Keep map geometry and its interactive layers intact. */
.workspace { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); height: clamp(590px, calc(100vh - 112px), 740px); min-height: 590px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.map-panel { position: relative; min-width: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; padding: 26px clamp(20px, 2.5vw, 36px) 20px; background: #efeee3; }
.map-head, .map-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.map-head > div > span { color: var(--sage); font: 500 10px var(--font-latin); letter-spacing: .18em; }
.map-head strong { display: block; margin-top: 5px; font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
.map-head strong b { color: var(--coral-deep); font-weight: 600; }
.status-key { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.status-key i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(181,101,66,.12); }
.map-stage { position: relative; display: flex; flex: 1; min-height: 0; }
.jeju-map { width: 100%; flex: 1; min-height: 0; overflow: hidden; }
.map-controls { position: absolute; z-index: 5; top: 16px; right: 0; display: grid; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-soft); }
.map-controls button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; font: 400 23px/1 var(--font-ui); }
.map-controls button:hover { background: var(--sage-soft); color: var(--sage); }
.map-controls button:disabled { color: #b7b7a9; cursor: default; }
.map-controls .location-control { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.location-control svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.location-control.is-loading svg { animation: locate-spin .9s linear infinite; }
.map-location-message { position: absolute; z-index: 5; left: 0; bottom: 12px; max-width: min(360px, calc(100% - 64px)); margin: 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow-soft); color: var(--ink); font-size: 12px; line-height: 1.5; }
.current-location-wave { fill: rgba(97,118,91,.16); stroke: rgba(97,118,91,.5); stroke-width: 1; animation: location-wave 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.current-location-dot { fill: var(--sage); stroke: var(--white); stroke-width: 4; }
.current-location-core { fill: var(--white); }
@keyframes locate-spin { to { transform: rotate(360deg); } }
@keyframes location-wave { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.map-grid { opacity: .65; }
.island { stroke: #93a487; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#islandFill stop:first-child { stop-color: #e0e6cf; }
#islandFill stop:nth-child(2) { stop-color: #d2ddbd; }
#islandFill stop:last-child { stop-color: #c2d0a9; }
#islandShadow feDropShadow { flood-color: #647052; flood-opacity: .12; }
.terrain ellipse, .terrain circle { fill: none; stroke: rgba(66,61,51,.12); stroke-width: 1.4; }
.terrain circle { fill: rgba(66,61,51,.23); stroke: none; }
.terrain-label { fill: #68775a; font: 500 8px var(--font-latin); letter-spacing: .17em; }
.region-name circle { fill: #788269; }
.region-name text { fill: #4f5b44; font: 500 10px var(--font-ui); letter-spacing: .02em; paint-order: stroke; stroke: #e9eddc; stroke-width: 4px; stroke-linejoin: round; }
.map-pin { cursor: pointer; outline: none; transition: opacity .2s ease; }
.map-pin.is-hidden { opacity: .12; pointer-events: none; }
.pin-pulse { fill: rgba(97,118,91,.1); transition: transform .2s ease, fill .2s ease; transform-origin: center; transform-box: fill-box; }
.pin-dot { fill: #59684f; stroke: var(--white); stroke-width: 3; transition: fill .2s ease, transform .2s ease; transform-origin: center; transform-box: fill-box; }
.map-pin text { fill: white; font: 600 11px var(--font-ui); pointer-events: none; }
.map-pin .pin-label { opacity: 0; fill: var(--ink); font-size: 11px; font-weight: 500; letter-spacing: .02em; paint-order: stroke; stroke: var(--white); stroke-width: 5px; stroke-linejoin: round; transition: opacity .2s ease; }
.map-pin:hover .pin-label, .map-pin:focus .pin-label, .map-pin.is-selected .pin-label { opacity: 1; }
.map-pin:hover .pin-dot, .map-pin:focus .pin-dot, .map-pin.is-selected .pin-dot { fill: var(--coral); transform: scale(1.12); }
.map-pin:hover .pin-pulse, .map-pin:focus .pin-pulse, .map-pin.is-selected .pin-pulse { fill: rgba(181,101,66,.18); transform: scale(1.16); }
.map-pin:focus-visible .pin-dot { stroke: var(--ink-deep); stroke-width: 4; }
.map-foot { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.map-source a { color: inherit; text-underline-offset: 3px; }

/* Text-led shop cards. No invented photography or oversized blank image tiles. */
.results { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px; border-left: 1px solid var(--line); background: var(--white); scrollbar-color: #c8cdbc transparent; scrollbar-width: thin; }
.results-head { position: sticky; z-index: 4; top: -22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--line); background: var(--white); }
.results-head span { color: var(--sage); font: 500 9px var(--font-latin); letter-spacing: .13em; }
.results-head h2 { margin: 5px 0 0; color: var(--ink); font: 400 28px/1.3 var(--font-display); letter-spacing: -.045em; }
.results-actions { display: flex; align-items: center; gap: 12px; }
.results-actions > strong { color: #a6b096; font: 400 35px/1 var(--font-latin); letter-spacing: -.06em; }
.nearby-sort { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 11px; border: 1px solid #cdd6c3; border-radius: 999px; background: var(--sage-soft); color: #4e6248; cursor: pointer; font-size: 12px; font-weight: 500; white-space: nowrap; }
.nearby-sort svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nearby-sort span { color: inherit; font: inherit; letter-spacing: 0; }
.nearby-sort:hover { border-color: var(--sage); }
.nearby-sort:disabled { cursor: wait; opacity: .6; }
.nearby-sort.is-loading svg { animation: locate-spin .9s linear infinite; }
.shop-card { position: relative; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; scroll-margin-block: 130px; }
.shop-card + .shop-card { margin-top: 12px; }
.shop-card:hover { border-color: #a7b297; }
.shop-card.is-selected { border-color: var(--sage); background: #f8f9f2; box-shadow: inset 3px 0 var(--sage); }
.shop-card.is-revealed { animation: shop-card-reveal .7s ease; }
@keyframes shop-card-reveal { 45% { box-shadow: 0 0 0 4px rgba(97,118,91,.2); } }
.card-select { position: absolute; inset: 0; z-index: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.card-select:focus-visible { outline-offset: 3px; }
.shop-photo { position: relative; z-index: 1; height: 140px; margin: 0 0 16px; overflow: hidden; border-radius: 12px; background: var(--sage-soft); pointer-events: none; }
.shop-photo::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(40,41,32,.65)); }
.shop-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-card[data-shop="heonne"] .shop-photo img { object-position: center 48%; }
.shop-card.no-photo .shop-photo { display: none; }
.shop-photo-placeholder { display: grid; height: 100%; place-items: center; background: var(--sage-soft); }
.shop-photo-placeholder b { font: 400 32px var(--font-latin); }
.shop-photo figcaption { position: absolute; left: 12px; bottom: 9px; z-index: 1; color: white; font: 500 10px var(--font-latin); letter-spacing: .08em; }
.card-row { position: relative; padding: 0; pointer-events: none; }
.card-number { position: absolute; z-index: 1; top: 0; right: 0; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #d8ddcf; border-radius: 50%; background: var(--sage-soft); color: var(--sage); font: 500 10px var(--font-latin); pointer-events: none; }
.card-content { position: relative; z-index: 1; min-width: 0; pointer-events: none; }
.card-content a { pointer-events: auto; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0 34px 10px 0; }
.badges > span { padding: 3px 7px; border-radius: 999px; background: var(--sea-soft); color: var(--coral-deep); font-size: 11px; font-weight: 500; }
.badges .verified-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px 2px 2px; background: var(--sage-soft); color: #4e6248; }
.verified-chip img { width: 23px; height: 23px; border-radius: 7px; }
.verified-chip > span { line-height: 1; }
.verified-chip b { padding-left: 5px; border-left: 1px solid #c7d2bb; color: var(--sage); font: 500 9px var(--font-latin); }
.shop-card h3 { margin: 0; color: var(--ink-deep); font: 400 24px/1.4 var(--font-display); letter-spacing: -.04em; overflow-wrap: anywhere; }
.latin-name { margin: 3px 0 0; color: var(--muted); font: 400 10px/1.5 var(--font-latin); letter-spacing: .08em; overflow-wrap: anywhere; }
.category { margin: 9px 0 10px; color: var(--coral-deep); font-size: 12px; font-weight: 500; }
.address { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 11px 0 13px; color: var(--ink); font-size: 12px; }
.card-meta span::before { content: "·"; margin-right: 5px; color: var(--sage); }
.card-meta .distance-badge { flex-basis: 100%; color: #4e6248; font-weight: 500; }
.amenity-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 12px; }
.amenity-list span { display: inline-flex; min-height: 26px; align-items: center; padding: 0 8px; border: 1px solid #d8ddcf; border-radius: 999px; background: var(--sage-soft); color: #4e6248; font-size: 11px; }
.shop-detail-blocks { display: grid; gap: 7px; margin: 0 0 14px; }
.shop-detail { padding: 10px 12px; border-left: 2px solid #ddad88; border-radius: 0 9px 9px 0; background: #f8eee3; }
.shop-detail.strengths { border-color: #a7b793; background: var(--sage-soft); }
.shop-detail span { display: block; margin-bottom: 4px; color: var(--coral-deep); font-size: 11px; font-weight: 600; }
.shop-detail.strengths span { color: #4e6248; }
.shop-detail p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.map-link { display: inline-flex; align-items: center; gap: 14px; min-height: 38px; padding: 7px 14px; border: 1px solid #d3d5c8; border-radius: 999px; color: var(--ink); background: var(--white); font-size: 12px; font-weight: 500; text-decoration: none; }
.map-link:hover { border-color: var(--sage); color: #4e6248; }
.map-link b { color: var(--coral-deep); font-size: 15px; font-weight: 400; }
.empty-state { padding: 36px 20px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { margin-bottom: 6px; color: var(--ink); font-weight: 500; }

/* A small travel companion, visually secondary to certified beauty shops. */
.tourism-panel { margin-top: 28px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #f1f2e9; }
.tourism-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.tourism-copy > span { display: block; color: var(--sage); font: 600 10px var(--font-latin); letter-spacing: .16em; }
.tourism-copy h2 { margin: 8px 0; color: var(--ink-deep); font: 400 clamp(25px, 2.5vw, 34px)/1.35 var(--font-display); letter-spacing: -.04em; word-break: keep-all; overflow-wrap: anywhere; }
.tourism-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.tourism-source { flex: 0 0 auto; display: grid; justify-items: end; gap: 4px; }
.tourism-source span { color: var(--muted); font-size: 11px; }
.tourism-source a { color: #4e6248; font: 500 11px var(--font-latin); letter-spacing: .06em; text-decoration: none; }
.tourism-source a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tourism-list, .tourism-status.is-loading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tourism-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--white); transition: border-color .2s ease; }
.tourism-card:hover { border-color: #a7b297; }
.tourism-card figure { position: relative; height: 175px; margin: 0; overflow: hidden; background: var(--sage-soft); }
.tourism-card figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tourism-card figure figcaption { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 999px; background: rgba(53,51,41,.8); color: white; font: 500 9px var(--font-latin); letter-spacing: .06em; }
.tourism-image-placeholder, .tourism-card figure.has-image-error::before { display: grid; width: 100%; height: 100%; place-items: center; background: #e1e6d4; color: var(--sage); font: 500 14px var(--font-latin); letter-spacing: .2em; }
.tourism-card figure.has-image-error::before { content: "JEJU"; }
.tourism-card-body { padding: 18px; }
.tourism-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.tourism-card-meta span { padding: 3px 8px; border-radius: 999px; background: var(--sage-soft); color: #4e6248; font-size: 11px; }
.tourism-card-meta b { color: var(--coral-deep); font-size: 11px; font-weight: 500; }
.tourism-card h3 { margin: 0; color: var(--ink-deep); font: 400 23px/1.35 var(--font-display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.tourism-region { margin: 6px 0 0; color: var(--sage); font-size: 12px; }
.tourism-summary { display: -webkit-box; min-height: 65px; overflow: hidden; margin: 11px 0 15px; color: var(--muted); font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tourism-card-body > a { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; color: var(--ink); font-size: 12px; font-weight: 500; text-underline-offset: 5px; }
.tourism-card-body > a b { color: var(--coral-deep); font-size: 14px; font-weight: 400; }
.tourism-disclaimer { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.tourism-disclaimer i { flex: 0 0 auto; width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #b8c5a8; border-radius: 50%; color: var(--sage); font: normal 500 10px Georgia, serif; }
.tourism-status:not(.is-loading) { padding: 24px; border: 1px dashed #c5cdb8; border-radius: 15px; background: var(--white); }
.tourism-message { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; }
.tourism-message > span { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-soft); color: var(--sage); font-size: 18px; }
.tourism-message strong, .tourism-message p { display: block; margin: 0; }
.tourism-message strong { color: var(--ink); font-size: 14px; font-weight: 500; }
.tourism-message p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.tourism-message button { flex: 0 0 auto; min-height: 40px; margin-left: 8px; padding: 0 13px; border: 1px solid #c5cdb8; border-radius: 999px; background: var(--white); color: #4e6248; cursor: pointer; font-size: 12px; }
.tourism-message button:hover { background: var(--sage-soft); }
.tourism-skeleton { overflow: hidden; padding-bottom: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.tourism-skeleton i, .tourism-skeleton span, .tourism-skeleton b { position: relative; display: block; overflow: hidden; background: #e2e6d8; }
.tourism-skeleton i { height: 175px; }
.tourism-skeleton span { width: 70%; height: 18px; margin: 18px 17px 0; border-radius: 5px; }
.tourism-skeleton b { width: 46%; height: 11px; margin: 10px 17px 0; border-radius: 5px; }
.tourism-skeleton i::after, .tourism-skeleton span::after, .tourism-skeleton b::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: tourism-shimmer 1.25s infinite; }
@keyframes tourism-shimmer { to { transform: translateX(100%); } }

.verification-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 70px); margin-top: 26px; padding: clamp(28px, 4vw, 46px); border-radius: 24px; background: #56694f; color: var(--white); }
.verification-heading { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 18px; margin-bottom: 18px; }
.verification-heading img { width: 84px; height: 84px; border-radius: 23px; }
.verification-heading > div > span { display: block; color: var(--butter); font: 500 9px/1.6 var(--font-latin); letter-spacing: .12em; }
.verification-intro h2 { margin: 8px 0 0; font: 400 clamp(26px, 2.5vw, 34px)/1.4 var(--font-display); letter-spacing: -.04em; word-break: keep-all; overflow-wrap: anywhere; }
.verification-intro p { margin: 0; color: #e6eadf; font-size: 14px; line-height: 1.8; }
.verification-steps { margin: 0; padding: 0; list-style: none; }
.verification-steps li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 15px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.verification-steps li:first-child { padding-top: 0; }
.verification-steps i { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #a8b19c; border-radius: 50%; color: var(--butter); font: normal 400 11px var(--font-latin); }
.verification-steps strong, .verification-steps span { display: block; }
.verification-steps strong { margin-bottom: 4px; font-size: 14px; font-weight: 500; }
.verification-steps span { color: #dce3d6; font-size: 12px; line-height: 1.7; }
.launch-note { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 26px; padding: 26px 8px 0; border-top: 1px solid var(--line); }
.launch-note > div > span { color: var(--coral-deep); font: 500 9px var(--font-latin); letter-spacing: .14em; }
.launch-note h2 { margin: 8px 0 0; font: 400 clamp(23px, 2vw, 29px)/1.4 var(--font-display); letter-spacing: -.035em; word-break: keep-all; overflow-wrap: anywhere; }
.launch-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
footer { display: flex; justify-content: space-between; gap: 40px; padding: 30px max(20px, calc((100vw - 1368px) / 2)) 34px; border-top: 1px solid var(--line); color: var(--muted); background: #efece2; }
.footer-brand { flex: 0 0 auto; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--ink); font: 600 11px var(--font-latin); letter-spacing: .09em; }
.footer-brand span { margin-top: 7px; font-size: 12px; }
footer p { max-width: 650px; margin: 0; font-size: 12px; line-height: 1.8; text-align: right; }

/* Match this breakpoint to revealShopCard() so pin-to-card navigation stays correct. */
@media (max-width: 1040px) {
  .intro { grid-template-columns: 1.2fr 1fr; gap: 26px; }
  .intro h1 { font-size: 38px; }
  .filterbar { align-items: stretch; flex-direction: column; gap: 9px; padding: 16px 20px; }
  .filter-copy { display: flex; align-items: center; gap: 10px; }
  .filter-copy strong { margin: 0; }
  .filter-actions { width: 100%; }
  .discovery-panel { grid-template-columns: 1fr; gap: 12px; }
  .discovery-head > div { display: flex; align-items: center; gap: 10px; }
  .discovery-head strong { margin: 0; }
  .workspace { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .map-panel { height: auto; min-height: 430px; }
  .map-stage, .jeju-map { min-height: 305px; }
  .results { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 14px; overflow: visible; border-left: 0; border-top: 1px solid var(--line); }
  .results-head { position: static; grid-column: 1 / -1; margin: 0 0 2px; background: transparent; }
  .shop-card + .shop-card { margin-top: 0; }
  .empty-state { grid-column: 1 / -1; }
  .verification-panel { gap: 30px; }
}
@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; gap: 14px; }
  .intro-side { max-width: 560px; justify-self: start; }
  .intro-copy { margin-bottom: 10px; }
  .tourism-head { align-items: flex-start; }
  .tourism-source { padding-top: 4px; }
  .tourism-list, .tourism-status.is-loading { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .tourism-card, .tourism-skeleton { flex: 0 0 min(78vw, 320px); scroll-snap-align: start; }
  .verification-panel, .launch-note { grid-template-columns: 1fr; }
  .launch-note { gap: 16px; }
  footer { flex-direction: column; gap: 20px; }
  footer p { text-align: left; }
}
@media (max-width: 620px) {
  .topbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; min-height: 0; padding: 11px 16px; }
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 36px; font-size: 22px; }
  .brand strong { font-size: 10px; letter-spacing: .055em; }
  .brand small { margin-top: 2px; font-size: 8px; letter-spacing: .12em; }
  .top-actions { display: contents; }
  .admin-link { grid-column: 2; grid-row: 1; min-height: 36px; font-size: 11px; }
  .lang-nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; padding: 2px; }
  .lang { min-width: 0; min-height: 30px; font-size: 11px; }
  .app-shell { padding: 25px 16px 36px; }
  .intro { gap: 12px; margin-bottom: 22px; }
  .eyebrow { margin-bottom: 8px; font-size: 9px; }
  .intro h1 { font-size: clamp(30px, 8.2vw, 39px); line-height: 1.35; }
  .intro-copy { font-size: 13px; line-height: 1.75; }
  .curation-badge { min-height: 30px; font-size: 11px; }
  .curation-badge img { width: 22px; height: 22px; }
  .filterbar { gap: 8px; padding: 14px 14px 10px; border-radius: 18px 18px 0 0; }
  .filter-copy strong { font-size: 12px; }
  .filter { min-height: 38px; padding: 0 12px; font-size: 12px; }
  .discovery-panel { margin-bottom: 18px; padding: 13px 14px 14px; gap: 12px; border-radius: 0 0 18px 18px; }
  .discovery-head > div { display: block; }
  .discovery-head > div > span { display: none; }
  .discovery-head strong { font-size: 13px; }
  .filter-reset { min-height: 32px; font-size: 11px; }
  .discovery-controls { gap: 8px; }
  .discovery-controls select { min-height: 42px; padding-left: 9px; padding-right: 20px; font-size: 12px; }
  .amenity-filter { display: block; }
  .amenity-filter legend { float: none; font-size: 11px; }
  .amenity-filter-actions { margin-top: 7px; }
  .amenity-filter-actions button { min-height: 34px; font-size: 11px; }
  .workspace { border-radius: 20px; }
  .map-panel { min-height: 355px; padding: 19px 14px 14px; }
  .map-stage, .jeju-map { min-height: 245px; }
  .map-controls { top: 9px; right: 0; }
  .map-controls button { width: 36px; height: 36px; }
  .map-location-message { bottom: 4px; font-size: 11px; }
  .map-head > div > span { font-size: 9px; }
  .map-head strong { font-size: 14px; }
  .map-foot { padding-top: 10px; font-size: 9px; gap: 10px; }
  .map-foot span:nth-child(3) { display: none; }
  .region-name.map-minor { display: none; }
  .results { display: block; padding: 18px 13px; }
  .results-head { gap: 10px; margin-bottom: 15px; }
  .results-head h2 { font-size: 26px; }
  .results-actions { gap: 8px; }
  .results-actions > strong { font-size: 29px; }
  .nearby-sort { min-height: 38px; padding: 0 10px; font-size: 11px; }
  .shop-card { padding: 16px; border-radius: 16px; }
  .shop-card + .shop-card { margin-top: 11px; }
  .shop-photo { height: 126px; margin-bottom: 14px; }
  .shop-card h3 { font-size: 22px; }
  .latin-name { font-size: 10px; }
  .verified-chip b { display: none; }
  .badges { margin-bottom: 9px; }
  .badges > span { font-size: 11px; }
  .category { margin: 8px 0; font-size: 12px; }
  .address { font-size: 13px; }
  .card-meta { font-size: 12px; }
  .map-link { min-height: 40px; }
  .tourism-panel { margin-top: 22px; padding: 22px 16px; border-radius: 20px; }
  .tourism-head { flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .tourism-copy h2 { font-size: 27px; }
  .tourism-copy p { font-size: 13px; }
  .tourism-source { display: flex; align-items: center; gap: 10px; padding: 0; }
  .tourism-card figure, .tourism-skeleton i { height: 160px; }
  .tourism-card-body { padding: 16px; }
  .tourism-status:not(.is-loading) { padding: 18px; }
  .tourism-message { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
  .tourism-message > div { flex: 1; min-width: 150px; }
  .tourism-message button { margin-left: 48px; }
  .verification-panel { gap: 24px; margin-top: 22px; padding: 25px 20px; border-radius: 20px; }
  .verification-heading { grid-template-columns: 66px minmax(0, 1fr); gap: 13px; }
  .verification-heading img { width: 66px; height: 66px; border-radius: 18px; }
  .verification-heading > div > span { font-size: 8px; }
  .verification-intro h2 { font-size: 25px; }
  .verification-intro p { font-size: 13px; }
  .launch-note { margin-top: 22px; padding: 22px 2px 0; }
  footer { padding: 26px 20px; }
}
@media (max-width: 370px) {
  .app-shell { padding-right: 12px; padding-left: 12px; }
  .topbar { padding-right: 12px; padding-left: 12px; }
  .results-actions { align-items: flex-end; flex-direction: column-reverse; gap: 7px; }
  .results-actions > strong { display: none; }
  .discovery-controls { grid-template-columns: 1fr; }
  .filter-copy { flex-wrap: wrap; gap: 4px 10px; }
  .intro h1 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Catalog v22: one search field, category chips, collapsible secondary filters. */
.brand strong em { font-style: normal; font-weight: 400; color: var(--sage); }
.catalog-search-panel { margin-bottom: 14px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
#catalog-search-form > label { display: block; margin-bottom: 7px; color: var(--ink); font-size: .875rem; font-weight: 500; }
.catalog-search-input { display: flex; align-items: center; border: 1px solid #c8d0bd; border-radius: 12px; background: #f9faf4; }
.catalog-search-input:focus-within { outline: 2px solid var(--sage); outline-offset: 2px; }
.catalog-search-input input { flex: 1; min-width: 0; width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: inherit; outline: 0; background: transparent; color: var(--ink); font: 400 16px var(--font-ui); }
.catalog-search-input input::-webkit-search-cancel-button { display: none; }
.catalog-search-input button { width: 42px; min-height: 42px; border: 0; background: transparent; font-size: 22px; cursor: pointer; }
.catalog-category-field { min-width: 0; margin: 13px 0 0; padding: 0; border: 0; }
.catalog-category-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.catalog-category-actions button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); font-size: .875rem; cursor: pointer; }
.catalog-category-actions button.is-active { border-color: var(--sage); background: var(--sage); color: white; }
.catalog-filter-details { margin-bottom: 22px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 22px 22px; background: #f2f1e8; }
.catalog-filter-details > summary { min-height: 44px; padding: 12px 22px; color: var(--sage); cursor: pointer; font-size: .875rem; }
.catalog-filter-details > summary b { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 8px; border-radius: 50%; background: var(--sage); color: white; font-size: .75rem; }
.catalog-filter-details .discovery-panel { margin: 0; padding-top: 4px; border: 0; }
.catalog-filter-help { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.shop-menu-list { margin: 12px 0 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.shop-menu-list h4 { margin: 0 0 10px; color: var(--sage); font-size: .875rem; font-weight: 600; }
.shop-menu-list ul { margin: 0; padding: 0; list-style: none; }
.menu-item { padding: 9px 0; border-bottom: 1px solid rgba(66,61,51,.09); }
.menu-item:first-child { padding-top: 0; }
.menu-item-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.menu-item-heading strong { color: var(--ink); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.menu-item-heading > span { color: var(--coral-deep); font-size: .875rem; font-weight: 500; }
.menu-item p { margin: 5px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.menu-item-meta { display: flex; gap: 7px; align-items: center; margin-top: 5px; color: var(--muted); font-size: .75rem; }
.menu-item-meta b { padding: 1px 6px; border-radius: 5px; background: var(--sea-soft); color: var(--coral-deep); font-weight: 500; }
.shop-menu-list > small { display: block; margin-top: 8px; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.catalog-details { pointer-events: auto; margin-top: 8px; }
.catalog-details summary { padding: 9px 0; color: var(--sage); font-size: .875rem; cursor: pointer; }
.shop-holidays { margin: 0 0 13px; padding: 10px 12px; border-radius: 10px; background: #f5ecdf; }
.shop-holidays p { margin: 3px 0; color: var(--ink); font-size: .875rem; line-height: 1.7; overflow-wrap: anywhere; }
.shop-holidays b { margin-right: 5px; font-weight: 500; }
.closed-today { display: inline-block; margin-bottom: 4px; color: #934b30; font-size: .875rem; font-weight: 600; }
.shop-payments { display: flex; flex-wrap: wrap; gap: 4px 9px; margin: 12px 0; font-size: .875rem; color: var(--muted); }
.shop-payments b { color: var(--sage); font-weight: 500; }
.shop-keywords { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 13px; }
.shop-keywords button { min-height: 36px; padding: 3px 9px; border: 1px solid #d8ddcf; border-radius: 999px; color: #4e6248; background: var(--sage-soft); cursor: pointer; font-size: .875rem; pointer-events: auto; overflow-wrap: anywhere; max-width: 100%; }
@media (max-width: 620px) {
  .catalog-search-panel { padding: 15px 14px; border-radius: 17px; }
  .catalog-category-actions { gap: 6px; }
  .catalog-category-actions button { padding: 0 11px; min-height: 40px; }
  .catalog-filter-details { border-radius: 0 0 18px 18px; margin-bottom: 18px; }
  .catalog-filter-details > summary { padding: 11px 14px; }
}

/* ONLOCA JEJU: treatment-first discovery, within the existing warm visual system. */
.brand-mark { flex: 0 0 auto; border-radius: 50%; width: 42px; height: 42px; font-family: var(--font-latin); font-size: 28px; }
.brand strong { font-size: 1.125rem; letter-spacing: .12em; }
.brand strong em { display: inline-block; padding-left: 8px; margin-left: 5px; border-left: 1px solid var(--line); font-size: .7em; letter-spacing: .14em; }
.brand small { font-size: .625rem; letter-spacing: .12em; }
.intro { margin-bottom: 22px; }
.intro h1 { font-size: clamp(32px, 3.3vw, 44px); }
.intro-copy { font-size: 1rem; }
.onloca-search { padding: 16px 20px; background: var(--white); border-radius: 18px; }
.onloca-search #catalog-search-form { display: grid; grid-template-columns: minmax(160px, .42fr) minmax(0, 1fr); align-items: center; gap: 20px; }
.onloca-search #catalog-search-form > label { margin: 0; font: 400 1.25rem/1.4 var(--font-display); }
.onloca-search .catalog-search-input { background: var(--paper); }
.onloca-discovery { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 17px 28px; padding: 20px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 18px; background: #f0f2e9; }
.onloca-discovery .discovery-head { grid-column: 1 / -1; }
.onloca-discovery .discovery-head strong { font-size: 1rem; }
.onloca-discovery .discovery-head > div > span { font-size: .75rem; }
.onloca-discovery .catalog-category-field { margin: 0; }
.onloca-discovery .catalog-category-field legend { margin-bottom: 9px; font-size: .875rem; }
.onloca-discovery .catalog-category-field small { display: block; margin-top: 9px; font-size: .75rem; line-height: 1.6; color: var(--muted); }
.onloca-discovery .discovery-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: start; }
.onloca-discovery .discovery-controls label { font-size: .875rem; gap: 9px; }
.onloca-discovery .discovery-controls select, .payment-filter-group select { min-width: 0; width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 25px 8px 11px; color: var(--ink); background: var(--white); font: 400 1rem var(--font-ui); }
.onloca-amenities { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }
.onloca-amenities > summary { min-height: 36px; padding: 5px 0; color: var(--sage); font-size: .875rem; cursor: pointer; }
.onloca-amenities > summary b { margin-left: 8px; padding: 2px 6px; border-radius: 5px; background: var(--sage); color: var(--white); font-size: .75rem; }
.onloca-amenities .amenity-filter { margin-top: 10px; }
.onloca-amenities .amenity-filter-actions button { min-height: 38px; font-size: .875rem; }
.payment-filter-group { display: grid; grid-template-columns: 100px minmax(0, 280px); align-items: center; gap: 10px 15px; margin: 16px 0 4px; }
.payment-filter-group > label { font-size: .875rem; }
.payment-filter-group p { grid-column: 1 / -1; }
.filterbar { margin-bottom: 16px; border-radius: 18px; }
.shop-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; }
.shop-name-row h3 { min-width: 0; }
[data-shop-signature] { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; max-width: 100%; padding: 5px 9px; border: 1px solid #d2dac8; border-radius: 9px; background: var(--sage-soft); color: var(--ink); font-size: .875rem; overflow-wrap: anywhere; }
[data-shop-signature] b { flex: 0 0 auto; color: var(--sage); font-size: .75rem; font-weight: 500; }
[data-shop-signature] span { min-width: 0; overflow-wrap: anywhere; }
.footer-brand strong { font-size: 1rem; letter-spacing: .12em; }
@media (max-width: 1040px) {
  .onloca-discovery { grid-template-columns: 1fr; }
  .onloca-discovery .discovery-head > div { display: block; }
  .onloca-discovery .discovery-head strong { margin-top: 5px; }
}
@media (max-width: 620px) {
  .brand strong { font-size: .875rem; }
  .brand-mark { width: 34px; height: 34px; font-size: 24px; }
  .brand small { display: none; }
  .brand strong em { padding-left: 5px; margin-left: 2px; }
  .intro h1 { font-size: clamp(30px, 8vw, 38px); }
  .intro-copy { font-size: .875rem; }
  .onloca-search { padding: 14px; }
  .onloca-search #catalog-search-form { grid-template-columns: 1fr; gap: 10px; }
  .onloca-search #catalog-search-form > label { font-size: 1.125rem; }
  .onloca-discovery { padding: 16px 14px; gap: 16px; }
  .onloca-discovery .discovery-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onloca-discovery .discovery-controls label:last-child { grid-column: 1 / -1; }
  .payment-filter-group { grid-template-columns: 1fr; gap: 7px; }
  .shop-name-row { align-items: flex-start; flex-direction: column; }
  .filterbar { padding: 14px; border-radius: 18px; }
}
