/* GENERATED by tools/build_css.py from the files named below.
   Edit those, then run the tool. Do not edit this file. */

/* ==== static/vendor/fonts/fonts.css ==== */
/* Inter and Montserrat, self-hosted (static/vendor/LICENSES.txt).
   Variable fonts: one file per subset covers every weight the site uses.
   Generated from the Google Fonts css2 response; the unicode-range values
   are theirs, so latin-ext is only fetched by a page that needs it. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/static/vendor/fonts/inter-latin.woff2?v=1') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/static/vendor/fonts/inter-latin-ext.woff2?v=1') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('/static/vendor/fonts/montserrat-latin.woff2?v=1') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('/static/vendor/fonts/montserrat-latin-ext.woff2?v=1') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==== static/tokens.css ==== */
/* Design tokens, defined once for the whole site.
 *
 * These used to be copy-pasted into a :root block in each of 14 page
 * templates, which is how the styling drifted apart. base.html links this
 * first, so pages inherit the palette and only declare a token when they
 * genuinely differ from it.
 *
 * Page-level :root blocks still win, because a page's own <style> is parsed
 * after this file. Two pages rely on that today:
 *   journal_post      --main-text: #e8e8e8   (slightly brighter body copy)
 *   admin_seo_analysis --card: #1e1e1e       (darker cards)
 *
 * Deliberately NOT defined here: --text-secondary. Six pages reference it
 * without defining it, so their text currently inherits the body colour
 * instead of going muted. Defining it here would silently restyle 35
 * elements, which is a design decision rather than a consolidation, so it is
 * being handled separately.
 *
 * The short names (--text, --card, --border, --muted) are the vocabulary the
 * admin templates use; the long ones are what the public pages use. They are
 * kept as-is here rather than renamed, since renaming would mean touching
 * every rule that references them.
 */

/* Every page already applied this -- 14 templates declared it inline and the
   other 5 inherit it from styles.css or admin.css -- so hoisting it here
   changes nothing and removes 14 copies. */
* {
    box-sizing: border-box;
}

:root {
    /* Core palette */
    --main-dark: #121212;
    --main-text: #e0e0e0;
    --accent-teal: #5bc8d7;
    --accent-dark-teal: #3a9ba9;
    --accent-warm: #ff9a76;
    --card-bg: #232323;
    --header-bg: #2c2c2c;
    --border-color: #3a3a3a;

    /* Short aliases, used by the admin templates */
    --bg: #1a1a1a;
    --text: #e0e0e0;
    --card: #232323;
    --border: #3a3a3a;
    --muted: #999;

    /* Text roles.
       These were referenced across the site but defined nowhere, so every
       `color: var(--text-secondary)` silently fell back to the inherited body
       colour and the text never went muted. --text-primary and --text-color
       resolve to the same value the text was already inheriting, so only
       --text-secondary changes anything on screen. */
    --text-primary: #e0e0e0;
    --text-color: #e0e0e0;
    --text-secondary: #999;

    /* Status colours */
    --good: #7ed957;
    --bad: #e57373;
    --danger: #e57373;
    --error: #ef4444;
}

/* ==== static/site-header.css ==== */
/* Site topbar (templates/_site_header.html): one compact band, wordmark left,
 * nav right. Replaces the earlier two-band masthead-above-nav layout — chosen
 * because the centered wordmark left large empty space either side and cost
 * ~46px of extra height on every page.
 *
 * The nav's own bar styling (site-nav.css) is neutralised inside the topbar
 * via the higher-specificity .topbar .site-nav rules below, so site-nav.css
 * keeps working standalone if the nav is ever rendered outside the topbar.
 */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Wraps the nav onto its own line once it no longer fits beside the
       wordmark. Without this the bar stays one line and the nav, being
       justify-content: flex-end, spills its overflow leftwards straight over
       the wordmark -- visible between roughly 770px and 1010px, i.e. any
       part-width desktop window. Wrapping is content-driven, so it keeps
       working if nav items are added or renamed. */
    flex-wrap: wrap;
    gap: 4px 24px;
    padding: 9px 22px;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color, #3a3a3a);
}

.topbar-logo-link,
.topbar-logo-link:hover,
.topbar-logo-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

/* alt="" — the wordmark beside it already names the site, so announcing the
   mark again would just be noise for screen readers. */
.topbar-mark {
    width: auto;
    height: 30px;
    display: block;
    flex-shrink: 0;
}

.masthead-logo {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    letter-spacing: 1.5px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-warm));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.topbar .site-nav {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    /* No min-width: 0 here. That let the nav shrink below its content, which
       is what produced the overflow instead of a wrap. Leaving min-width at
       its auto (min-content) default is what lets .topbar wrap it. */
    flex: 1 1 auto;
}

/* ---------------------------------------------------------------------------
   Shared page heading.

   Page h1s had drifted to five different sizes -- 1.15rem on the event pages
   and up to 2.6rem on journal_post -- so the same heading role looked
   different on every page. This is the single scale; per-page h1 font-size
   overrides were removed so they all inherit it.

   `h1` and `.page-h1` are both styled: pages with a natural page title use a
   bare <h1>, while the event pages (home, city, tonight, bar hop) add the
   class to an h1 that sits above dense content.
   --------------------------------------------------------------------------- */
h1,
.page-h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.2px;
    margin: 0 0 10px;
    color: var(--main-text, #e0e0e0);
}

