/* ═══════════════════════════════════════════════════════════════
   Wrocław Live OS — Plugin Stylesheet v2.0
   All selectors are scoped to .wl-os-wrap or .wl-shell
   No global resets — safe for any WordPress theme (incl. Yelly)
═══════════════════════════════════════════════════════════════ */

/* ─── CSS custom properties (scoped) ─────────────────────────── */
.wl-os-wrap {
  --wl-bg:      #080c10;
  --wl-bg2:     #0d1219;
  --wl-bg3:     #131922;
  --wl-bg4:     #1a2330;
  --wl-border:  rgba(255,255,255,0.06);
  --wl-border2: rgba(255,255,255,0.13);
  --wl-text:    #e8edf5;
  --wl-text2:   #8a95a8;
  --wl-text3:   #4a5568;
  --wl-amber:   #f5a623;
  --wl-amber2:  rgba(245,166,35,0.15);
  --wl-blue:    #4d9de0;
  --wl-green:   #3ecf6e;
  --wl-red:     #e05252;
  --wl-purple:  #9b8aff;
  --wl-r:       8px;
  --wl-r2:      14px;
  --wl-font-d:  'Syne', sans-serif;
  --wl-font-m:  'DM Mono', monospace;
  --wl-font-b:  'Inter', sans-serif;

  box-sizing: border-box;
  font-family: var(--wl-font-b);
  position: relative;
  width: 100%;
}

/* Force box-sizing inside widget only */
.wl-os-wrap *,
.wl-os-wrap *::before,
.wl-os-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Overlay & popup (scoped z-index, won't fight theme) ──── */
.wl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 99990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.wl-overlay.open { opacity: 1; pointer-events: all; }

.wl-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(490px, 94vw);
  background: var(--wl-bg2);
  border: 0.5px solid var(--wl-border2);
  border-radius: 20px;
  z-index: 99991;
  opacity: 0;
  pointer-events: none;
  transition: all 0.26s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
.wl-popup.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}
.wl-popup-header {
  padding: 20px 20px 16px;
  border-bottom: 0.5px solid var(--wl-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.wl-popup-name {
  font-family: var(--wl-font-d);
  font-size: 20px;
  font-weight: 800;
  color: var(--wl-text);
  line-height: 1.2;
}
.wl-popup-category {
  font-family: var(--wl-font-m);
  font-size: 9px;
  color: var(--wl-text3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.wl-popup-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--wl-bg4);
  border: 0.5px solid var(--wl-border);
  color: var(--wl-text2);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
  line-height: 1;
}
.wl-popup-close:hover { background: var(--wl-bg3); color: var(--wl-text); }
.wl-popup-body { padding: 16px 20px 22px; }
.wl-popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.wl-popup-stat {
  background: var(--wl-bg3);
  border-radius: var(--wl-r);
  padding: 10px 12px;
}
.wl-popup-stat-label {
  font-family: var(--wl-font-m);
  font-size: 8px;
  color: var(--wl-text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.wl-popup-stat-val {
  font-family: var(--wl-font-m);
  font-size: 14px;
  font-weight: 500;
}
.wl-popup-best-time {
  background: var(--wl-amber2);
  border: 0.5px solid rgba(245,166,35,0.28);
  border-radius: var(--wl-r);
  padding: 10px 14px;
  margin-bottom: 12px;
}
.wl-popup-best-label {
  font-family: var(--wl-font-m);
  font-size: 8px;
  color: var(--wl-amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.wl-popup-best-val {
  font-size: 13px;
  color: var(--wl-text);
  font-weight: 500;
}
.wl-popup-desc {
  font-size: 12px;
  color: var(--wl-text2);
  line-height: 1.65;
}
.wl-popup-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.wl-popup-tag {
  font-family: var(--wl-font-m);
  font-size: 9px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 0.5px solid var(--wl-border2);
  color: var(--wl-text2);
  letter-spacing: 0.04em;
}

/* ─── Shell ─────────────────────────────────────────────────── */
.wl-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 0.5px solid var(--wl-border2);
  border-radius: 20px;
  overflow: hidden;
  background: var(--wl-bg);
  position: relative;
  /* Subtle amber ambient glow */
  box-shadow:
    0 0 0 0.5px rgba(245,166,35,0.06),
    0 4px 40px rgba(0,0,0,0.6),
    0 0 120px rgba(245,166,35,0.03);
}

/* Scanline overlay — premium feel */
.wl-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.011) 2px,
    rgba(255,255,255,0.011) 4px
  );
  pointer-events: none;
  z-index: 2;
  border-radius: 20px;
}

/* Corner accent marks */
.wl-shell::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,166,35,0.3) 30%,
    rgba(245,166,35,0.5) 50%,
    rgba(245,166,35,0.3) 70%,
    transparent 100%
  );
  z-index: 3;
}

/* ─── Top bar ────────────────────────────────────────────────── */
.wl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 0.5px solid var(--wl-border);
  background: var(--wl-bg2);
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 4;
}

.wl-logo {
  font-family: var(--wl-font-d);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--wl-text);
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none !important;
}
.wl-logo span { color: var(--wl-amber); }

.wl-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wl-green);
  box-shadow: 0 0 0 2px rgba(62,207,110,0.2), 0 0 8px rgba(62,207,110,0.5);
  animation: wl-pulse-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes wl-pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 2px rgba(62,207,110,0.2), 0 0 8px rgba(62,207,110,0.5); }
  50%       { opacity: 0.4; box-shadow: 0 0 0 4px rgba(62,207,110,0.08), 0 0 4px rgba(62,207,110,0.2); }
}

.wl-time-block {
  font-family: var(--wl-font-m);
  font-size: 26px;
  font-weight: 400;
  color: var(--wl-amber);
  letter-spacing: 0.06em;
  line-height: 1;
  /* Subtle number glow */
  text-shadow: 0 0 20px rgba(245,166,35,0.35);
}
.wl-time-sub {
  font-family: var(--wl-font-m);
  font-size: 10px;
  color: var(--wl-text3);
  margin-top: 3px;
  letter-spacing: 0.08em;
}

.wl-mood-badge {
  font-family: var(--wl-font-d);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  border: 0.5px solid var(--wl-border2);
  background: var(--wl-bg3);
  color: var(--wl-text);
  transition: all 0.4s;
}

.wl-lang-switcher { display: flex; gap: 3px; }
.wl-lang-btn {
  font-family: var(--wl-font-m);
  font-size: 10px;
  padding: 5px 9px;
  border: 0.5px solid var(--wl-border);
  background: transparent;
  color: var(--wl-text3);
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.18s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}
.wl-lang-btn.active {
  background: var(--wl-amber2);
  border-color: var(--wl-amber);
  color: var(--wl-amber);
}
.wl-lang-btn:hover:not(.active) {
  color: var(--wl-text);
  border-color: var(--wl-border2);
}

/* ─── Weather strip ──────────────────────────────────────────── */
.wl-weather-strip {
  display: flex;
  border-bottom: 0.5px solid var(--wl-border);
  background: var(--wl-bg2);
  position: relative;
  z-index: 4;
}
.wl-witem {
  flex: 1;
  padding: 11px 18px;
  border-right: 0.5px solid var(--wl-border);
  min-width: 0;
  transition: background 0.18s;
}
.wl-witem:last-child { border-right: none; }
.wl-witem:hover { background: var(--wl-bg3); }

