@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

  /* ═══════════════════════════════════════════
     DESIGN TOKENS — high-contrast minimalism
     (Refero: Mike Matas + HyperAktiv blueprint)
     ═══════════════════════════════════════════ */
  :root {
    /* Text — all opaque, all passing WCAG AA on surface/bg */
    --t1: #1a1f36;   /* primary — 14.3:1 on white, 13.5:1 on #edf4ff */
    --t2: #4a5068;   /* secondary — 7.8:1 on white, 7.3:1 on #edf4ff */
    --t3: #6b7280;   /* tertiary — 5.2:1 on white, 4.9:1 on #edf4ff */
    --tm: #9ca3af;   /* muted — decorative only, 13px+ */
    /* Brand */
    --red: #fa0f46;
    --blue: #19a0d8;
    --blue-dark: #132ccd;
    /* Surfaces */
    --surface: #ffffff;
    --surface-glass: rgba(255,255,255,0.88);
    --bg: #edf4ff;
    --border: rgba(0,0,0,0.06);
    --border-hover: rgba(250,15,70,0.12);
    /* Spacing — 8px grid */
    --s0: 2px; --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
    /* Typography */
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px; --fs-lg: 14px;
    --fs-h3: 15px; --fs-h2: 18px; --fs-h1: 20px;
    --lh-body: 1.5; --lh-heading: 1.35;
    --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-black: 800;
    /* Motion */
    --ease-out: cubic-bezier(0.175, 0.885, 0.32, 1.1);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
  body {
    font-family: var(--font);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
  }

  /* ── Map ── */
  #map {
    width: 100%; height: 100%;
    z-index: 1; position: relative;
    transition: all 0.4s var(--ease-out);
    border-radius: 0;
    background: #edf4ff;
  }
  body.sidebar-open #map {
    width: calc(100% - 380px - 28px);
    height: calc(100% - 28px);
    margin: 14px 0 14px 14px;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
  }
  @media (max-width: 768px) {
    body.sidebar-open #map { width: 100%; border-radius: 0; }
    #rss-sidebar { width: 100%; right: -100%; }
    #rss-content { padding: 8px; }
    #rss-content .rss-card { margin-bottom: var(--s1); }
    #rss-promo { margin: 0 8px 8px; }
  }
