@import url('interior-text.css');

/* Shared event layout — matches index.html color theme */

:root {
    /* City of New Orleans Seal Dark Theme */
    --bg-primary: #0F1626; /* Dark Blue */
    --bg-secondary: #182238; /* Lighter Dark Blue */
    --text-primary: #CBA052; /* Gold */
    --text-secondary: #DEBA84; /* Tan */
    --gold-muted: #B89962; /* Muted gold — brand button hover text */
    --gold-muted-faint: #8A7348; /* Very muted gold — footer link hover */
    
    /* Accent + brand color */
    --accent: #8A2F25; /* Red */
    --accent-dark: #6A241C; /* Dark Red */
    --brand-red: #4C835C; /* Olive Green */
    --panel-bg: #182238;
    --font-hero: 'Oswald', sans-serif;
    --font-main: 'EB Garamond', Georgia, serif;
    --font-header: 'EB Garamond', Georgia, serif;
    --font-subhead: 'EB Garamond', Georgia, serif;
    --body-text-size: 1.375rem; /* 22px — shared interior/body copy */
    --body-line-height: 32px;
}

/* Brand Button */
.brand-btn {
    padding: 14px 35px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--brand-red) 100%);
    color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-family: var(--font-hero);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    display: inline-block;
}

.brand-btn:hover {
    background: linear-gradient(180deg, var(--accent-dark) 0%, #1E2545 100%);
    color: var(--gold-muted);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* Title 3D */
.title-3d {
    display: inline-block;
    font-family: var(--font-hero);
    font-size: clamp(4rem, 9vw, 7.5rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    transform: rotate(-5deg) skewX(-5deg);
    text-shadow: 
        1px 1px 0px #0F1626,
        2px 2px 0px var(--accent),
        4px 4px 0px var(--accent),
        6px 6px 0px var(--accent),
        8px 8px 0px var(--accent),
        10px 10px 0px var(--brand-red),
        12px 12px 0px var(--brand-red),
        14px 14px 0px var(--brand-red),
        20px 22px 24px rgba(0,0,0,0.45);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: 2px;
}

.title-3d-line {
    display: block;
}

.title-3d-line + .title-3d-line {
    margin-top: 0.08em;
}

/* Hero Section */
.event-hero-wrap {
    width: 100%;
    min-height: 50vh;
    overflow-x: clip;
}

.event-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 60px;
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 50vh;
    gap: 40px;
}

.hero-left {
    flex: 1.85;
    padding-right: 40px;
    text-align: left;
}

.hero-left h1.title-3d {
    display: block;
    max-width: 100%;
    font-family: var(--font-hero);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 30px;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: left;
    overflow-wrap: break-word;
}

.hero-left h2 {
    color: var(--brand-red);
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.55),
        0 1px 2px rgba(0, 0, 0, 0.45);
}

.hero-left p {
    font-family: var(--font-main);
    font-size: clamp(var(--body-text-size), 2vw, 1.35rem);
    color: var(--text-primary);
    line-height: var(--body-line-height);
    font-weight: 500;
}

.hero-left p strong {
    font-style: italic;
    text-decoration: none;
}

.hero-meetup-highlight {
    background: var(--accent);
    color: #fff;
    padding: 3px 8px 3px 10px;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-left .hero-meetup-highlight {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.hero-left .brand-btn {
    white-space: nowrap;
}

#vote-scroll-btn {
    text-align: left;
}

.hero-right {
    flex: 1;
    position: relative;
    min-height: 480px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Cards Stack Layout */
.hero-cards-stack {
    position: relative;
    width: min(100%, 340px);
    max-width: 340px;
    height: clamp(400px, 45vw, 480px);
    margin: 0 auto;
    flex-shrink: 0;
}

.hero-cards-stack .council-card {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    --base-transform: rotate(-3deg);
    transform: var(--base-transform);
}

.hero-cards-stack .influencer-card {
    position: absolute;
    bottom: -9%;
    right: 0;
    top: auto;
    z-index: 1;
    --base-transform: rotate(2deg);
    transform: var(--base-transform);
}

.hero-cards-stack .stack-ampersand {
    position: absolute;
    top: 60%;
    left: 12%;
    z-index: 3;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-top: -15px; /* Adjust optical vertical centering */
    --base-transform: rotate(-5deg) skewX(-5deg);
    transform: var(--base-transform);
}

/* Flow Couple Styling (from index.html) */
.flow-couple {
    display: flex;
    gap: clamp(8px, 1.5vw, 20px);
    padding: 0;
    align-items: flex-start;
}

.flow-card {
    width: clamp(160px, 25vw, 200px);
    height: clamp(208px, 32.5vw, 260px);
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    min-width: 0;
    border: 2px solid var(--text-primary);
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,0.4),
        0 0 0 2px var(--brand-red),
        0 0 0 4px var(--accent),
        4px 6px 0 rgba(138, 47, 37, 0.45),
        6px 8px 0 rgba(203, 160, 82, 0.3),
        10px 12px 20px rgba(0,0,0,0.35);
    background: var(--bg-primary);
    position: relative;
}

.flow-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.couple-ampersand {
    font-family: var(--font-header);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 900;
    color: var(--brand-red);
    align-self: center;
    margin: 0 2px;
    transform: rotate(-5deg) skewX(-5deg);
    text-shadow: 
        1px 1px 0px #1D1A16,
        2px 2px 0px var(--text-primary),
        3px 3px 0px var(--text-primary),
        4px 4px 0px var(--accent),
        5px 5px 0px var(--accent),
        6px 6px 0px #1E2545,
        7px 7px 0px var(--brand-red),
        10px 10px 14px rgba(0,0,0,0.45);
    z-index: 3;
    line-height: 1;
}

/* Large screens: centered hero pair, constrained copy, smaller cards */
@media (min-width: 1101px) {
    .event-hero {
        justify-content: center;
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
        max-width: none;
        gap: clamp(48px, 6vw, 96px);
    }

    .hero-left {
        flex: 0 0 540px;
        width: 540px;
        max-width: 540px;
        padding-right: 0;
    }

    .hero-left h1.title-3d,
    .hero-left h2,
    .hero-left p,
    .hero-left .brand-btn {
        max-width: 540px;
    }

    .hero-left .brand-btn {
        white-space: normal;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        line-height: 1.35;
    }

    .hero-right {
        flex: 0 0 306px;
        width: 306px;
        min-width: 306px;
        min-height: 432px;
    }

    .hero-cards-stack {
        width: 306px;
        max-width: 306px;
        height: clamp(360px, 40.5vw, 432px);
        margin: 0;
    }

    .hero-cards-stack .flow-card {
        width: clamp(144px, 22.5vw, 180px);
        height: clamp(187px, 29.25vw, 234px);
    }

    .hero-cards-stack .stack-ampersand {
        font-size: clamp(1.8rem, 3.6vw, 3.15rem);
    }
}

/* Narrow / tablet: stack hero (cards below text + CTA) */
@media (max-width: 1100px) {
    .event-hero {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 36px;
        width: 100%;
        max-width: none;
        padding: 20px 10vw 36px;
        box-sizing: border-box;
    }

    .hero-left {
        width: 100%;
        flex: 1 1 auto;
        padding-left: 0;
        padding-right: 0;
    }

    /* Stacked hero copy block = 80vw (10vw padding on .event-hero each side) */
    .hero-left h1.title-3d,
    .hero-left h2,
    .hero-left p,
    .hero-left .brand-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-left h1.title-3d {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        transform-origin: left bottom;
        font-size: clamp(2.25rem, calc(65vw / 5.5), 5.25rem);
        letter-spacing: 0.04em;
        line-height: 1.05;
        text-shadow:
            1px 1px 0px #0F1626,
            2px 2px 0px var(--accent),
            3px 3px 0px var(--accent),
            5px 5px 0px var(--accent),
            7px 7px 0px var(--brand-red),
            9px 9px 0px var(--brand-red),
            12px 14px 16px rgba(0,0,0,0.45);
    }

    .hero-left h1.title-3d .title-3d-line {
        display: block;
        white-space: nowrap;
    }

    .hero-left .brand-btn {
        white-space: normal;
        padding: 14px 18px;
        font-size: 1.1rem;
        text-align: center;
        line-height: 1.35;
    }

    #vote-scroll-btn {
        margin-top: 20px;
    }

    .hero-left p {
        font-size: var(--body-text-size);
    }

    .hero-right {
        width: 100%;
        min-height: auto;
        padding-top: 8px;
        align-self: center;
    }

    /* Enlarged card pair for stacked tablet/narrow layouts */
    .hero-cards-stack {
        height: clamp(320px, 48vw, 430px);
        max-width: min(480px, 90vw);
        margin: 0 auto 12px;
    }

    .hero-cards-stack .flow-card {
        width: clamp(190px, 36vw, 250px);
        height: clamp(247px, 47vw, 325px);
    }

    .hero-cards-stack .stack-ampersand {
        font-size: clamp(2.25rem, 5vw, 3.75rem);
    }
}

/* Stacked hero: cap title, date, body, and CTA at ~570px snapshot size */
@media (min-width: 571px) and (max-width: 1100px) {
    .hero-left h1.title-3d {
        font-size: calc(570px * 0.65 / 5.5);
    }

    .hero-left h2 {
        font-size: 1.35rem;
    }

    .hero-left p {
        font-size: var(--body-text-size);
    }

    .hero-left .brand-btn,
    #vote-scroll-btn {
        font-size: 1.1rem;
        padding: 14px 18px;
    }
}

