    .custom-select {
        position: relative;
        width: 100%;
    }

    .select-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 12px 14px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.18);
        background: rgba(255,255,255,0.08);
        color: var(--text-light);
        font-size: 0.95rem;
        outline: none;
        cursor: pointer;
        transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
    }

    .select-trigger:hover {
        background: rgba(255,255,255,0.10);
    }

    .select-trigger[aria-expanded="true"] {
        border-color: rgba(255,255,255,0.6);
        background: rgba(255,255,255,0.12);
        box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
    }

    .select-caret {
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #fff;
        opacity: 0.9;
        transition: transform 160ms ease;
    }

    .select-trigger[aria-expanded="true"] .select-caret {
        transform: rotate(180deg);
    }

    .select-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.85);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 12px;
        box-shadow: 0 16px 50px rgba(0,0,0,0.5);
        backdrop-filter: blur(10px) saturate(125%);
        -webkit-backdrop-filter: blur(10px) saturate(125%);
        list-style: none;
        padding: 6px;
        margin: 0;
        display: none;
        max-height: 260px;
        overflow: auto;
        z-index: 5;
    }

    .custom-select.open .select-menu {
        display: block;
    }

    .select-option {
        padding: 10px 12px;
        border-radius: 8px;
        color: var(--text-light);
        cursor: pointer;
        font-size: 0.95rem;
    }

    .select-option:hover,
    .select-option[aria-selected="true"] {
        background: rgba(255,255,255,0.12);
    }

    .select-option:focus {
        outline: none;
        background: rgba(255,255,255,0.16);
    }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    overflow-y: auto; /* allow scrolling */
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity; /* softer snap to reduce abruptness */
    scroll-padding-top: 64px; /* account for fixed header height */
}

:root {
    --bg-dark: rgba(0, 0, 0, 0.5);
    --text-light: #ffffff;
    --accent: #00d084;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0));
    padding: 14px 24px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    color: var(--text-light);
    font-weight: 600; /* match hero-kicker weight */
    letter-spacing: 1.2px; /* match hero-kicker tracking */
    text-transform: uppercase; /* match hero-kicker casing */
    font-size: 1.05rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600; /* match hero-kicker weight */
    letter-spacing: 1.2px; /* match hero-kicker tracking */
    text-transform: uppercase; /* match hero-kicker casing */
    font-size: 0.85rem;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 200ms ease, color 200ms ease;
}

.nav-link:hover,
.nav-link:focus {
    background: rgba(255,255,255,0.15);
    outline: none;
}

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: grid;
    place-items: center;
    background-image: url('/img/imgPark1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    scroll-snap-align: start;
    scroll-snap-stop: normal; /* softer stopping */
    scroll-margin-top: 64px; /* ensure smooth anchor alignment */
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    color: #ffffff;
    opacity: 0.85;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.18);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.scroll-indicator:hover,
.scroll-indicator:focus-visible {
    opacity: 1;
    background: rgba(0,0,0,0.28);
    outline: none;
}

.scroll-indicator svg {
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    backdrop-filter: saturate(120%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 0 8px 28px rgba(0,0,0,0.6);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: 28px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.hero-brand {
    color: var(--accent);
    text-shadow: 0 0 0 transparent, 0 8px 28px rgba(0, 208, 132, 0.35);
}

.hero-kicker {
    display: inline-block;
    color: #ffffff;
    opacity: 0.9;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* Events Section */
.events-section {
    position: relative;
    min-height: auto; /* do not fill whole page */
    display: block; /* normal document flow */
    background: #faf7f2; /* off-white */
    color: #0f1720; /* dark text on light bg */
    padding: 24px 20px; /* further reduced top padding */
    scroll-snap-align: start;
    scroll-snap-stop: normal; /* softer stopping */
    scroll-margin-top: 64px; /* ensure smooth anchor alignment */
}

.events-wrap {
    width: 100%; /* allow full section width */
    margin: 0 auto; /* center horizontally */
    background: transparent; /* no background color */
    border: none; /* remove outline */
    border-radius: 0; /* remove rounded corners */
    box-shadow: none; /* remove elevation */
    padding: 24px; /* inner spacing */
}

.events-title {
    font-size: clamp(1.6rem, 4vw, 6.6rem);
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: left;
    margin-bottom: 16px;
}

.events-subtitle {
    text-align: center;
    opacity: 0.9;
    margin-top: 6px;
    margin-bottom: 28px;
}

/* Today's badge row */
.events-today {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

.today-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0; /* square like a calendar */
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: none;
}

.today-label {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Today's cards row - horizontal layout */
.today-cards, .upcoming-cards {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px; /* room for focus ring/scrollbar */
    -webkit-overflow-scrolling: touch;
}

.today-card, .upcoming-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(15,23,32,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    min-width: 280px; /* slightly narrower to allow 4-up on desktop */
    height: 260px; /* a bit taller */
    flex: 0 0 calc((100% - 28px) / 3); /* fill full width with 3 cards and 2 gaps of 14px */
    max-width: calc((100% - 28px) / 3);
    position: relative; /* for overlay */
    color: #ffffff; /* overlay text color */
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

/* Make upcoming cards smaller than today's */
.upcoming-card { height: 180px; }
.upcoming-card .card-title { font-size: 0.95rem; }
.upcoming-card .card-meta { font-size: 0.85rem; opacity: 0.85; }

/* Upcoming: more cards per row on desktop (5-up) */
@media (min-width: 1001px) {
    .upcoming-card {
        flex: 0 0 calc((100% - (14px * 4)) / 5);
        max-width: calc((100% - (14px * 4)) / 5);
        min-width: 200px;
    }
}

.today-card:hover,
.today-card:focus-visible,
.upcoming-card:hover,
.upcoming-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.1);
    border-color: rgba(15,23,32,0.16);
    outline: none;
}

/* Use image as a background layer */
.today-card img,
.upcoming-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform, object-position;
    transition: transform 420ms cubic-bezier(.22,.61,.36,1), object-position 420ms ease;
}

/* Gradient overlay for readability */
.today-card::after,
.upcoming-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 18%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
    transition: background 320ms ease;
}

/* Prominent time badge at top-left */
.card-time {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2; /* above overlay */
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--accent);
    color: #073b2b;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 6px 18px rgba(0, 208, 132, 0.35);
}

