/* ===================================
   HERO & EVENTS SECTION STYLES
   Add this to your custom.css or create a new file
   =================================== */

/* Custom Select Dropdown */
.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: #ffffff;
    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: #ffffff;
    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);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    scroll-snap-align: start;
}

.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;
}

.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: #ffffff;
    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(--primary_color, #00d084);
    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;
    display: block;
    background: #faf7f2;
    color: #0f1720;
    padding: 60px 20px;
    scroll-snap-align: start;
}

.events-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

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

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

.today-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: transparent;
    color: var(--primary_color, #00d084);
    border: 2px solid var(--primary_color, #00d084);
    font-weight: 800;
    font-size: 0.95rem;
}

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

/* Cards */
.today-cards, .upcoming-cards {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -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: #ffffff;
    min-width: 280px;
    height: 320px;
    flex: 0 0 calc((100% - 42px) / 4);
    max-width: calc((100% - 42px) / 4);
    position: relative;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.upcoming-card {
    height: 220px;
    flex: 0 0 calc((100% - 70px) / 6);
    max-width: calc((100% - 70px) / 6);
}

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

.today-card img,
.upcoming-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms cubic-bezier(.22,.61,.36,1);
}

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

.card-time {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--primary_color, #00d084);
    color: #fff;
    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;
}

.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;
}

.card-desc {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.35;
    max-height: 0;
    opacity: 0;
    transform: translateY(8px);
    overflow: hidden;
    transition: max-height 420ms cubic-bezier(.22,.61,.36,1), opacity 360ms ease, transform 360ms ease;
}

.today-card:hover .card-desc {
    max-height: 240px;
    opacity: 0.95;
    transform: translateY(0);
}

.today-card:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.75) 18%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.06) 100%);
}

.today-card:hover img {
    transform: scale(1.05);
}

/* Upcoming header */
.upcoming-header {
    margin-top: 40px;
}

.upcoming-title {
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

/* Event Filter Form */
.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 {
    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: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.filter-input:hover {
    background: rgba(255,255,255,0.10);
}

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

.filter-input: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);
}

.filter-button {
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: var(--primary_color, #00d084);
    color: #fff;
    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.05);
}

.cta-button {
    display: inline-block;
    background: var(--primary_color, #00d084);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    padding: 12px 28px;
    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);
}

.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 Tags */
.event-tag {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 50px;
    left: 10px;
    z-index: 2;
}

.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: rgb(245 245 245);
    color: #cb0957;
}
.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;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .today-card {
        flex: 0 0 calc((100% - 28px) / 3);
        max-width: calc((100% - 28px) / 3);
    }
    .upcoming-card {
        flex: 0 0 calc((100% - 56px) / 5);
        max-width: calc((100% - 56px) / 5);
    }
}

@media (max-width: 1000px) {
    .today-card, .upcoming-card {
        flex: 0 0 48%;
        max-width: 48%;
        height: 240px;
    }
    .upcoming-card {
        height: 200px;
    }
    .event-filter {
        grid-template-columns: 1fr 1fr auto;
    }
}

@media (max-width: 768px) {
    .events-section {
        padding: 40px 15px;
    }

    .events-wrap {
        padding: 15px;
    }
}

@media (max-width: 640px) {
    .today-card, .upcoming-card {
        flex: 0 0 85%;
        max-width: 85%;
        min-width: 260px;
        height: 280px;
    }
    .upcoming-card {
        height: 200px;
    }
    .event-filter {
        grid-template-columns: 1fr;
    }
    .filter-button {
        width: 100%;
    }
    .hero-title {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Desktop: hide scrollbar but keep functionality */
@media (min-width: 1001px) {
    .today-cards {
        overflow-x: visible;
    }
    .today-card {
        height: 380px;
    }
    .today-card {
        flex: 0 0 calc((100% - 42px) / 4);
        max-width: calc((100% - 42px) / 4);
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.today-cards::-webkit-scrollbar,
.upcoming-cards::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.today-cards,
.upcoming-cards {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