/* Tablet / intermediate: 10% smaller cards, ≤5% horizontal overlap */
@media (min-width: 769px) and (max-width: 1100px) {
    .hero-cards-stack {
        --hero-card-w: clamp(171px, 32.4vw, 225px);
        --hero-card-h: clamp(222px, 42.3vw, 293px);
        width: min(90vw, max(400px, calc(var(--hero-card-w) * 1.95)));
        max-width: min(480px, 90vw);
        height: clamp(288px, 43.2vw, 387px);
        margin: 0 auto 12px;
        padding: 0 clamp(10px, 2.5vw, 18px);
    }

    .hero-cards-stack .flow-card {
        width: var(--hero-card-w);
        height: var(--hero-card-h);
    }

    .hero-cards-stack .council-card {
        top: 0;
        left: 0;
        bottom: auto;
        right: auto;
    }

    .hero-cards-stack .influencer-card {
        top: 14%;
        right: 0;
        left: auto;
        bottom: auto;
    }

    .hero-cards-stack .stack-ampersand {
        top: 44%;
        left: 46%;
        margin-top: 0;
        font-size: clamp(2rem, 4.5vw, 3.4rem);
    }
}

/* Mobile hero refinements */
@media (max-width: 768px) {
    /* Spread cards apart when stack caps at ~400×360 so both names stay readable */
    .hero-cards-stack {
        height: clamp(280px, 72vw, 360px);
        max-width: min(400px, 92vw);
        padding: 0 clamp(14px, 5vw, 22px);
    }

    .hero-cards-stack .flow-card {
        width: clamp(150px, 36vw, 172px);
        height: clamp(195px, 47vw, 224px);
    }

    .hero-cards-stack .council-card {
        top: 0;
        left: 0;
        bottom: auto;
        right: auto;
    }

    .hero-cards-stack .influencer-card {
        top: 10%;
        right: 0;
        left: auto;
        bottom: auto;
    }

    .hero-cards-stack .stack-ampersand {
        top: 42%;
        left: 46%;
        margin-top: 0;
    }
}

/* Crawl-tinery / proceedings intro */
.proceedings-section {
    padding: 20px 0;
    background: transparent;
}

.page-module {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .page-module {
        width: 92%;
        padding: 0 10px;
        box-sizing: border-box;
    }
}

.voting-states-section .page-module {
    text-align: center;
}

.proceedings-intro {
    max-width: 640px;
    margin: 0 auto 10px;
    text-align: left;
}

.section-title.title-3d {
    display: block;
    text-align: center;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    margin: 0 auto 12px;
    letter-spacing: 2px;
}

.proceedings-intro__lede {
    font-size: var(--body-text-size);
    line-height: var(--body-line-height);
    color: var(--text-primary);
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 10px;
    text-align: left;
}

@media (max-width: 768px) {
    .proceedings-section {
        padding-bottom: 30px;
    }

    .section-title.title-3d {
        font-size: clamp(2rem, 7.5vw, 2.8rem);
    }
}