.leaflet-tile-loaded { filter: contrast(1.02) saturate(1.1); }
/* Restore Nino blue tint — sepia+hue-rotate adds blue cast to neutral tile areas */
img.leaflet-tile[src*="cartocdn"] {
  filter: sepia(0.35) hue-rotate(175deg) saturate(1.4) brightness(1.03);
}
.leaflet-control-attribution a[href*="google"] { display: none; }

  /* ── Sidebar ── */
  #rss-sidebar {
    position: fixed; top: 0; right: -380px; bottom: 0;
    width: 380px; z-index: 1001;
    background: var(--bg);
    display: flex; flex-direction: column;
    transition: right 0.4s var(--ease-out);
  }
  body.sidebar-open #rss-sidebar { right: 0; }

  #rss-header {
    display: none;
    position: sticky; top: 12px;
    margin: 0 12px 8px;
    padding: var(--s3) 16px;
    border-radius: 16px;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 10;
  }
  #rss-header.visible {
    display: flex;
  }
    background: rgba(237,244,255,0.75);
    backdrop-filter: blur(30px) saturate(1.6);
    -webkit-backdrop-filter: blur(30px) saturate(1.6);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
    cursor: pointer;
    z-index: 10;
  }
  #rss-header::before {
    content: '';
    position: absolute;
    bottom: 8px; left: 16px; right: 16px; height: 2px;
    border-radius: 1px;
    width: var(--sp-w, 0%);
    background: rgba(0,0,0,0.2);
    pointer-events: none;
    transition: width 0.08s linear;
  }
  #rss-header h2 {
    font-size: var(--fs-h2); font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    color: var(--t1); text-transform: uppercase;
  }


  /* ── Promo Component ── */
  #rss-promo {
    margin: 0 14px 10px; padding: 14px var(--s4);
    flex-shrink: 0;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex; align-items: center; gap: 14px;
    cursor: pointer; transition: all 0.2s;
    box-shadow: inset 0 0 20px -5px rgba(255,255,255,0.25), 0 2px 12px rgba(0,0,0,0.04);
  }
  #rss-promo:hover {
    background: rgba(255,255,255,0.82);
    border-color: rgba(250,15,70,0.2);
  }
  #rss-promo .promo-icon {
    width: 44px; height: 44px; border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(250,15,70,0.15);
    overflow: hidden;
  }
  #rss-promo .promo-icon img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
  }
  #rss-promo .promo-text { flex: 1; min-width: 0; }
  #rss-promo .promo-text .promo-title {
    font-size: var(--fs-sm); font-weight: var(--fw-bold);
    color: var(--t1); line-height: 1.3; margin-bottom: 2px;
  }
  #rss-promo .promo-text .promo-sub {
    font-size: 10px; font-weight: var(--fw-medium);
    color: var(--t3); line-height: 1.4;
  }
  #rss-promo .promo-badge {
    flex-shrink: 0; margin-left: auto;
    display: flex; align-items: center;
  }
  #rss-promo .promo-badge svg {
    display: block; border-radius: 5px;
  }

  @keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(250,15,70,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(250,15,70,0); }
    100% { box-shadow: 0 0 0 0 rgba(250,15,70,0); }
  }
  .live-dot {
    display: inline-block; width: 6px; height: 6px;
    border-radius: 50%; background: #fa0f46;
    margin-left: 8px; vertical-align: middle;
    animation: live-pulse 1.5s infinite;
  }
  @keyframes card-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .rss-card { animation: card-in 0.3s ease both; }
  .rss-card:nth-child(1) { animation-delay: 0s; }
  .rss-card:nth-child(2) { animation-delay: 0.03s; }
  .rss-card:nth-child(3) { animation-delay: 0.06s; }
  .rss-card:nth-child(4) { animation-delay: 0.09s; }
  .rss-card:nth-child(5) { animation-delay: 0.12s; }
  .rss-card:nth-child(6) { animation-delay: 0.15s; }
  .rss-card:nth-child(7) { animation-delay: 0.18s; }
  @keyframes pin-pulse {
    to { box-shadow: 0 0 0 12px rgba(250,15,70,0); }
  }

  /* ── News feed content ── */
  #rss-content {
    flex: 1; overflow-y: auto; min-height: 0;
    scroll-behavior: smooth;
  }
  #rss-content::-webkit-scrollbar { width: 3px; }
  #rss-content::-webkit-scrollbar-track { background: transparent; }

  /* ── Geo page header (daily H1) ── */
  .geo-header {
    padding: 12px 16px 4px;
  }
  .geo-header .geo-h1 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--t1);
    margin: 0;
  }

  /* ── OBSERVER watermark ── */
  #observer-watermark {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 998;
    pointer-events: none;
    text-align: center;
    padding-bottom: 40px;
    opacity: 1;
    transition: opacity 1s ease;
  }
  #observer-watermark.faded {
    opacity: 0;
  }
  #observer-watermark span {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: min(18vw, 180px);
    font-style: italic;
    font-weight: 900;
    color: rgba(0,0,0,0.06);
    letter-spacing: -0.04em;
    line-height: 0.85;
    user-select: none;
    display: block;
  }
  body.sidebar-open #observer-watermark {
    opacity: 0;
  }

  /* ── Cookie banner — constrained to map area on desktop ── */
  .cookie-banner {
    position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%);
    z-index: 9999;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 14px 20px;
    max-width: 480px; width: 90%;
    display: flex; align-items: center; gap: 14px;
    box-shadow: inset 0 0 20px -5px rgba(255,255,255,0.25), 0 8px 32px rgba(0,0,0,0.08);
    animation: cookie-slide-up 0.4s var(--ease-out);
  }
  body.sidebar-open .cookie-banner {
    left: 50%; transform: translateX(-50%);
  }
  @media (min-width: 769px) {
    body.sidebar-open .cookie-banner {
      left: calc(50% - 190px);
    }
  }

  .ad-card {
    margin: 0 10px var(--s2); border-radius: 16px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
    min-height: 90px;
    display: flex; align-items: center; justify-content: center;
    padding: var(--s2);
    position: relative;
    box-shadow: inset 0 0 20px -5px rgba(255,255,255,0.25), 0 2px 12px rgba(0,0,0,0.04);
  }
  .ad-card .ad-label {
    position: absolute; top: 6px; right: 8px;
    font-size: 8px; font-weight: var(--fw-semibold);
    color: var(--tm); text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .rss-card .card-image {
    width: 100%; height: 150px; overflow: hidden;
    position: relative; background: var(--bg);
    border-radius: 14px 14px 0 0;
  }
  .rss-card .card-image img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.3s ease;
  }
  .rss-card:hover .card-image img { transform: scale(1.03); }
  .rss-card .card-image::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--surface-glass));
    pointer-events: none;
  }
  .rss-card {
    margin: 0 10px var(--s2); border-radius: 16px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer; overflow: hidden;
    transition: all 0.2s var(--ease-out);
    position: relative;
    box-shadow: inset 0 0 20px -5px rgba(255,255,255,0.25), 0 2px 12px rgba(0,0,0,0.04);
  }
  .rss-card:hover {
    background: rgba(255,255,255,0.82);
    border-color: var(--border-hover);
    box-shadow: inset 0 0 20px -5px rgba(255,255,255,0.35), 0 4px 20px rgba(250,15,70,0.06);
    transform: translateY(-1px);
  }
  .rss-card:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: -2px;
  }
  .rss-card .card-header {
    display: flex; align-items: center; gap: 10px;
    padding: var(--s3) 14px 0 16px;
  }
  .rss-card .card-header img {
    width: 28px; height: 28px; border-radius: 6px;
    background: rgba(0,0,0,0.04); object-fit: contain;
  }
  .rss-card .card-header .source-info {
    display: flex; flex-direction: column; gap: 1px;
  }
  .rss-card .card-header .source-name {
    font-size: 10px; font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    color: var(--t2); text-transform: uppercase;
  }
  .rss-card .card-header .date {
    font-size: var(--fs-xs); color: var(--t3);
    font-weight: var(--fw-medium);
  }
  .rss-card .card-body {
    padding: 4px 14px var(--s1) 16px;
  }
  .rss-card .card-body .title {
    font-size: var(--fs-md); font-weight: var(--fw-semibold);
    color: var(--t1); line-height: var(--lh-heading);
    margin-bottom: 2px;
  }
  .rss-card .card-body .title-translated {
    font-size: var(--fs-sm); font-weight: var(--fw-medium);
    color: var(--blue); line-height: var(--lh-heading);
    margin-bottom: 6px;
    border-left: 2px solid rgba(25,160,216,0.2); padding-left: var(--s2);
  }
  .rss-card .card-body .description {
    font-size: var(--fs-sm); color: var(--t3);
    line-height: var(--lh-body); margin-bottom: 6px;
  }
  .rss-card .card-footer {
    display: flex; align-items: center; gap: 4px;
    padding: 0 14px var(--s3) 16px;
  }
  .rss-card .card-footer .location {
    font-size: 9px; font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    color: var(--red); background: rgba(250,15,70,0.06);
    padding: 2px 8px; border-radius: 6px;
    text-transform: uppercase;
    margin-right: auto;
  }
  /* ── Action icons: summarize, like, share (icon-only) ── */
  .rss-card .card-footer .action-icons {
    display: inline-flex; align-items: center; gap: 2px;
    margin-left: auto;
  }
  .rss-card .card-footer .action-icons button {
    background: none; border: none; padding: 4px 5px;
    cursor: pointer; border-radius: 6px;
    font-size: 13px; line-height: 1;
    transition: all 0.15s ease;
    font-family: var(--font);
    color: var(--t3);
    display: inline-flex; align-items: center; justify-content: center;
  }
  .rss-card .card-footer .action-icons button i {
    font-size: 16px; line-height: 1;
    display: block;
  }
  .rss-card .card-footer .action-icons button:hover {
    background: rgba(0,0,0,0.04);
    transform: scale(1.12);
  }
  .rss-card .card-footer .action-icons button:active {
    transform: scale(0.92);
  }
  .rss-card .card-footer .action-icons .share-icon { color: var(--t3); }
  .rss-card .card-footer .action-icons .share-icon:hover { background: rgba(0,0,0,0.04); color: var(--t1); }


  .rss-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 48px var(--s5); gap: 10px;
    font-size: 10px; font-weight: var(--fw-semibold);
    color: var(--tm); letter-spacing: 0.06em; text-transform: uppercase;
  }
  .rss-loading .spinner {
    width: 16px; height: 16px;
    border: 2px solid var(--border); border-top-color: var(--red);
    border-radius: 50%; animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ── Load More indicator ── */
  .load-more-bar {
    text-align: center; padding: 14px 16px 20px;
    font-size: 10px; font-weight: var(--fw-semibold);
    color: var(--t3); letter-spacing: 0.04em; text-transform: uppercase;
    position: relative;
    animation: load-more-slide 0.3s ease;
  }
  .load-more-bar .load-more-handle {
    display: block; width: 32px; height: 3px;
    background: var(--border); border-radius: 2px;
    margin: 0 auto 8px;
  }
  .load-more-bar.loading { color: var(--red); }
  @keyframes load-more-slide {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  /* ── Unified Map Popup ── */
  .nino-popup .leaflet-popup-content-wrapper {
    border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid var(--border); padding: 0;
  }
  .nino-popup .leaflet-popup-content { margin: var(--s3); min-width: 220px; }
  .map-popup { font-family: var(--font); }
  .map-popup .map-popup-header {
    display: flex; align-items: center; gap: var(--s2);
    margin-bottom: var(--s2);
  }
  .map-popup .map-popup-favicon {
    width: 32px; height: 32px; border-radius: 6px;
    background: rgba(0,0,0,0.03); object-fit: contain;
    flex-shrink: 0;
  }
  .map-popup .map-popup-header-text { display: flex; flex-direction: column; gap: 1px; }
  .map-popup .map-popup-source {
    font-size: var(--fs-xs); font-weight: var(--fw-bold);
    color: var(--t2); text-transform: uppercase; letter-spacing: 0.04em;
  }
  .map-popup .map-popup-date {
    font-size: 10px; color: var(--t3); font-weight: var(--fw-medium);
  }
  .map-popup .map-popup-title {
    font-size: var(--fs-md); font-weight: var(--fw-semibold);
    color: var(--t1); line-height: var(--lh-heading);
    margin-bottom: var(--s1);
  }
  .map-popup .map-popup-desc {
    font-size: var(--fs-sm); color: var(--t2);
    line-height: var(--lh-body); margin-bottom: var(--s2);
  }
  .map-popup .map-popup-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: var(--fs-xs); font-weight: var(--fw-semibold);
    color: var(--red); text-decoration: none;
    padding: var(--s1) 10px; border-radius: 6px;
    background: rgba(250,15,70,0.06);
    transition: background 0.15s;
  }
  .map-popup .map-popup-link:hover { background: rgba(250,15,70,0.12); }

  /* ── News pin on map ── */
  .news-pin {
    width: 24px; height: 24px; border-radius: 6px;
    background: var(--surface); border: 1.5px solid var(--border);
    overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex; align-items: center; justify-content: center;
  }
  .news-pin img {
    width: 16px; height: 16px; object-fit: contain;
  }

  /* ── Custom Story Cluster ── */
  .marker-cluster-nino {
    background: rgba(255,255,255,0.82) !important;
    backdrop-filter: blur(10px) saturate(1.4);
    -webkit-backdrop-filter: blur(10px) saturate(1.4);
    border: 1px solid rgba(250,15,70,0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(250,15,70,0.15) !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .marker-cluster-nino div {
    background: transparent !important;
  }
  .marker-cluster-nino span {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    letter-spacing: -0.02em;
  }

  /* ── Responsive ── */
  @media (max-width: 768px) {
    /* Sidebar is full-screen overlay on mobile */
    body.sidebar-open #map {
      width: 100%; height: 100dvh; border-radius: 0; margin: 0;
    }
    #rss-sidebar {
      width: 100%; right: 0; bottom: auto; top: 100dvh;
      height: 100dvh; border-radius: 0;
      background: #ffffff;
      transition: top 0.3s var(--ease-out);
      z-index: 1002;
    }
    body.sidebar-open #rss-sidebar { top: 0; right: 0; }

    #rss-sidebar::before {
      content: '';
    }

    #rss-header { margin: 10px 10px 6px; padding: var(--s2) 12px; border-radius: 14px; }
    #rss-header h2 { font-size: var(--fs-lg); }
    #rss-promo { margin: 0 var(--s2) var(--s2); }
    #rss-content {
      flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    }

    .rss-card { margin: 0 8px var(--s1); border-radius: var(--s3); }
    .rss-card .card-body .title { font-size: var(--fs-sm); }
    .rss-card .card-body .description { font-size: 11px; }
  }

  .leaflet-control-attribution {
    background: rgba(237,244,255,0.6) !important;
    color: var(--t3) !important; font-size: 9px !important;
    border: none !important; border-top-left-radius: 6px;
  }
  .leaflet-control-attribution a { color: var(--t3) !important; }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-2px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── Reduced motion ── */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* ── Topic pill slider removed ── */

  /* ── nino.news Pill ── */
  .news-site-pill {
    position: fixed; top: 16px; left: 16px;
    z-index: 2000;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    padding: 6px 16px;
    color: var(--t1); font-size: 12px; font-weight: 600;
    text-decoration: none; letter-spacing: 0.02em;
    box-shadow: inset 0 0 20px -5px rgba(255,255,255,0.35), 0 4px 24px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    font-family: var(--font);
  }
  .news-site-pill:hover {
    background: rgba(255,255,255,0.85);
    border-color: var(--red);
    color: var(--red);
    box-shadow: inset 0 0 20px -5px rgba(255,255,255,0.5), 0 4px 16px rgba(250,15,70,0.12);
  }
  /* Hide pill when sidebar is open */
  body.sidebar-open .news-site-pill {
    opacity: 0; pointer-events: none;
  }
  @media (max-width: 768px) {
    .news-site-pill { top: 10px; left: 10px; font-size: 11px; padding: 5px 12px; }

    .map-btn-group { display: none !important; } /* mobile: only bottom pill */
    .map-controls-left {
      bottom: 70px;
      left: 12px;
      border-radius: 12px;
    }
    .map-controls-left .map-ctrl-btn {
      width: 38px;
      height: 38px;
    }
  }

  /* ── Map Top-Right Buttons container (inside #map) ── */
  .map-btn-group {
    position: absolute; top: 16px; right: 16px;
    z-index: 1000;
    display: flex; align-items: center;
    gap: 6px;
  }

  /* ── Floating buttons (News, Locate) ── */
  .map-btn-group .map-btn {
    display: flex; align-items: center; gap: var(--s2);
    padding: 10px 18px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    color: var(--t1); font-size: var(--fs-sm); font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: inset 0 0 20px -5px rgba(255,255,255,0.35), 0 4px 24px rgba(0,0,0,0.06);
    transition: all 0.3s var(--ease-out);
    text-transform: uppercase;
    font-family: var(--font);
    white-space: nowrap;
  }
  .map-btn-group .map-btn:hover {
    background: rgba(255,255,255,0.85);
    box-shadow: inset 0 0 20px -5px rgba(255,255,255,0.5), 0 6px 28px rgba(0,0,0,0.1);
    transform: translateY(-1px);
  }

  /* ── Bottom-left Map Controls (Zoom + Locate) ── */
  .map-controls-left {
    position: absolute;
    bottom: 20px;
    left: 16px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
    padding: 4px;
    overflow: hidden;
  }
  .map-controls-left .map-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--t2);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
  }
  .map-controls-left .map-ctrl-btn:hover {
    background: rgba(0,0,0,0.04);
    color: var(--t1);
    transform: scale(1.05);
  }
  .map-controls-left .map-ctrl-btn:active {
    transform: scale(0.95);
  }
  .map-controls-left .map-ctrl-btn:first-child {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px 10px 4px 4px;
  }
  .map-controls-left .map-ctrl-btn:nth-child(2) {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-radius: 4px;
  }
  .map-controls-left .map-ctrl-btn:last-child {
    border-radius: 4px 4px 10px 10px;
  }

  /* ── Sexy Location Marker ── */
  .location-marker-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .location-dot {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5), 0 0 0 4px rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 3;
    animation: loc-pulse-dot 2s ease-out infinite;
  }
  .location-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.6);
    background: transparent;
  }
  .location-ring.ring-1 {
    width: 30px;
    height: 30px;
    animation: loc-pulse-ring 2s ease-out infinite;
  }
  .location-ring.ring-2 {
    width: 50px;
    height: 50px;
    animation: loc-pulse-ring 2s ease-out 0.4s infinite;
  }
  .location-ring.ring-3 {
    width: 70px;
    height: 70px;
    animation: loc-pulse-ring 2s ease-out 0.8s infinite;
  }
  @keyframes loc-pulse-dot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }
  @keyframes loc-pulse-ring {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0; }
  }

  /* ── Map Feed toggle button (desktop: on map, mobile: bottom pill) ── */
  #feed-toggle-pill {
    display: none; /* desktop: hidden — use the map-btn-group button instead */
  }
  @media (max-width: 768px) {
    #feed-toggle-pill {
      display: flex;
      position: fixed; bottom: 10px; left: 50%; right: auto; top: auto;
      transform: translateX(-50%);
      z-index: 2000;
      align-items: center; gap: var(--s2);
      padding: 8px 16px; font-size: 11px;
      background: rgba(255,255,255,0.72);
      backdrop-filter: blur(20px) saturate(1.4);
      -webkit-backdrop-filter: blur(20px) saturate(1.4);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 100px;
      color: var(--t1); font-weight: var(--fw-bold);
      letter-spacing: 0.06em;
      cursor: pointer;
      box-shadow: inset 0 0 20px -5px rgba(255,255,255,0.35), 0 4px 24px rgba(0,0,0,0.06);
      transition: all 0.3s var(--ease-out);
      text-transform: uppercase;
      font-family: var(--font);
    }
    #feed-toggle-pill:hover {
      background: rgba(255,255,255,0.85);
      transform: translateX(-50%) translateY(-2px);
    }
    #feed-toggle-pill .icon {
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--red); box-shadow: 0 0 0 0 var(--red);
      animation: live-pulse 2s infinite;
    }
    body.sidebar-open #feed-toggle-pill {
      background: rgba(255,255,255,0.9);
      color: var(--t1);
      border: 1px solid rgba(0,0,0,0.08);
    }
    body.sidebar-open #feed-toggle-pill .icon { display: none; }
  }