.wl-wlabel {
  font-family: var(--wl-font-m);
  font-size: 9px;
  color: var(--wl-text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.wl-wval {
  font-family: var(--wl-font-m);
  font-size: 16px;
  font-weight: 500;
  color: var(--wl-text);
  line-height: 1.2;
}
.wl-wval .accent { color: var(--wl-amber); }
.wl-wsub {
  font-size: 10px;
  color: var(--wl-text2);
  margin-top: 2px;
}

/* ─── Main grid ──────────────────────────────────────────────── */
.wl-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 440px;
  position: relative;
}

/* ─── Map zone ───────────────────────────────────────────────── */
.wl-map-zone {
  position: relative;
  border-right: 0.5px solid var(--wl-border);
  background: var(--wl-bg);
  overflow: hidden;
}
.wl-map-title {
  position: absolute;
  top: 16px; left: 18px;
  font-family: var(--wl-font-m);
  font-size: 9px;
  color: var(--wl-text3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 5;
}
.wl-map-svg {
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: block;
}

/* District node hover pulse */
.wl-district-node { cursor: pointer; }
.wl-district-node circle { transition: r 0.2s, opacity 0.2s; }
.wl-district-node:hover .wl-pulse-ring {
  animation: wl-ring-out 0.7s ease forwards;
}
@keyframes wl-ring-out {
  0%   { r: 20; opacity: 0.5; stroke-width: 1; }
  100% { r: 42; opacity: 0;   stroke-width: 0.5; }
}

/* ─── Right panel ────────────────────────────────────────────── */
.wl-right {
  display: flex;
  flex-direction: column;
  background: var(--wl-bg2);
}
.wl-panel-section {
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--wl-border);
}
.wl-panel-section--grow { flex: 1; }
.wl-section-title {
  font-family: var(--wl-font-m);
  font-size: 9px;
  color: var(--wl-text3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* District list */
.wl-district-list { display: flex; flex-direction: column; gap: 4px; }
.wl-drow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: var(--wl-r);
  cursor: pointer;
  border: 0.5px solid transparent;
  transition: all 0.18s;
}
.wl-drow:hover {
  background: var(--wl-bg3);
  border-color: var(--wl-border);
}
.wl-drow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
.wl-drow-name {
  font-family: var(--wl-font-b);
  font-size: 12px;
  font-weight: 500;
  flex: 1;
  color: var(--wl-text);
}
.wl-drow-status {
  font-family: var(--wl-font-m);
  font-size: 9px;
  color: var(--wl-text2);
}
.wl-drow-bar {
  width: 42px; height: 3px;
  border-radius: 2px;
  background: var(--wl-bg4);
  overflow: hidden;
}
.wl-drow-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.2s ease;
}

/* Energy meter */
.wl-energy { display: flex; align-items: center; gap: 10px; }
.wl-energy-track {
  flex: 1; height: 6px;
  background: var(--wl-bg4);
  border-radius: 3px;
  overflow: hidden;
}
.wl-energy-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #3ecf6e 0%, #f5a623 55%, #e05252 100%);
  transition: width 1.8s ease;
}
.wl-energy-pct {
  font-family: var(--wl-font-m);
  font-size: 14px;
  color: var(--wl-amber);
  min-width: 34px;
  text-shadow: 0 0 12px rgba(245,166,35,0.4);
}
.wl-energy-desc {
  margin-top: 6px;
  font-family: var(--wl-font-m);
  font-size: 9px;
  color: var(--wl-text3);
  letter-spacing: 0.06em;
}
.wl-micro-text {
  font-family: var(--wl-font-m);
  font-size: 10px;
  color: var(--wl-text2);
  line-height: 1.75;
}

