/* TWR WONDERLAND visitor explorer. Flat: no glow, no shadows. */
body.wl { overflow: hidden; }
#wlMap { position: fixed; inset: 0; background: #0c0e11; z-index: 0; }
#wlMap .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.35); }
#wlMap .leaflet-control-attribution { display: none; }
.leaflet-container { font: 13px var(--font); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--text); border: 1px solid var(--line2); box-shadow: none; }
.leaflet-popup-content { margin: 10px 12px; }
.leaflet-bar a { background: var(--surface); color: var(--text); border-color: var(--line2) !important; }

.wl-top { position: fixed; z-index: 20; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.wl-top > * { pointer-events: auto; }
.wl-mark { display: inline-flex; align-items: center; gap: 9px; background: rgba(12, 14, 17, .9); border: 1px solid var(--line2); border-radius: 99px; padding: 7px 14px 7px 9px; color: var(--text); font-size: 13px; letter-spacing: .14em; text-decoration: none !important; }
.wl-mark b { color: var(--accent); font-weight: 800; }
.wl-glyph { width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: 5px; position: relative; transform: rotate(45deg); flex: none; }
.wl-glyph::after { content: ''; position: absolute; inset: 4px; background: var(--accent); border-radius: 1px; }
.wl-glyph.lg { width: 44px; height: 44px; border-width: 3px; border-radius: 9px; margin: 0 auto 18px; }
.wl-glyph.lg::after { inset: 9px; }
.wl-top-act { margin-left: auto; display: flex; gap: 6px; }
.wl-ib { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(12, 14, 17, .9); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; text-decoration: none !important; }
.wl-ib:hover { border-color: var(--muted); }
.wl-ib.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* panel: bottom sheet on phones, left column on wide screens */
.wl-panel { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; height: 58vh; background: var(--bg); border-top: 1px solid var(--line2); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; transition: height .28s cubic-bezier(.2, .8, .2, 1); }
.wl-panel.min { height: 200px; }
.wl-panel.max { height: calc(100vh - 70px - env(safe-area-inset-top)); }
.wl-handle { padding: 8px 0 2px; display: flex; justify-content: center; cursor: grab; touch-action: none; }
.wl-handle span { width: 42px; height: 4px; border-radius: 4px; background: var(--line2); }
@media (min-width: 900px) {
  .wl-panel, .wl-panel.min, .wl-panel.max { top: 0; right: auto; width: 440px; height: 100%; border-top: 0; border-right: 1px solid var(--line2); border-radius: 0; padding-top: 64px; }
  .wl-handle { display: none; }
  .wl-top { left: 10px; }
  #wlMap { left: 440px; }
}
.wl-hero { padding: 6px 18px 10px; }
.wl-kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.wl-hero h1 { font-size: 26px; line-height: 1.12; margin: 0 0 6px; letter-spacing: -.02em; }
.wl-hero .acc { color: var(--accent); }
.wl-hero p { font-size: 13px; margin-bottom: 10px; }
.wl-panel.min .wl-hero p { display: none; }
.wl-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-cta .btn { flex: 1; justify-content: center; min-width: 140px; }
.wl-tabs { display: flex; gap: 2px; padding: 4px 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex: none; }
.wl-tab { flex: 1; min-width: 70px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 9px; color: var(--muted); font-size: 11px; font-weight: 650; cursor: pointer; border-bottom: 2px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0; font-family: var(--font); }
.wl-tab.on { color: var(--text); border-bottom-color: var(--accent); }
.wl-tab .n { font-size: 10px; color: var(--accent); min-height: 12px; }
.wl-body { flex: 1; overflow: auto; padding: 12px 14px 8px; -webkit-overflow-scrolling: touch; }
.wl-foot { padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); flex: none; }