/* ── Cookie Consent Banner (light) ── */
.cookie-banner p {
  color: var(--t2); font-size: 12px; line-height: 1.5; margin: 0; flex: 1;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.cookie-banner a { color: var(--red); text-decoration: underline; }
.cookie-banner button {
  background: var(--t1); color: #fff; border: none;
  border-radius: 8px; padding: 8px 18px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.cookie-banner button:hover { opacity: 0.8; }
.cookie-banner.hidden { display: none; }
@keyframes cookie-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (max-width: 768px) {
  .cookie-banner { bottom: 70px; flex-direction: column; text-align: center; padding: 12px 16px; }
}

/* ── Email "Get Updates" Modal ── */
.email-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.email-modal-overlay.open {
  opacity: 1; pointer-events: auto;
}
.email-modal {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 32px 28px 28px;
  max-width: 380px; width: 90%;
  box-shadow: inset 0 0 20px -5px rgba(255,255,255,0.25), 0 24px 60px rgba(0,0,0,0.2);
  position: relative;
  transform: translateY(12px);
  transition: transform 0.3s var(--ease-out);
}
.email-modal-overlay.open .email-modal {
  transform: translateY(0);
}
.email-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
  color: var(--t2); transition: all 0.15s;
  font-family: var(--font);
}
.email-modal-close:hover { color: var(--red); background: rgba(250,15,70,0.06); }
.email-modal h3 {
  font-size: var(--fs-h2); font-weight: var(--fw-black);
  color: var(--t1); margin-bottom: 4px; letter-spacing: 0.02em;
}
.email-modal p {
  font-size: var(--fs-sm); color: var(--t3);
  line-height: var(--lh-body); margin-bottom: 16px;
}
.email-modal .email-input-group {
  display: flex; gap: 8px;
}
.email-modal .email-input-group input {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: var(--fs-md); font-family: var(--font);
  color: var(--t1); background: var(--bg);
  outline: none; transition: border-color 0.15s;
}
.email-modal .email-input-group input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(250,15,70,0.08);
}
.email-modal .email-input-group input::placeholder {
  color: var(--tm);
}
.email-modal .email-input-group button {
  padding: 10px 18px;
  background: var(--red); color: #fff; border: none;
  border-radius: 10px; font-size: var(--fs-sm);
  font-weight: var(--fw-bold); cursor: pointer;
  font-family: var(--font); white-space: nowrap;
  transition: opacity 0.15s;
}
.email-modal .email-input-group button:hover { opacity: 0.85; }
.email-modal .email-input-group button:disabled { opacity: 0.4; cursor: default; }
.email-modal .email-status {
  font-size: var(--fs-xs); margin-top: 8px;
  color: var(--t3); min-height: 18px;
}
.email-modal .email-status.success { color: #22c55e; }
.email-modal .email-status.error { color: var(--red); }
.email-modal .email-dismiss {
  display: block; margin: 12px auto 0;
  background: none; border: none;
  font-size: var(--fs-xs); font-weight: var(--fw-medium);
  color: var(--t3); cursor: pointer;
  font-family: var(--font); text-decoration: underline;
  transition: color 0.15s;
}
.email-modal .email-dismiss:hover { color: var(--t1); }

/* ── Skeleton Loading Cards ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-card {
  margin-bottom: var(--s2); border-radius: 12px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: card-in 0.3s ease both;
}
.skeleton-card .skeleton-image {
  width: 100%; height: 150px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-card .skeleton-bar {
  border-radius: 4px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-card .skeleton-source {
  height: 12px; width: 80px; margin: 12px 14px 0 16px;
}
.skeleton-card .skeleton-title {
  height: 14px; width: 70%; margin: 8px 14px 0 16px;
}
.skeleton-card .skeleton-desc {
  height: 10px; width: 85%; margin: 8px 14px 16px 16px;
}

/* ── Topic pill pulse during load ── */
@keyframes pill-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}


  /* ── Skeleton shimmer premium ── */
  @keyframes shimmer-premium {
    0% { background-position: -300% 0; }
    100% { background-position: 300% 0; }
  }
  .skeleton-card .skeleton-image,
  .skeleton-card .skeleton-bar {
    background: linear-gradient(90deg,
      var(--bg) 20%,
      rgba(250,15,70,0.04) 40%,
      rgba(25,160,216,0.04) 50%,
      var(--bg) 70%
    );
    background-size: 300% 100%;
    animation: shimmer-premium 1.8s ease-in-out infinite;
  }

  /* ── Pin Detail Card (liquid glass) ── */
  #pin-detail {
    position: fixed; z-index: 10000;
    pointer-events: none; opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(8px);
  }
  #pin-detail.open {
    opacity: 1; pointer-events: auto;
    transform: translateY(0);
  }
  #pin-detail .pd-inner {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 16px 18px;
    max-width: 340px;
    box-shadow: inset 0 0 20px -5px rgba(255,255,255,0.25), 0 8px 40px rgba(0,0,0,0.12);
    cursor: default;
  }
  #pin-detail .pd-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
  }
  #pin-detail .pd-favicon {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(0,0,0,0.03); object-fit: contain;
    flex-shrink: 0;
  }
  #pin-detail .pd-source {
    font-size: 10px; font-weight: 700;
    color: var(--t2); text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  #pin-detail .pd-date {
    font-size: 10px; color: var(--t3);
    font-weight: 500;
  }
  #pin-detail .pd-title {
    font-size: 14px; font-weight: 600;
    color: var(--t1); line-height: 1.35;
    margin-bottom: 4px;
  }
  #pin-detail .pd-title-translated {
    font-size: 13px; font-weight: 500;
    color: var(--blue); line-height: 1.35;
    margin-bottom: 6px;
    border-left: 2px solid rgba(25,160,216,0.2);
    padding-left: 10px;
  }
  #pin-detail .pd-desc {
    font-size: 12px; color: var(--t3);
    line-height: 1.5; margin-bottom: 8px;
  }
  #pin-detail .pd-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    color: var(--red); background: rgba(250,15,70,0.06);
    padding: 4px 12px; border-radius: 8px;
    text-decoration: none;
  }
  #pin-detail .pd-link:hover { background: rgba(250,15,70,0.12); }
  /* Highlighted feed card (when clicking a matching map pin) */
  .rss-card.highlighted {
    box-shadow: 0 0 0 1.5px rgba(25,160,216,0.15), 0 6px 32px rgba(25,160,216,0.25), 0 16px 60px -8px rgba(25,160,216,0.15) !important;
    transform: scale(1.015);
    outline: 2px solid rgba(25,160,216,0.2);
    outline-offset: -2px;
    transition: all 0.3s ease;
    background: rgba(25,160,216,0.03) !important;
  }
  #pin-detail .pd-arrow {
    position: absolute; width: 14px; height: 14px;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(40px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.2);
    border-top: none; border-left: none;
    transform: rotate(45deg);
    bottom: -8px; left: 50%; margin-left: -7px;
    border-radius: 0 0 3px 0;
  }

  /* ── Fire emoji markers ── */
  .fire-emoji-marker {
    background: none !important;
    border: none !important;
  }
  @keyframes fire-bounce {
    0% { opacity: 0; transform: scale(0.3) translateY(20px); }
    60% { transform: scale(1.2) translateY(-4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
  }

/* ── Pull-to-Refresh indicator ── */
.ptr-indicator {
  text-align: center; padding: 12px;
  font-size: 11px; font-weight: var(--fw-semibold);
  color: var(--t3); letter-spacing: 0.04em; text-transform: uppercase;
  transition: opacity 0.2s ease;
  position: sticky; top: 0; z-index: 5;
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border);
}

/* ── New Articles pill ── */
.new-articles-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  margin: 0 auto 10px;
  width: fit-content;
  background: rgba(237,244,255,0.8);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 100px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.new-articles-pill.visible {
  display: flex;
}
.new-articles-pill:hover {
  background: rgba(237,244,255,0.95);
  border-color: rgba(250,15,70,0.15);
  color: var(--red);
  box-shadow: 0 4px 16px rgba(250,15,70,0.08);
}
.new-articles-pill .nap-favicons {
  display: flex;
  align-items: center;
}
.new-articles-pill .nap-favicons img {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--bg);
  flex-shrink: 0;
}
.new-articles-pill .nap-favicons img + img {
  margin-left: -5px;
}
.new-articles-pill .nap-label {
  font-size: 10px;
  font-weight: 700;
  color: inherit;
}
.new-articles-pill .nap-arrow {
  font-size: 14px; line-height: 1;
  opacity: 0.5; transition: transform 0.2s;
}
.new-articles-pill:hover .nap-arrow {
  transform: translateY(-2px);
}