/* Local Legends section */
.local-legends-section {
    padding: 30px 0 160px;
}

/* Local Legends section header */
.local-legends-section #local-legends-title {
    margin-bottom: 38px;
}

.local-legends-section #local-legends-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .local-legends-section {
        padding-bottom: 200px;
    }
}

/* Purpose Section (from index.html) */
.purpose-section {
    padding: 60px 0 20px;
    background: var(--bg-primary);
}

.purpose-module {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    perspective: 900px;
    padding: 0 20px 36px;
}

.purpose-frame {
    --purpose-copy-max: 750px;
    max-width: calc(var(--purpose-copy-max) + 2 * clamp(1.2rem, 3vw, 1.5rem));
    margin-inline: auto;
    position: relative;
    padding: clamp(1.5rem, 4vw, 2rem) clamp(1.2rem, 3vw, 1.5rem);
    background: linear-gradient(168deg, #1A243D 0%, var(--bg-secondary) 42%, #0A0F1A 100%);
    border-radius: 8px;
    border: 2px solid var(--text-primary);
    box-shadow:
        inset 2px 2px 0 rgba(255,255,255,0.55),
        inset -2px -2px 0 rgba(15, 22, 38, 0.2),
        inset 0 -2px 6px rgba(138, 47, 37, 0.12),
        0 0 0 2px var(--brand-red),
        0 0 0 5px var(--accent),
        0 0 0 8px var(--text-primary),
        0 0 0 11px rgba(138, 47, 37, 0.35),
        8px 10px 0 rgba(138, 47, 37, 0.45),
        12px 14px 0 rgba(203, 160, 82, 0.3),
        16px 18px 24px rgba(0,0,0,0.35);
    transform: rotateX(5deg) translateZ(6px) scale(0.99);
    transform-style: preserve-3d;
    transform-origin: center center;
}

.purpose-frame::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 14px;
    background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(203, 160, 82, 0.45), transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 90%, rgba(138, 47, 37, 0.35), transparent 50%),
        linear-gradient(135deg, rgba(15, 22, 38, 0.15), transparent 50%);
    z-index: -2;
    pointer-events: none;
    filter: blur(2px);
}

.purpose-frame::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -18px;
    height: 24px;
    background: linear-gradient(180deg, rgba(15, 22, 38, 0.35), transparent);
    border-radius: 40%;
    filter: blur(8px);
    transform: rotateX(75deg);
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 900px) {
    .purpose-module {
        width: 92%;
        padding: 0 10px 24px;
    }
}

.purpose-frame h2 {
    font-family: var(--font-header);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    text-transform: none;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.purpose-frame p {
    font-size: clamp(var(--body-text-size), 2vw, 1.35rem);
    color: var(--text-primary);
    line-height: var(--body-line-height);
    font-weight: 500;
}

.purpose-frame p + p {
    margin-top: 1rem;
}

.purpose-copy {
    max-width: var(--purpose-copy-max, 750px);
    margin: 0 auto;
}

@media (max-width: 900px) {
    .purpose-frame p {
        font-size: var(--body-text-size);
    }
}

/* Map Legend Responsive */
@media (max-width: 1100px) {
    .map-filters-inner {
        gap: 15px !important;
        padding: 0 10px !important;
    }
    .map-filters-inner > div:first-child {
        padding: 5px !important;
        gap: 10px !important;
    }
    #legend-round-name {
        font-size: 1.2rem !important;
    }
    .map-filters-inner .countdown-clock.small-clock .time-box {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 4px 6px !important;
    }
    .map-filters-inner .countdown-clock.small-clock .time-box span {
        font-size: 2rem !important;
        font-weight: 900 !important;
    }
    .map-filters-inner .countdown-clock.small-clock .time-box label {
        font-size: calc(0.65rem + 2pt) !important;
    }
    .map-filters-inner > div:last-child {
        gap: 10px !important;
    }
}

@media (max-width: 768px) {
    .map-filters-inner {
        gap: 10px !important;
    }
    .map-filters-inner > div:first-child {
        padding: 5px !important;
        gap: 8px !important;
    }
    #legend-round-name {
        font-size: 1rem !important;
    }
    .map-filters-inner .countdown-clock.small-clock {
        gap: 4px !important;
    }
    .map-filters-inner .countdown-clock.small-clock .time-box {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 2px 4px !important;
    }
    .map-filters-inner .countdown-clock.small-clock .time-box span {
        font-size: 1.6rem !important;
        font-weight: 900 !important;
    }
    .map-filters-inner .countdown-clock.small-clock .time-box label {
        font-size: calc(0.5rem + 2pt) !important;
    }
    .map-filters-inner > div:last-child {
        gap: 8px !important;
    }
    .map-filters-inner > div:last-child span {
        font-size: 0.8rem !important;
    }
    .map-legend-label--muted {
        font-size: 0.75rem !important;
    }
}

/* Map Section */
.map-section-wrapper {
    position: relative;
    /* Title sits 70px above the wrapper; +40px breathing room for scroll targets */
    scroll-margin-top: 110px;
    width: 80%;
    max-width: 1400px;
    margin: 60px auto;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow:
        inset 2px 2px 0 rgba(255,255,255,0.55),
        inset -2px -2px 0 rgba(15, 22, 38, 0.2),
        inset 0 -2px 6px rgba(138, 47, 37, 0.12),
        0 0 0 2px var(--brand-red),
        0 0 0 5px var(--accent),
        0 0 0 8px var(--text-primary),
        0 0 0 11px rgba(138, 47, 37, 0.35),
        8px 10px 0 rgba(138, 47, 37, 0.45),
        12px 14px 0 rgba(203, 160, 82, 0.3),
        16px 18px 24px rgba(0,0,0,0.35);
    transform: rotateX(1deg) translateZ(6px) scale(0.99);
    transform-style: preserve-3d;
    padding: 10px;
}

.map-title {
    position: absolute;
    top: -70px;
    left: 20px;
    z-index: 1000;
    pointer-events: none;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 
        1px 1px 0px #5c2a18,
        2px 2px 0px var(--text-primary),
        4px 4px 0px var(--text-primary),
        6px 6px 0px var(--accent),
        8px 8px 0px var(--brand-red),
        12px 14px 18px rgba(0,0,0,0.5);
}