/* Standard intro paragraph under a page heading. */
.lead {
    font-size: 1rem;
    line-height: 1.6;
    color: #bbb;
    margin: 0 0 22px;
    max-width: 760px;
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 8px 10px 6px;
        /* Blur forces per-frame repaints while scrolling; same tradeoff as
           the nav and styles.css make on mobile. */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .topbar-logo-link {
        text-align: center;
    }

    /* flex-start, not center: this selector outranks the mobile `.site-nav`
       rule in site-nav.css, and centring a horizontal scroll container parks
       the first link at a negative scroll offset that cannot be reached. The
       ::before/::after spacers in site-nav.css centre the row while it fits.
       See the comment there before changing this back. */
    .topbar .site-nav {
        justify-content: flex-start;
        flex: initial;
    }

    /* Page headings step down on phones. The clamp alone bottoms out at its
       floor here, which left long headings -- especially the home page
       tagline -- wrapping to three lines and dominating the screen. */
    h1,
    .page-h1 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    /* .page-h1 is the descriptive line above dense content on the event
       pages, not a page title, so it goes smaller still. */
    .page-h1 {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }

    .lead {
        font-size: 0.94rem;
        margin-bottom: 18px;
    }

    /* Page subtitles -- the one-line description under an h1 on about,
       support, privacy, feedback and journal posts. Each template sets its
       own size (0.9rem to 1.1rem) with no mobile step-down, so on a phone
       every one of them wrapped to two or three lines and read as body copy
       rather than as a caption under the heading.

       `p.subtitle` rather than `.subtitle`: page <style> blocks render after
       this file (see base.html), so a bare class selector would lose to them
       on source order alone. Every use of the class is on a <p>. */
    p.subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* "Skip to content": the first thing a keyboard reaches on every page
   (base.html). Off screen until it has focus. */
.skip-link {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: 6px;
    border: 2px solid var(--accent-teal);
    background: var(--main-dark);
    color: #fff;
    font: 600 0.95rem/1.2 'Inter', sans-serif;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* The link's target takes focus so the next Tab starts in the content; it
   should not draw a ring around the whole page for that. */
main:focus {
    outline: none;
}

/* ==== static/site-nav.css ==== */
/* Styling for the shared nav partial (templates/_site_nav.html).
 *
 * These rules used to live only in styles.css, which just three pages link
 * (events, city, tonight). Every other page rendered the nav as raw browser
 * links -- default blue and underlined. base.html now links this file, so the
 * nav looks the same everywhere.
 *
 * Every selector here is .site-nav* or .nav-action-*, and those class names
 * appear nowhere except the nav partial, so this file cannot affect anything
 * else on a page.
 *
 * Palette variables carry fallbacks: journal_index, journal_post and
 * venues_index define their own :root without --accent-dark-teal, and the
 * active-tab gradient needs it.
 */

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color, #3a3a3a);
}

.site-nav a {
    color: var(--main-text, #e0e0e0);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.site-nav a:hover {
    color: var(--accent-teal, #5bc8d7);
    background: rgba(91, 200, 215, 0.1);
}

.site-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-teal, #5bc8d7), var(--accent-dark-teal, #3a9ba9));
    font-weight: 600;
}

.nav-action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(91, 200, 215, 0.1);
    border: 1px solid rgba(91, 200, 215, 0.3);
    color: var(--accent-teal, #5bc8d7);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.nav-action-btn:hover {
    background: rgba(91, 200, 215, 0.2);
    border-color: var(--accent-teal, #5bc8d7);
    transform: translateY(-1px);
}

.nav-action-subscribe {
    background: rgba(255, 154, 118, 0.1);
    border-color: rgba(255, 154, 118, 0.3);
    color: var(--accent-warm, #ff9a76);
}

/* Beer pill is an <a>, so double up specificity to beat the generic
   `.site-nav a` link rules (padding, color, hover background). Filled warm
   gradient marks it as the one CTA in the bar. */
.site-nav a.nav-action-beer {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-warm, #ff9a76), #d97a52);
    border: 1px solid transparent;
    white-space: nowrap;
}

.site-nav a.nav-action-beer:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-warm, #ff9a76), #d97a52);
    filter: brightness(1.08);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .site-nav {
        gap: 4px;
        padding: 6px 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Deliberately NOT justify-content: center. Centring a scroll
           container splits the overflow across both ends, and the leading
           half lands at a negative scroll offset that nothing can reach --
           "All Events" rendered as "ents" with no way to scroll back to it.
           The auto-margin spacers below centre the row while it fits and
           collapse to zero once it overflows (auto margins only absorb
           positive free space), so the first link always sits at
           scrollLeft 0. */
        justify-content: flex-start;
        /* Blur is dropped on mobile: it forces per-frame repaints while
           scrolling long lists. Matches the same tradeoff in styles.css. */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-nav::before,
    .site-nav::after {
        content: '';
        margin: auto;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav a {
        font-size: 0.75rem;
        padding: 5px 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Fixed, not `margin-left: auto`: an auto margin here would swallow the
       free space the ::before/::after spacers need to centre the row. */
    .nav-action-buttons {
        margin-left: 8px;
        padding-left: 8px;
        flex-shrink: 0;
    }
}

/* Phones. The full nav -- five links plus the beer pill -- measures ~410px
   against a ~355px bar at 375px wide, so something has to give or the row
   scrolls on every page. Dropping the pill's text label reclaims ~80px, which
   is enough for the whole nav to fit unscrolled, and keeps the CTA visible as
   its orange pill rather than clipped mid-word. The full "Buy Us a Beer"
   wording still appears in the footer and on /support. */
@media (max-width: 480px) {
    /* Every value below is spent buying horizontal room. With the label gone
       and these paddings the row measures ~369px, which fits unscrolled on a
       modern phone (390px+ of viewport). Smaller handsets still overflow and
       scroll -- correctly, from the first link -- so nothing is ever hidden. */
    .site-nav {
        gap: 3px;
    }

    .site-nav a {
        padding: 5px 6px;
    }

    .nav-action-buttons {
        margin-left: 6px;
        padding-left: 6px;
    }

    .site-nav a.nav-action-beer {
        padding: 6px 10px;
    }

    .site-nav a.nav-action-beer .nav-beer-label {
        display: none;
    }

    .site-nav a.nav-action-beer .icon {
        width: 18px;
        height: 18px;
    }
}

/* ==== static/site-footer.css ==== */
/* Shared site footer (templates/_site_footer.html).
 *
 * Carries its own copy of the .social-links styling: the icon partial was
 * only styled inside styles.css and a few page templates, so on any other
 * page the icons rendered as bare links. With the footer now global, the
 * styling has to be too. styles.css keeps its identical copy for the three
 * pages that link it; dedupe alongside the .site-nav dedupe.
 *
 * --text-secondary carries a fallback: most pages do not define it (the
 * known dead-token issue documented in BASE_TEMPLATE_MIGRATION.md).
 */

.site-footer {
    text-align: center;
    padding: 24px 16px 30px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color, #3a3a3a);
    color: var(--text-secondary, #999);
    font-size: 0.85rem;
}

.site-footer-links {
    margin: 12px 0 0;
}

.site-footer-links a {
    color: var(--accent-teal, #5bc8d7);
    text-decoration: none;
}

.site-footer-links a:hover {
    color: var(--accent-warm, #ff9a76);
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 14px 0 6px 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-secondary, #999);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s, background 0.2s, transform 0.15s, border-color 0.2s;
    text-decoration: none;
}

.social-link:hover {
    color: var(--accent-teal, #5bc8d7);
    background: rgba(91, 200, 215, 0.12);
    border-color: rgba(91, 200, 215, 0.4);
    transform: translateY(-2px);
}

/* ==== static/styles.css ==== */
:root {
    --main-dark: #121212;
    --main-text: #e0e0e0;
    --accent-teal: #5bc8d7;
    --accent-dark-teal: #3a9ba9;
    --accent-warm: #ff9a76;
    --card-bg: #232323;
    --header-bg: #2c2c2c;
    --border-color: #3a3a3a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    color: var(--main-text);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    visibility: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--main-dark);
}

/* BACKGROUND IMAGE
   One picture, three sizes, chosen by media query so a browser only fetches
   the one it will show: 800 px wide for phones (17 KB), 1600 (72 KB) and
   1920 (91 KB). The largest used to be the 2912 px original at 596 KB.

   The page always showed the picture under a 60% wash of the page colour,
   so the wash is now in the files instead of a gradient on top: a darkened
   picture has less contrast to encode and comes out a fraction of the size
   at the same look. They are built from colorado-bar-music-background.png
   with Pillow: Image.blend(photo, #121212, 0.6), LANCZOS resize, WebP
   quality 76-78. New names, because the old files are cached for a year.

   html.bg-wait is set by a one-line script in base.html before first paint
   and removed on window load, so the picture is fetched after the page is
   up rather than competing with the stylesheet and scripts for it. Without
   script the class is never set and the picture loads as it always did. */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--main-dark) url('/static/colorado-bar-music-bg-800.webp?v=1') center center/cover no-repeat;
    z-index: -10;
}
@media (min-width: 769px) {
    body::before {
        background-image: url('/static/colorado-bar-music-bg-1600.webp?v=1');
    }
}
@media (min-width: 1600px) {
    body::before {
        background-image: url('/static/colorado-bar-music-bg-1920.webp?v=1');
    }
}
html.bg-wait body::before {
    background-image: none;
}

/* base.html wraps every page's content in <main id="main">. On these pages
   body is a flex column whose middle child stretches to push the footer
   down; that child used to be .main-content and is now the landmark around
   it. */
body > main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

body.ready {
    visibility: visible;
}

.header {
    text-align: center;
    margin-bottom: 0;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(91, 200, 215, 0.2);
    width: 100%;
    min-height: auto;
    overflow: hidden;
}

/* Site navigation bar */
.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-action-subscribe:hover {
    background: rgba(255, 154, 118, 0.2);
    border-color: var(--accent-warm);
}

/* View on Map / View as Table button — shared base styles for both variants */
.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-dark-teal));
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(91, 200, 215, 0.25);
}

.view-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 200, 215, 0.4);
    filter: brightness(1.05);
}

.view-toggle-btn:active { transform: translateY(0); }

.view-toggle-btn[data-view="map"] {
    background: linear-gradient(135deg, var(--accent-warm), #d97a52);
    box-shadow: 0 2px 8px rgba(255, 154, 118, 0.25);
}
.view-toggle-btn[data-view="map"]:hover {
    box-shadow: 0 4px 12px rgba(255, 154, 118, 0.4);
}

/* Inline variant — small button sitting in the filter-primary-row next to "Filters" (desktop) */
.view-toggle-btn--inline {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Prominent variant — full-width pill below the filter bar (mobile) */
.view-toggle-bar {
    display: flex;
    justify-content: center;
    margin: 12px 0 16px;
}
.view-toggle-btn--prominent {
    padding: 12px 28px;
    font-size: 1rem;
    width: 100%;
    max-width: 360px;
    justify-content: center;
}

/* Show only the desktop inline button on wider screens; only the prominent
   one on mobile. Breakpoint matches the site's existing mobile rules. */
.view-toggle-bar--mobile { display: none; }
.view-toggle-btn--inline { display: inline-flex; }

@media (max-width: 768px) {
    .view-toggle-bar--mobile { display: flex; gap: 8px; }
    .view-toggle-btn--inline { display: none; }
}

/* "Near Me" — rides alongside the map toggle in both layouts. Outlined rather
   than filled so it reads as secondary to Map instead of competing with it. */
.near-me-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(91, 200, 215, 0.5);
    background: rgba(91, 200, 215, 0.1);
    color: var(--accent-teal);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    /* Anchors inherit the body line-height; the sibling map toggle is a
       <button> at `normal`. Without this the pill sits ~6px taller than it. */
    line-height: normal;
}

.near-me-btn:hover {
    background: rgba(91, 200, 215, 0.2);
    border-color: var(--accent-teal);
    transform: translateY(-1px);
}

.near-me-btn:active { transform: translateY(0); }

/* Same desktop/mobile split as the map toggle above. */
.near-me-btn--mobile { display: none; }

@media (max-width: 768px) {
    .near-me-btn--inline { display: none; }
    /* Shares the mobile bar with the map pill instead of that button alone
       taking its full 360px. Both are nowrap, so min-content mostly decides
       the split; the flex here just lets them fill the row and shrink
       together rather than overflow on narrow phones. */
    .near-me-btn--mobile {
        display: inline-flex;
        flex: 1 1 0;
        max-width: 360px;
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    .view-toggle-btn--prominent { flex: 1 1 0; }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-dark-teal));
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(91, 200, 215, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(91, 200, 215, 0.5);
}

a.logo-link,
a.logo-link:hover,
a.logo-link:visited,
a.logo-link:active,
a.logo-link:focus {
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: none !important;
    outline: none;
    transform: none !important;
}

a.logo-link::after,
a.logo-link:hover::after {
    content: none !important;
    display: none !important;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 5.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -2px;
    position: relative;
    z-index: 2;
    display: block;
    text-transform: uppercase;
    line-height: 0.85;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(91, 200, 215, 0.4);
    text-align: center;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--accent-warm);
    margin-top: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.main-content {
    flex: 1;
    padding: 20px;
    max-width: min(1600px, 90vw);
    margin: 0 auto;
    width: 100%;
    position: relative;
    background: rgba(18, 18, 18, 0.3);
    backdrop-filter: blur(2px);
    border-radius: 10px 10px 0 0;
    overflow-x: hidden;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    overflow: visible;
}

.filter-bar {
    display: flex;
    flex-direction: column;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(15px);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 20px;
    z-index: 1000;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Primary Row: always visible quick access bar */
.filter-primary-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.filter-primary-row .date-quick-options-inline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Universal search input */
.universal-search-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}

.universal-search-icon {
    position: absolute;
    left: 12px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.universal-search {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 10px 36px 10px 36px;
    color: var(--main-text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    height: 40px;
}

.universal-search:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(91, 200, 215, 0.2);
}

.universal-search::placeholder {
    color: #777;
}

.universal-search-wrapper .filter-clear-x {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Action icon buttons (map, subscribe) */
.action-buttons-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.action-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-dark-teal));
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(91, 200, 215, 0.3);
    flex-shrink: 0;
}

.action-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 200, 215, 0.4);
}

.action-icon-subscribe {
    background: linear-gradient(135deg, var(--accent-warm), #ff7c5a);
    box-shadow: 0 2px 8px rgba(255, 154, 118, 0.3);
}

.action-icon-subscribe:hover {
    box-shadow: 0 4px 15px rgba(255, 154, 118, 0.4);
}

/* More Filters toggle button */
.more-filters-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(91, 200, 215, 0.1);
    border: 1px solid rgba(91, 200, 215, 0.3);
    color: var(--accent-teal);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.more-filters-btn:hover {
    background: rgba(91, 200, 215, 0.2);
    border-color: var(--accent-teal);
}

.filter-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.filter-bar.expanded .filter-toggle-icon {
    transform: rotate(180deg);
}

/* Advanced filter row: hidden by default on all screen sizes */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease;
}

/* Hide mobile-only date group on desktop */
.mobile-date-group {
    display: none;
}

.filter-bar.expanded .filter-row {
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.filter-input-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    flex: 1;
}

.filter-label {
    color: var(--accent-teal);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 14px;
}

.filter-input {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--main-text);
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    line-height: 20px;
    display: flex;
    align-items: center;
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(91, 200, 215, 0.2);
}