/* ── Share particle burst ── */
.share-burst {
  position: fixed; pointer-events: none; z-index: 99999;
  font-size: 20px;
  animation: burst-fly 0.8s ease-out forwards;
}
@keyframes burst-fly {
  0% { transform: translate(0,0) scale(0.5); opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)) scale(0); opacity: 0; }
}

@keyframes like-pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* ── Checkpoint burst (emoji particle) ── */
.cp-particle {
  position: fixed; pointer-events: none; z-index: 99999;
  font-size: 18px;
  animation: cp-fly 1s cubic-bezier(0,.8,.5,1) forwards;
}
@keyframes cp-fly {
  0% { transform: translate(0,0) scale(0.3); opacity: 1; }
  50% { opacity: 1; }
  100% { transform: translate(var(--cp-x), var(--cp-y)) scale(0); opacity: 0; }
}

/* ── Share Modal ── */
#share-modal {
  display: none;
  position: fixed; inset: 0; z-index: 99999;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#share-modal.open { display: flex; }
#share-modal .share-modal-inner {
  background: var(--surface);
  border-radius: 16px;
  padding: var(--s6);
  max-width: 400px; width: 90%;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  text-align: center;
  animation: modal-in 0.25s var(--ease-out);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
#share-modal .share-modal-img {
  width: 100%; border-radius: 12px;
  margin-bottom: var(--s4);
  border: 1px solid var(--border);
}
#share-modal .share-modal-actions {
  display: flex; gap: 8px; justify-content: center;
}