.map-title u {
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
}

.map-title-neighborhoods {
    display: block;
    margin-top: 15px;
    font-size: 0.8em;
    color: var(--accent);
}

#map {
    width: 100%;
    height: 600px;
    background: #e8e4de;
    border: 4px solid var(--text-primary);
    border-radius: 8px;
    z-index: 1;
}

.leaflet-tile-pane {
    /* Convert grayscale tiles to a deep blue matching the app theme */
    filter: sepia(80%) hue-rotate(190deg) saturate(300%) brightness(0.65) contrast(1.2);
}

.map-features-layout {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0;
}

.map-features {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

@media (max-width: 900px) {
    .map-title {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 0 1rem;
        pointer-events: auto;
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .map-section-wrapper {
        scroll-margin-top: 40px;
        width: 100%;
        max-width: none;
        margin: 40px 0 0;
        padding: 0 7.5vw;
        border-radius: 0;
        transform: none;
        box-shadow: none;
        background: transparent;
    }

    .map-section-wrapper #map {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: 4px solid var(--text-primary);
        border-bottom: 4px solid var(--text-primary);
        height: min(58vh, 520px);
    }
    
    .map-filters-viewport {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        border-radius: 0 !important;
    }
    
    .map-features {
        flex-direction: column;
    }
}

.feature-box {
    background: var(--panel-bg);
    border: 2px solid rgba(45, 27, 21, 0.12);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(45, 27, 21, 0.08);
}

.feature-box h3 {
    font-family: var(--font-header);
    color: var(--brand-red);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feature-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Venue Operators strip (below venue explorer) */
.venue-operators-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding: 12px 0 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.venue-operators-label {
    font-family: var(--font-hero);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.venue-operators-text {
    color: var(--text-secondary);
    font-size: var(--body-text-size);
    line-height: 1.5;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}
.venue-operators-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .venue-operators-label {
        font-size: 1.05rem;
    }
    .venue-operators-text {
        font-size: 1.15rem;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    .venue-operators-strip {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
        padding: 16px 12px 0;
    }
    .venue-operators-label {
        font-size: 1.2rem;
        white-space: normal;
    }
    .venue-operators-text {
        font-size: var(--body-text-size);
        white-space: normal;
        line-height: 1.5;
        flex-shrink: 1;
    }
    .venue-operators-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        margin-top: 4px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

.feature-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 12px 14px;
    background: var(--bg-primary);
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(45, 27, 21, 0.15);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-toggle:hover {
    border-color: var(--accent);
}

/* Voting Section */
.voting-section {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.voting-header {
    text-align: left;
    margin-bottom: 40px;
}

.voting-header h2 {
    font-family: var(--font-header);
    font-size: 2.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.voting-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.voting-highlight {
    color: var(--brand-red);
    font-weight: 700;
}

.leaderboard {
    background: var(--panel-bg);
    border: 2px solid rgba(45, 27, 21, 0.15);
    border-radius: 12px;
    padding: 10px 10px 15px;
    margin-bottom: 30px;
    box-shadow: 0 12px 32px rgba(45, 27, 21, 0.1);
    overflow: visible;
}
.leaderboard h3 {
    color: var(--text-primary);
    font-family: var(--font-hero);
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    text-transform: uppercase;
}
.leaderboard-list .venue-card {
    position: relative;
    margin-bottom: 5px;
    overflow: visible;
    align-items: center;
}
.leaderboard-list .venue-card:last-child {
    margin-bottom: 0;
}

.leaderboard-bar {
    position: relative;
    height: 35px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.leaderboard-bar:last-child {
    margin-bottom: 0;
}

.bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    border-radius: 8px;
    transition: width 1s ease-in-out;
}

.leaderboard-bar.1st .bar-fill {
    background: linear-gradient(90deg, #b08c40, var(--text-primary)); /* Gold for 1st */
}

.bar-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 2;
    color: #fff;
    font-weight: 700;
    font-family: var(--font-main);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.bar-content .rank {
    font-size: 1rem;
    margin-right: 10px;
    font-family: var(--font-header);
}

.bar-content .venue-name {
    flex-grow: 1;
    font-size: 0.95rem;
}

.bar-content .vote-count {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Venue Type/Address Flipper Animation */
@keyframes flipText {
    0%, 45% { transform: translateY(0); }
    50%, 95% { transform: translateY(-1.2em); }
    100% { transform: translateY(0); }
}
@keyframes flipTextTriple {
    0%, 28% { transform: translateY(0); }
    33%, 61% { transform: translateY(-1.2em); }
    66%, 94% { transform: translateY(-2.4em); }
    100% { transform: translateY(0); }
}

/* State controls (Dev only) */
.state-controls button {
    background: transparent; border: 1px solid var(--text-secondary); color: var(--text-secondary);
    padding: 5px 10px; margin: 0 5px; cursor: pointer; border-radius: 4px; font-family: var(--font-main);
}
.state-controls button:hover { background: var(--text-secondary); color: var(--bg-primary); }

/* Countdown Clock */
.countdown-clock {
    display: flex; justify-content: center; gap: 15px; margin-bottom: 30px;
}
.countdown-clock .time-box {
    background: var(--panel-bg); border: 2px solid var(--accent); border-radius: 8px;
    padding: 15px 20px; text-align: center; min-width: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 24px;
}
.countdown-clock .time-box span {
    display: block; font-size: 2.5rem; font-family: var(--font-header); color: var(--text-primary); font-weight: 900; line-height: 1; margin-bottom: 5px;
}
.countdown-clock .time-box label {
    font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
}
.small-clock .time-box { padding: 10px 15px; min-width: 70px; }
.small-clock .time-box span { font-size: 1.8rem; }

/* Map filters bar: full-width countdown + left-aligned legend */
#legend-round-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 25px;
    font-family: var(--font-hero);
    letter-spacing: 1px;
    margin-top: 2px;
    text-align: left;
}
.map-filters-inner > div:first-child {
    padding: 5px;
    align-items: flex-start;
}
.map-filters-inner .countdown-clock.small-clock {
    width: 100%;
    gap: 6px;
    margin: 0;
    flex-wrap: nowrap;
}
.map-filters-inner .countdown-clock.small-clock .time-box {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 8px;
    margin-left: 5px;
    margin-right: 5px;
}
.map-filters-inner .countdown-clock.small-clock .time-box span {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0;
}
.map-filters-inner .countdown-clock.small-clock .time-box label {
    font-size: calc(0.7rem + 2pt);
}
.map-filters-inner > div:last-child {
    justify-content: flex-start;
}

.map-legend-items {
    flex: 1;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.map-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.map-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}
.map-legend-label {
    color: var(--text-primary);
    font-family: var(--font-header);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
}
.map-legend-item--top10 {
    padding-left: 0;
}
.map-legend-dot--outline {
    background-color: transparent;
    border: 2px solid #fff;
    box-shadow: none;
}

/* Map venue markers — Top 10 ring must sit outside Leaflet's icon box */
.leaflet-div-icon.custom-venue-marker {
    background: transparent;
    border: none;
}
.venue-marker-core {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}
.venue-marker-core--top10 {
    width: 12px;
    height: 12px;
}
.venue-marker-ring {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
}

.map-legend-label--muted {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    text-transform: none;
    font-weight: 400;
}

.critical .time-box { border-color: #ff3333; animation: pulse-border 2s infinite; }

@keyframes pulse-border {
    0% { border-color: var(--accent); box-shadow: none; }
    50% { border-color: #ff3333; box-shadow: 0 0 15px rgba(255,51,51,0.5); }
    100% { border-color: var(--accent); box-shadow: none; }
}

/* Instructions */
.instruction-box {
    background: var(--panel-bg); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    padding: 25px; max-width: 600px; margin: 0 auto;
}
.instruction-box h3 { color: var(--brand-red); font-family: var(--font-header); margin-bottom: 15px; text-transform: uppercase; }
.instruction-box ul { padding-left: 20px; }
.instruction-box li { margin-bottom: 10px; color: var(--text-primary); line-height: 1.5; font-size: 1.1rem; }
.instruction-box li strong { color: var(--text-secondary); }

/* List View (Round 1 & Run-Off) */
.venue-list-container {
    width: 100%;
    margin: 0 auto;
}
.venue-list-container::-webkit-scrollbar {
    width: 6px;
}
.venue-list-container::-webkit-scrollbar-thumb {
    background: rgba(203, 160, 82, 0.3);
    border-radius: 4px;
}
.venue-list {
    list-style: none; padding: 0; margin: 0;
}
.venue-list .venue-card,
.venue-list li {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 8px;
    transition: transform 0.2s, border-color 0.2s;
    overflow: visible;
}
.venue-list .venue-card:hover,
.venue-list li:hover {
    transform: translateX(5px);
    border-color: var(--accent);
}
.venue-list .venue-card .v-details,
.venue-list li .v-details {
    flex: 1;
    text-align: left;
    padding: 0 15px;
    min-width: 0;
}

/* Leaderboard cards: corner rank badge + details fill remaining width */
.venue-list.leaderboard-list .venue-card {
    position: relative;
    padding: 10px;
}
.venue-list.leaderboard-list .venue-card .rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    font-size: 14px;
    margin-right: 0;
    z-index: 1;
    border-radius: 7px 0 5px 0;
}
.venue-list.leaderboard-list .venue-card .v-details {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 0 6px 0 26px;
}

.venue-list .venue-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    line-height: 1.1;
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.venue-list .venue-name-placeholder {
    opacity: 0.5;
    font-style: italic;
    text-transform: none;
    font-size: 1.1rem;
}
.venue-subtitle-flip {
    position: relative;
    height: 1.2em;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}
.venue-subtitle-flip--leaderboard {
    font-size: 15px;
}
.venue-subtitle-flip .flipper-container {
    animation: flipText 8s infinite;
}
.venue-subtitle-flip .flipper-container--double {
    animation: flipText 8s infinite;
}
.venue-subtitle-flip .flipper-container--triple {
    animation: flipTextTriple 9s infinite;
}
.venue-subtitle-flip .flipper-container div {
    height: 1.2em;
    line-height: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.venue-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
}
.vote-count-label {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    font-style: normal;
}
.prominent-vote-tally {
    display: grid;
    grid-template-columns: 2px 18px auto;
    grid-template-rows: auto auto;
    gap: 0px;
    align-items: center;
    justify-content: start;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 3px 10px 3px 0;
    min-width: 60px;
    line-height: 23px;
    text-align: left;
}

.prominent-vote-tally::before {
    content: '';
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    width: 2px;
    height: 28px;
    background: var(--text-primary);
    opacity: 0.21;
    border-radius: 1px;
}

.prominent-vote-tally span.tally-number {
    grid-column: 3;
    grid-row: 1;
    font-size: 20px;
    font-family: var(--font-header);
    color: var(--text-primary);
    font-weight: 900;
    line-height: 23px;
    margin-bottom: 0;
    display: inline-flex;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease, transform 0.2s ease;
}

.prominent-vote-tally span.tally-label {
    grid-column: 3;
    grid-row: 2;
    font-size: 11px;
    line-height: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Slot-machine / odometer roll for the vote tally number (see js/vote-tally.js) */
.tally-digit-reel {
    display: inline-block;
    height: 1em;
    overflow: hidden;
    vertical-align: top;
    line-height: 1;
}

.tally-digit-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tally-digit-cell {
    display: block;
    height: 1em;
    line-height: 1;
    text-align: center;
}

.tally-digit-static {
    display: inline-block;
}

.prominent-vote-tally.tally-spinning span.tally-number {
    color: var(--brand-red);
}

.prominent-vote-tally.tally-landed span.tally-number {
    animation: tally-pop 0.35s ease;
}

@keyframes tally-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.venue-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-shrink: 0;
}

@media (min-width: 571px) {
    /* Flatten wrappers so tablet/desktop keeps a single horizontal action row */
    .venue-actions-stack,
    .venue-actions-buttons {
        display: contents;
    }

    .venue-list .venue-actions .prominent-vote-tally {
        order: 1;
    }

    .venue-list .venue-actions .venue-vote-btn {
        order: 2;
    }

    .venue-list .venue-actions .venue-checkin-btn,
    .venue-list .venue-actions .venue-checkin-btn-expanded {
        order: 3;
    }

    .venue-list .venue-actions .venue-share-link-wrap {
        order: 4;
    }

    .venue-list .venue-actions.post-election-results-actions .venue-checkin-btn-expanded {
        order: 2;
    }

    .venue-list .venue-actions.post-election-results-actions .venue-share-link-wrap {
        order: 3;
    }

    .venue-list .venue-actions.post-election-actions .venue-share-link-wrap {
        order: 2;
    }

    .venue-list .venue-actions.post-election-actions .venue-checkin-btn-expanded {
        order: 1;
    }
}

.venue-vote-btn {
    padding: 0 20px;
    height: 42px;
    font-size: 0.95rem;
    text-align: center;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(180deg, var(--brand-red) 0%, #2f533a 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.venue-vote-btn .mobile-text {
    display: none;
}

@media (max-width: 900px) {
    .venue-vote-btn {
        padding: 0;
        width: 42px;
    }
    .venue-vote-btn .desktop-text {
        display: none;
    }
    .venue-vote-btn .mobile-text {
        display: inline;
        font-size: 1.2rem;
    }
}
.venue-checkin-btn {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 6px;
}
.venue-checkin-btn:hover {
    opacity: 1;
    border-color: var(--text-secondary);
}

/* Circular copy-link button (matches map popup) */
.venue-share-link-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venue-share-link-toast {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #618A62;
    color: white;
    font-family: var(--font-main);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
}

.venue-share-link-toast.is-visible {
    display: block;
}

.venue-share-link-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.venue-share-link-btn .link-icon {
    width: 13px;
    height: 13px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(72%) sepia(21%) saturate(942%) hue-rotate(354deg) brightness(91%) contrast(88%);
    opacity: 0.8;
    transition: all 0.2s ease;
}

.venue-share-link-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
}

.venue-share-link-btn.is-copied {
    background: #618A62;
    border-color: #618A62;
}

.venue-share-link-btn.is-copied .link-icon {
    filter: brightness(0) saturate(100%) invert(100%);
    opacity: 1;
}

/* Small phones: vote tally + link on one row; vote + check-in aligned below */
@media (max-width: 570px) {
    .venue-list .venue-actions {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
    }

    .venue-list .venue-actions::before {
        content: '';
        width: 2px;
        flex-shrink: 0;
        align-self: stretch;
        background: var(--text-primary);
        opacity: 0.21;
        border-radius: 1px;
    }

    .venue-list .venue-actions-stack {
        display: grid;
        grid-template-columns: auto 42px;
        grid-template-rows: auto auto;
        column-gap: 10px;
        row-gap: 8px;
        align-items: center;
        min-width: 0;
    }

    .venue-list .venue-actions-stack .prominent-vote-tally {
        grid-column: 1;
        grid-row: 1;
    }

    .venue-list .venue-actions-stack .venue-share-link-wrap {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        width: 42px;
    }

    .venue-list .venue-actions-stack .venue-actions-buttons {
        display: contents;
    }

    .venue-list .venue-actions-stack .venue-vote-btn {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .venue-list .venue-actions-stack .venue-checkin-btn,
    .venue-list .venue-actions-stack .venue-checkin-btn-expanded {
        grid-column: 2;
        grid-row: 2;
        justify-self: center;
    }

    .venue-list .venue-actions.post-election-results-actions .venue-actions-stack {
        grid-template-columns: auto 42px;
    }

    .venue-list .venue-actions.post-election-actions .venue-actions-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .venue-list .venue-actions .prominent-vote-tally::before {
        display: none;
    }

    .venue-list .venue-actions .prominent-vote-tally {
        grid-template-columns: auto;
        padding: 0;
        min-width: 0;
        justify-items: start;
        text-align: left;
    }

    .venue-list .venue-actions .prominent-vote-tally span.tally-number {
        grid-column: 1;
        grid-row: 1;
    }

    .venue-list .venue-actions .prominent-vote-tally span.tally-label {
        grid-column: 1;
        grid-row: 2;
    }

    .venue-list .venue-name {
        font-size: 1.125rem;
    }
}

.rank-badge {
    width: 35px; height: 35px; background: #333; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 900; font-family: var(--font-hero);
    margin-right: 15px; flex-shrink: 0; border: 2px solid var(--bg-primary);
}
.rank-badge.gold { background: #CBA052; color: #0F1626; }
.rank-badge.silver { background: #94A3B8; color: #0F1626; }
.rank-badge.bronze { background: #CD7F32; color: #0F1626; }
.rank-badge.dark-gray { background: #475569; color: #fff; border-color: #182238; }

.v-details { flex-grow: 1; }
.v-details strong { font-size: 1.1rem; color: var(--text-primary); display: block; margin-bottom: 3px; }
.v-details em { font-size: 0.9rem; color: var(--text-secondary); }

.vote-btn-small {
    padding: 10px 20px; border-radius: 6px;
    font-weight: 800; cursor: pointer; transition: background 0.2s; flex-shrink: 0; font-family: var(--font-header);
}

/* Venue Explorer (combined Leaderboard + Browse) */
.venue-explorer {
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .voting-states-section .page-module {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .venue-explorer {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .venue-explorer .explorer-tabs {
        padding-inline: 16px;
    }

    .venue-explorer .leaderboard {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .venue-explorer .explorer-controls,
    .venue-explorer .venue-list-container {
        padding-inline: 16px;
        box-sizing: border-box;
    }

    .venue-explorer .venue-list-container {
        border-radius: 0;
    }

    .voting-states-section .venue-operators-strip {
        padding-inline: 16px;
    }
}

.explorer-tabs {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.explorer-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-hero);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 18px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.explorer-tab:hover { color: var(--text-primary); }
.explorer-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}
.explorer-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.explorer-controls select {
    background: var(--panel-bg);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 8px 14px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
}
.explorer-controls select:focus {
    outline: none;
    border-color: var(--accent);
}
.venue-search {
    background: var(--panel-bg);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 8px 14px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    flex: 1;
    min-width: 150px;
    max-width: 280px;
}
.venue-search::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}
.venue-search:focus {
    outline: none;
    border-color: var(--accent);
}
.type-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

/* Pagination */
.pagination {
    display: flex; justify-content: space-between; align-items: center; margin-top: 25px;
    background: var(--panel-bg); padding: 10px 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05);
}
.pagination button {
    background: transparent; border: 1px solid var(--text-secondary); color: var(--text-secondary);
    padding: 8px 15px; border-radius: 4px; cursor: pointer; font-weight: bold; font-family: var(--font-main);
}
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.3); }

/* Voting closed state for vote buttons */
.voting-closed-btn,
.voting-closed-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Post-election venue actions - simplified layout with expanded check-in */
.post-election-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 12px;
}

.post-election-results-actions {
    flex-shrink: 0;
}

.post-election-actions .venue-checkin-btn-expanded,
.post-election-results-actions .venue-checkin-btn-expanded {
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 10px 20px !important;
    white-space: nowrap;
    background: transparent !important;
    box-shadow: none;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
    box-sizing: border-box;
    flex-shrink: 0;
}

.post-election-actions .venue-checkin-btn-expanded {
    min-width: 200px;
}

.post-election-results-actions .venue-checkin-btn-expanded {
    min-width: 118px;
    min-height: 40px;
    padding: 8px 12px !important;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
}

.post-election-actions .venue-checkin-btn-expanded:hover,
.post-election-results-actions .venue-checkin-btn-expanded:hover {
    background: transparent !important;
    color: #fff;
    border-color: var(--text-secondary);
    transform: none;
    box-shadow: none;
    opacity: 1;
}

.post-election-actions .venue-checkin-btn-expanded .desktop-text,
.post-election-results-actions .venue-checkin-btn-expanded .desktop-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #fff;
}

.post-election-actions .venue-checkin-btn-expanded .mobile-text,
.post-election-results-actions .venue-checkin-btn-expanded .mobile-text {
    display: none;
    color: #fff;
}

.post-election-actions .venue-checkin-btn-expanded .checkin-pin,
.post-election-results-actions .venue-checkin-btn-expanded .checkin-pin {
    font-size: 1.45rem;
    line-height: 1;
    flex-shrink: 0;
}

.post-election-results-actions .venue-checkin-btn-expanded .checkin-pin {
    font-size: 1.25rem;
}

@media (max-width: 600px) {
    .post-election-actions {
        margin-left: 8px;
    }

    .post-election-actions .venue-checkin-btn-expanded,
    .post-election-results-actions .venue-checkin-btn-expanded {
        min-width: 44px;
        width: 44px;
        height: 44px;
        padding: 0 !important;
    }

    .post-election-actions .venue-checkin-btn-expanded .desktop-text,
    .post-election-results-actions .venue-checkin-btn-expanded .desktop-text {
        display: none;
    }

    .post-election-actions .venue-checkin-btn-expanded .mobile-text,
    .post-election-results-actions .venue-checkin-btn-expanded .mobile-text {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .post-election-actions .venue-checkin-btn-expanded .checkin-pin,
    .post-election-results-actions .venue-checkin-btn-expanded .checkin-pin {
        font-size: 1.6rem;
    }
}
.pagination span { color: var(--text-primary); font-weight: 600; }

/* Winner Card */
.winner-card {
    background: var(--panel-bg); border: 2px solid var(--text-primary); border-radius: 12px;
    padding: 30px; max-width: 500px; margin: 0 auto; text-align: center; position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.winner-card .badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--text-primary); color: var(--bg-primary); padding: 5px 20px;
    border-radius: 20px; font-weight: 900; letter-spacing: 2px; font-family: var(--font-header);
}
.winner-card img {
    width: 100%; border-radius: 8px; margin-bottom: 20px; margin-top: 15px; height: 250px; object-fit: cover;
}
.winner-card h3 { color: var(--brand-red); font-family: var(--font-header); font-size: 2rem; margin-bottom: 10px; }
.winner-card p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.5; }

/* Winner Card Celebration Animation */
@keyframes winnerPulse {
    0% { box-shadow: 0 0 25px rgba(203, 160, 82, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 45px rgba(203, 160, 82, 0.85); transform: scale(1.02); }
    100% { box-shadow: 0 0 25px rgba(203, 160, 82, 0.4); transform: scale(1); }
}

.voting-states-section #state-post-election {
    padding-inline: clamp(16px, 4vw, 24px);
    box-sizing: border-box;
}

.voting-states-section #state-post-election .voting-header {
    text-align: left;
}

.voting-states-section #state-post-event {
    padding-inline: clamp(16px, 4vw, 24px);
    box-sizing: border-box;
}

.voting-states-section #state-post-event .voting-header {
    text-align: center;
}

.voting-states-section #state-post-event .venue-explorer {
    margin-top: 30px;
    text-align: left;
}

.winner-card-celebration {
    animation: winnerPulse 3.5s infinite ease-in-out;
    border-color: var(--text-primary) !important;
    padding: 28px 35px 35px !important;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.winner-card-celebration .winner-card-header {
    align-items: center;
    gap: 18px;
    margin-bottom: 0;
}

.winner-card-celebration .winner-card-header-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    text-align: left;
    min-height: 0;
}

.winner-card-celebration .winner-card-crown {
    font-size: 2.8rem;
}

.winner-card-celebration .winner-card-header-title {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.2;
    font-family: var(--font-header);
    text-transform: uppercase;
}

.winner-card-copy .reveal-body em {
    font-style: italic;
}

.winner-card-copy .reveal-body em strong em {
    font-style: italic;
    font-weight: 700;
}

.winner-card-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.winner-card-copy .reveal-body {
    margin: 0;
    font-size: var(--body-text-size);
    line-height: 1.6;
    color: var(--text-secondary);
}

.winner-card-summary {
    line-height: var(--body-line-height);
}

.winner-card-summary-lead,
.winner-card-summary-address,
.winner-card-summary-meetup {
    display: block;
}

.winner-card-summary-address {
    margin-top: 0;
}

.winner-card-summary-meetup {
    margin-top: 0;
}

.winner-card-summary .hero-meetup-highlight {
    color: #fff;
}

.winner-card-hosts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px 36px;
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.winner-card-host {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: auto;
    max-width: 280px;
    text-align: left;
}

.winner-card-host .stop-avatar {
    width: 95px;
    height: 95px;
    object-fit: cover;
    flex-shrink: 0;
}

.winner-card-host-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.winner-card-host-copy .interior-neighborhoods {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 400;
}

.winner-card-host-copy .interior-hosts {
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 700;
}

#venue-operators-post-election {
    margin-top: 24px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .winner-card-celebration {
        padding: 28px 24px 28px !important;
    }

    .winner-card-celebration .winner-card-header {
        gap: 12px;
    }

    .winner-card-celebration .winner-card-crown {
        width: 68px;
        height: 68px;
        font-size: 2.1rem;
    }

    .winner-card-celebration .winner-card-header-title {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .winner-card-hosts {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .winner-card-host {
        width: 100%;
        max-width: none;
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-primary);
    border: 3px solid var(--text-primary);
    padding: 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: left;
    position: relative;
    color: var(--text-secondary);
}

.close-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content h2 {
    color: var(--text-primary);
    font-family: var(--font-header);
    margin-bottom: 10px;
}

#vote-modal .vote-modal-content {
    position: relative;
    text-align: center;
    padding: 10px 20px 40px;
}

#vote-modal .vote-modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: 800;
    font-size: 28px;
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

#vote-modal .vote-modal-close:hover {
    opacity: 0.75;
}

#vote-modal .vote-modal-header {
    margin-bottom: 16px;
}

#vote-modal .vote-modal-header h2 {
    margin: 0;
    padding-left: 28px;
    text-align: left;
    font-size: 22px;
    font-family: var(--font-main);
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: none;
    line-height: 1.3;
}

#vote-modal .vote-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#vote-modal .vote-modal-arrow {
    margin: 0;
}

