  /* Scoped reset: only apply inside explorer elements, not the entire page.
     Webflow has its own reset; a global * reset clobbers ScrollSmoother & nav. */
  .filter-bar *, .filter-bar *::before, .filter-bar *::after,
  .main *, .main *::before, .main *::after,
  .explorer-lang-switcher *, .explorer-lang-switcher *::before, .explorer-lang-switcher *::after,
  .lightbox *, .lightbox *::before, .lightbox *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --brand-red: #e8614d; --brand-yellow: #f0a830; --brand-offwhite: #fffbf3;
    --brand-orange: #e8614d; --dark: #2d2a26; --mid: #7a7265; --light: #a09788;
    --bg: #f5f0e8; --card-bg: #fffbf3; --border: #e5ddd0; --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08); --shadow-hover: 0 8px 28px rgba(0,0,0,0.12);
    --font: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 0px; --filter-height: 112px;  /* nav-height is 0 because Webflow's own nav sits above the explorer */
    --upcoming-bg: rgba(45,130,120,0.10); --upcoming-text: #2d8278;
    --past-bg: rgba(240,168,48,0.10); --past-text: #c48a1a;
    --brand-teal: #2d8278; --brand-coral: #e8614d; --img-placeholder: #eae4d9;
  }
  html { font-size: 16px; }
  /* Don't lock body overflow/height — that breaks Webflow's ScrollSmoother.
     The explorer's own .main panel handles internal scrolling. */
  body { font-family: var(--font); color: var(--dark); background: var(--bg); }
  a { color: inherit; text-decoration: none; }
  button { cursor: pointer; font-family: var(--font); }

  /* LANGUAGE SWITCHER (positioned in filter bar area) */
  .explorer-lang-switcher { display: flex; gap: 4px; align-items: center; position: absolute; top: 12px; right: 24px; z-index: 100; }
  .lang-btn { padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border); background: transparent; font-size: 12px; font-weight: 600; color: var(--mid); cursor: pointer; transition: all 0.15s; }
  .lang-btn:hover { border-color: var(--dark); color: var(--dark); }
  .lang-btn.active { background: var(--brand-coral); color: #fff; border-color: var(--brand-coral); }

  /* FILTER BAR */
  .filter-bar { background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 12px 24px; z-index: 99; position: relative; display: flex; flex-direction: column; gap: 10px; }
  .filter-row-1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  /* Move sort dropdown to left of search bar.
     DOM order: region(0) divider(1) time(2) search(3) geo(4) chip(5) divider(6) sort(7)
     Desired:   region    divider    time    sort      search  geo    chip                */
  .filter-row-1 > .sort-dropdown   { order: 3; }
  .filter-row-1 > .search-wrap     { order: 4; }
  .filter-row-1 > .proximity-btn   { order: 5; }
  .filter-row-1 > .location-chip   { order: 6; }
  /* Hide the second divider that was between geo and sort — no longer needed */
  .filter-row-1 > .filter-divider:nth-of-type(2) { display: none; }
  .filter-row-2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .type-filter-label { font-size: 12.5px; font-weight: 600; color: var(--mid); white-space: nowrap; }
  /* Pill-slider toggle — shared base for date and type filters.
     Uses inline-grid with equal columns so every button is the same width as
     the widest label. This keeps the sliding pill's shape constant regardless
     of which button is active. */
  .type-toggle {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    position: relative;
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #f5f0eb;
    flex-shrink: 0;
    padding: 3px;
    gap: 0px;
  }
  /* Sliding pill background — animated via JS */
  .type-toggle .pill-slider {
    position: absolute;
    top: 3px; bottom: 3px;
    border-radius: 20px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, box-shadow 0.3s;
    z-index: 0;
    pointer-events: none;
  }
  /* Pill colors by context */
  .type-toggle .pill-slider.pill-coral { background: var(--brand-coral); box-shadow: 0 2px 8px rgba(232,97,77,0.25); }
  .type-toggle .pill-slider.pill-teal { background: var(--brand-teal); box-shadow: 0 2px 8px rgba(45,130,120,0.3); }
  .type-toggle .pill-slider.pill-amber { background: #f0a830; box-shadow: 0 2px 8px rgba(240,168,48,0.3); }
  .type-toggle-btn {
    flex: 1;
    padding: 6px 14px;
    border: none;
    border-radius: 20px;
    background: transparent;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--mid);
    text-align: center;
    cursor: pointer;
    transition: color 0.25s;
    white-space: nowrap;
    position: relative;
    z-index: 1;
  }
  .type-toggle-btn:hover { color: var(--dark); }
  /* Inactive color hints for date filter */
  .type-toggle-btn[data-filter="upcoming"] { color: var(--brand-teal); }
  .type-toggle-btn[data-filter="upcoming"]:hover { color: #1a6b60; }
  .type-toggle-btn[data-filter="past"] { color: #c48a1a; }
  .type-toggle-btn[data-filter="past"]:hover { color: #a87510; }
  /* Active button text — white on the sliding pill */
  .type-toggle-btn.active { color: #fff; background: transparent; }
  /* Inactive type filter buttons (All Types, Festival, etc.) */
  .type-toggle-btn[data-type]:not(.active) { color: var(--mid); }
  .filter-group { display: flex; gap: 6px; align-items: center; }
  .filter-divider { width: 1px; height: 24px; background: var(--border); }
  .filter-btn { padding: 7px 16px; border-radius: 20px; border: 1px solid var(--border); background: transparent; font-size: 13px; font-weight: 500; color: var(--mid); transition: all 0.15s; }
  .filter-btn:hover { border-color: var(--dark); color: var(--dark); }
  .filter-btn.active { background: var(--brand-coral); color: #fff; border-color: var(--brand-coral); box-shadow: 0 2px 8px rgba(232,97,77,0.25); }
  .filter-btn[data-filter="upcoming"] { color: #2d8278; border-color: rgba(45,130,120,0.35); }
  .filter-btn[data-filter="upcoming"]:hover { color: #236860; border-color: rgba(45,130,120,0.6); }
  .filter-btn.active[data-filter="upcoming"] { background: var(--brand-teal); color: #fff; border-color: var(--brand-teal); box-shadow: 0 2px 8px rgba(45,130,120,0.3); }
  .filter-btn[data-filter="past"] { color: #c48a1a; border-color: rgba(240,168,48,0.35); }
  .filter-btn[data-filter="past"]:hover { color: #b37a0a; border-color: rgba(240,168,48,0.6); }
  .filter-btn.active[data-filter="past"] { background: #f0a830; color: #fff; border-color: #f0a830; box-shadow: 0 2px 8px rgba(240,168,48,0.3); }

  /* Region toggle — pill slider (same equal-column grid approach as .type-toggle) */
  .region-toggle {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    position: relative;
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #f5f0eb;
    flex-shrink: 0;
    padding: 3px;
    gap: 0px;
  }
  .region-toggle .pill-slider {
    position: absolute;
    top: 3px; bottom: 3px;
    border-radius: 20px;
    background: var(--dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
  }
  .region-toggle-btn {
    flex: 1;
    padding: 6px 14px;
    border: none;
    border-radius: 20px;
    background: transparent;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--mid);
    text-align: center;
    cursor: pointer;
    transition: color 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
  }
  .region-toggle-btn:hover { color: var(--dark); }
  .region-toggle-btn.active { color: #fff; background: transparent; }
  .region-toggle-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
  .search-input { padding: 7px 14px 7px 34px; border-radius: 20px; border: 1px solid var(--border); font-size: 13px; width: 200px; outline: none; color: var(--dark); background: #faf6ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a09788' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 10px center no-repeat; transition: border-color 0.15s; }
  .search-input:focus { border-color: var(--brand-coral); }
  .search-input::placeholder { color: var(--light); }
  .search-wrap { position: relative; }
  .search-dropdown {
    display: none; position: absolute; top: calc(100% + 4px); left: 0;
    width: 340px; max-height: 380px; overflow-y: auto;
    background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1); z-index: 200;
    animation: dropIn 0.12s ease;
  }
  .search-dropdown.visible { display: block; }
  @keyframes dropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
  .search-section-label {
    padding: 8px 14px 4px; font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--light); background: #faf6ef; border-bottom: 1px solid var(--border);
  }
  .search-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
    cursor: pointer; transition: background 0.1s; border-bottom: 1px solid var(--border);
  }
  .search-item:last-child { border-bottom: none; }
  .search-item:hover, .search-item.active { background: rgba(0,0,0,0.03); }
  .search-item-icon {
    width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
  }
  .search-item-icon svg { width: 14px; height: 14px; }
  .search-item-icon.event-icon { background: var(--upcoming-bg); color: var(--brand-red); }
  .search-item-icon.place-icon { background: rgba(21,101,192,0.15); color: #42a5f5; }
  .search-item-text { flex: 1; min-width: 0; }
  .search-item-title { font-size: 13px; font-weight: 500; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-item-sub { font-size: 11px; color: var(--light); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-loading { padding: 16px; text-align: center; font-size: 12px; color: var(--light); }
  .search-geo-badge {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px;
    background: rgba(21,101,192,0.15); border-radius: 10px; font-size: 10px; color: #42a5f5; font-weight: 600;
  }
  .sort-dropdown { position: relative; display: inline-flex; align-items: center; gap: 6px; }
  .sort-label { font-size: 13px; font-weight: 500; color: var(--mid); white-space: nowrap; }
  .sort-dropdown-btn { padding: 7px 28px 7px 14px; border-radius: 20px; border: 1px solid var(--border); background: transparent; font-size: 13px; font-weight: 500; color: var(--mid); cursor: pointer; transition: all 0.15s; white-space: nowrap; position: relative; font-family: var(--font); }
  .sort-dropdown-btn::after { content: ''; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #999; }
  .sort-dropdown-btn:hover { border-color: var(--dark); color: var(--dark); }
  .sort-dropdown-btn:hover::after { border-top-color: var(--dark); }
  .sort-dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 140px; background: var(--card-bg); border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); z-index: 100; padding: 4px 0; font-family: var(--font); }
  .sort-dropdown-menu.open { display: block; }
  .sort-dropdown-item { padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--dark); cursor: pointer; transition: background 0.1s; white-space: nowrap; }
  .sort-dropdown-item:hover { background: rgba(0,0,0,0.04); }
  .sort-dropdown-item.active { color: var(--brand-coral); }
  .proximity-btn { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border); background: transparent; font-size: 13px; font-weight: 500; color: var(--mid); transition: all 0.15s; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
  .proximity-btn:hover { border-color: var(--dark); color: var(--dark); }
  .proximity-btn svg { width: 14px; height: 14px; }
  .location-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; border-radius: 20px; background: rgba(124,107,158,0.1); border: 1px solid rgba(124,107,158,0.3); font-size: 12px; font-weight: 600; color: var(--brand-teal); white-space: nowrap; }
  .location-chip-close { background: none; border: none; color: var(--brand-teal); font-size: 16px; cursor: pointer; padding: 0 2px; line-height: 1; opacity: 0.7; }
  .location-chip-close:hover { opacity: 1; }
  .view-toggles { display: flex; gap: 4px; background: rgba(0,0,0,0.04); padding: 3px; border-radius: 8px; }
  .view-toggle { width: 36px; height: 30px; border: none; background: transparent; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--light); transition: all 0.15s; }
  .view-toggle:hover { color: var(--dark); }
  .view-toggle.active { background: var(--card-bg); color: var(--dark); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
  .view-toggle svg { width: 18px; height: 18px; }
  .result-count { font-size: 13px; color: var(--light); white-space: nowrap; }

  /* MAIN */
  .main { display: flex; height: calc(100vh - var(--nav-height) - var(--filter-height)); position: relative; }
  .list-panel { width: 44%; overflow-y: scroll; padding: 16px 16px; transition: width 0.3s ease; scroll-behavior: smooth; background: var(--bg); }
  .list-panel::-webkit-scrollbar { width: 16px; }
  .list-panel::-webkit-scrollbar-thumb { background: #8d8270; border-radius: 8px; border: 3px solid var(--bg); min-height: 60px; }
  .list-panel::-webkit-scrollbar-thumb:hover { background: #6b6155; }
  .list-panel::-webkit-scrollbar-track { background: var(--bg); border-left: 2px solid var(--border); }
  .list-panel { scrollbar-color: #8d8270 var(--bg); scrollbar-width: auto; }
  .screening-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* === PHOTO CAROUSEL === */
  .card-carousel {
    position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden;
    background: var(--img-placeholder); border-radius: var(--radius) var(--radius) 0 0; cursor: pointer;
  }
  .carousel-track {
    display: flex; height: 100%; transition: transform 0.3s ease;
  }
  .carousel-slide {
    min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background-size: contain; background-position: center; background-repeat: no-repeat;
    background-color: #1a1611; position: relative;
  }
  .carousel-slide-placeholder {
    color: rgba(255,255,255,0.6); font-size: 12px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 1px;
  }
  /* Hero slide — dark branded overlay */
  .carousel-slide.hero-slide {
    background: linear-gradient(135deg, #e8614d 0%, #f0a830 100%);
    flex-direction: column; gap: 0; padding: 0;
  }
  .hero-slide .hero-event-name {
    color: #fffbf3; font-size: 18px; font-weight: 800; text-align: center;
    padding: 0 24px; line-height: 1.25; text-transform: uppercase; letter-spacing: 2px;
    position: relative; z-index: 2; font-family: 'Heavitas', 'Anton', 'Oswald', 'Impact', var(--font);
  }
  .hero-slide .hero-event-city {
    color: rgba(255,255,255,0.6); font-size: 11px; text-align: center;
    position: absolute; bottom: 10px; left: 0; right: 0; z-index: 3;
  }
  .hero-logo {
    max-width: 70%; max-height: 55%; object-fit: contain;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.25));
  }
  /* Photo slides — placeholder gradient colors */
  .carousel-slide.photo-slide-1 { background: linear-gradient(135deg, #2c3e50, #3498db); }
  .carousel-slide.photo-slide-2 { background: linear-gradient(135deg, #8e44ad, #c0392b); }
  .carousel-slide.photo-slide-3 { background: linear-gradient(135deg, #27ae60, #2c3e50); }

  /* Logo overlay — floats on top of first photo, slides/fades off on swipe */
  .logo-overlay {
    position: absolute; inset: 0; z-index: 4;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .logo-overlay-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 100%);
    transition: opacity 0.4s ease;
  }
  .logo-overlay .hero-logo {
    position: relative; z-index: 1;
    max-width: 65%; max-height: 50%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  }
  .logo-overlay .hero-event-name {
    color: #fffbf3; font-size: 18px; font-weight: 800; text-align: center;
    padding: 0 24px; line-height: 1.25; text-transform: uppercase; letter-spacing: 2px;
    font-family: 'Heavitas', 'Anton', 'Oswald', 'Impact', var(--font);
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  }
  .logo-overlay-hidden {
    opacity: 0;
    transform: translateX(-30%);
    pointer-events: none;
  }
  .logo-overlay-hidden .logo-overlay-scrim {
    opacity: 0;
  }

  .carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.15);
    border: none; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2); opacity: 0; transition: opacity 0.2s;
    color: #fff; font-size: 14px;
  }
  .card-carousel:hover .carousel-arrow { opacity: 1; }
  .carousel-arrow:hover { background: rgba(255,255,255,0.3); }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
  .expand-btn {
    position: absolute; top: 8px; right: 8px; z-index: 3;
    width: 30px; height: 30px; border-radius: 6px; background: rgba(0,0,0,0.45);
    border: none; display: flex; align-items: center; justify-content: center;
    color: #fff; opacity: 0; transition: opacity 0.2s, background 0.15s;
    cursor: pointer; backdrop-filter: blur(4px);
  }
  .expand-btn:hover { background: rgba(0,0,0,0.7); }
  .card-carousel:hover .expand-btn { opacity: 1; }
  .popup-carousel-wrap:hover .expand-btn { opacity: 1; }
  .carousel-dots {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 5px; z-index: 3;
  }
  .carousel-dot {
    width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5);
    border: none; padding: 0; transition: all 0.2s;
  }
  .carousel-dot.active { background: #fff; transform: scale(1.2); }

  /* Upcoming hero only — no carousel, single static hero */
  .card-hero-static {
    position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden;
    background: linear-gradient(135deg, var(--brand-coral) 0%, #f0a830 100%);
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  }
  .card-hero-static .hero-event-name {
    color: #fffbf3; font-size: 18px; font-weight: 800; text-align: center;
    padding: 0 24px; line-height: 1.25; text-transform: uppercase; letter-spacing: 2px;
    position: relative; z-index: 2; font-family: 'Heavitas', 'Anton', 'Oswald', 'Impact', var(--font);
  }
  .card-hero-static .hero-event-city {
    color: rgba(255,255,255,0.75); font-size: 11px; text-align: center;
    position: absolute; bottom: 10px; left: 0; right: 0; z-index: 3;
  }
  .card-hero-static .hero-upcoming-tag {
    position: absolute; top: 8px; right: 8px;
    background: #e04a3a; color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 6px; letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(224,74,58,0.4);
  }
  .card-hero-static .hero-upcoming-tag:empty { display: none; }
  /* Gradient layer (behind logo, above card background) */
  .event-gradient {
    position: absolute; inset: 0; z-index: 1;
  }
  .event-gradient::after {
    content: ""; position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="g"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23g)" opacity="0.08"/></svg>');
    opacity: 0.4; pointer-events: none; mix-blend-mode: overlay;
  }
  /* Logo overlay (ready for transparent PNG/SVG logos) */
  .event-logo {
    position: relative; z-index: 2;
    width: 55%; max-width: 180px; display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  }
  /* Inline SVG logos: ensure the <svg> inside the container div fills it */
  div.event-logo { overflow: hidden; }
  div.event-logo svg { width: 100%; height: auto; display: block; }
  /* Text content sits above gradient */
  .card-hero-static .hero-event-name,
  .card-hero-static .hero-upcoming-tag {
    z-index: 3;
  }

  /* === AWARD BADGE === */
  .award-badge {
    position: absolute; top: 8px; left: 8px; z-index: 5;
    background: rgba(255,255,255,0.9); border-radius: 16px;
    padding: 4px 10px 4px 8px; display: flex; align-items: center; gap: 4px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1); font-size: 12px; font-weight: 700;
    color: var(--dark); backdrop-filter: blur(4px);
  }
  .award-badge .award-icon {
    width: 15px; height: 15px; display: flex; align-items: center; justify-content: center;
  }
  .award-badge.jury .award-icon { color: #d4a017; }
  .award-badge.audience .award-icon { color: var(--brand-red); }
  .award-badge.impact .award-icon { color: var(--brand-orange); }

  /* Multiple awards per event stack down from the top-left corner. */
  .award-badge-stack {
    position: absolute; top: 8px; left: 8px; z-index: 5;
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    max-width: calc(100% - 16px); pointer-events: none;
  }
  .award-badge-stack .award-badge {
    position: static; top: auto; left: auto; max-width: 100%;
  }
  .award-badge-stack .award-badge span:last-child {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  /* Nominations / runners-up: outline star (see mentionIcon) in the award's
     own colour; text identical to a win. */
  /* Several awards: a one-line ticker — the next badge slides up into place
     while the current one slides out the top (driven by rotateAwardBadges). */
  .award-badge-stack.rotate {
    display: block; width: calc(100% - 16px); height: 28px; overflow: hidden;
  }
  .award-badge-stack.rotate .award-badge {
    position: absolute; top: 2px; left: 0; max-width: calc(100% - 44px); white-space: nowrap;
    opacity: 0; transform: translateY(120%);
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease;
  }
  .award-badge-stack.rotate .award-badge.active { opacity: 1; transform: translateY(0); }
  .award-badge-stack.rotate .award-badge.leaving { opacity: 0; transform: translateY(-120%); }
  /* Only upcoming cards carry the "Screening in N days" pill top-right — make room for it there. */
  .award-badge-stack:has(~ .hero-upcoming-tag) .award-badge { max-width: 58%; }

  /* === Q&A TAG === */
  .qa-tag {
    display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600;
    color: #4caf50; background: rgba(76,175,80,0.1); border-radius: 3px;
    padding: 1px 5px; margin-left: 6px; white-space: nowrap; vertical-align: middle;
  }
  .qa-tag.virtual { color: #64b5f6; background: rgba(100,181,246,0.1); }
  .qa-tag.workshop { color: #e67e22; background: rgba(230,126,34,0.1); }

  /* === PREMIERE BADGE === */
  .premiere-badge {
    display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600;
    color: var(--brand-yellow); letter-spacing: 0.3px; margin-top: 2px;
  }
  .premiere-badge .premiere-star { font-size: 11px; }

  /* === TYPE BADGE === */
  .type-badge {
    display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 8px;
    border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; margin-left: 6px;
  }
  .type-badge.festival { background: rgba(0,0,0,0.06); color: var(--dark); }
  .type-badge.special { background: rgba(21,101,192,0.2); color: #42a5f5; }

  /* STREAMING BADGE */
  .stream-badge {
    display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 4px; margin-top: 4px;
  }
  .stream-badge svg { width: 12px; height: 12px; flex-shrink: 0; }
  .stream-badge.stream-live { background: rgba(46,125,50,0.2); color: #66bb6a; }
  .stream-badge.stream-upcoming { background: rgba(21,101,192,0.2); color: #42a5f5; }
  .stream-badge.stream-ended { background: rgba(0,0,0,0.05); color: var(--light); }
  .stream-geo { font-size: 10px; color: var(--light); margin-top: 2px; display: flex; align-items: center; gap: 3px; }
  .stream-geo svg { width: 10px; height: 10px; flex-shrink: 0; }

  /* === DISTANCE DISPLAY === */
  .distance-badge {
    display: inline-block; font-size: 12px; color: var(--mid); margin-left: 8px;
  }

  /* EVENT CARD */
  .event-card {
    background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    overflow: hidden; transition: all 0.2s; cursor: pointer; position: relative;
    display: flex; flex-direction: column;
  }
  .event-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

  /* Upcoming: cool teal left bar */
  .event-card.card-upcoming {
    border-color: var(--border);
    border-left: 5px solid var(--brand-teal);
    background: var(--card-bg);
  }
  .event-card.card-upcoming:hover { border-color: rgba(45,130,120,0.35); border-left: 5px solid #3a9e92; }
  .event-card.card-upcoming .card-meta svg { color: var(--brand-teal); }

  /* Past: warm amber left bar */
  .event-card.card-past {
    border-color: var(--border);
    border-left: 5px solid #f0a830;
    background: var(--card-bg);
  }
  .event-card.card-past:hover { border-color: rgba(240,168,48,0.4); border-left: 5px solid #f5b842; }
  .event-card.card-past .card-meta svg { color: #d4940a; }

  .event-card.highlighted { border-color: var(--brand-coral); border-left-color: var(--brand-coral); box-shadow: 0 0 0 3px rgba(232,97,77,0.15), var(--shadow-hover); }
  .card-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
  .card-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
  .badge-upcoming { background: var(--upcoming-bg); color: var(--upcoming-text); }
  .badge-past { background: var(--past-bg); color: var(--past-text); }
  .card-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; color: var(--dark); }
  .card-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mid); margin-bottom: 3px; }
  .card-meta svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--brand-orange); opacity: 0.7; }
  .card-link {
    display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600;
    transition: opacity 0.15s;
  }
  .card-link:hover { opacity: 0.7; }
  .card-link.upcoming-link { color: var(--brand-coral); }
  .card-link.past-link { color: var(--brand-teal); }
  .card-links { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 8px; }
  .card-links .card-link { margin-top: 0; }
  .card-link.press-link { color: var(--mid); font-size: 12px; }
  .card-link.press-link:hover { color: var(--dark); }
  .card-link.flyer-link { color: var(--mid); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
  .card-link.flyer-link:hover { color: var(--dark); }

  /* Flyer preview overlay */
  .flyer-preview-overlay {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s ease;
  }
  .flyer-preview-overlay.visible { opacity: 1; }
  .flyer-preview-panel {
    position: relative;
    background: var(--card-bg); border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    overflow: hidden; max-width: 520px; width: 92vw;
    transform: scale(0.95); transition: transform 0.2s ease;
  }
  .flyer-preview-overlay.visible .flyer-preview-panel { transform: scale(1); }
  .flyer-preview-close {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.5); border: none; color: #fff;
    font-size: 18px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; backdrop-filter: blur(4px); transition: background 0.15s;
  }
  .flyer-preview-close:hover { background: rgba(0,0,0,0.7); }
  .flyer-preview-image-wrap {
    background: var(--img-placeholder);
    max-height: 70vh; overflow: hidden;
  }
  .flyer-preview-img {
    width: 100%; display: block; object-fit: contain;
  }
  .flyer-preview-actions {
    padding: 14px 16px; display: flex; justify-content: center;
    border-top: 1px solid var(--border);
  }
  .flyer-download-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 24px; border-radius: 8px; border: none;
    background: var(--brand-coral); color: #fff;
    font-size: 14px; font-weight: 600; font-family: var(--font);
    text-decoration: none; cursor: pointer; transition: background 0.15s;
    box-shadow: 0 2px 8px rgba(232,97,77,0.25);
  }
  .flyer-download-btn:hover { background: #d4503e; }

  /* PRESS POPOVER */
  .press-popover-backdrop { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1100; }
  .press-popover-backdrop.visible { display: block; }
  .press-popover {
    display: none; position: fixed; z-index: 1101;
    background: #fff; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-top: 2px solid var(--brand-yellow);
    min-width: 280px; max-width: 360px; max-height: 400px; overflow: hidden;
    animation: pressPopIn 0.15s ease;
  }
  .press-popover.visible { display: block; }
  @keyframes pressPopIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
  .press-popover-header {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
  }
  .press-popover-header h4 { font-size: 13px; font-weight: 700; color: var(--dark); margin: 0; }
  .press-popover-close { background: none; border: none; font-size: 18px; color: var(--light); cursor: pointer; padding: 0 4px; line-height: 1; }
  .press-popover-close:hover { color: var(--dark); }
  .press-popover-list { padding: 8px 0; max-height: 320px; overflow-y: auto; }
  .press-popover-item {
    padding: 10px 16px; text-decoration: none; color: var(--dark);
    transition: background 0.1s; border-bottom: 1px solid var(--border);
  }
  .press-popover-item:last-child { border-bottom: none; }
  .press-popover-item:hover { background: rgba(0,0,0,0.03); }
  .press-popover-item .press-outlet {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--brand-coral); margin-bottom: 2px;
  }
  .press-popover-item .press-title { font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--dark); }
  .press-popover-item .press-date { font-size: 11px; color: var(--light); margin-top: 2px; }
  .press-popover-empty { padding: 20px 16px; text-align: center; font-size: 13px; color: var(--light); }
  .screening-count { font-size: 12px; color: var(--brand-orange); opacity: 0.8; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
  .screening-count svg { width: 12px; height: 12px; }

  /* EXPANDED SCREENINGS */
  .screenings-detail { border-top: 1px solid var(--border); background: rgba(0,0,0,0.02); }
  .screening-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 13px; transition: background 0.1s; }
  .screening-row:last-child { border-bottom: none; }
  .screening-row:hover { background: rgba(0,0,0,0.02); }
  .screening-date { font-weight: 600; color: var(--dark); min-width: 80px; white-space: nowrap; }
  .screening-time { color: var(--mid); min-width: 70px; white-space: nowrap; }
  .screening-venue { color: var(--mid); flex: 1; }

  /* MAP */
  .map-panel { flex: 1; position: relative; transition: flex 0.3s ease; display: flex; flex-direction: column; }
  /* Light background close to the tiles' land tone, so unloaded tiles no
     longer flash navy blocks while the map loads. */
  #map { width: 100%; flex: 1; z-index: 1; background: #ece7dc; }
  /* CartoDB Voyager tiles — warm and slightly saturated */
  .leaflet-tile-pane { filter: saturate(1.4) brightness(0.97); }
  /* Ocean tint overlay — sits above tiles, below markers. Multiply blend
     darkens the light-blue ocean dramatically while barely touching white/beige land. */
  .ocean-tint-overlay {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: #0F3354; mix-blend-mode: multiply;
  }
  .leaflet-tile { will-change: transform; backface-visibility: hidden; outline: 1px solid transparent; }
  .leaflet-marker-pane, .leaflet-popup-pane, .leaflet-overlay-pane { filter: none; }
  .leaflet-marker-pane { z-index: 600 !important; }
  /* Suppress the browser's default blue focus ring that wraps map pins on click.
     We rely on our own .marker-highlighted scale + shadow to indicate selection. */
  .leaflet-marker-icon,
  .leaflet-marker-icon:focus,
  .leaflet-marker-icon:focus-visible,
  .leaflet-interactive:focus,
  .leaflet-interactive:focus-visible,
  .leaflet-container a.leaflet-popup-close-button:focus {
    outline: none !important;
    box-shadow: none !important;
  }
  .leaflet-marker-icon .marker-dot { outline: none !important; }
  .leaflet-popup-pane { z-index: 900 !important; }
  .leaflet-popup { z-index: 900 !important; }
  .leaflet-popup-content-wrapper { border-radius: 10px !important; font-family: var(--font) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important; padding: 0 !important; overflow: hidden; background: #fffbf3 !important; color: var(--dark) !important; }
  .leaflet-popup-tip-container { margin-top: -1px; margin-left: -20px !important; }
  .leaflet-popup-tip {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    width: 0 !important; height: 0 !important;
    border-left: 10px solid transparent !important;
    border-right: 10px solid transparent !important;
    border-top: 10px solid #fffbf3 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important; /* cancel Leaflet's rotate(45deg) so the CSS triangle points straight down */
  }
  .leaflet-popup-content { margin: 0 !important; width: 280px !important; max-width: 280px; }
  .popup-carousel-wrap { width: 280px; aspect-ratio: 16/10; position: relative; overflow: hidden; background: #1a1611; cursor: pointer; }
  .popup-carousel-track { display: flex; height: 100%; transition: transform 0.3s ease; }
  .popup-carousel-wrap .carousel-slide { min-width: 100%; }
  .popup-carousel-wrap .carousel-arrow { opacity: 0; }
  .popup-carousel-wrap:hover .carousel-arrow { opacity: 1; }
  .popup-body { padding: 10px 14px 12px; }
  .popup-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
  .popup-meta { font-size: 12px; color: var(--mid); margin-bottom: 2px; }
  .popup-screenings { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 6px; }
  .popup-screening-row { font-size: 11px; color: var(--mid); padding: 2px 0; display: flex; gap: 6px; }
  .popup-screening-row strong { color: var(--dark); font-weight: 600; }
  .popup-screening-row.popup-other-venues { font-style: italic; opacity: 0.75; }
  .popup-link { font-size: 12px; font-weight: 600; display: inline-block; margin-top: 6px; }
  .popup-link.upcoming { color: var(--brand-coral); }
  .popup-link.past { color: var(--brand-teal); }
  .popup-award-badge {
    display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,0.06);
    border-radius: 12px; padding: 3px 8px; font-size: 10px; font-weight: 700;
    color: var(--dark); margin-bottom: 6px;
  }
  .popup-award-badge svg { width: 12px; height: 12px; }
  .popup-award-stack { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
  .popup-award-stack .popup-award-badge { margin-bottom: 0; }
  .popup-award-badge.jury svg { color: #d4a017; }
  .popup-award-badge.audience svg { color: var(--brand-red); }
  .popup-award-badge.impact svg { color: var(--brand-orange); }
  /* popup: mention badges inherit the award colour like wins do */

  /* MAP CARD PANEL (for map-only mode) — Airbnb-style near-marker popup */
  .map-card-panel {
    display: none; position: absolute;
    z-index: 1000; width: 340px; background: var(--card-bg); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,0.15); overflow: hidden;
    animation: cardFadeIn 0.2s ease;
  }
  .map-card-panel.visible { display: block; }
  .map-card-panel .card-carousel { border-radius: var(--radius) var(--radius) 0 0; }
  .map-card-panel .card-hero-static { border-radius: var(--radius) var(--radius) 0 0; }
  .map-card-panel .card-body { padding: 12px 16px; }
  .map-card-panel .map-card-close {
    position: absolute; top: 10px; right: 10px; z-index: 10;
    width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.5);
    border: none; color: #fff; font-size: 16px; display: flex; align-items: center;
    justify-content: center; cursor: pointer;
  }
  .map-card-panel .map-card-close:hover { background: rgba(0,0,0,0.7); }
  @keyframes cardFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

  /* VIEW MODES */
  .main.view-list .map-panel { flex: 0; width: 0; overflow: hidden; }
  .main.view-list .list-panel { width: 100%; }
  .main.view-list .screening-grid { grid-template-columns: repeat(3, 1fr); }
  /* List view: scale up logos, badges, and labels to match larger card hero */
  .main.view-list .event-logo { width: 65%; max-width: 260px; }
  .main.view-list .award-badge { font-size: 14px; padding: 5px 12px 5px 10px; gap: 5px; }
  .main.view-list .award-badge .award-icon { width: 18px; height: 18px; }
  .main.view-list .hero-upcoming-tag { font-size: 14px; padding: 5px 14px; border-radius: 7px; background: #e04a3a; box-shadow: 0 2px 8px rgba(224,74,58,0.4); }
  .list-panel, .map-panel { min-width: 0; }
  .main.view-map .list-panel { flex: 0 0 0px; width: 0; overflow: hidden; padding: 0; }
  .main.view-map .map-panel { flex: 1; }
  .main.view-hybrid .list-panel { width: 44%; }
  .main.view-hybrid .map-panel { flex: 1; }

  /* LIGHTBOX */
  .lightbox-overlay {
    display: none; position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
    align-items: center; justify-content: center; flex-direction: column;
  }
  .lightbox-overlay.visible { display: flex; }
  .lightbox-content {
    position: relative; width: 80vw; max-width: 900px; aspect-ratio: 16/10;
    border-radius: 12px; overflow: hidden; background: #1a1611;
  }
  .lightbox-track { display: flex; height: 100%; transition: transform 0.35s ease; }
  .lightbox-track .carousel-slide { min-width: 100%; }
  .lightbox-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.15);
    border: none; color: #fff; font-size: 24px; display: flex; align-items: center;
    justify-content: center; transition: background 0.2s; backdrop-filter: blur(4px);
  }
  .lightbox-arrow:hover { background: rgba(255,255,255,0.3); }
  .lightbox-arrow.prev { left: 16px; }
  .lightbox-arrow.next { right: 16px; }
  .lightbox-close {
    position: absolute; top: 10px; right: 10px; z-index: 6;
    width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.5);
    border: none; color: #fff; font-size: 20px; display: flex; align-items: center;
    justify-content: center; backdrop-filter: blur(4px); cursor: pointer;
    transition: background 0.15s;
  }
  .lightbox-close:hover { background: rgba(0,0,0,0.75); }
  .lightbox-dots {
    display: flex; gap: 8px; margin-top: 16px;
  }
  .lightbox-dot {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3);
    border: none; padding: 0; transition: all 0.2s; cursor: pointer;
  }
  .lightbox-dot.active { background: #fff; transform: scale(1.3); }
  .lightbox-caption {
    color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 12px; text-align: center;
  }

  /* EMPTY STATE */
  .empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--light); background: transparent; }
  .empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.4; }
  .empty-state p { font-size: 14px; margin-bottom: 16px; }
  .zoom-out-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; border-radius: 20px; border: 1px solid var(--border);
    background: var(--card-bg); color: var(--dark);
    font-size: 13px; font-weight: 600; font-family: var(--font);
    cursor: pointer; transition: all 0.15s;
  }
  .zoom-out-btn:hover { border-color: var(--dark); background: var(--dark); color: #fff; }

  /* Map empty overlay */
  .map-empty-overlay {
    position: absolute; inset: 0; z-index: 800;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; opacity: 0; transition: opacity 0.25s;
  }
  .map-empty-overlay.visible { opacity: 1; pointer-events: auto; }
  .map-empty-message {
    background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
    border-radius: 12px; padding: 20px 28px; text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  .map-empty-message p {
    font-size: 14px; font-weight: 600; color: var(--mid);
    margin: 0 0 12px 0;
  }

  /* NOTIFY ME */
  .notify-section { display: none; }
  .main.view-list .notify-section { display: block; grid-column: 1 / -1; margin-top: 24px; }
  .notify-banner { background: linear-gradient(135deg, #fff, #faf6ef); border: 1px solid var(--border); color: var(--dark); border-radius: var(--radius); padding: 32px; text-align: center; }
  .notify-banner h3 { font-size: 20px; margin-bottom: 8px; }
  .notify-banner p { font-size: 14px; color: var(--mid); margin-bottom: 20px; max-width: 500px; margin-left: auto; margin-right: auto; }
  .notify-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 600px; margin: 0 auto; }
  .notify-form input, .notify-form select { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); background: #faf6ef; color: var(--dark); font-size: 13px; font-family: var(--font); }
  .notify-form input::placeholder { color: var(--light); }
  .notify-form input:focus, .notify-form select:focus { outline: none; border-color: var(--brand-coral); }
  .notify-form .notify-submit { padding: 10px 24px; background: var(--brand-coral); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; }
  .notify-form .notify-submit:hover { opacity: 0.85; }
  .city-chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
  .city-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,0.04); padding: 4px 10px; border-radius: 12px; font-size: 12px; color: var(--mid); }
  .city-chip button { background: none; border: none; color: var(--light); font-size: 14px; padding: 0 2px; }
  .city-chip button:hover { color: var(--dark); }

  /* MOBILE */
  .mobile-map-toggle { display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 24px; background: var(--brand-coral); color: #fff; border: none; border-radius: 24px; font-size: 14px; font-weight: 600; z-index: 1000; box-shadow: 0 4px 16px rgba(232,97,77,0.3); gap: 8px; align-items: center; }
  .mobile-map-toggle svg { width: 16px; height: 16px; }
  @media (max-width: 1023px) {
    .view-toggles, .result-count { display: none; }
    .filter-bar { overflow-x: auto; padding: 10px 16px; gap: 8px; }
    .filter-row-1, .filter-row-2 { flex-wrap: nowrap; gap: 8px; }
    /* On mobile, pills should not stretch — revert flex:1 so they size to content */
    .type-toggle-btn, .region-toggle-btn { flex: 0 0 auto; }
    .type-toggle, .region-toggle { flex-shrink: 0; }
    .mobile-map-toggle { display: flex; }
    /* On mobile the Webflow nav + filter bar take variable space; use dvh for dynamic viewport */
    .main { height: calc(100dvh - var(--nav-height) - 90px); }
    .main.view-map .map-panel { width: 100%; height: 100%; }
    .main.view-map .map-panel #map { width: 100%; height: 100%; }
    .main.view-hybrid .list-panel, .main.view-list .list-panel { width: 100%; }
    .main.view-hybrid .map-panel { flex: 0; width: 0; overflow: hidden; }
    .screening-grid, .main.view-list .screening-grid { grid-template-columns: 1fr; }
    .main.view-map .list-panel { width: 0; overflow: hidden; padding: 0; }
    .main.view-map .map-panel { flex: 1; min-height: 60vh; }
    .list-panel { padding: 16px; }
    .map-card-panel { width: calc(100vw - 32px); left: 16px !important; top: auto !important; bottom: 16px !important; }
    .lightbox-content { width: 95vw; }
    .explorer-lang-switcher { top: 10px; right: 16px; }
    .map-reset-bar { display: none; }
  }

  /* === MARKER DOTS (April 2 style) === */
  /* Dot size follows --pin-scale (set by updatePinScale on zoom): 0.5 at
     world zoom → 1 at country zoom → 1.15 in a city. The dot is centred in
     Leaflet's fixed icon box with `translate`, which composes with the
     hover/highlight `transform: scale()`. */
  .marker-dot {
    position: absolute; left: 50%; top: 50%; translate: -50% -50%;
    box-sizing: border-box;
    border-radius: 50%;
    border: calc(2.5px * var(--pin-scale, 1)) solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2), 0 0 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.15s, width 0.2s, height 0.2s;
  }
  .marker-dot:hover { transform: scale(1.4); }
  .marker-upcoming {
    background: var(--brand-teal);
    width: calc(18px * var(--pin-scale, 1));
    height: calc(18px * var(--pin-scale, 1));
    animation: markerPulse 2.5s infinite;
  }
  .marker-happened {
    background: #f0a830;
    width: calc(14px * var(--pin-scale, 1));
    height: calc(14px * var(--pin-scale, 1));
  }
  .marker-highlighted { transform: scale(1.4); }
  @keyframes markerPulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 130, 120, 0.35); }
    70% { box-shadow: 0 0 0 7px rgba(45, 130, 120, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 130, 120, 0); }
  }

  /* === LABEL OVERLAY (appended to map container, z-index below markers/popups) === */
  .label-line-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 450;
    transition: opacity 0.12s;
  }
  .label-line-overlay.hidden { opacity: 0; visibility: hidden; }
  .label-line-overlay svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  .label-text-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 451;
    transition: opacity 0.12s;
  }
  .label-text-overlay.hidden { opacity: 0; visibility: hidden; }
  .label-text-overlay .city-label {
    position: absolute;
    color: #3d3528;
    font-family: var(--font);
    font-size: 10.5px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
    transition: color 0.15s;
    text-shadow: 0 0 4px rgba(255,255,255,0.8),
                 1px 1px 2px rgba(255,255,255,0.9),
                 -1px -1px 2px rgba(255,255,255,0.9),
                 1px -1px 2px rgba(255,255,255,0.9),
                 -1px 1px 2px rgba(255,255,255,0.9);
  }

  .city-label:hover { color: var(--brand-coral); }

  .city-label-hover {
    font-weight: 700;
    color: var(--dark);
    opacity: 0;
    animation: labelFadeIn 0.15s ease forwards;
  }
  @keyframes labelFadeIn { to { opacity: 1; } }
  .city-label.hover-hidden, .city-label.popup-hidden {
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
  }
  /* Dim ALL city labels when a map card or popup is open */
  .map-card-open .label-text-overlay,
  .map-popup-open .label-text-overlay,
  .map-card-open .label-line-overlay,
  .map-popup-open .label-line-overlay {
    opacity: 0.15;
    pointer-events: none;
    transition: opacity 0.25s;
  }

  /* Leaflet controls dark theme */
  .leaflet-bar { border: 1px solid var(--border) !important; border-radius: 8px !important; overflow: hidden; }
  .leaflet-bar a { background: #fff !important; color: var(--dark) !important; border-bottom-color: var(--border) !important; }
  .leaflet-bar a:hover { background: #faf6ef !important; }
  .leaflet-control-attribution { background: rgba(255,255,255,0.85) !important; color: var(--light) !important; }
  .leaflet-control-attribution a { color: var(--mid) !important; }
  /* Reset Map bar — sits above the map frame on desktop */
  .map-reset-bar {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 6px 12px; background: var(--bg); border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .map-reset-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border: 1px solid var(--border); border-radius: 6px;
    background: var(--card-bg); font-family: var(--font); font-size: 12px; font-weight: 500;
    color: var(--mid); cursor: pointer; transition: all 0.15s;
  }
  .map-reset-btn:hover { color: var(--dark); border-color: var(--dark); background: #f5f0eb; }
  .map-reset-btn svg { flex-shrink: 0; }

  /* === NOTIFY BANNER === */
  .notify-banner {
    display: none; padding: 14px 24px; background: linear-gradient(135deg, rgba(232,97,77,0.08) 0%, rgba(240,168,48,0.06) 100%);
    border: 1px solid rgba(232,97,77,0.2); border-radius: var(--radius); margin: 0 24px 16px;
    align-items: center; gap: 16px; animation: bannerSlideIn 0.4s ease;
  }
  .notify-banner.visible { display: flex; }
  .notify-banner-text { flex: 1; color: var(--dark); font-size: 14px; line-height: 1.5; }
  .notify-banner-btn {
    flex-shrink: 0; padding: 8px 20px; background: var(--brand-coral); color: #fff; border: none;
    border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
  }
  .notify-banner-btn:hover { background: #d4553f; transform: translateY(-1px); }
  .notify-banner-close {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: transparent;
    border: none; color: var(--mid); font-size: 18px; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: background 0.2s;
  }
  .notify-banner-close:hover { background: rgba(0,0,0,0.04); }
  .notify-banner.success { border-color: rgba(86,171,47,0.3); background: linear-gradient(135deg, rgba(86,171,47,0.08) 0%, rgba(86,171,47,0.04) 100%); }
  .notify-banner.success .notify-banner-text { color: #90d060; }
  @keyframes bannerSlideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

  /* === NOTIFY MODAL === */
  .notify-overlay {
    display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px); align-items: center; justify-content: center;
    animation: modalFadeIn 0.25s ease;
  }
  .notify-overlay.visible { display: flex; }
  .notify-modal {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    width: 100%; max-width: 440px; padding: 32px; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: modalScaleIn 0.3s ease;
  }
  .notify-modal-close {
    position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
    background: transparent; border: none; color: var(--mid); font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background 0.2s;
  }
  .notify-modal-close:hover { background: rgba(0,0,0,0.04); }
  .notify-modal h2 { color: var(--dark); font-size: 20px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
  .notify-modal p { color: var(--mid); font-size: 14px; margin: 0 0 24px; line-height: 1.5; }
  .notify-field { margin-bottom: 16px; }
  .notify-field label { display: block; color: var(--mid); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
  .notify-field input {
    width: 100%; padding: 10px 14px; background: #faf6ef; border: 1px solid var(--border);
    border-radius: 6px; color: var(--dark); font-size: 14px; font-family: var(--font);
    outline: none; transition: border-color 0.2s; box-sizing: border-box;
  }
  .notify-field input:focus { border-color: var(--brand-coral); }
  .notify-field input::placeholder { color: var(--light); }
  .notify-field .field-helper { color: var(--light); font-size: 12px; margin-top: 6px; line-height: 1.4; }
  .notify-add-location {
    background: none; border: none; color: var(--brand-yellow); font-size: 13px; font-weight: 500;
    cursor: pointer; padding: 0; margin-bottom: 16px; display: inline-block;
  }
  .notify-add-location:hover { text-decoration: underline; }
  .notify-newsletter-opt {
    display: flex; align-items: flex-start; gap: 8px; margin-bottom: 20px;
    padding: 10px 12px; background: rgba(0,0,0,0.02); border-radius: 8px;
    border: 1px solid var(--border); cursor: pointer;
  }
  .notify-newsletter-opt input[type="checkbox"] {
    margin: 2px 0 0; accent-color: var(--brand-coral); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer;
  }
  .notify-newsletter-opt label { font-size: 13px; color: var(--mid); cursor: pointer; line-height: 1.4; }
  .notify-newsletter-opt label strong { color: var(--dark); font-weight: 600; }
  .notify-submit {
    width: 100%; padding: 12px; background: var(--brand-coral); color: #fff; border: none;
    border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
  }
  .notify-submit:hover { background: #d4553f; transform: translateY(-1px); }
  .notify-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
  .notify-locations-wrap .notify-field { position: relative; }
  .notify-remove-location {
    position: absolute; top: 28px; right: 8px; background: none; border: none;
    color: var(--light); font-size: 16px; cursor: pointer; padding: 4px 8px; line-height: 1;
  }
  .notify-remove-location:hover { color: var(--brand-red); }
  @keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes modalScaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

  /* === PERSISTENT NOTIFY PILL === */
  .notify-pill {
    display: none; align-items: center; gap: 6px; padding: 7px 14px;
    background: rgba(232,97,77,0.1); border: 1px solid rgba(232,97,77,0.2);
    border-radius: 20px; color: var(--dark); font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all 0.2s; white-space: nowrap;
    animation: bannerSlideIn 0.3s ease;
  }
  .notify-pill.visible { display: inline-flex; }
  .notify-pill:hover { background: rgba(232,97,77,0.18); border-color: rgba(232,97,77,0.35); transform: translateY(-1px); }
  .notify-pill .pill-icon { font-size: 13px; }

  /* === NOTIFY LOCATION AUTOCOMPLETE === */
  .notify-field { position: relative; }
  .notify-autocomplete {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
    background: #fff; border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 6px 6px; max-height: 200px; overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .notify-autocomplete.visible { display: block; }
  .notify-ac-item {
    padding: 10px 14px; color: var(--dark); font-size: 13px; cursor: pointer;
    border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px;
  }
  .notify-ac-item:last-child { border-bottom: none; }
  .notify-ac-item:hover, .notify-ac-item.active { background: rgba(0,0,0,0.04); }
  .notify-ac-item .ac-icon { color: var(--light); font-size: 14px; flex-shrink: 0; }
  .notify-ac-item .ac-name { flex: 1; }
  .notify-ac-item .ac-detail { color: var(--light); font-size: 11px; }

  @media (max-width: 1023px) {
    .notify-banner { margin: 0 16px 12px; padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
    .notify-banner-text { width: 100%; }
    .notify-banner-btn { width: 100%; text-align: center; padding: 12px; }
    .notify-banner-close { position: absolute; top: 8px; right: 8px; }
    .notify-banner { position: relative; }
    .notify-overlay { align-items: flex-end; }
    .notify-modal {
      max-width: 100%; border-radius: 16px 16px 0 0; padding: 28px 20px;
      animation: modalSlideUp 0.3s ease;
    }
    @keyframes modalSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  }