#share-modal .share-modal-actions button {
  padding: 8px 20px; border-radius: 10px;
  border: none; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  font-family: var(--font);
}
#share-modal .sm-download {
  background: var(--red); color: #fff;
}
#share-modal .sm-download:hover { background: #e00a3a; }
#share-modal .sm-close {
  background: var(--border); color: var(--t2);
}
#share-modal .sm-close:hover { background: rgba(0,0,0,0.1); }

/* ── Share Preview (capture target) ── */
#share-preview {
  width: 340px; padding: 16px;
  background: #fff;
  border-radius: 14px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  position: absolute; left: -9999px; top: 0;
}
#share-preview .sp-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
#share-preview .sp-header img {
  width: 18px; height: 18px; border-radius: 4px;
}
#share-preview .sp-header .sp-source {
  font-size: 11px; font-weight: 600;
  color: var(--t3); letter-spacing: 0.02em;
}
#share-preview .sp-title {
  font-size: 15px; font-weight: 700;
  color: var(--t1); line-height: 1.4;
  margin-bottom: 10px;
}
#share-preview .sp-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 0 0 8px;
}
#share-preview .sp-footer {
  font-size: 10px; font-weight: 600;
  color: var(--t3); letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Fire Drop (Emoji Rain) ── */
@keyframes fire-drop {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(calc(100vh + 40px)) rotate(720deg); opacity: 0; }
}
.fire-drop {
  position: fixed; top: 0; z-index: 99998;
  pointer-events: none;
  font-size: 24px;
  animation: fire-drop 1.8s ease-in forwards;
}