.card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 14px 16px;
    z-index: 1;
    transition: transform 200ms ease; /* for hover lift */
}

.card-title {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
}

.card-meta {
    margin-top: 4px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Make Today header row feel alive */
.events-today .today-badge {
    animation: badge-pop 420ms cubic-bezier(.18,.89,.32,1.28) both;
}
.events-today .today-label {
    animation: label-slide 420ms ease both 60ms;
}
.events-today:hover .today-badge {
    animation: badge-wiggle 1400ms ease-in-out infinite;
}

/* More animated Today cards on hover (softer) */
.today-card:hover img { transform: scale(1.03); }
.today-card:hover .card-body { transform: translateY(-1px); }
.today-card:hover .card-time {
    animation: glow-pulse 1800ms ease-in-out infinite;
}

/* Hidden description that reveals on hover (Today's cards) */
.card-desc {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.35;
    max-height: 0;
    opacity: 0;
    transform: translateY(8px);
    overflow: hidden;
    will-change: max-height, opacity, transform;
    transition: max-height 420ms cubic-bezier(.22,.61,.36,1), opacity 360ms ease, transform 360ms ease;
}
.today-card:hover .card-desc {
    max-height: 240px; /* enough space for a few lines */
    opacity: 0.95;
    transform: translateY(0);
}

/* Strengthen overlay on hover for better text legibility */
.today-card:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.65) 18%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.06) 100%);
}