.filter-input::placeholder {
    color: #aaa;
}

.filter-input[type="date"] {
    padding-right: 40px;
    height: 44px;
    line-height: 20px;
    min-height: 44px;
    max-height: 44px;
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235bc8d7' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center;
    background-size: 16px 16px;
    cursor: pointer;
    opacity: 1;
    width: 20px;
    height: 20px;
    border: none;
    outline: none;
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff9a76' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center;
    background-size: 16px 16px;
}

.filter-actions {
    display: flex;
    align-items: end;
    margin-left: auto;
}

.clear-filters-btn {
    background: linear-gradient(135deg, var(--accent-warm), #ff7c5a);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.clear-filters-btn:hover {
    background: linear-gradient(135deg, #ff7c5a, var(--accent-warm));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Date quick options live in the primary row now */

.date-quick-btn {
    background: rgba(91, 200, 215, 0.1);
    color: var(--accent-teal);
    border: 1px solid rgba(91, 200, 215, 0.3);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

.date-quick-btn:hover {
    background: rgba(91, 200, 215, 0.2);
    border-color: var(--accent-teal);
    transform: translateY(-1px);
}

.date-quick-btn.active {
    background: var(--accent-teal);
    color: white;
    border-color: var(--accent-teal);
}

/* Per-filter clear (X) buttons */
.filter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.filter-input-wrapper .filter-input {
    padding-right: 32px;
}

/* Add to Calendar / Share icon buttons in the events table */
.add-to-cal-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 4px;
    margin-left: 4px;
    /* Buttons don't inherit the table's text colour — without this they fall
       back to the UA default (black) and the inline SVGs, which are drawn with
       currentColor, disappear against the dark table. */
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s;
    vertical-align: middle;
}

.add-to-cal-btn:hover {
    opacity: 1;
}

.add-to-cal-btn-mobile {
    background: rgba(91, 200, 215, 0.1);
    border: 1px solid rgba(91, 200, 215, 0.3);
    color: var(--accent-teal);
    cursor: pointer;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 10;
}

.filter-clear-x {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: none;
    z-index: 2;
}

.filter-clear-x:hover {
    color: var(--accent-warm);
    background: rgba(255, 107, 53, 0.15);
}

.filter-clear-x.visible {
    display: block;
}

/* Active filter badge for mobile toggle */
.filter-bar-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-badge {
    background: var(--accent-warm);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* Results count bar */
.results-count-bar {
    display: none;
    padding: 8px 0 0;
    font-size: 0.85rem;
    color: #aaa;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.results-count-bar.visible {
    display: block;
}

.results-count-bar .results-highlight {
    color: var(--accent-teal);
    font-weight: 600;
}

/* Hide clear-filters button when no filters active */
.clear-filters-btn.hidden {
    opacity: 0.3;
    pointer-events: none;
}

/* Type filter: multi-select pill buttons */
.type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.type-pill {
    background: rgba(91, 200, 215, 0.08);
    border: 1px solid var(--border-color);
    color: #aaa;
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.type-pill:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    background: rgba(91, 200, 215, 0.12);
}

.type-pill.active {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: white;
    font-weight: 600;
}

.type-pill .type-pill-icon {
    font-size: 0.85em;
}

.filter-type-group {
    min-width: 200px;
    flex: 2;
}

/* Filter autocomplete dropdown */
.filter-autocomplete-wrapper {
    position: relative;
}

.filter-autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.filter-autocomplete-dropdown.active {
    display: block;
}

.filter-autocomplete-item {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--main-text);
    transition: background 0.1s;
}

.filter-autocomplete-item:hover,
.filter-autocomplete-item.highlighted {
    background: rgba(91, 200, 215, 0.12);
    color: var(--accent-teal);
}

.filter-autocomplete-item .ac-match {
    color: var(--accent-teal);
    font-weight: 600;
}

/* (view-toggle-section removed — merged into filter-bar primary row) */

/* Subscription Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--accent-teal);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--main-text);
    font-size: 1rem;
}

.modal-filters {
    background: rgba(18, 18, 18, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.modal-filters h3 {
    font-size: 1rem;
    margin-top: 0;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(91, 200, 215, 0.2);
}

.filter-summary {
    background: rgba(18, 18, 18, 0.5);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-dark-teal));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 200, 215, 0.4);
}

.subscribe-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.subscribe-message.success {
    background: rgba(34, 139, 34, 0.2);
    color: #22c55e;
}

.subscribe-message.error {
    background: rgba(255, 20, 20, 0.2);
    color: #ff3333;
}

/* Tag/chip autocomplete inputs */
.tag-input-container {
    position: relative;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 8px;
    min-height: 42px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    cursor: text;
    transition: border-color 0.2s;
}

.tag-input-container:focus-within {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(91, 200, 215, 0.2);
}

.tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(91, 200, 215, 0.15);
    border: 1px solid rgba(91, 200, 215, 0.3);
    color: var(--accent-teal);
    padding: 3px 8px;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    animation: chipIn 0.15s ease-out;
}

@keyframes chipIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tag-chip .chip-remove {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s;
    margin-left: 2px;
}

.tag-chip .chip-remove:hover {
    opacity: 1;
    color: #ff6666;
}

.tag-input {
    flex: 1;
    min-width: 80px;
    border: none;
    background: transparent;
    color: var(--main-text);
    font-size: 0.9rem;
    padding: 4px;
    outline: none;
}

.tag-input::placeholder {
    color: #555;
}

.tag-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.tag-dropdown.active {
    display: block;
}

.tag-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--main-text);
    transition: background 0.1s;
}