/* ── Coverage Text ── */
.coverage-text {
  text-align: center;
  font-size: 10px; font-weight: var(--fw-semibold);
  color: var(--t3);
  padding: 4px 0 2px;
  letter-spacing: 0.02em;
}
.coverage-text .pct {
  color: var(--red);
}

/* ── FIRMS Marquee Bar ── */
#firms-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 500;
  height: 80px; pointer-events: none;
  overflow: hidden;
}
.firms-gradient {
  position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background: linear-gradient(180deg, rgba(250,15,70,0.92) 0%, rgba(250,15,70,0.35) 40%, rgba(250,15,70,0) 100%);
  pointer-events: none;
}
.firms-marquee {
  position: absolute; top: 12px; left: 0; right: 0;
  white-space: nowrap;
  font-family: var(--font);
  font-size: 16px; font-weight: 800;
  color: #fff; letter-spacing: 0.02em;
  padding: 0 24px;
  animation: firms-scroll 20s linear infinite;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
@keyframes firms-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── Nino Portrait Scroll (top of sidebar) ── */
#nino-portraits {
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 8px 14px;
  display: inline-flex;
  width: 110px;
  vertical-align: top;
  gap: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#nino-portraits::-webkit-scrollbar { display: none; }
.nino-portrait-item {
  flex-shrink: 0;
  width: 56px; height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  background: #f0f4ff;
}
.nino-portrait-item:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(250,15,70,0.15);
}
.nino-portrait-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.nino-portrait-item .portrait-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-size: 7px; font-weight: 700;
  color: #fff; text-align: center;
  padding: 2px 2px 3px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Geofact Markers (bigger, pop-in) ── */