/* Keyframes */
@keyframes badge-pop {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes label-slide {
  0% { transform: translateY(6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes badge-wiggle {
  0%,100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
  75% { transform: rotate(-1deg); }
}
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 6px 18px rgba(0, 208, 132, 0.0); }
  50% { box-shadow: 0 8px 22px rgba(0, 208, 132, 0.3); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .events-today .today-badge,
  .events-today .today-label,
  .today-card:hover .card-time {
    animation: none !important;
  }
  .today-card:hover img,
  .today-card:hover .card-body {
    transform: none;
  }
}

@media (max-width: 1000px) {
    .today-card, .upcoming-card {
        flex: 0 0 48%;
        max-width: 48%;
        height: 240px;
    }
    /* Upcoming a bit smaller on tablet */
    .upcoming-card {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .today-card, .upcoming-card {
        flex: 0 0 85%;
        max-width: 85%;
        min-width: 260px;
        height: 220px;
    }
    .upcoming-card { height: 180px; }
}

/* Desktop: no horizontal scrolling, cards perfectly fill the row */
@media (min-width: 1001px) {
    .today-cards { overflow-x: visible; }
    /* Increase today's cards height on desktop */
    .today-card { height: 420px; }
    /* 4-up layout for today's cards (3 gaps of 14px) */
    .today-card {
        flex: 0 0 calc((100% - (14px * 3)) / 4);
        max-width: calc((100% - (14px * 3)) / 4);
    }
}

/* Carousel: upcoming-cards auto-scroll, hide scrollbar */
.upcoming-cards {
    overflow: hidden; /* hide scrollbar for auto carousel */
}
.upcoming-cards::-webkit-scrollbar { display: none; }

/* Upcoming header */
.upcoming-header { margin-top: 28px; }
.upcoming-title {
    font-weight: 800; /* bold */
    font-size: clamp(1rem, 2vw, 1.25rem); /* reduced size */
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Stagger second column so 'Upcoming Events' sits under 'This Week\'s Events' on desktop */
@media (min-width: 901px) {
    .events-grid .events-group:nth-child(2) {
        margin-top: 16px;
    }
}

.events-group {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.28);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.group-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    opacity: 0.95;
}

.event-list {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.event-card {
    background: #ffffff;
    border: 1px solid rgba(15,23,32,0.08);
    border-radius: 14px;
    color: #0f1720; /* dark text on light card */
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 10px;
    height: 170px; /* unify card height like 'Parade of Colors' */
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: rgba(15,23,32,0.14);
}

/* Colored outlines per category */
.event-card:has(.event-tag[data-type="rides"]) {
    border-color: #00d084; /* green */
    box-shadow: 0 0 0 2px rgba(0,208,132,0.22), 0 8px 24px rgba(0,0,0,0.08);
}

.event-card:has(.event-tag[data-type="shows"]) {
    border-color: #f5c542; /* gold */
    box-shadow: 0 0 0 2px rgba(245,197,66,0.22), 0 8px 24px rgba(0,0,0,0.08);
}

.event-card:has(.event-tag[data-type="food"]) {
    border-color: #e11d8f; /* magenta */
    box-shadow: 0 0 0 2px rgba(225,29,143,0.18), 0 8px 24px rgba(0,0,0,0.08);
}

.event-card:has(.event-tag[data-type="family"]) {
    border-color: #22c55e; /* green variant */
    box-shadow: 0 0 0 2px rgba(34,197,94,0.20), 0 8px 24px rgba(0,0,0,0.08);
}

.event-card:has(.event-tag[data-type="night"]) {
    border-color: #f5c542; /* gold variant for night */
    box-shadow: 0 0 0 2px rgba(245,197,66,0.18), 0 8px 24px rgba(0,0,0,0.08);
}

.event-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    flex: 0 0 38%;
    max-width: 38%;
}

.event-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 280ms ease;
}

.event-card:hover .event-image img {
    transform: scale(1.06);
}

.event-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertically center content */
}

.event-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.8;
}

.event-date { opacity: 0.9; }

.event-tag {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.event-tag[data-type="rides"] { background: rgba(0, 208, 132, 0.18); color: #056e4c; }
.event-tag[data-type="shows"] { background: rgba(99, 102, 241, 0.18); color: #3730a3; }
.event-tag[data-type="food"]  { background: rgba(244, 114, 182, 0.20); color: #9d174d; }
.event-tag[data-type="family"]{ background: rgba(34, 197, 94, 0.16);  color: #14532d; }
.event-tag[data-type="night"] { background: rgba(59, 130, 246, 0.18); color: #1e3a8a; }

.event-name {
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 600;
}

.event-desc {
    margin-top: 4px;
    opacity: 0.85;
    font-size: 0.95rem;
    line-clamp: 2; /* standard property for compatibility */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* clamp to fit fixed height */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

@media (max-width: 720px) {
    .event-card {
        flex-direction: column;
        gap: 8px;
        height: auto; /* allow natural height on small screens */
    }
    .event-image {
        flex: 0 0 auto;
        max-width: 100%;
        border-radius: 12px;
    }
    .event-image img {
        height: 150px;
    }
}

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

.event-filter {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
    width: min(900px, 92vw);
    margin: 0 auto;
    padding: 12px;
    background: rgba(10, 10, 10, 0.35);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    position: relative;
    z-index: 2;
}

.filter-input,
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

/* Custom chevron for selects */
.filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 12px;
    padding-right: 40px;
}

/* Hover polish */
.filter-input:hover,
.filter-select:hover {
    background: rgba(255,255,255,0.10);
}

.filter-input::placeholder { color: rgba(255,255,255,0.75); }

.filter-input:focus,
.filter-select:focus {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

/* Dark dropdown options (browser support varies) */
.filter-select option {
    background-color: #121416;
    color: #ffffff;
}

/* Date input calendar icon for WebKit browsers */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) opacity(0.85);
    cursor: pointer;
}

/* Remove inner spin buttons for number-like UIs, just in case */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filter-button {
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: var(--accent);
    color: #073b2b;
    box-shadow: 0 10px 30px rgba(0, 208, 132, 0.35);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.filter-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0, 208, 132, 0.45);
    filter: brightness(1.03);
}

@media (max-width: 900px) {
    .event-filter {
        grid-template-columns: 1fr 1fr auto;
    }
}

@media (max-width: 640px) {
    .event-filter {
        grid-template-columns: 1fr;
    }
    .filter-button {
        width: 100%;
    }
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: #003b2a;
    text-decoration: none;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 208, 132, 0.35);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 208, 132, 0.45);
}

@media (max-width: 720px) {
    .nav-links {
        gap: 12px;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 8px;
    }
}