/* ─── Action cards ───────────────────────────────────────────── */
.wl-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0.5px solid var(--wl-border);
  position: relative;
}
.wl-action {
  padding: 15px 17px;
  border-right: 0.5px solid var(--wl-border);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.wl-action:last-child { border-right: none; }
.wl-action:hover { background: var(--wl-bg3); }

/* Top accent line per type */
.wl-action::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.wl-action--good::before  { background: linear-gradient(90deg, #3ecf6e, #2ab85a); }
.wl-action--warn::before  { background: linear-gradient(90deg, #e05252, #c43a3a); }
.wl-action--info::before  { background: linear-gradient(90deg, #4d9de0, #3180c0); }
.wl-action--micro::before { background: linear-gradient(90deg, #9b8aff, #7a68e8); }

/* Hover glow under top accent */
.wl-action::after {
  content: '';
  position: absolute;
  top: 2px; left: 0; right: 0;
  height: 30px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.wl-action--good:hover::after  { background: linear-gradient(180deg, rgba(62,207,110,0.06), transparent); opacity: 1; }
.wl-action--warn:hover::after  { background: linear-gradient(180deg, rgba(224,82,82,0.06), transparent); opacity: 1; }
.wl-action--info:hover::after  { background: linear-gradient(180deg, rgba(77,157,224,0.06), transparent); opacity: 1; }
.wl-action--micro:hover::after { background: linear-gradient(180deg, rgba(155,138,255,0.06), transparent); opacity: 1; }

.wl-atag {
  font-family: var(--wl-font-m);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.wl-atag--good  { color: var(--wl-green); }
.wl-atag--warn  { color: var(--wl-red); }
.wl-atag--info  { color: var(--wl-blue); }
.wl-atag--micro { color: var(--wl-purple); }

.wl-aname {
  font-family: var(--wl-font-d);
  font-size: 13px;
  font-weight: 600;
  color: var(--wl-text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.wl-asub {
  font-size: 10px;
  color: var(--wl-text2);
  line-height: 1.45;
}

/* ─── Route builder ──────────────────────────────────────────── */
.wl-route-section {
  border-top: 0.5px solid var(--wl-border);
  background: var(--wl-bg2);
}
.wl-route-header {
  padding: 18px 22px 0;
}
.wl-route-title {
  font-family: var(--wl-font-d);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--wl-text);
}
.wl-route-subtitle {
  font-family: var(--wl-font-m);
  font-size: 10px;
  color: var(--wl-text3);
  margin-top: 3px;
  letter-spacing: 0.04em;
}
.wl-route-filters {
  display: flex;
  gap: 7px;
  padding: 13px 22px;
  flex-wrap: wrap;
}
.wl-filter-btn {
  font-family: var(--wl-font-m);
  font-size: 10px;
  padding: 7px 15px;
  border-radius: 20px;
  border: 0.5px solid var(--wl-border2);
  background: transparent;
  color: var(--wl-text2);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1;
}
.wl-filter-btn:hover {
  background: var(--wl-bg3);
  color: var(--wl-text);
  border-color: var(--wl-border2);
}
.wl-filter-btn.active {
  background: var(--wl-amber2);
  border-color: var(--wl-amber);
  color: var(--wl-amber);
}
.wl-route-output {
  padding: 0 22px 18px;
  display: none;
}
.wl-route-output.visible { display: block; }
.wl-route-label {
  font-family: var(--wl-font-m);
  font-size: 9px;
  color: var(--wl-text3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.wl-route-steps {
  margin-top: 12px;
}

/* ── Timeline layout ── */
.wl-route-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Each step row ── */
.wl-tl-step {
  display: flex;
  gap: 14px;
  animation: wl-fadein 0.45s ease backwards;
}

/* ── Left column: dot + vertical line ── */
.wl-tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
}
.wl-tl-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wl-bg3);
  border: 1px solid var(--wl-border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wl-tl-step:hover .wl-tl-dot {
  border-color: var(--wl-amber);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}
.wl-tl-icon {
  font-size: 16px;
  line-height: 1;
}
.wl-tl-line {
  width: 1px;
  flex: 1;
  min-height: 18px;
  background: linear-gradient(to bottom, var(--wl-border2), var(--wl-border));
  margin: 3px 0;
}

/* ── Right column: body ── */
.wl-tl-body {
  padding: 4px 0 20px;
  flex: 1;
}
.wl-tl-time {
  font-family: var(--wl-font-m);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--wl-amber);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.wl-tl-name {
  font-family: var(--wl-font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--wl-text);
  line-height: 1.25;
  margin-bottom: 5px;
}
.wl-tl-desc {
  font-size: 11px;
  color: var(--wl-text2);
  line-height: 1.6;
}

/* ── Walk connector between steps ── */
.wl-tl-walk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 0 17px; /* align with center of dot (36/2 - 1px) */
  margin: -6px 0;
  font-family: var(--wl-font-m);
  font-size: 9px;
  color: var(--wl-text3);
  letter-spacing: 0.06em;
}
.wl-tl-walk-pip {
  flex: 1;
  height: 1px;
  background: var(--wl-border);
  border-radius: 1px;
}
.wl-tl-walk span { white-space: nowrap; }

/* ─── Locations grid ─────────────────────────────────────────── */
.wl-locations-section {
  border-top: 0.5px solid var(--wl-border);
  padding: 22px;
  background: var(--wl-bg);
}
.wl-loc-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.wl-loc-title {
  font-family: var(--wl-font-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--wl-text);
}
.wl-loc-count {
  font-family: var(--wl-font-m);
  font-size: 10px;
  color: var(--wl-text3);
}
.wl-loc-cats {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Open-now toggle button ── */
.wl-open-btn {
  margin-left: auto;
  color: var(--wl-text2);
  border-color: var(--wl-border2);
  white-space: nowrap;
}
.wl-open-btn--on {
  background: rgba(62, 207, 110, 0.12);
  border-color: var(--wl-green);
  color: var(--wl-green);
}

/* ── Card header (cat tag + status badge row) ── */
.wl-loc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

/* ── Open status badges ── */
.wl-open-badge {
  font-family: var(--wl-font-m);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1;
  flex-shrink: 0;
}
.wl-open-badge--yes {
  color: var(--wl-green);
  background: rgba(62, 207, 110, 0.10);
}
.wl-open-badge--no {
  color: var(--wl-text3);
  background: rgba(255,255,255,0.03);
}
.wl-open-badge--check {
  color: var(--wl-amber);
  background: rgba(245, 166, 35, 0.10);
}

/* Dim closed cards when "open now" filter is NOT active */
.wl-loc-card[data-open="no"] {
  opacity: 0.55;
}
.wl-loc-card[data-open="no"]:hover {
  opacity: 0.85;
}
.wl-cat-btn {
  font-family: var(--wl-font-m);
  font-size: 9px;
  padding: 5px 13px;
  border-radius: 20px;
  border: 0.5px solid var(--wl-border);
  background: transparent;
  color: var(--wl-text3);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.wl-cat-btn.active {
  background: var(--wl-bg3);
  border-color: var(--wl-border2);
  color: var(--wl-text);
}
.wl-cat-btn:hover:not(.active) {
  border-color: var(--wl-border2);
  color: var(--wl-text2);
}
.wl-loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 9px;
}
.wl-loc-card {
  background: var(--wl-bg2);
  border: 0.5px solid var(--wl-border);
  border-radius: var(--wl-r2);
  padding: 13px;
  cursor: pointer;
  transition: all 0.22s;
  position: relative;
  overflow: hidden;
  animation: wl-fadein 0.4s ease backwards;
}
.wl-loc-card:hover {
  border-color: var(--wl-border2);
  background: var(--wl-bg3);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
/* Bottom accent per vibe */
.wl-loc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.22s;
}
.wl-loc-card:hover::after { opacity: 1; }
.wl-loc-card[data-vibe="calm"]::after      { background: var(--wl-blue); }
.wl-loc-card[data-vibe="energetic"]::after { background: var(--wl-amber); }
.wl-loc-card[data-vibe="romantic"]::after  { background: #ff6b9d; }
.wl-loc-card[data-vibe="cultural"]::after  { background: var(--wl-purple); }
.wl-loc-card[data-vibe="nature"]::after    { background: var(--wl-green); }
.wl-loc-card[data-vibe="social"]::after    { background: #f59e42; }
.wl-loc-card[data-vibe="family"]::after    { background: #4d9de0; }
.wl-loc-card[data-vibe="urban"]::after     { background: var(--wl-text3); }

.wl-loc-cat-tag {
  font-family: var(--wl-font-m);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wl-text3);
  margin-bottom: 5px;
}
.wl-loc-name {
  font-family: var(--wl-font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--wl-text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.wl-loc-desc {
  font-size: 10px;
  color: var(--wl-text2);
  line-height: 1.55;
  margin-bottom: 9px;
}
.wl-loc-meta { display: flex; gap: 5px; flex-wrap: wrap; }
.wl-loc-tag {
  font-family: var(--wl-font-m);
  font-size: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--wl-bg4);
  color: var(--wl-text3);
  letter-spacing: 0.04em;
}
.wl-loc-tag.open { background: rgba(62,207,110,0.1);  color: var(--wl-green); }
.wl-loc-tag.busy { background: rgba(224,82,82,0.1);   color: var(--wl-red); }
.wl-loc-tag.free { background: rgba(245,166,35,0.1);  color: var(--wl-amber); }

/* ─── SEO content block ──────────────────────────────────────── */
.wl-seo-content {
  padding: 30px 22px 36px;
  border-top: 0.5px solid var(--wl-border);
  background: var(--wl-bg);
  max-width: 100%;
}
.wl-seo-h2 {
  font-family: var(--wl-font-d);
  font-size: 17px;
  font-weight: 700;
  color: var(--wl-text2);
  margin-bottom: 10px;
  margin-top: 26px;
  line-height: 1.3;
}
.wl-seo-h2:first-child { margin-top: 0; }
.wl-seo-p {
  font-size: 13px;
  color: var(--wl-text3);
  line-height: 1.75;
  margin-bottom: 9px;
  max-width: 860px;
}
.wl-seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin: 13px 0;
}
.wl-seo-item {
  background: var(--wl-bg2);
  border: 0.5px solid var(--wl-border);
  border-radius: var(--wl-r);
  padding: 12px 14px;
  transition: border-color 0.18s;
}
.wl-seo-item:hover { border-color: var(--wl-border2); }
.wl-seo-item-name {
  font-family: var(--wl-font-d);
  font-size: 13px;
  font-weight: 600;
  color: var(--wl-text2);
  margin-bottom: 5px;
}
.wl-seo-item-desc {
  font-size: 11px;
  color: var(--wl-text3);
  line-height: 1.55;
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes wl-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.wl-shell { animation: wl-fadein 0.55s ease forwards; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wl-main { grid-template-columns: 1fr; }
  .wl-right {
    border-left: none;
    border-top: 0.5px solid var(--wl-border);
  }
  .wl-map-svg { min-height: 300px; }
}

@media (max-width: 700px) {
  .wl-actions { grid-template-columns: 1fr 1fr; }
  .wl-weather-strip { flex-wrap: wrap; }
  .wl-witem { min-width: 50%; border-bottom: 0.5px solid var(--wl-border); }
}

@media (max-width: 480px) {
  .wl-topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wl-actions { grid-template-columns: 1fr; }
  .wl-loc-grid { grid-template-columns: 1fr 1fr; }
  .wl-time-block { font-size: 22px; }
}

.wl-loc-link { color: inherit; text-decoration: none; }
.wl-loc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.wl-loc-card-linked { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════
   MAP v3 — Layer filters, Legend, enhanced SVG styling
   ═══════════════════════════════════════════════════════════════ */

/* Map viewBox upgrade — taller for more real-estate */
.wl-map-svg {
  width: 100%;
  min-height: 340px;
  display: block;
  border-radius: 6px 6px 0 0;
}

/* ── Layer filter buttons ── */
.wl-map-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  background: var(--wl-bg2);
  border: 0.5px solid var(--wl-border);
  border-radius: var(--wl-r) var(--wl-r) 0 0;
  margin-bottom: -1px;
}

.wl-layer-btn {
  font-family: var(--wl-font-d);
  font-size: 10px;
  letter-spacing: 0.8px;
  padding: 5px 11px;
  border-radius: 20px;
  border: 0.5px solid var(--wl-border);
  background: var(--wl-bg3);
  color: var(--wl-text3);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.wl-layer-btn:hover {
  border-color: var(--wl-border2);
  color: var(--wl-text2);
  background: rgba(77,157,224,0.07);
}

.wl-layer-btn.active {
  background: rgba(77,157,224,0.14);
  border-color: rgba(77,157,224,0.5);
  color: #4d9de0;
  font-weight: 600;
}

/* ── Map legend strip ── */
.wl-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 9px 14px;
  background: var(--wl-bg2);
  border: 0.5px solid var(--wl-border);
  border-top: none;
  border-radius: 0 0 var(--wl-r) var(--wl-r);
}

.wl-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wl-font-d);
  font-size: 10px;
  color: var(--wl-text3);
  letter-spacing: 0.5px;
}

.wl-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
}

.wl-legend-river {
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: #1a3d60;
  border: 1px solid #4d9de0;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ── District polygon hover state ── */
.wl-district-poly:focus {
  outline: none;
}
.wl-district-poly:focus-visible {
  stroke-width: 2.5 !important;
  stroke-opacity: 0.9 !important;
}

/* ── Coordinate display under map ── */
#wlMapCoords {
  transition: opacity 0.3s;
}

/* ── Responsive: map layers on mobile ── */
@media (max-width: 600px) {
  .wl-map-layers { padding: 8px; gap: 5px; }
  .wl-layer-btn { font-size: 9px; padding: 4px 9px; }
  .wl-map-legend { gap: 6px 12px; }
  .wl-legend-item { font-size: 9px; }
}


/* ═══════════════════════════════════════════════════════════════
   v2.1.1 readability + mobile cleanup patch
   Fixes: layer text collision, emoji/font glitches, safer mobile grid,
   bigger tappable controls, more readable SEO text.
═══════════════════════════════════════════════════════════════ */
.wl-os-wrap {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.wl-shell {
  max-width: min(1200px, 100%);
}
.wl-topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  align-items: center;
}
.wl-logo {
  min-width: 0;
  white-space: nowrap;
  font-size: clamp(15px, 2.1vw, 19px);
  line-height: 1.1;
}
.wl-time-block {
  font-size: clamp(25px, 4.2vw, 34px);
  white-space: nowrap;
}
.wl-time-sub { white-space: nowrap; }
.wl-mood-badge { white-space: nowrap; }
.wl-weather-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.wl-witem {
  min-width: 0;
  overflow-wrap: anywhere;
}
.wl-wval {
  font-size: clamp(16px, 2vw, 18px);
}
.wl-wsub {
  font-size: 11px;
  line-height: 1.35;
}
.wl-map-zone { min-width: 0; }
.wl-map-layers {
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  gap: 8px;
  padding: 12px 14px;
}
.wl-layer-btn {
  font-family: var(--wl-font-b);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  min-height: 34px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-rendering: geometricPrecision;
}
.wl-layer-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: .85;
  flex: 0 0 auto;
  box-shadow: 0 0 10px currentColor;
}
.wl-layer-btn[data-layer="all"] .wl-layer-dot { color: var(--wl-blue); }
.wl-layer-btn[data-layer="history"] .wl-layer-dot { color: var(--wl-amber); }
.wl-layer-btn[data-layer="nature"] .wl-layer-dot { color: var(--wl-green); }
.wl-layer-btn[data-layer="night"] .wl-layer-dot { color: var(--wl-purple); }
.wl-layer-btn[data-layer="kids"] .wl-layer-dot { color: #4d9de0; }
.wl-seo-p {
  font-size: 14px;
  line-height: 1.8;
  color: #9aa6b8;
}
.wl-seo-item-desc { font-size: 12px; }

@media (max-width: 1020px) {
  .wl-topbar {
    grid-template-columns: minmax(170px, 1fr) auto;
  }
  .wl-mood-badge,
  .wl-lang-switcher {
    justify-self: start;
  }
  .wl-weather-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wl-witem { border-bottom: 0.5px solid var(--wl-border); }
}

@media (max-width: 700px) {
  .wl-shell { border-radius: 16px; }
  .wl-topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 15px 16px;
  }
  .wl-logo { font-size: 16px; }
  .wl-mood-badge {
    grid-column: 1 / -1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .wl-lang-switcher {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
  .wl-weather-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-witem { padding: 13px 14px; }
  .wl-map-title {
    position: static;
    padding: 13px 14px 2px;
    display: block;
  }
  .wl-map-layers {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-bottom: 0;
  }
  .wl-map-svg { min-height: 330px; }
  .wl-loc-grid { grid-template-columns: 1fr; }
  /* timeline is already 1-col on mobile */
}

@media (max-width: 480px) {
  .wl-os-wrap { width: 100%; }
  .wl-topbar { grid-template-columns: 1fr; }
  .wl-time-block { font-size: 29px; }
  .wl-weather-strip { grid-template-columns: 1fr 1fr; }
  .wl-wlabel { font-size: 8px; }
  .wl-wval { font-size: 16px; }
  .wl-layer-btn { font-size: 11px; min-height: 32px; padding: 7px 12px; }
  .wl-seo-content { padding: 24px 16px 30px; }
  .wl-seo-h2 { font-size: 18px; }
  .wl-seo-p { font-size: 14px; }
}


/* ═══════════════════════════════════════════════════════════════
   v3.5.0 — Ambient Canvas (replaces static PNG backgrounds)
═══════════════════════════════════════════════════════════════ */

/* Canvas sits behind everything inside .wl-shell */
/* overflow:hidden on .wl-shell clips it automatically */
.wl-ambient {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;  /* sits behind ALL shell content automatically */
  opacity: 1;
}

/* Shell needs relative + overflow:hidden to contain and clip canvas */
.wl-shell {
  position: relative;
  overflow: hidden;
}

/* Shell background — dark base */
.wl-shell {
  background: #070b10;
}
.wl-map-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 42% 42%, rgba(77,157,224,.07), transparent 42%),
    radial-gradient(circle at 53% 62%, rgba(245,166,35,.07), transparent 36%),
    linear-gradient(180deg, rgba(6,10,15,.04), rgba(6,10,15,.32));
  z-index: 0;
}
.wl-map-title,
.wl-map-layers,
.wl-map-svg,
.wl-map-legend {
  position: relative;
  z-index: 1;
}

/* Topbar / weather strip — glassmorphism over canvas */
.wl-topbar,
.wl-weather-strip {
  background-color: rgba(8,12,16,.68);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.wl-right,
.wl-panel-section {
  background-color: rgba(8,12,16,.62);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.wl-map-title {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  display: block;
  padding: 14px 18px 0;
  margin: 0 0 6px;
  line-height: 1.25;
  font-size: 8.5px;
  color: rgba(138,149,168,.56);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-map-layers {
  margin: 0 16px 0;
  padding: 8px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 10px;
  min-height: 48px;
}
.wl-layer-btn {
  min-height: 36px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(13,18,25,.72);
  border-color: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 26px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.wl-layer-btn.active {
  background: rgba(77,157,224,.20);
  color: #74beff;
  border-color: rgba(77,157,224,.55);
}
.wl-map-svg {
  background: transparent !important;
  min-height: 500px;
}
.wl-map-svg > rect:first-of-type {
  opacity: .18;
}
.wl-wlabel,
.wl-section-title,
.wl-map-title {
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
.wl-wsub,
.wl-drow-status,
.wl-micro {
  color: rgba(198,208,224,.72);
}

@media (max-width: 700px) {
  .wl-map-title {
    padding: 12px 14px 0;
    margin-bottom: 5px;
    font-size: 8px;
  }
  .wl-map-layers {
    margin: 0;
    padding: 8px 14px 12px;
    gap: 8px;
  }
  .wl-layer-btn {
    min-height: 38px;
    padding: 9px 14px;
    font-size: 12px;
  }
  .wl-map-svg { min-height: 390px; }
}

@media (max-width: 480px) {
  .wl-map-zone {
    background-position: center top;
  }
  .wl-map-title {
    white-space: normal;
    letter-spacing: .14em;
  }
  .wl-layer-btn {
    font-size: 11px;
    padding: 8px 13px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   v2.1.5 theme-fit patch
   Goal: mniej „obcy” font, mniejsze dziwne odstępy mobile,
   czytelniejszy dashboard bez utraty premium wyglądu.
═══════════════════════════════════════════════════════════════ */
.wl-os-wrap {
  --wl-font-d: inherit;
  --wl-font-b: inherit;
  --wl-font-m: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-family: inherit;
  margin: 0 auto clamp(24px, 3vw, 38px);
  color: var(--wl-text);
}

.wl-shell {
  border-radius: 18px;
  max-width: min(1180px, calc(100vw - 24px));
}

/* keep product identity, but without alien display font */
.wl-logo {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: .045em;
}
.wl-mood-badge,
.wl-layer-btn,
.wl-loc-name,
.wl-seo-h2,
.wl-seo-item-name {
  font-family: inherit;
}

/* only data-like elements stay mono */
.wl-time-block,
.wl-time-sub,
.wl-wlabel,
.wl-wval,
.wl-section-title,
.wl-map-title,
.wl-lang-btn,
.wl-drow-meta,
.wl-drow-status,
.wl-energy-num,
.wl-micro,
.wl-loc-cat-tag,
.wl-loc-tag,
.wl-popup-stat-label,
.wl-popup-stat-val {
  font-family: var(--wl-font-m);
}

/* less cramped, more theme-like text rhythm */
.wl-wsub,
.wl-loc-desc,
.wl-seo-p,
.wl-seo-item-desc,
.wl-popup-desc {
  font-family: inherit;
}
.wl-wsub { font-size: 12px; color: rgba(214,222,235,.78); }
.wl-loc-desc { font-size: 12px; line-height: 1.55; color: rgba(190,201,218,.72); }
.wl-seo-content {
  padding: clamp(24px, 3.4vw, 34px) clamp(18px, 3vw, 30px) clamp(24px, 3vw, 32px);
}
.wl-seo-h2 {
  font-size: clamp(18px, 2.1vw, 22px);
  color: rgba(232,237,245,.88);
  letter-spacing: 0;
}
.wl-seo-p {
  font-size: 15px;
  line-height: 1.72;
  color: rgba(210,219,232,.76);
}
.wl-seo-item-name { font-size: 14px; }
.wl-seo-item-desc { font-size: 13px; line-height: 1.55; }

/* map filters: prevent collision and make them feel like site chips */
.wl-map-title {
  padding-top: 16px;
  margin-bottom: 8px;
  letter-spacing: .13em;
}
.wl-map-layers {
  min-height: unset;
  padding-top: 6px;
  padding-bottom: 12px;
}
.wl-layer-btn {
  font-size: 13px;
  line-height: 1.15;
  min-height: 38px;
  padding: 9px 17px;
  letter-spacing: 0;
}

/* canvas handles background — map zone just needs overlay */
.wl-map-zone {
  background:
    linear-gradient(90deg, rgba(5,8,12,.42) 0%, rgba(6,10,15,.16) 46%, rgba(5,8,12,.48) 100%),
    linear-gradient(180deg, rgba(5,8,12,.06), rgba(5,8,12,.30));
}
.wl-map-zone::before {
  background:
    radial-gradient(circle at 42% 42%, rgba(77,157,224,.05), transparent 42%),
    radial-gradient(circle at 53% 62%, rgba(245,166,35,.05), transparent 36%),
    linear-gradient(180deg, rgba(6,10,15,.02), rgba(6,10,15,.20));
}

/* mobile: stop stupid side gaps and oversized bottom air */
@media (max-width: 700px) {
  .wl-os-wrap { margin-bottom: 22px; }
  .wl-shell {
    max-width: calc(100vw - 14px);
    border-radius: 16px;
  }
  .wl-topbar { padding: 14px 14px 12px; }
  .wl-weather-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-witem { padding: 12px 14px; }
  .wl-map-title { padding: 12px 14px 0; margin-bottom: 6px; }
  .wl-map-layers {
    padding: 7px 14px 12px;
    gap: 8px;
    scrollbar-width: none;
  }
  .wl-map-layers::-webkit-scrollbar { display: none; }
  .wl-layer-btn { font-size: 12px; min-height: 36px; padding: 8px 14px; }
  .wl-map-svg { min-height: 380px; }
  .wl-panel-section { padding: 14px; }
  .wl-seo-content { padding: 22px 16px 24px; }
  .wl-seo-h2 { font-size: 20px; margin-top: 22px; }
  .wl-seo-p { font-size: 15px; line-height: 1.65; }
}

@media (max-width: 480px) {
  .wl-shell { max-width: calc(100vw - 10px); border-radius: 14px; }
  .wl-topbar { gap: 9px; }
  .wl-logo { font-size: 15px; }
  .wl-time-block { font-size: 28px; }
  .wl-weather-strip { grid-template-columns: 1fr 1fr; }
  .wl-witem { padding: 11px 12px; }
  .wl-wsub { font-size: 11px; }
  .wl-map-svg { min-height: 345px; }
  .wl-seo-grid { grid-template-columns: 1fr; }
}

/* v3.0.1 — SEO preview cards: use featured image from linked posts, readable on dark background */
.wl-seo-item--photo {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(15, 23, 34, .92);
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}
.wl-seo-item--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--wl-card-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
  transition: transform .28s ease, filter .28s ease;
}
.wl-seo-item--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,9,15,.18) 0%, rgba(5,9,15,.58) 42%, rgba(5,9,15,.91) 100%),
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.20), transparent 38%);
}
.wl-seo-item--photo:hover::before {
  transform: scale(1.09);
  filter: saturate(1.16) contrast(1.12);
}
.wl-seo-item--photo .wl-seo-item-name,
.wl-seo-item--photo .wl-seo-item-name a {
  color: rgba(255,255,255,.96);
  text-shadow: 0 2px 12px rgba(0,0,0,.72);
}
.wl-seo-item--photo .wl-seo-item-desc,
.wl-seo-item--photo .wl-seo-item-desc a {
  color: rgba(238,244,255,.86);
  text-shadow: 0 2px 10px rgba(0,0,0,.72);
}
.wl-seo-item--photo .wl-seo-item-name a,
.wl-seo-item--photo .wl-seo-item-desc a,
.wl-loc-link {
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .wl-seo-item--photo { min-height: 150px; padding: 14px 15px; }
}

/* v3.0.2 — Top locations: factual preview cards + post thumbnails */
.wl-loc-card {
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  width: 100%;
  font: inherit;
  min-height: 132px;
  background-size: cover;
  background-position: center;
}
.wl-loc-card--photo {
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.wl-loc-card--photo .wl-loc-cat-tag,
.wl-loc-card--photo .wl-loc-desc,
.wl-loc-card--photo .wl-loc-tag { color: rgba(235,241,250,.82); }
.wl-loc-card--photo .wl-loc-name { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.wl-loc-preview {
  display: none;
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(8,12,18,.86);
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.wl-loc-preview.is-open {
  display: grid;
  grid-template-columns: minmax(180px, 34%) 1fr;
  animation: wl-loc-preview-in .22s ease both;
}
.wl-loc-preview-media {
  min-height: 210px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,.05);
}
.wl-loc-preview-media--empty {
  background:
    radial-gradient(circle at 30% 20%, rgba(77,157,224,.24), transparent 35%),
    radial-gradient(circle at 70% 75%, rgba(245,166,35,.18), transparent 38%),
    linear-gradient(135deg, rgba(16,24,35,.95), rgba(6,10,15,.95));
}
.wl-loc-preview-body { padding: 22px 22px 20px; }
.wl-loc-preview-title {
  font-family: var(--wl-font-d);
  font-size: 23px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--wl-text);
  margin: 3px 38px 9px 0;
}
.wl-loc-preview-desc {
  color: var(--wl-text2);
  font-size: 13px;
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 12px;
}
.wl-loc-preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(77,157,224,.18);
  border: 1px solid rgba(77,157,224,.38);
  color: #9bd3ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.wl-loc-preview-link:hover { background: rgba(77,157,224,.28); color: #fff; }
.wl-loc-preview-note {
  margin-top: 15px;
  color: var(--wl-text3);
  font-size: 12px;
  line-height: 1.55;
}
.wl-loc-preview-close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(5,8,12,.64);
  color: rgba(255,255,255,.78);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  z-index: 2;
}
.wl-loc-preview-close:hover { color: #fff; background: rgba(255,255,255,.10); }
@keyframes wl-loc-preview-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .wl-loc-preview.is-open { grid-template-columns: 1fr; }
  .wl-loc-preview-media { min-height: 160px; }
  .wl-loc-preview-body { padding: 18px 16px; }
  .wl-loc-preview-title { font-size: 20px; }
}


.wt-attraction-modal{
position:fixed;
inset:0;
background:rgba(0,0,0,.82);
backdrop-filter:blur(6px);
display:none;
align-items:center;
justify-content:center;
z-index:999999;
padding:20px;
}
.wt-attraction-modal.active{display:flex;}
.wt-attraction-modal-card{
width:min(760px,95vw);
border-radius:24px;
overflow:hidden;
background:#0f1720;
box-shadow:0 20px 80px rgba(0,0,0,.5);
border:1px solid rgba(255,255,255,.08);
animation:wtZoom .25s ease;
}
@keyframes wtZoom{
from{transform:scale(.92);opacity:0}
to{transform:scale(1);opacity:1}
}
.wt-attraction-modal-image{
height:320px;
background-size:cover;
background-position:center;
position:relative;
}
.wt-attraction-modal-image:after{
content:'';
position:absolute;
inset:0;
background:linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.15));
}
.wt-attraction-modal-content{
padding:24px;
color:#fff;
}
.wt-attraction-close{
position:absolute;
top:18px;
right:18px;
width:42px;
height:42px;
border-radius:50%;
border:none;
background:rgba(0,0,0,.6);
color:#fff;
font-size:22px;
cursor:pointer;
z-index:3;
}


/* v3.0.4 — Top 50: dark cards, photo only on hover, real modal preview */
body.wl-loc-modal-open { overflow: hidden; }
.wl-loc-card {
  min-height: 142px;
  background: linear-gradient(180deg, rgba(13,19,29,.96), rgba(7,11,17,.98)) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  isolation: isolate;
}
.wl-loc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--loc-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .22s ease, transform .32s ease, filter .32s ease;
  filter: saturate(1.08) contrast(1.08);
}
.wl-loc-card::after {
  z-index: -1;
  top: 0;
  bottom: auto;
  height: 100%;
  opacity: 0;
  background: linear-gradient(180deg, rgba(4,7,12,.18) 0%, rgba(4,7,12,.58) 48%, rgba(4,7,12,.92) 100%) !important;
  transition: opacity .22s ease;
}
.wl-loc-card:hover {
  background: linear-gradient(180deg, rgba(13,19,29,.96), rgba(7,11,17,.98)) !important;
  border-color: rgba(96,165,250,.50) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05);
}
.wl-loc-card--photo:hover::before { opacity: .74; transform: scale(1.10); }
.wl-loc-card--photo:hover::after { opacity: 1; }
.wl-loc-card .wl-loc-cat-tag,
.wl-loc-card .wl-loc-desc,
.wl-loc-card .wl-loc-tag { position: relative; z-index: 1; }
.wl-loc-card .wl-loc-name { position: relative; z-index: 1; color: rgba(238,244,255,.94); }
.wl-loc-card:hover .wl-loc-name { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.68); }
.wl-loc-card:hover .wl-loc-desc { color: rgba(238,244,255,.88); text-shadow: 0 2px 10px rgba(0,0,0,.62); }
.wl-loc-preview { display: none !important; }
.wl-loc-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2,5,9,.76);
  backdrop-filter: blur(9px);
}
.wl-loc-modal.is-open { display: flex; }
.wl-loc-modal-card {
  width: min(720px, 94vw);
  max-height: min(88vh, 820px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(13,19,29,.98), rgba(7,11,17,.99));
  box-shadow: 0 30px 120px rgba(0,0,0,.66), inset 0 1px 0 rgba(255,255,255,.05);
  position: relative;
  animation: wl-loc-modal-in .22s ease both;
}
@keyframes wl-loc-modal-in {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.wl-loc-modal-close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(6,10,16,.62);
  color: rgba(255,255,255,.88);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}
.wl-loc-modal-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.wl-loc-modal-hero {
  height: 290px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.wl-loc-modal-hero.is-empty {
  height: 115px;
  background:
    radial-gradient(circle at 18% 10%, rgba(77,157,224,.24), transparent 36%),
    radial-gradient(circle at 84% 40%, rgba(245,166,35,.14), transparent 34%),
    linear-gradient(135deg, rgba(13,19,29,.98), rgba(7,11,17,.98));
}
.wl-loc-modal-body { padding: 26px 30px 30px; }
.wl-loc-modal-cat { margin-bottom: 8px; }
.wl-loc-modal-title {
  margin: 0 48px 12px 0;
  font-family: var(--wl-font-d);
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -.03em;
}
.wl-loc-modal-desc {
  margin: 0 0 15px;
  max-width: 620px;
  color: rgba(220,229,242,.88);
  font-size: 15px;
  line-height: 1.72;
}
.wl-loc-modal-tags { margin-bottom: 18px; }
.wl-loc-modal-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.wl-loc-modal-info div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: start;
}
.wl-loc-modal-info span {
  color: #67b7ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wl-loc-modal-info strong {
  color: rgba(236,243,255,.90);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}
.wl-loc-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(77,157,224,.18);
  border: 1px solid rgba(77,157,224,.52);
  color: #d8efff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(77,157,224,.12);
}
.wl-loc-modal-link:hover { background: rgba(77,157,224,.28); color: #fff; }
@media (max-width: 680px) {
  .wl-loc-modal { padding: 10px; align-items: flex-end; }
  .wl-loc-modal-card { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; }
  .wl-loc-modal-hero { height: 220px; }
  .wl-loc-modal-body { padding: 22px 18px 24px; }
  .wl-loc-modal-info div { grid-template-columns: 1fr; gap: 4px; }
  .wl-loc-modal-title { margin-right: 44px; }
}

/* ═══════════════════════════════════════════════════════════════
   NEW v3.3.0 — Forecast, Share, Sparkline
═══════════════════════════════════════════════════════════════ */

/* ── Route label row (label + share btn) ── */
.wl-route-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.wl-share-btn {
  font-family: var(--wl-font-m);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  border: 0.5px solid var(--wl-border2);
  background: transparent;
  color: var(--wl-text2);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.wl-share-btn:hover {
  background: var(--wl-bg3);
  color: var(--wl-text);
  border-color: var(--wl-amber);
}
.wl-share-icon { font-style: normal; }

/* ── 3-day forecast section ── */
.wl-forecast-section {
  margin-top: 18px;
  padding: 16px;
  background: var(--wl-bg2);
  border: 0.5px solid var(--wl-border);
  border-radius: var(--wl-r2);
}
.wl-forecast-title {
  font-family: var(--wl-font-m);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wl-text3);
  margin-bottom: 12px;
}
.wl-forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.wl-forecast-card {
  background: var(--wl-bg3);
  border: 0.5px solid var(--wl-border);
  border-radius: var(--wl-r);
  padding: 10px;
  text-align: center;
  transition: border-color 0.2s;
}
.wl-forecast-card--best {
  border-color: var(--wl-green);
  background: rgba(62,207,110,0.06);
}
.wl-forecast-dow {
  font-family: var(--wl-font-m);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wl-text3);
  margin-bottom: 5px;
}
.wl-forecast-card--best .wl-forecast-dow { color: var(--wl-green); }
.wl-forecast-icon { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.wl-forecast-temp { display: flex; justify-content: center; gap: 5px; margin-bottom: 4px; }
.wl-forecast-hi { font-family: var(--wl-font-d); font-size: 14px; font-weight: 700; color: var(--wl-text); }
.wl-forecast-lo { font-size: 12px; color: var(--wl-text3); align-self: flex-end; }
.wl-forecast-meta { font-family: var(--wl-font-m); font-size: 8px; color: var(--wl-text3); display: flex; justify-content: space-around; margin-bottom: 6px; }
.wl-forecast-bar-wrap { height: 3px; background: var(--wl-bg4); border-radius: 2px; overflow: hidden; }
.wl-forecast-bar { height: 100%; border-radius: 2px; transition: width 0.4s; }
.wl-best-day {
  font-family: var(--wl-font-m);
  font-size: 10px;
  color: var(--wl-green);
  padding: 8px 10px;
  background: rgba(62,207,110,0.07);
  border-radius: 6px;
  border: 0.5px solid rgba(62,207,110,0.2);
}

/* ── Sparkline in district popup ── */
.wl-popup-sparkline-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 0.5px solid var(--wl-border);
}
.wl-popup-sparkline-label {
  font-family: var(--wl-font-m);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wl-text3);
  margin-bottom: 6px;
}
.wl-popup-sparkline {
  width: 100%;
  height: 44px;
  display: block;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   v3.6 — SVG Skyline ambient + context bridge
═══════════════════════════════════════════════════════════════ */

/* Context bridge — sits between article text and widget */
.wl-context-bridge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 14px;
  font-family: var(--wl-font-m);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wl-text3);
}
.wl-context-bridge::before,
.wl-context-bridge::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--wl-border2), transparent);
}
.wl-context-bridge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wl-green);
  box-shadow: 0 0 6px var(--wl-green);
  animation: wl-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   v3.6.9 — readability + SEO/accessibility polish
   Fixes tiny labels visible in the article screenshot.