#vote-modal .vote-modal-venue-name {
    font-size: 3.2rem;
    color: var(--text-primary);
    font-family: var(--font-hero);
    text-transform: uppercase;
    margin-bottom: 0;
    line-height: 1.1;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px var(--accent);
    text-align: center;
    width: 100%;
}

#vote-modal .modal-vote-tally-wrap {
    margin-bottom: 0;
}

.modal-vote-tally-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    width: 100%;
}

.modal-vote-tally-wrap .prominent-vote-tally {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 0.35em;
    padding: 0;
    min-width: 0;
    line-height: 1;
}

.modal-vote-tally-wrap .prominent-vote-tally::before {
    display: none;
}

.modal-vote-tally-wrap .tally-number {
    grid-column: unset;
    grid-row: unset;
    font-size: 56px;
    line-height: 1;
    margin-bottom: 0;
}

.modal-vote-tally-wrap .tally-label {
    grid-column: unset;
    grid-row: unset;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 1px;
    margin-top: 0.12em;
}

/* Slot reels inherit the modal tally number size so em-based rolls stay in sync */
.modal-vote-tally-wrap .tally-digit-reel,
.modal-vote-tally-wrap .tally-digit-static {
    font-size: inherit;
    line-height: 1;
}

.modal-vote-tally-wrap .tally-digit-reel {
    vertical-align: baseline;
}