.tag-dropdown-item:hover,
.tag-dropdown-item.highlighted {
    background: rgba(91, 200, 215, 0.12);
    color: var(--accent-teal);
}

.tag-dropdown-item .match-highlight {
    color: var(--accent-teal);
    font-weight: 600;
}

/* Match mode toggle */
.match-mode-toggle {
    display: flex;
    background: rgba(18, 18, 18, 0.6);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.match-mode-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.match-mode-btn.active {
    background: rgba(91, 200, 215, 0.15);
    color: var(--accent-teal);
    font-weight: 600;
}

.match-mode-btn:hover:not(.active) {
    color: #bbb;
}

/* Day pill checkboxes */
.days-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.day-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 500;
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--border-color);
    color: #888;
    transition: all 0.2s;
    user-select: none;
}

.day-pill:has(input:checked) {
    background: rgba(91, 200, 215, 0.15);
    border-color: rgba(91, 200, 215, 0.4);
    color: var(--accent-teal);
}

.day-pill input[type="checkbox"] {
    display: none;
}

.map-container {
    margin-bottom: 3rem;
    background: rgba(35, 35, 35, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.map-container.hidden {
    display: none;
}

.table-container.hidden {
    display: none;
}

.map-layout {
    display: flex;
    gap: 20px;
    height: 600px;
    width: 100%;
    position: relative;
}

#map {
    flex: 1;
    height: 100%;
    min-height: 600px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    width: 100% !important;
    height: 100% !important;
}

.map-sidebar {
    width: 350px;
    background: rgba(35, 35, 35, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100% !important;
    position: relative !important;
}

.sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--header-bg);
}

.sidebar-header h3 {
    margin: 0;
    color: var(--accent-teal);
    font-size: 1.1rem;
    font-weight: 600;
}

.event-count {
    color: var(--accent-warm);
    font-size: 0.9rem;
    font-weight: 500;
}

.map-event-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.map-event-item {
    background: rgba(43, 43, 43, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-event-item:hover {
    background: rgba(91, 200, 215, 0.1) !important;
    border-color: var(--accent-teal) !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 2px rgba(91, 200, 215, 0.2) !important;
}

.map-event-item.highlighted {
    background: rgba(91, 200, 215, 0.5) !important;
    border-color: var(--accent-teal) !important;
    border-width: 3px !important;
}

.map-event-item h4 {
    margin: 0 0 6px 0;
    color: var(--accent-teal);
    font-size: 0.95rem;
}

.map-event-item .event-venue {
    color: var(--main-text);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.map-event-item .event-details {
    color: #aaa;
    font-size: 0.8rem;
    display: flex;
    gap: 10px;
}

.map-event-item h4 a {
    color: var(--accent-teal);
    text-decoration: none;
}

.map-event-item h4 a:hover {
    text-decoration: underline;
}

/* Fix Leaflet attribution */
.leaflet-container .leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-teal);
    font-size: 10px;
}

.leaflet-control-zoom a {
    background-color: var(--card-bg) !important;
    color: var(--accent-teal) !important;
    border: 1px solid var(--border-color) !important;
}

.leaflet-control-zoom a:hover {
    background-color: var(--accent-teal) !important;
    color: var(--main-bg) !important;
}

/* Hide the +/- zoom control on touch devices — pinch-to-zoom is more natural */
@media (max-width: 768px) {
    .leaflet-control-zoom { display: none !important; }
}

/* Custom table view button */
.custom-map-control.leaflet-bar {
    border: none !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4) !important;
    background: transparent !important;
    margin-top: 10px !important;
    margin-left: 10px !important;
}