═══════════════════════════════════════════════════════════════ */
.wl-context-bridge {
  justify-content: center;
  width: min(720px, calc(100% - 28px));
  margin: 0 auto 8px;
  padding: 12px 18px 16px;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.35;
  letter-spacing: .045em;
  color: rgba(205,214,228,.78);
  text-align: center;
}
.wl-context-bridge::before,
.wl-context-bridge::after { max-width: 120px; opacity: .7; }
.wl-context-bridge-dot { width: 8px; height: 8px; }

.wl-map-title {
  font-size: clamp(12px, 1.15vw, 14px) !important;
  line-height: 1.35;
  letter-spacing: .055em;
  color: rgba(196,207,224,.74) !important;
}
.wl-wlabel,
.wl-section-title,
.wl-popup-stat-label,
.wl-popup-best-label,
.wl-popup-category,
.wl-loc-cat-tag {
  font-size: clamp(11px, 1vw, 12px) !important;
  line-height: 1.35;
  letter-spacing: .055em;
  color: rgba(173,186,207,.75);
}
.wl-time-sub,
.wl-drow-meta,
.wl-drow-status,
.wl-micro,
.wl-popup-tag,
.wl-legend-item {
  font-size: 12px !important;
  line-height: 1.4;
}
.wl-wsub,
.wl-loc-desc,
.wl-seo-item-desc,
.wl-popup-desc { font-size: 14px !important; }
.wl-wval span[style] { font-size: 12px !important; }
.wl-lang-btn { min-width: 38px; min-height: 30px; font-size: 11px !important; }