.modal-vote-tally-wrap .tally-digit-cell {
    font-size: inherit;
}

#vote-modal .auth-buttons {
    align-items: center;
    width: 100%;
    max-width: 360px;
    margin-top: 0;
}

#vote-modal .auth-buttons .auth-btn {
    width: 100%;
}

#submit-vote-btn.vote-tallied {
    background: var(--brand-red);
    opacity: 0.9;
    cursor: default;
    transform: none !important;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.auth-btn {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.auth-btn.email { background: var(--brand-red); color: white; }

.email-input {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    text-align: center;
    background: white;
    color: #333;
}

.divider {
    display: flex; align-items: center; text-align: center;
}
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255,255,255,0.2); }
.divider span { padding: 0 10px; font-size: 0.8rem; color: var(--text-secondary); }

/* Flex Graphic */
.flex-graphic {
    background: #e8e4de;
    color: #111;
    padding: 30px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border: 5px solid #222;
}

.flex-graphic .badge {
    background: var(--accent);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.flex-graphic h2 {
    font-size: 3rem;
    color: var(--accent) !important;
    text-shadow: 2px 2px 0 #222;
    margin-bottom: 10px;
    line-height: 1;
}

.flex-graphic .shield {
    background: #222;
    color: white;
    display: inline-block;
    padding: 8px 15px;
    font-family: var(--font-header);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.flex-graphic p {
    font-family: var(--font-header);
    font-style: italic;
    color: #222;
    font-weight: 800;
}

.voted-venue {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.voted-venue span {
    display: block;
    font-size: 1.5rem;
    color: var(--brand-red);
    font-family: var(--font-header);
}

.share-ig-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: 15px;
}

.skip-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
}

/* Crawl-tinery Section */
.itinerary-section {
    width: 80%;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0;
}

.itinerary-section h2 {
    font-family: var(--font-header);
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.itinerary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .itinerary-grid {
        grid-template-columns: 1fr;
    }
}

.stop-card {
    background: linear-gradient(165deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 2px solid rgba(45, 27, 21, 0.12);
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(45, 27, 21, 0.1);
}

.stop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.stop-1::before {
    background: var(--brand-red);
}

.stop-2::before {
    background: var(--accent);
}

.stop-3::before {
    background: linear-gradient(90deg, var(--brand-red), var(--accent));
}

.stop-number {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-header);
    margin-bottom: 10px;
    color: var(--text-primary);
}

.stop-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-weight: 700;
}

.stop-card p {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-primary);
    font-weight: 500;
}

/* Quotes Section */
.quotes-section {
    width: 80%;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 0 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.quote-block {
    background: var(--panel-bg);
    padding: 40px;
    font-size: var(--body-text-size);
    font-style: italic;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(45, 27, 21, 0.12);
    color: var(--text-primary);
    line-height: var(--body-line-height);
}

.quote-left {
    border-left: 5px solid var(--brand-red);
}

.quote-right {
    border-right: 5px solid var(--accent);
    text-align: right;
}

.quote-author {
    display: block;
    font-weight: 700;
    font-style: normal;
    margin-top: 20px;
    font-family: var(--font-header);
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}


/* Scroll Animations */
.js-reveal {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-y {
    transform: translateY(60px);
}

.reveal-opacity {
    transform: none;
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }


/* Venue Type/Address Flipper Animation */
@keyframes flipText {
    0%, 45% { transform: translateY(0); }
    50%, 95% { transform: translateY(-1.2em); }
    100% { transform: translateY(0); }
}

/* State controls (Dev only) */
