/* ===================== v2: map-first home & polish ===================== */
:root { --sh-xl: 0 2px 6px rgba(15,40,70,.05), 0 24px 60px rgba(15,40,70,.14); }
body { background-color: #F3F7FB; }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.section-h h2 { font-size: clamp(22px, 2.6vw, 30px); }

/* hero map */
.home-hero { padding: 14px 14px 0; }
.hero-map { position: relative; height: min(84vh, 780px); min-height: 520px; overflow: hidden; border-radius: 28px; isolation: isolate; box-shadow: var(--sh-xl); border: 0; }
.wmap-canvas { position: absolute; inset: 0; background: #DCEAF3; }
.hero-panel { position: absolute; z-index: 600; left: 22px; top: 22px; width: 380px; max-height: calc(100% - 44px); overflow: auto;
  background: rgba(255,255,255,.9); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.9); border-radius: 24px; padding: 22px; box-shadow: 0 20px 50px rgba(15,40,70,.18); }
.hero-panel h1 { font-size: 40px; margin: 14px 0 8px; }
.hero-panel .accent { background: linear-gradient(90deg, var(--sky), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-panel .hero-lead { font-size: 14.5px; margin: 0 0 16px; color: var(--ink2); }
.hero-map .legend { left: auto; right: 64px; top: 18px; }
.home .hero-map .map-panel { left: 424px; right: 22px; }
.pick { display: block; border-radius: 18px; padding: 16px 18px; color: #fff; text-decoration: none !important; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0EA5E9, #0EA5A4 60%, #10B981); box-shadow: 0 12px 30px rgba(14,165,164,.35); transition: transform .15s; }
.pick:hover { transform: translateY(-2px); }
.pick.next { background: linear-gradient(135deg, #3B82F6, #6366F1 55%, #8B5CF6); box-shadow: 0 12px 30px rgba(99,102,241,.32); }
.pick.calm { background: linear-gradient(135deg, #64748B, #94A3B8); box-shadow: none; }
.pick::after { content: ''; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); }
.pick-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pick-k { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.pick-arrow { width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-weight: 800; }
.pick-name { font-size: 21px; font-weight: 800; margin: 4px 0 8px; letter-spacing: -.01em; }
.pick-row { display: flex; align-items: flex-end; gap: 14px; }
.pick-speed { font-size: 48px; font-weight: 800; line-height: .9; letter-spacing: -.03em; white-space: nowrap; }
.pick-speed small { font-size: 14px; margin-left: 3px; opacity: .9; letter-spacing: 0; }
.pick-meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 700; opacity: .95; padding-bottom: 2px; }
.pick-meta .cap { display: block; }
.pick-meta .cap::first-letter { text-transform: uppercase; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mini-stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.mini-stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.mini-stats b small { font-size: 13px; color: var(--muted); }
.mini-stats span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.3; margin-top: 2px; }

/* markers v2 */
.wm { position: relative; width: 60px; height: 60px; }
.wm .arr { position: absolute; inset: 0; }
.wm .ring { position: absolute; inset: 13px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 0;
  box-shadow: 0 0 0 4px var(--c), 0 6px 16px rgba(15,40,70,.28); color: var(--i); transition: transform .15s; }
.wm .ring b { font-size: 13px; font-weight: 800; }
.wm.go .ring::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(22,163,74,.7); animation: ping 1.8s infinite; }
@keyframes ping { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.55); opacity: 0; } }
.wm.off .ring { box-shadow: 0 0 0 4px #F87171, 0 6px 16px rgba(15,40,70,.28); }
.leaflet-marker-icon:hover .wm .ring { transform: scale(1.12); }
.wm .lbl { top: 54px; border-radius: 8px; padding: 2px 8px; font-size: 11.5px; box-shadow: 0 2px 8px rgba(15,40,70,.15); }
.leaflet-tile-pane { filter: saturate(.5) brightness(1.07) contrast(.93); }

/* week v2 */
.wday { padding: 16px 14px; gap: 4px; border-radius: 18px; }
.wday.has { background: linear-gradient(180deg, #ECFDF5, #fff 70%); border-color: #A7F3D0; }
.wday-big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.wday-big small { font-size: 12px; color: var(--muted); letter-spacing: 0; }
.wday-w { font-size: 12px; font-weight: 700; color: var(--muted); }
.wday-bar { margin: 4px 0 2px; }

/* spot card v2 */
.spot-card { overflow: hidden; padding-top: 22px; }
.spot-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--bc); opacity: .9; }
.spot-card.tone-great::before, .spot-card.tone-good::before { background: linear-gradient(90deg, #2DD4BF, #22C55E); height: 6px; }
.spot-card.tone-danger::before { background: #F87171; }
.bars7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 96px; padding-top: 8px; border-top: 1px dashed var(--line); }
.bar7 { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; min-width: 0; }
.bar7 i { display: block; flex: none; width: 100%; max-width: 26px; border-radius: 7px 7px 4px 4px; min-height: 5px; }
.bar7 i[style*="height"] { max-height: 50px; }
.bar7 .bv { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.bar7 .bv.on { color: #15803D; }
.bar7 .bd { font-size: 10.5px; font-weight: 700; color: var(--muted); }

/* promo */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo { border-radius: 24px; padding: 26px; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; gap: 8px; min-height: 210px; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; box-shadow: var(--sh); }
.promo:hover { transform: translateY(-3px); box-shadow: var(--sh-h); }
.promo.p1 { background: linear-gradient(150deg, #E0F2FE, #F0F9FF 60%, #fff); }
.promo.p2 { background: linear-gradient(150deg, #DCFCE7, #F0FDF4 60%, #fff); }
.promo.p3 { background: linear-gradient(150deg, #EDE9FE, #F5F3FF 60%, #fff); }
.promo .ic { width: 48px; height: 48px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--brand-d); box-shadow: var(--sh); margin-bottom: 6px; }
.promo .ic svg { width: 24px; height: 24px; }
.promo h3 { font-size: 20px; }
.promo p { margin: 0; color: var(--ink2); font-weight: 600; font-size: 14.5px; }
.promo .go { margin-top: auto; font-weight: 800; color: var(--sky); }

@media (max-width: 1020px) {
  .promo-grid { grid-template-columns: 1fr; }
  .promo { min-height: 0; }
  .hero-panel { width: 340px; }
  .home .hero-map .map-panel { left: 380px; }
}
@media (max-width: 760px) {
  .home-hero { padding: 0; }
  .hero-map { height: auto; min-height: 0; border-radius: 0; display: flex; flex-direction: column; box-shadow: none; overflow: visible; background: transparent; }
  .hero-map .wmap-canvas { position: relative; height: 58vh; border-radius: 0 0 26px 26px; overflow: hidden; box-shadow: var(--sh); }
  .hero-map .legend { display: none; }
  .home .hero-map .map-panel { position: absolute; left: 10px; right: 10px; top: calc(58vh - 96px); bottom: auto; }
  .hero-panel { position: relative; left: auto; top: auto; width: auto; max-height: none; margin: 14px 16px 0; background: #fff; box-shadow: var(--sh); }
  .hero-panel h1 { font-size: 30px; margin-top: 10px; }
}