.geofact-marker { background: transparent !important; border: none !important; }
@keyframes geofact-pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.25); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}
.geofact-marker div { animation: geofact-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; }
.geofact-marker div:hover { transform: scale(1.18) !important; box-shadow: 0 6px 24px rgba(0,0,0,0.2) !important; z-index: 9999 !important; }
.geofact-marker.pop-delay-1 div { animation-delay: 0.03s; }
.geofact-marker.pop-delay-2 div { animation-delay: 0.06s; }
.geofact-marker.pop-delay-3 div { animation-delay: 0.09s; }

/* ── Image Viewer (fluent morph + blur reveal) ── */
#image-viewer {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 99999;
  display: none;
  background: rgba(0,0,0,0);
  transition: background 0.4s ease;
}
#image-viewer.open { display: block; background: rgba(0,0,0,0.85); }
#iv-container {
  position: fixed;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
#iv-container img,
#iv-container video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
#iv-container video { display: none; }
#iv-container img {
  transition: filter 0.4s ease;
}
.iv-headline {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 20px 20px 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
  color: #fff;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
  pointer-events: none;
}
.iv-headline.show { opacity: 1; }
#iv-unlock-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  padding: 14px 32px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 10;
  white-space: nowrap;
}
#iv-unlock-btn.show { opacity: 1; pointer-events: auto; }

/* ── Branded News Article Marker Clusters ── */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
  background-color: rgba(250, 15, 70, 0.12) !important;
  border: 1px solid rgba(250, 15, 70, 0.25) !important;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background-color: rgba(250, 15, 70, 0.88) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-family: var(--font) !important;
  box-shadow: 0 2px 8px rgba(250, 15, 70, 0.3) !important;
}