/* list cards */
.wl-card { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; margin-bottom: 8px; }
.wl-card:hover { border-color: var(--line2); }
.wl-card.on { border-color: var(--accent); }
.wl-card .th { width: 58px; height: 58px; border-radius: 9px; background: var(--surface2) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.wl-card .t { font-weight: 700; font-size: 14px; }
.wl-card .s { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wl-card .d { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.wl-detail { border: 1px solid var(--accent); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: var(--surface); }
.wl-detail h2 { margin: 0 0 4px; }
.wl-detail .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.wl-detail .btns .btn { justify-content: center; }
.wl-section { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 14px 0 8px; }
.wl-drop { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); margin-bottom: 10px; }
.wl-drop .img { aspect-ratio: 16 / 9; background: var(--surface2) center/cover no-repeat; }
.wl-drop .b { padding: 12px; }
.wl-drop .b .row { margin-top: 8px; }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.wl-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.wl-item .img { aspect-ratio: 1; background: var(--surface2) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.wl-item .b { padding: 8px; font-size: 12px; }
.wl-item .b b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.wl-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.wl-stat div { border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; background: var(--surface); }
.wl-stat b { display: block; font-size: 20px; color: var(--accent); }
.wl-stat span { font-size: 11px; color: var(--muted); }
.wl-news { border-left: 2px solid var(--accent); padding: 4px 0 4px 10px; margin-bottom: 8px; font-size: 13px; }
.wl-news small { display: block; }
.wl-setting { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wl-setting:last-child { border-bottom: 0; }
.wl-setting .tx { flex: 1; font-size: 13px; }
.wl-setting .tx span { display: block; font-size: 12px; color: var(--muted); }
.wl-switch { position: relative; width: 44px; height: 26px; flex: none; }
.wl-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.wl-switch i { position: absolute; inset: 0; background: var(--surface2); border: 1px solid var(--line2); border-radius: 26px; transition: background .15s; cursor: pointer; }
.wl-switch i::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--muted); border-radius: 50%; transition: transform .15s, background .15s; }
.wl-switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.wl-switch input:checked + i::after { transform: translateX(18px); background: var(--accent-ink); }
.wl-switch input:disabled + i { opacity: .4; cursor: not-allowed; }
.wl-app { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
.wl-app .ico { color: var(--accent); }
.wl-app .tx { flex: 1; font-size: 13px; }
.wl-app .tx span { display: block; color: var(--muted); font-size: 12px; }

/* map markers */
.wl-pin { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.wl-pin.sel { background: var(--accent); color: var(--accent-ink); }
.wl-pin.drop { border-color: #c084fc; color: #c084fc; border-radius: 8px; transform: rotate(45deg); }
.wl-pin.drop svg { transform: rotate(-45deg); }
.wl-you { width: 16px; height: 16px; border-radius: 50%; background: #60a5fa; border: 3px solid #0c0e11; outline: 2px solid #60a5fa; }

/* intro */
.wl-intro { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow: auto; display: flex; align-items: center; justify-content: center; padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom)); }
.wl-intro-in { max-width: 520px; width: 100%; text-align: center; animation: wl-rise .5s cubic-bezier(.2, .8, .2, 1); }
.wl-big { font-size: 27px; line-height: 1.2; letter-spacing: -.02em; margin: 6px 0 10px; }
.wl-motto { color: var(--accent); font-weight: 700; letter-spacing: .04em; margin-bottom: 24px; }
.wl-points { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.wl-points li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.wl-points li > span { color: var(--accent); flex: none; margin-top: 2px; }
.wl-small { font-size: 12px; margin-top: 14px; }
@keyframes wl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wl-pin.mini { width: 22px; height: 22px; border-width: 1.5px; margin: 4px; }
.wl-pin.mini svg { width: 12px; height: 12px; }


/* Get app tab */
.wl-appcard { padding: 6px 2px 10px; }
.wl-steps { margin: 14px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.5; }
.wl-steps li { margin-bottom: 6px; }
.wl-qr { background: #fff; border-radius: 10px; padding: 10px; width: max-content; margin: 4px auto 10px; line-height: 0; }
.wl-tab { min-width: 56px; }

.wl-hero .wl-hero-line { font-size: 13.5px; line-height: 1.5; color: var(--text); margin-bottom: 12px; }
.wl-hero .wl-hero-line .acc { color: var(--accent); font-weight: 700; }
.wl-panel.min .wl-hero .wl-hero-line { display: none; }

/* 2.1.5: the whole panel scrolls as one (hero scrolls away), the handle and the tabs stay pinned on top,
   so a tab's content is never hidden behind the hero card */
.wl-panel { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.wl-panel .wl-body { flex: none; overflow: visible; min-height: 60vh; }
.wl-handle { position: sticky; top: 0; z-index: 4; background: var(--bg); border-radius: 18px 18px 0 0; }
.wl-tabs { position: sticky; top: 14px; z-index: 3; background: var(--bg); }
@media (min-width: 900px) { .wl-tabs { top: 0; } .wl-panel .wl-body { min-height: 0; } }
.wl-panel > * { flex-shrink: 0; }
.wl-panel .wl-body { min-height: calc(100vh - 150px - env(safe-area-inset-top)); }
@media (min-width: 900px) { .wl-panel .wl-body { min-height: calc(100vh - 140px); } }