.custom-map-control.leaflet-bar a {
    background-color: rgba(91, 200, 215, 0.95) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0 10px !important;
    height: 34px !important;
    min-width: 80px !important;
    line-height: 34px !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.custom-map-control.leaflet-bar a:hover {
    background-color: var(--accent-teal) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-content-wrapper {
    background: var(--card-bg);
    color: var(--main-text);
    border-radius: 8px;
}

.leaflet-popup-tip {
    background: var(--card-bg);
}

/* Event link styles in popup */
.event-link {
    transition: all 0.2s ease;
}

.event-link:hover {
    background-color: #f0f0f0 !important;
    padding-left: 8px !important;
    border-left: 3px solid #16a2b8 !important;
}

select.filter-input {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 35px 12px 15px;
    color: var(--main-text);
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235bc8d7' d='M6 9L1.5 4.5h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    height: 44px;
    line-height: 20px;
}

select.filter-input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(91, 200, 215, 0.2);
}

select.filter-input option {
    background: var(--card-bg);
    color: var(--main-text);
    padding: 10px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
}

table.dataTable,
table.display {
    width: 100% !important;
    max-width: 100%;
    background: rgba(35, 35, 35, 0.85);
    color: var(--main-text);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    table-layout: fixed;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin: 0 auto;
    border-collapse: collapse;
}

/* Column widths for fixed table layout */
table.dataTable th:nth-child(1),
table.display th:nth-child(1) { width: 35%; }  /* Artist */
table.dataTable th:nth-child(2),
table.display th:nth-child(2) { width: 18%; }  /* Venue */
table.dataTable th:nth-child(3),
table.display th:nth-child(3) { width: 12%; }  /* Date/Time */
table.dataTable th:nth-child(4),
table.display th:nth-child(4) { width: 12%; }  /* Time/City */
table.dataTable th:nth-child(5),
table.display th:nth-child(5) { width: 13%; }  /* City/Type */
table.dataTable th:nth-child(6),
table.display th:nth-child(6) { width: 10%; }  /* Type */

th {
    background: var(--header-bg);
    color: var(--accent-teal);
    padding: 12px 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.8em;
}

td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 0.9em;
}

table.dataTable td:nth-child(1),
table.dataTable td:nth-child(2),
table.display td:nth-child(1),
table.display td:nth-child(2) {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

tr:nth-child(even) {
    background: rgba(43, 43, 43, 0.6);
}

tr:nth-child(odd) {
    background: rgba(35, 35, 35, 0.6);
}

tr:hover {
    background: rgba(50, 50, 50, 0.8) !important;
    box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.02);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

tr[data-link]:not([data-link=""]) {
    cursor: pointer;
}

tr[data-link]:not([data-link=""]):hover {
    background: rgba(91, 200, 215, 0.08) !important;
    transform: translateX(3px);
}

tr[data-link]:not([data-link=""]):hover td:first-child {
    color: var(--accent-teal);
}

tr[data-link]:not([data-link=""]):active {
    transform: translateX(1px);
}

.today-event {
    background: rgba(91, 200, 215, 0.15) !important;
    border-left: 4px solid var(--accent-teal);
}

/* Pulse indicator applied to the first cell/card element, not the <tr>
   (position:relative + ::before on <tr> breaks native table layout) */
.today-event > td:first-child,
.mobile-card.today-event {
    position: relative;
}

.today-event > td:first-child::before,
.mobile-card.today-event::before {
    content: '♪';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-teal);
    font-size: 14px;
    animation: pulse 2s infinite;
    pointer-events: none;
}

.today-event > td:first-child {
    padding-left: 22px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    position: relative;
    display: inline;
}

a:not(.logo-link)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent-warm);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
    border-radius: 1px;
}

a:not(.logo-link):hover {
    color: var(--accent-warm);
    transform: translateY(-1px);
}

a:not(.logo-link):hover::after {
    transform: scaleX(1);
}

.venue-badge {
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.venue-badge:hover {
    transform: scale(1.05);
}


/* Badge text colours are held to 4.5:1 against the lightest thing that can
   be behind them: the 20% tint over a row (or today's teal row) over the
   brightest point of the background picture. Ten of the thirteen were
   under it, down to 2.3:1; each was lightened along its own hue until it
   passed. tools/badge_contrast.py prints the table and
   tests/test_badge_contrast.py holds the line. */
.venue-bar {
    background: rgba(255, 126, 95, 0.2);
    color: #ffb29f;
}

.venue-club {
    background: rgba(255, 20, 147, 0.2);
    color: #ff8ecb;
}

.venue-venue {
    background: rgba(91, 200, 215, 0.2);
    color: #93dbe5;
}

.venue-theatre {
    background: rgba(138, 43, 226, 0.2);
    color: #d69be5;
}

.venue-arena {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.venue-amphitheater {
    background: rgba(34, 139, 34, 0.2);
    color: #53d281;
}

/* Venue-type badges keep emoji on purpose (decided Aug 2026). The rest of the
   site moved to the Lucide SVG set in templates/_icons.html, but these are
   playful category markers rather than UI chrome, and monochrome icons in an
   already colour-coded pill looked no better than the emoji. Not an oversight
   -- don't "finish" the icon migration by converting these. */
.venue-bar::before {
    content: '🍺';
}

.venue-club::before {
    content: '🎵';
}

.venue-venue::before {
    content: '🎪';
}

.venue-theatre::before {
    content: '🎭';
}

.venue-arena::before {
    content: '🏟️';
}

.venue-amphitheater::before {
    content: '🏔️';
}

.venue-hall {
    background: rgba(255, 191, 0, 0.2);
    color: #ffcb2e;
}

.venue-hall::before {
    content: '🏛️';
}

.venue-brewery {
    background: rgba(245, 158, 11, 0.2);
    color: #f8c060;
}

.venue-brewery::before {
    content: '🍻';
}

.venue-lounge {
    background: rgba(168, 85, 247, 0.2);
    color: #d4aafb;
}

.venue-lounge::before {
    content: '🛋️';
}

.venue-entertainment {
    background: rgba(236, 72, 153, 0.2);
    color: #f5a0ca;
}

.venue-entertainment::before {
    content: '🎤';
}

.venue-restaurant {
    background: rgba(239, 68, 68, 0.2);
    color: #f7a0a0;
}

.venue-restaurant::before {
    content: '🍽️';
}

.venue-sports-bar {
    background: rgba(59, 130, 246, 0.2);
    color: #9dc1fa;
}

.venue-sports-bar::before {
    content: '🏈';
}

.venue-winery {
    background: rgba(168, 85, 247, 0.2);
    color: #d4aafb;
}

.venue-winery::before {
    content: '🍷';
}

.footer {
    background: rgba(44, 44, 44, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
}

.feedback-link {
    margin-bottom: 1rem;
}

.feedback-link a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s;
    display: inline-block;
    background: rgba(91, 200, 215, 0.1);
    border: 1px solid rgba(91, 200, 215, 0.3);
}

.feedback-link a:hover {
    background: rgba(91, 200, 215, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 200, 215, 0.3);
}

/* Footer CTA row: Send Feedback + Subscribe buttons side-by-side */
.footer-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-cta {
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border: 1px solid;
}

.footer-cta-feedback {
    color: var(--accent-teal);
    background: rgba(91, 200, 215, 0.1);
    border-color: rgba(91, 200, 215, 0.3);
}

.footer-cta-feedback:hover {
    background: rgba(91, 200, 215, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 200, 215, 0.3);
}

.footer-cta-subscribe {
    color: var(--accent-warm);
    background: rgba(255, 154, 118, 0.1);
    border-color: rgba(255, 154, 118, 0.3);
}

.footer-cta-subscribe:hover {
    background: rgba(255, 154, 118, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 154, 118, 0.3);
}

/* Donate pill is filled (vs the ghost feedback/subscribe pills) so it reads as the primary CTA */
.footer-cta-donate {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-warm), #d97a52);
    border-color: transparent;
}

.footer-cta-donate:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 154, 118, 0.4);
    filter: brightness(1.05);
}

@media (max-width: 600px) {
    .footer-cta-row { flex-direction: column; align-items: center; }
    .footer-cta { width: 100%; max-width: 320px; text-align: center; }
}