@media (max-width: 700px) {
  .wl-context-bridge {
    width: min(100%, calc(100vw - 18px));
    padding: 10px 8px 14px;
    font-size: 12px;
    letter-spacing: .035em;
  }
  .wl-context-bridge::before,
  .wl-context-bridge::after { display: none; }
  .wl-map-title { white-space: normal; }
  .wl-wlabel,
  .wl-section-title { font-size: 11px !important; }
  .wl-wsub { font-size: 13px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   v3.6.10 — full small-text pass
   Covers all remaining micro labels from route, action, forecast,
   map and chips. Minimum readable UI size: ~12px for labels,
   13–15px for descriptions/buttons.
═══════════════════════════════════════════════════════════════ */
.wl-os-wrap {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* micro uppercase labels */
.wl-atag,
.wl-map-title,
.wl-section-title,
.wl-route-subtitle,
.wl-forecast-title,
.wl-forecast-dow,
.wl-forecast-meta,
.wl-loc-cat-tag,
.wl-popup-category,
.wl-popup-stat-label,
.wl-popup-best-label,
.wl-wlabel,
.wl-tl-time,
.wl-open-badge {
  font-size: clamp(11.5px, .95vw, 13px) !important;
  line-height: 1.35 !important;
  letter-spacing: .045em !important;
  color: rgba(178,190,209,.82) !important;
}

/* cards/action captions */
.wl-asub,
.wl-route-subtitle,
.wl-loc-desc,
.wl-tl-desc,
.wl-popup-desc,
.wl-wsub,
.wl-drow-status,
.wl-legend-item,
.wl-popup-tag,
.wl-best-day,
.wl-share-btn {
  font-size: clamp(13px, 1.05vw, 14px) !important;
  line-height: 1.55 !important;
  letter-spacing: .01em !important;
}

/* primary small headings/names */
.wl-aname,
.wl-route-title,
.wl-loc-name,
.wl-tl-name,
.wl-drow-name {
  font-size: clamp(15px, 1.25vw, 17px) !important;
  line-height: 1.35 !important;
}

/* route chips, category chips and layer buttons */
.wl-filter-btn,
.wl-cat-btn,
.wl-layer-btn,
.wl-lang-btn,
.wl-loc-tag {
  font-size: clamp(12px, 1vw, 13.5px) !important;
  line-height: 1.25 !important;
  letter-spacing: .025em !important;
}
.wl-filter-btn,
.wl-cat-btn,
.wl-layer-btn {
  min-height: 34px !important;
  padding: 8px 14px !important;
}
.wl-loc-tag { padding: 4px 8px !important; }

/* forecast readability */
.wl-forecast-hi { font-size: clamp(18px, 1.8vw, 22px) !important; }
.wl-forecast-lo { font-size: clamp(14px, 1.2vw, 16px) !important; }
.wl-forecast-icon { font-size: 26px !important; }
.wl-forecast-card { padding: 14px 12px !important; }

/* more breathing room where text looked squeezed */
.wl-action { padding: 17px 19px !important; }
.wl-route-header { padding: 22px 22px 2px !important; }
.wl-route-filters { gap: 9px !important; padding-top: 15px !important; }
.wl-forecast-section { padding: 18px !important; }
.wl-forecast-title { margin-bottom: 15px !important; }

@media (max-width: 700px) {
  .wl-atag,
  .wl-map-title,
  .wl-section-title,
  .wl-route-subtitle,
  .wl-forecast-title,
  .wl-forecast-dow,
  .wl-forecast-meta,
  .wl-loc-cat-tag,
  .wl-popup-category,
  .wl-popup-stat-label,
  .wl-popup-best-label,
  .wl-wlabel,
  .wl-tl-time,
  .wl-open-badge { font-size: 11.5px !important; }

  .wl-asub,
  .wl-loc-desc,
  .wl-tl-desc,
  .wl-popup-desc,
  .wl-wsub,
  .wl-drow-status,
  .wl-legend-item,
  .wl-popup-tag,
  .wl-best-day,
  .wl-share-btn { font-size: 13px !important; }

  .wl-filter-btn,
  .wl-cat-btn,
  .wl-layer-btn,
  .wl-lang-btn,
  .wl-loc-tag { font-size: 12px !important; }
}

/* ── v3.6.11 patches ──────────────────────────────────────────── */

/* Onboarding intro block */
.wl-onboarding-intro {
  margin-bottom: 16px;
  padding: 14px 18px;
  background: rgba(77,157,224,0.07);
  border: 1px solid rgba(77,157,224,0.18);
  border-radius: 10px;
}
.wl-onboarding-headline {
  font-size: 15px;
  font-weight: 600;
  color: #4d9de0;
  margin: 0 0 6px 0;
  line-height: 1.4;
}
.wl-onboarding-body {
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
  margin: 0;
  line-height: 1.6;
}
.wl-onboarding-body strong {
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}

/* Popup article link */
.wl-popup-article-link {
  margin-top: 12px;
}
.wl-popup-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 7px;
  background: rgba(77,157,224,0.12);
  border: 1px solid rgba(77,157,224,0.28);
  color: #4d9de0;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}
.wl-popup-read-btn:hover {
  background: rgba(77,157,224,0.22);
  border-color: rgba(77,157,224,0.5);
  color: #7dc2f0;
  text-decoration: none;
}

/* Route builder extra action buttons */
.wl-route-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wl-route-gmaps-btn,
.wl-route-copy-btn {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.15) !important;
}
.wl-route-gmaps-btn:hover {
  background: rgba(62,207,110,0.12) !important;
  border-color: rgba(62,207,110,0.35) !important;
  color: #3ecf6e !important;
}
.wl-route-copy-btn:hover {
  background: rgba(245,166,35,0.12) !important;
  border-color: rgba(245,166,35,0.35) !important;
  color: #f5a623 !important;
}

/* ═══════════════════════════════════════════════════════════════
   v3.6.11 — map photo background + readability pass
   Photo path is injected from PHP as --wl-map-photo: /img/12.png
═══════════════════════════════════════════════════════════════ */
.wl-map-zone {
  background-image:
    linear-gradient(90deg, rgba(5,8,12,.80) 0%, rgba(5,8,12,.48) 42%, rgba(5,8,12,.84) 100%),
    linear-gradient(180deg, rgba(5,8,12,.62) 0%, rgba(5,8,12,.34) 45%, rgba(5,8,12,.78) 100%),
    var(--wl-map-photo);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-blend-mode: normal, normal, luminosity;
}
.wl-map-zone::before {
  background:
    radial-gradient(circle at 42% 42%, rgba(77,157,224,.09), transparent 42%),
    radial-gradient(circle at 53% 62%, rgba(245,166,35,.08), transparent 36%),
    linear-gradient(180deg, rgba(6,10,15,.20), rgba(6,10,15,.46));
  backdrop-filter: blur(1.4px) saturate(78%) brightness(82%);
  -webkit-backdrop-filter: blur(1.4px) saturate(78%) brightness(82%);
}
.wl-map-svg {
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.34));
}
.wl-map-svg > rect:first-of-type {
  opacity: .08 !important;
}