.footer-text {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 300;
}

/* DataTables styling */
.dataTables_wrapper {
    overflow: hidden;
    color: var(--main-text);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.dataTables_info {
    display: none !important;
}

.dataTables_length {
    display: none !important;
}

.dataTables_paginate {
    margin-top: 1rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.dataTables_paginate .paginate_button {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--main-text) !important;
    padding: 6px 12px !important;
    margin: 0 3px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    min-width: 50px !important;
    max-width: 100px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 0.85em !important;
}

.dataTables_paginate .paginate_button:hover,
.dataTables_paginate .paginate_button:focus,
.dataTables_paginate .paginate_button:active {
    background: var(--accent-teal) !important;
    border-color: var(--accent-teal) !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.dataTables_paginate .paginate_button.current {
    background: var(--accent-teal) !important;
    border-color: var(--accent-teal) !important;
    color: white !important;
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* --- Compact header --- */
    .logo-text {
        font-size: 1.8rem;
        letter-spacing: -1px;
        line-height: 1;
    }

    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        margin-top: 0.3rem;
    }

    .header {
        padding: 0.8rem 1rem;
    }

    /* --- Nav bar ---
       This file loads after site-nav.css on the pages that link it, so these
       rules win. Keep them in step with the mobile block there; in particular
       do NOT restore `justify-content: center`, which puts the first link at
       an unreachable negative scroll offset. See site-nav.css for the full
       explanation of the auto-margin spacers. */
    .site-nav {
        gap: 4px;
        padding: 6px 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
    }

    .site-nav::before,
    .site-nav::after {
        content: '';
        margin: auto;
    }

    .nav-action-buttons {
        margin-left: 8px;
        gap: 3px;
        border-left: none;
        padding-left: 3px;
        flex-shrink: 0;
    }

    .nav-action-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    /* Show condensed text labels on mobile */
    .nav-action-btn span:last-child {
        display: inline;
        font-size: 0.65rem;
    }

    /* --- Main content --- */
    .main-content {
        padding: 10px;
        background: rgba(18, 18, 18, 0.4);
    }

    /* --- Filter bar --- */
    .filter-bar {
        padding: 10px 12px;
        margin-bottom: 1rem;
        top: 0;
        border-radius: 0 0 10px 10px;
    }

    /* Mobile primary row: single row with search + actions */
    .filter-primary-row {
        gap: 8px;
        flex-wrap: wrap;
    }

    /* Mobile: hide date quick buttons by default. They're shown only when
       the user expands the Filters panel (below the search bar row). */
    .filter-primary-row .date-quick-options-inline {
        display: none;
    }

    /* When Filters panel is expanded, reveal the date buttons on their own
       horizontally-scrollable row, positioned after the search + Less button
       (flex order:10 pushes them to the bottom of the primary row). */
    .filter-bar.expanded .filter-primary-row .date-quick-options-inline {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        flex-basis: 100%;
        order: 10;
        padding-top: 6px;
    }

    .filter-bar.expanded .filter-primary-row .date-quick-options-inline::-webkit-scrollbar {
        display: none;
    }

    .action-buttons-group {
        order: 1;
        gap: 5px;
        flex-shrink: 0;
    }

    /* Search takes remaining space on same row */
    .universal-search-wrapper {
        order: 2;
        flex: 1;
        min-width: 0;
    }

    .universal-search {
        height: 38px;
        font-size: 0.85rem;
    }

    .action-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .more-filters-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    /* Show date group inside filter dropdown on mobile */
    .mobile-date-group {
        display: block;
    }

    .filter-row .mobile-date-quick-options {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .filter-row .mobile-date-quick-options .date-quick-btn {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    .filter-row {
        flex-direction: column;
        gap: 12px;
    }

    .filter-input-group {
        width: 100%;
        max-width: none;
    }

    /* Ensure date input group has proper alignment */
    .filter-input-group:has(.filter-input[type="date"]) {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .filter-actions {
        width: 100%;
        margin-left: 0;
    }

    .clear-filters-btn {
        width: 100%;
    }

    /* Compact autocomplete dropdown on mobile */
    .filter-autocomplete-dropdown {
        max-height: 120px;
    }

    .filter-autocomplete-item {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    /* Results count on mobile */
    .results-count-bar {
        font-size: 0.8rem;
        margin-top: 8px;
    }

    /* Fix date input field on mobile */
    .filter-input[type="date"] {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        line-height: 20px !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px !important;
        background: var(--card-bg) !important;
        color: var(--main-text) !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        margin: 0 !important;
        display: block !important;
    }

    /* Additional Safari iOS fixes */
    .filter-input[type="date"]::-webkit-date-and-time-value {
        margin: 0 !important;
        padding: 0 !important;
        height: 20px !important;
        line-height: 20px !important;
    }

    .filter-input[type="date"]::-webkit-datetime-edit {
        padding: 0 !important;
        margin: 0 !important;
        height: 20px !important;
        line-height: 20px !important;
    }

    .filter-input[type="date"]::-webkit-datetime-edit-fields-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        height: 20px !important;
        line-height: 20px !important;
    }

    /* --- Footer: show on mobile, compact style --- */
    .footer {
        padding: 1.2rem 1rem;
        background: rgba(30, 30, 30, 0.95);
    }

    .footer .feedback-link a {
        font-size: 0.85rem;
        padding: 10px 20px;
    }

    .footer .footer-text {
        font-size: 0.78rem;
    }

    /* Ensure no white backgrounds show through */
    body {
        background: var(--main-dark) !important;
        min-height: 100vh !important;
    }

    .main-content {
        background: rgba(18, 18, 18, 0.4) !important;
        min-height: calc(100vh - 150px) !important;
    }

    table#events-table {
        display: none !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        display: none !important;
    }

    .mobile-cards {
        display: block;
    }

    .mobile-no-results {
        text-align: center;
        padding: 30px 20px;
        color: #888;
        font-size: 1rem;
    }

    .mobile-no-results p:first-child {
        font-size: 1.1rem;
        color: var(--accent-teal);
        margin-bottom: 8px;
    }

    /* Mobile pagination — "Show N more" button at the bottom of the card list */
    .mobile-load-more-wrap {
        display: flex;
        justify-content: center;
        padding: 16px 8px 24px;
    }
    .mobile-load-more-btn {
        background: rgba(91, 200, 215, 0.12);
        color: var(--accent-teal);
        border: 1px solid rgba(91, 200, 215, 0.35);
        border-radius: 24px;
        padding: 12px 24px;
        font-size: 0.95rem;
        font-weight: 600;
        font-family: 'Inter', sans-serif;
        cursor: pointer;
        transition: all 0.2s ease;
        width: 100%;
        max-width: 360px;
    }
    .mobile-load-more-btn:hover {
        background: rgba(91, 200, 215, 0.2);
        border-color: var(--accent-teal);
    }
    .mobile-load-more-meta {
        color: var(--text-secondary);
        font-weight: 400;
        font-size: 0.85em;
    }

    /* --- Redesigned mobile cards: compact 2-row layout --- */
    .mobile-card {
        border: 1px solid var(--border-color);
        background: rgba(35, 35, 35, 0.85);
        backdrop-filter: blur(10px);
        margin-bottom: 10px;
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 0.88em;
        line-height: 1.4;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
    }

    .mobile-card:active {
        transform: scale(0.98);
        background: rgba(91, 200, 215, 0.08);
    }

    .mobile-card.today-event {
        border-left: 3px solid var(--accent-teal);
        background: rgba(91, 200, 215, 0.08);
    }

    .mobile-card h3 {
        margin: 0 0 6px;
        font-size: 1.05em;
        color: var(--accent-teal);
        font-weight: 600;
        line-height: 1.3;
    }

    .mobile-card p {
        margin: 3px 0;
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--main-text);
        font-size: 0.92em;
    }

    .mobile-card p strong {
        min-width: auto;
        font-weight: 500;
    }

    /* Compact meta row: venue + date/time on same visual line */
    .mobile-card .mobile-card-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
        margin-top: 4px;
    }

    /* Not the type badge: it is a span too, and this grey replaced its own
       colour on every phone card (3.5:1 for Arena). */
    .mobile-card .mobile-card-meta span:not(.venue-badge) {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 0.85em;
        color: #bbb;
    }

    .mobile-card .mobile-card-meta .venue-badge {
        font-size: 0.75em;
    }

    .map-layout {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    #map-container #map {
        height: 100vh !important;
        height: 100dvh !important;
        width: 100% !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
    }

    #map-container.map-container {
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }

    /* Mobile map sidebar */
    .map-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 45vh !important;
        height: 45dvh !important;
        max-height: 90vh !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
        z-index: 1001 !important;
        display: block !important;
        visibility: visible !important;
        background: rgba(25, 25, 25, 0.95) !important;
        backdrop-filter: blur(20px);
        /* Prevent sidebar from blocking map interactions when collapsed */
        pointer-events: auto;
    }

    .sidebar-header {
        position: relative;
        z-index: 10;
        padding: 20px 15px 10px 15px;
    }

    .sidebar-header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .sidebar-header h3 {
        margin: 0;
    }

    .panel-header-buttons {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .panel-header-buttons button {
        padding: 6px 12px;
        background: var(--accent-teal);
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .panel-header-buttons .close-btn {
        background: var(--accent-warm);
    }

    .map-event-list {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        max-height: calc(100% - 120px) !important;
        padding-bottom: 20px !important;
    }

    .map-sidebar.collapsed .map-event-list {
        display: none !important;
    }

    .map-sidebar.collapsed {
        height: 65px !important;
    }

    /* Ensure collapsed sidebar header is still fully interactive */
    .map-sidebar.collapsed .sidebar-header {
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    .map-sidebar.collapsed .drag-overlay {
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    /* Enhanced drag handle - smaller */
    .map-sidebar::before {
        content: '';
        position: absolute;
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: #bbb;
        border-radius: 2px;
        z-index: 1004;
        pointer-events: none !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    /* Drag overlay styling - cover the header but leave space for buttons */
    .drag-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 120px !important;
        height: 100px !important;
        z-index: 1006 !important;
        cursor: grab !important;
        touch-action: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        background: transparent !important;
        pointer-events: auto !important;
    }

    .drag-overlay:active {
        cursor: grabbing !important;
    }

    /* Ensure sidebar is always draggable on mobile */
    .map-sidebar {
        touch-action: none;
    }

    .map-sidebar.collapsed .drag-overlay {
        pointer-events: auto !important;
        z-index: 1006 !important;
    }

    /* When sidebar is collapsed, reduce z-index to allow map interactions */
    .map-sidebar.collapsed {
        z-index: 999 !important;
    }

    .map-sidebar.collapsed .drag-overlay {
        pointer-events: auto !important;
        z-index: 1005 !important;
    }

    /* Filter button in panel header */
    .panel-header-filters {
        display: flex;
        gap: 8px;
        margin-top: 10px;
    }

    .panel-header-filters input {
        flex: 1;
        padding: 8px;
        background: rgba(35, 35, 35, 0.9);
        border: 1px solid var(--border-color);
        border-radius: 6px;
        color: var(--main-text);
        font-size: 0.85rem;
    }

    .panel-filter-btn {
        padding: 8px 15px;
        background: var(--accent-teal);
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        font-size: 0.85rem;
    }

    /* Compact filter bar in map view */
    .map-container:not(.hidden)~.content-container .filter-bar,
    #map-container:not(.hidden)~.filter-bar {
        display: block !important;
    }

    /* Floating toggle button on map */
    .map-view-toggle-btn {
        position: fixed;
        top: 85px;
        right: 20px;
        z-index: 2000;
        background: linear-gradient(135deg, var(--accent-teal), var(--accent-dark-teal));
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 25px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .map-view-toggle-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(91, 200, 215, 0.4);
    }

    .map-filters-toggle-btn {
        display: none !important;
    }

    /* Mobile filter panel - slides from left */
    .mobile-map-filters {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(25, 25, 25, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 0 !important;
        padding: 20px !important;
        padding-top: 80px !important;
        box-shadow: 2px 0 32px rgba(0, 0, 0, 0.5) !important;
        z-index: 2001 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        transition: left 0.3s ease, opacity 0.3s ease, transform 0.3s ease !important;
        visibility: hidden !important;
        display: none !important;
        pointer-events: none !important;
        /* Prevent filter panel from blocking map when closed */
        touch-action: none !important;
        transform: translateX(0) !important;
        opacity: 0 !important;
    }

    /* Ensure filter panel stays hidden when not open */
    .mobile-map-filters:not(.open) {
        left: -100% !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(-100%) !important;
        pointer-events: none !important;
    }

    .mobile-map-filters.open {
        left: 0 !important;
        visibility: visible !important;
        display: block !important;
        pointer-events: all !important;
        touch-action: auto !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    /* Overlay for filter panel */
    .mobile-map-filters-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.3) !important;
        z-index: 2000 !important;
    }

    .mobile-filter-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-filter-content h4 {
        margin: 0 !important;
        color: var(--accent-teal) !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .mobile-filter-close-btn {
        flex-shrink: 0 !important;
    }

    .mobile-filter-close-btn:hover {
        background: rgba(91, 200, 215, 0.2) !important;
    }

    .mobile-filter-input {
        width: 100% !important;
        padding: 12px 15px !important;
        background: rgba(35, 35, 35, 0.9) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px !important;
        color: var(--main-text) !important;
        font-size: 1rem !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
        transition: border-color 0.2s ease !important;
    }

    .mobile-filter-input:focus {
        outline: none !important;
        border-color: var(--accent-teal) !important;
        box-shadow: 0 0 0 2px rgba(91, 200, 215, 0.2) !important;
    }

    .mobile-filter-input::placeholder {
        color: #aaa !important;
    }

    .mobile-filter-clear-btn {
        width: 100% !important;
        padding: 14px !important;
        background: linear-gradient(135deg, var(--accent-warm), #ff7c5a) !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        margin-top: 8px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        font-size: 0.9rem !important;
        transition: all 0.2s ease !important;
    }

    .mobile-filter-clear-btn:active {
        transform: scale(0.98) !important;
    }

    /* Compact filter inputs in map view */
    #map-container:not(.hidden)~.content-container .filter-row {
        flex-wrap: wrap;
        gap: 5px;
    }

    #map-container:not(.hidden)~.content-container .filter-input-group {
        flex: 0 1 calc(50% - 3px);
        min-width: 120px;
    }

    #map-container:not(.hidden)~.content-container .filter-label {
        font-size: 0.7rem;
        margin-bottom: 3px;
        height: 12px;
    }

    #map-container:not(.hidden)~.content-container .filter-input {
        padding: 6px 10px;
        font-size: 0.85rem;
        height: 32px;
    }

    #map-container:not(.hidden)~.content-container .filter-actions {
        width: 100%;
    }

    #map-container:not(.hidden)~.content-container .clear-filters-btn {
        padding: 6px 15px;
        font-size: 0.75rem;
        height: 32px;
        width: 100%;
    }
}