/* Readability: remove squint-level microtype inside the widget. */
.wl-os-wrap,
.wl-os-wrap button,
.wl-os-wrap input,
.wl-os-wrap select,
.wl-os-wrap textarea {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wl-popup-category,
.wl-popup-stat-label,
.wl-popup-best-label,
.wl-popup-tag,
.wl-live-dot-label,
.wl-logo-tag,
.wl-wlabel,
.wl-wsub,
.wl-section-title,
.wl-drow-status,
.wl-action-time,
.wl-action-title,
.wl-action-desc,
.wl-loc-meta,
.wl-loc-tag,
.wl-map-title,
.wl-layer-btn,
.wl-legend-item,
.wl-coordinate-display,
.wl-micro,
.wl-seo-item-desc {
  font-size: max(12px, 1em);
  line-height: 1.35;
}
.wl-popup-desc,
.wl-loc-desc,
.wl-seo-p {
  font-size: max(14px, 1em);
  line-height: 1.65;
}
.wl-map-title,
.wl-section-title,
.wl-wlabel {
  letter-spacing: .10em;
  color: rgba(214,222,235,.74);
}
.wl-layer-btn,
.wl-loc-tag,
.wl-popup-tag {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}
.wl-map-svg text {
  font-size: 12px !important;
  font-weight: 650;
  paint-order: stroke;
  stroke: rgba(5,8,12,.68);
  stroke-width: 2px;
  stroke-linejoin: round;
}

@media (max-width: 700px) {
  .wl-map-zone {
    background-position: center top;
  }
  .wl-map-title,
  .wl-layer-btn,
  .wl-legend-item,
  .wl-wsub,
  .wl-loc-desc,
  .wl-seo-item-desc {
    font-size: 13px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   v3.6.12 — real Wrocław photo as the MAP background + photo-card rescue
   The image must be at: /wp-content/plugins/wt-wroclaw-live-final-ui-v3/img/12.png
═══════════════════════════════════════════════════════════════ */
.wl-map-zone {
  isolation: isolate;
  background: #05080c !important;
}
.wl-map-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(4,7,11,.86) 0%, rgba(4,7,11,.55) 42%, rgba(4,7,11,.88) 100%),
    linear-gradient(180deg, rgba(4,7,11,.78) 0%, rgba(4,7,11,.44) 45%, rgba(4,7,11,.88) 100%),
    var(--wl-map-photo);
  background-size: cover, cover, cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: saturate(.72) contrast(.94) brightness(.72);
}
.wl-map-zone::before {
  z-index: 1 !important;
  background:
    radial-gradient(circle at 38% 42%, rgba(77,157,224,.12), transparent 40%),
    radial-gradient(circle at 56% 58%, rgba(245,166,35,.10), transparent 38%),
    linear-gradient(180deg, rgba(6,10,15,.10), rgba(6,10,15,.38)) !important;
  backdrop-filter: blur(.8px) saturate(82%) !important;
  -webkit-backdrop-filter: blur(.8px) saturate(82%) !important;
}
.wl-map-title,
.wl-map-layers,
.wl-map-svg,
.wl-map-legend {
  position: relative;
  z-index: 2 !important;
}
.wl-map-svg {
  background: transparent !important;
}
.wl-map-svg > rect:first-of-type {
  opacity: 0 !important;
}
.wl-city-boundary {
  fill: rgba(30,60,100,.045) !important;
  stroke: rgba(115,190,255,.18) !important;
}
.wl-district-poly {
  fill-opacity: .72;
  stroke-opacity: .92;
}

/* Location cards: show a subtle photo immediately, not only on hover. */
.wl-loc-card--photo::before {
  opacity: .22 !important;
  filter: saturate(.82) contrast(1.02) brightness(.72) !important;
}
.wl-loc-card--photo::after {
  opacity: .86 !important;
  background: linear-gradient(180deg, rgba(4,7,12,.48) 0%, rgba(4,7,12,.72) 46%, rgba(4,7,12,.96) 100%) !important;
}
.wl-loc-card--photo:hover::before {
  opacity: .64 !important;
  filter: saturate(1.04) contrast(1.08) brightness(.82) !important;
}
.wl-loc-card--photo:hover::after { opacity: .94 !important; }

/* Cards without an article image should stay clean, not look broken. */
.wl-seo-item:not(.wl-seo-item--photo),
.wl-loc-card:not(.wl-loc-card--photo) {
  background:
    radial-gradient(circle at 18% 0%, rgba(77,157,224,.10), transparent 32%),
    linear-gradient(180deg, rgba(14,21,31,.98), rgba(7,11,17,.98)) !important;
}

/* Small-text pass: do not let tags and labels fall below readable size. */
.wl-loc-tag,
.wl-loc-cat-tag,
.wl-seo-item-desc,
.wl-seo-item-name,
.wl-layer-btn,
.wl-section-title,
.wl-map-title,
.wl-wlabel,
.wl-wsub {
  font-size: max(13px, 1em) !important;
  line-height: 1.38 !important;
}

/* ════════════════════════════════════════════════════════════════
   v3.7 — UX Improvements Patch
   9 улучшений: онбординг, CTA, mood tooltip, карта, скелетон,
   маршрут-хинты, lazy render, прогресс загрузки, FAQ accordion
   ════════════════════════════════════════════════════════════════ */

/* ── 1. Новый онбординг: 3 пилюли + коллапс ──────────────────── */
.wl-onboarding-intro {
  margin-bottom: 16px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.wl-onboarding-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.wl-onboarding-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(77,157,224,0.08);
  border: 1px solid rgba(77,157,224,0.22);
  border-radius: 20px;
  color: rgba(255,255,255,0.82);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  user-select: none;
}
.wl-onboarding-pill:hover {
  background: rgba(77,157,224,0.18);
  border-color: rgba(77,157,224,0.5);
  transform: translateY(-1px);
}
.wl-onboarding-pill:active {
  transform: translateY(0);
  background: rgba(77,157,224,0.25);
}
.wl-onboarding-pill .wl-pill-icon {
  font-size: 15px;
  line-height: 1;
}
.wl-onboarding-pill .wl-pill-label {
  color: #4d9de0;
  font-weight: 600;
}
.wl-onboarding-headline {
  font-size: 15px;
  font-weight: 600;
  color: #4d9de0;
  margin: 0 0 8px 0;
  line-height: 1.4;
}
.wl-onboarding-body {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 10px 0;
  line-height: 1.6;
}
.wl-onboarding-body strong {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
/* Коллапс отключён — онбординг всегда виден */

/* ── 2. CTA-кнопка «Показать маршрут» в action-cards ─────────── */
.wl-action {
  position: relative;
}
.wl-action-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 11px;
  background: rgba(77,157,224,0.12);
  border: 1px solid rgba(77,157,224,0.25);
  border-radius: 6px;
  color: #4d9de0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.wl-action-cta:hover {
  background: rgba(77,157,224,0.22);
  border-color: rgba(77,157,224,0.45);
  color: #7dc2f0;
}
.wl-action--warn .wl-action-cta {
  color: #f5a623;
  background: rgba(245,166,35,0.1);
  border-color: rgba(245,166,35,0.22);
}
.wl-action--warn .wl-action-cta:hover {
  background: rgba(245,166,35,0.2);
  border-color: rgba(245,166,35,0.4);
  color: #f7ba4a;
}

/* ── 3. Mood badge — tooltip ──────────────────────────────────── */
.wl-mood-badge {
  position: relative;
  cursor: help;
}
.wl-mood-badge::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(10,20,35,0.97);
  border: 1px solid rgba(77,157,224,0.25);
  border-radius: 7px;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  padding: 7px 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  max-width: 220px;
  white-space: normal;
}
.wl-mood-badge:hover::after,
.wl-mood-badge:focus::after {
  opacity: 1;
  transform: translateY(0);
}
/* Fade-in анимация mood badge при появлении */
@keyframes wl-mood-fadein {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
.wl-mood-badge.wl-mood-ready {
  animation: wl-mood-fadein 0.4s ease forwards;
}

/* ── 4. Карта: tooltip при hover ──────────────────────────────── */
.wl-map-tooltip {
  position: absolute;
  background: rgba(10,20,35,0.96);
  border: 1px solid rgba(77,157,224,0.28);
  border-radius: 8px;
  padding: 7px 12px;
  color: rgba(255,255,255,0.88);
  font-size: 12.5px;
  font-weight: 500;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}
.wl-map-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.wl-map-tooltip-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}
.wl-map-zone {
  position: relative;
}