@media (min-width: 769px) {
    .mobile-cards {
        display: none !important;
    }

    /* Advanced filters hidden by default on desktop too — toggled by More Filters button */
    /* The .filter-bar.expanded .filter-row rule in the base styles handles the expand */

    .map-container:not(.hidden) {
        display: block !important;
    }

    #map {
        width: 100%;
        height: 600px !important;
        min-height: 600px !important;
    }

    /* Desktop map sidebar should have full height */
    .map-sidebar {
        height: 100% !important;
        position: relative !important;
        width: 350px !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        max-height: none !important;
        border-radius: 10px !important;
        z-index: auto !important;
    }

    /* Hide mobile filter button (magnifying glass) on desktop */
    .panel-header-buttons button:first-child {
        display: none !important;
    }

    /* Hide drag overlay on desktop */
    .drag-overlay {
        display: none !important;
    }
}

/* Spotify Link Styling. The look used to be an inline style on every row;
   with verified links on far more rows (artists/ package) it lives here once. */
.spotify-link {
    display: inline-block; margin-left: 8px; text-decoration: none; vertical-align: middle;
    background-color: #1DB954; color: white; padding: 2px 8px; border-radius: 12px;
    font-size: 11px; font-weight: 600;
    transition: all 0.2s ease;
}

.spotify-link:hover {
    background-color: #1ed760 !important;
    transform: scale(1.05);
}

/* ============================================ */
/* Multi-select filter tag chips (Artist, Venue, City, Type) */
/* ============================================ */

.filter-tag-container {
    min-height: 38px;
    padding: 4px 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    cursor: text;
    position: relative;
    transition: border-color 0.15s ease;
}

.filter-tag-container:focus-within {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(91, 200, 215, 0.15);
}

.filter-tag-container .tag-chips {
    display: contents;
}

.filter-tag-container .tag-input {
    flex: 1;
    min-width: 80px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--main-text);
    font-size: 0.88rem;
    padding: 4px 6px;
}

.filter-tag-container .tag-input::placeholder {
    color: #777;
}

.filter-tag-container .tag-chip {
    background: rgba(91, 200, 215, 0.12);
    border: 1px solid rgba(91, 200, 215, 0.35);
    color: var(--accent-teal);
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    animation: chipFadeIn 0.15s ease;
}

@keyframes chipFadeIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.filter-tag-container .chip-remove {
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--accent-teal);
    opacity: 0.7;
    transition: opacity 0.15s, color 0.15s;
    padding: 0 2px;
    user-select: none;
}

.filter-tag-container .chip-remove:hover {
    opacity: 1;
    color: #ff6b6b;
}

.filter-tag-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.filter-tag-dropdown.active {
    display: block;
}

.filter-tag-dropdown .tag-dropdown-item {
    padding: 9px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--main-text);
    transition: background 0.1s;
    pointer-events: auto;
    user-select: none;
}

.filter-tag-dropdown .tag-dropdown-item:hover,
.filter-tag-dropdown .tag-dropdown-item.highlighted {
    background: rgba(91, 200, 215, 0.15);
    color: var(--accent-teal);
}

.filter-tag-dropdown .match-highlight {
    color: var(--accent-teal);
    font-weight: 600;
}

@media (max-width: 768px) {
    .filter-tag-container {
        min-height: 36px;
    }
    .filter-tag-dropdown {
        max-height: 240px;
    }
    .filter-tag-dropdown .tag-dropdown-item {
        padding: 12px 14px;
        font-size: 0.92rem;
    }
}
/* Social links in footer */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 14px 0 6px 0;
}

/* ======================================================================
   MOBILE PERFORMANCE OVERRIDES
   ----------------------------------------------------------------------
   The site had ~12 backdrop-filter:blur(...) rules (including one on
   every .mobile-card) and a position:fixed background image. On mobile
   GPUs both are extremely expensive: backdrop-filter forces a new
   compositing layer per element that gets re-blurred on every scroll
   frame, and fixed backgrounds force a full-viewport repaint per tick.
   With 4,200 mobile cards in the DOM after the background fetch, this
   combination produced visibly choppy scroll on phones.

   Strategy at <=768px:
   - Kill backdrop-filter on scrolling content (cards, filter bar, etc.)
   - Replace with a slightly more opaque solid background — visually
     nearly identical but essentially free for the GPU.
   - Make the background image scroll with the document instead of
     staying fixed.
   - Disable the looping pulse animation on today-event rows; it runs
     continuously and chews GPU for minimal value at this DOM size.
   ====================================================================== */
@media (max-width: 768px) {
    /* Reverting to the state the user reported as "running great on iPhone".
       Bg image scrolls with content (will eventually run out at the bottom
       of long lists — known tradeoff). Every attempt to keep it pinned
       (position:fixed, transform hints, will-change, touch-action) ended
       up either causing per-frame repaints (with backdrop-filters) or a
       ~200ms iOS scroll-gesture delay. Will revisit later. */
    body::before {
        position: absolute;
    }

    /* 2. Kill blurs on scrolling / high-count content */
    .mobile-card,
    .filter-bar,
    .main-content,
    .header,
    .site-nav,
    .map-sidebar,
    .map-event-item,
    .footer,
    .tag-input-container,
    .tag-dropdown,
    .filter-tag-dropdown,
    .filter-autocomplete-dropdown,
    .mobile-filter-panel,
    .mobile-filter-panel-overlay,
    .subscribe-modal,
    .modal-content,
    .share-menu {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Nudge a few backgrounds slightly more opaque to compensate */
    .mobile-card {
        background: rgba(30, 30, 30, 0.94);
    }
    .filter-bar {
        background: rgba(30, 30, 30, 0.95);
    }

    /* 3. Disable the continuous pulse animation (saves GPU cycles on every
       today-event row simultaneously). The teal background + border-left
       still make these stand out visually. */
    .today-event > td:first-child::before,
    .mobile-card.today-event::before {
        animation: none;
    }

    /* 4. Let the browser opt into GPU compositing only for elements that
       truly need it — strip the transform/will-change hints that force
       layer promotion on low-value items. */
    .mobile-card {
        will-change: auto;
    }
}

/* ============================================ */
/* Listing rows (templates/_event_rows.html)     */
/* ============================================ */
/* These were inline styles repeated on every row. */
.venue-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-teal);
}

.city-link {
    color: var(--accent-teal);
    text-decoration: none;
}

.venue-link:hover,
.city-link:hover {
    color: var(--accent-teal);
    border-bottom-style: solid;
}

/* "Showing shows through Sun, Nov 22. [Show later dates (901 more)]" */
.rows-more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    margin: 18px 0 6px;
    text-align: center;
}

/* display:flex above would otherwise beat the hidden attribute. */
.rows-more[hidden],
.rows-more [hidden] {
    display: none !important;
}

.rows-more__text {
    margin: 0;
    color: var(--text-secondary, #b0b0b0);
    font-size: 0.9rem;
    line-height: 1.5;
}

.rows-more__text--noscript {
    max-width: 46rem;
    margin: 14px auto 0;
    text-align: center;
}

.rows-more__text a {
    color: var(--accent-teal);
}

.rows-more__btn {
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 22px;
    border: 1px solid var(--accent-teal);
    background: rgba(91, 200, 215, 0.12);
    color: var(--accent-teal);
    cursor: pointer;
}

.rows-more__btn:hover:not(:disabled) {
    background: rgba(91, 200, 215, 0.22);
}

.rows-more__btn:disabled {
    opacity: 0.7;
    cursor: progress;
}

.results-note {
    color: var(--text-secondary, #b0b0b0);
    font-weight: 400;
}

/* Footer link lists (cities, guides). One class instead of an inline style
   on each of 170 links. */
.fl {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8em;
}

.fl--b {
    font-weight: 600;
}

.fl[aria-current="page"] {
    color: var(--accent-teal);
}