/* ── 5. Skeleton loader для Top 50 ───────────────────────────── */
@keyframes wl-skeleton-pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.65; }
}
.wl-skeleton-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px;
  animation: wl-skeleton-pulse 1.4s ease-in-out infinite;
}
.wl-skeleton-line {
  height: 10px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  margin-bottom: 8px;
}
.wl-skeleton-line--short { width: 55%; }
.wl-skeleton-line--medium { width: 80%; }
.wl-skeleton-line--long { width: 95%; }

/* ── 5b. Зелёная точка «открыто» — сделать заметнее ─────────── */
.wl-open-badge--yes {
  color: #3ecf6e !important;
  font-weight: 600;
}

/* ── 6. Роуты: хинт под кнопкой ──────────────────────────────── */
.wl-route-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wl-route-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.wl-route-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  padding-left: 3px;
  line-height: 1.2;
}
.wl-filter-btn:hover + .wl-route-hint,
.wl-filter-btn.active + .wl-route-hint {
  color: rgba(77,157,224,0.7);
}

/* ── 7. Lazy render для Top 50: секция скрыта пока IO не сработает */
.wl-locations-section[data-lazy="pending"] .wl-loc-grid:empty::before {
  content: '';
  display: block;
}

/* ── 8. Прогресс загрузки погоды ─────────────────────────────── */
.wl-weather-loading {
  color: rgba(77,157,224,0.6);
  font-size: 12px;
  font-style: italic;
  animation: wl-skeleton-pulse 1.2s ease-in-out infinite;
}
.wl-wval .wl-weather-loading {
  font-size: 13px;
}

/* ── 9. FAQ accordion ─────────────────────────────────────────── */
.wl-faq-block {
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}
.wl-faq-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}
.wl-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.wl-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.18s;
}
.wl-faq-q:hover { color: #4d9de0; }
.wl-faq-q-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: rgba(77,157,224,0.6);
  transition: transform 0.25s;
  margin-top: 2px;
}
.wl-faq-item.open .wl-faq-q-icon {
  transform: rotate(45deg);
}
.wl-faq-item.open .wl-faq-q {
  color: #4d9de0;
}
.wl-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding 0.2s;
  font-size: 13.5px;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
  padding: 0;
}
.wl-faq-item.open .wl-faq-a {
  max-height: 400px;
  padding-bottom: 14px;
}

