﻿/* ===================================================================
   VARIABLES & THEME SETUP
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #d81b60;
    --secondary-color: #ff8f00;
    --dark-bg: #1a1a1a;
    --light-bg: #2c2c2c;
    --text-color: #f5f5f5;
    --text-muted: #aaa;
    --border-color: #444;
    /* additional/custom variables */
}

body[data-theme="light"] {
    --primary-color: #d81b60;
    --secondary-color: #ff6f00;
    --dark-bg: #ffffff;
    --light-bg: #f9f9f9;
    --text-color: #1a1a1a;
    --text-muted: #444;
    --border-color: #ccc;
}

/* ===================================================================
   BASE TYPOGRAPHY & GLOBALS
   =================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 100px; /* Match header height */ /* moved container padding out */
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

    a:hover {
        color: #ffc107;
    }

h1, h2 {
    color: var(--primary-color);
    font-weight: 600;
}

h4 {
    color: var(--text-muted);
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

h5 {
    color: var(--text-muted);
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

/* ===================================================================
   UTILITY & REUSABLE CLASSES
   =================================================================== */
/* Buttons shared base */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s, transform 0.15s ease-out, box-shadow 0.3s ease-out;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .btn:active {
        transform: translateY(1px);
        box-shadow: none;
        transition-duration: 0.1s;
    }

    .btn:focus-visible {
        outline: 3px solid var(--secondary-color);
        outline-offset: 2px;
    }
/* Button variants */
.btn-primary {
    background-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #c2185b;
    }

.btn-secondary {
    background-color: var(--secondary-color);
}

    .btn-secondary:hover {
        background-color: #ffa000;
    }

.btn-danger {
    background-color: #c62828;
}

    .btn-danger:hover {
        background-color: #b71c1c;
    }

/* Container */
.container {
    max-width: 900px;
    margin: 20px auto;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Flex‐gap utility */
.flex-gap {
    display: flex;
    gap: 10px;
}

/* ===================================================================
   LAYOUT: HEADER, FOOTER, MAIN
   =================================================================== */
/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    width: 100%;
}

.site-header:hover .header-background {
    filter: brightness(0.50);
}

.site-title {
    font-size: 2.5em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0; /* Removes default h1 margin */
}

/* === SLIDESHOW BACKGROUND === */
.hero-slider {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    animation: slideLeft 20s linear infinite;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Make the actual text overlay positioned over the slider */
.hero-text {
    position: absolute;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5); /* Optional dark overlay */
    padding: 1.5rem 2rem;
    border-radius: 12px;
    max-width: 600px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

    .hero-text h2 {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
        color: var(--primary-color);
    }

    .hero-text p {
        font-size: 1.25rem;
        color: #f5f5f5;
    }

/* Animation to slide the slides */
@keyframes slideLeft {
    /* Slide 1 (0%) */
    0% {
        transform: translateX(0%);
    }

    15% {
        transform: translateX(0%);
    }
    /* Slide 2 (-100%) */
    20% {
        transform: translateX(-100%);
    }

    35% {
        transform: translateX(-100%);
    }
    /* Slide 3 (-200%) */
    40% {
        transform: translateX(-200%);
    }

    55% {
        transform: translateX(-200%);
    }
    /* Slide 4 (-300%) */
    60% {
        transform: translateX(-300%);
    }

    75% {
        transform: translateX(-300%);
    }
    /* --- NEW 5th SLIDE STEP --- */
    /* Slide 5 (-400%) */
    80% {
        transform: translateX(-400%);
    }

    95% {
        transform: translateX(-400%);
    }
    /* --- End New Step --- */
    /* Reset to Slide 1 */
    100% {
        transform: translateX(0%);
    }
}

.form-actions {
    /* This rule adds the space *above* your button group */
    margin-top: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 10px; /* This adds the space *between* the two buttons */
    border-bottom: 3px solid var(--border-color);
    padding-bottom: 8px;
}

    .form-actions .btn {
        flex-grow: 1;
        text-align: center;
    }


#filter-content {
    display: block; /* Shown by default */
}

#filter-content.collapsed {
    display: none; /* Hidden when toggled */
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}


.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Site Footer */
.site-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9em;
}

    .site-footer p {
        margin: 5px 0;
    }

    .site-footer a {
        color: var(--text-muted);
    }

    .site-footer .footer-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .site-footer .footer-nav li {
        display: inline-block;
        margin-right: 15px;
    }


/* Main content wrapper */
main {
    padding: 20px;
}

/* ===================================================================
   NAVIGATION / DROPDOWNS
   =================================================================== */
/* Header dropdown */
.header-dropdown {
    position: relative;
    display: inline-block;
}

.menu-toggle {
    cursor: pointer;
}

.menu-label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-muted);
    margin: 12px 0 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.menu-item {
    margin: 10px 0;
    display: block;
    padding: 10px 12px;
    font-size: 1em;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

    .menu-item:hover {
        background-color: var(--border-color);
    }

.header-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    padding: 10px;
}

    .header-dropdown-content a {
        display: block;
        padding: 10px;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
    }

        .header-dropdown-content a:hover {
            background-color: var(--border-color);
        }

.header-dropdown.show .header-dropdown-content {
    display: block;
}

/* Theme toggle inside dropdown */
.theme-toggle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
}

.theme-label {
    font-size: 0.95em;
    color: var(--text-muted);
    font-weight: 500;
    user-select: none;
    white-space: nowrap;
}

.theme-icon {
    font-size: 1.1em;
    user-select: none;
}

.theme-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 36px;
}

    .theme-toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .theme-toggle-switch .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: 0.4s;
        border-radius: 50px;
        box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
    }

        .theme-toggle-switch .slider:before {
            position: absolute;
            content: "";
            height: 28px;
            width: 28px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: 0.4s;
            border-radius: 50%;
            box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        }

    .theme-toggle-switch input:checked + .slider {
        background-color: var(--secondary-color);
    }

        .theme-toggle-switch input:checked + .slider:before {
            transform: translateX(26px);
        }


/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    z-index: 1001; /* Make sure it's on top of other content */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    transition: transform 0.5s ease;
}

    .cookie-banner.hidden {
        transform: translateY(100%); /* Slide the banner down when hidden */
    }

    .cookie-banner p {
        margin: 0;
        color: var(--text-muted);
    }

    .cookie-banner .cookie-link {
        color: var(--secondary-color);
        text-decoration: underline;
    }

    /* Make buttons in banner small */
    .cookie-banner .btn-sm {
        padding: 6px 12px;
        font-size: 0.9em;
    }

/* ===================================================================
   FORMS & INPUTS
   =================================================================== */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    form p {
        margin: 0;
    }

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="time"],
input[type="number"],
input[type="url"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
}

select {
    cursor: pointer;
    /* hide default arrow & custom arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f5f5f5' stroke‑linecap='round' stroke‑linejoin='round' stroke‑width='2' d='M2 5l6 6 6‑6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}
/* Styles for checkbox pills */
.form-section .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-section .checkbox-item input[type="checkbox"] {
    display: none;
}

.form-section .checkbox-item label {
    display: inline-block;
    font-weight: 400;
    padding: 8px 16px;
    border: 1px solid var(--border‑color);
    border-radius: 8px;
    background-color: var(--dark-bg);
    color: var(--text-muted);
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .form-section .checkbox-item label:hover {
        border-color: var(--secondary-color);
        color: var(--secondary-color);
        transform: translateY(-2px);
    }

.form-section .checkbox-item input[type="checkbox"]:checked + label {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(216,27,96,0.3);
}

    .form-section .checkbox-item input[type="checkbox"]:checked + label:hover {
        background-color: #c2185b;
        border-color: #c2185b;
        transform: translateY(-2px);
    }



/* 1. Hide the actual radio button */
.location-toggle .btn-check {
    display: none;
}

/* 2. Style the label (this is the default INACTIVE state) */
.location-toggle .btn {
    /* Base styles from your .btn class */
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Specific INACTIVE/outline styles */
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

    /* 3. Style the first button's corners */
    .location-toggle .btn:first-of-type {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    /* 4. Style the last button's corners */
    .location-toggle .btn:last-of-type {
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
        border-left: 0; /* Avoid double border */
    }

    /* 5. HOVER on an INACTIVE button */
    .location-toggle .btn:hover {
        border-color: var(--secondary-color);
        color: var(--secondary-color);
        transform: translateY(-2px);
        z-index: 2; /* Bring to front on hover */
    }

/* 6. Style for the CHECKED (ACTIVE) state */
.location-toggle .btn-check:checked + .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(216, 27, 96, 0.3);
    z-index: 1;
}

    /* 7. HOVER on an ACTIVE button */
    .location-toggle .btn-check:checked + .btn:hover {
        background-color: #c2185b; /* Darker primary */
        border-color: #c2185b;
        transform: translateY(-2px);
    }

/* -------------------------------------------------------------------
   Specific form & filter controls
   ------------------------------------------------------------------- */
#id_styles {
    list-style-type: none;
    padding: 0;
    color: var(--text-muted);
}

    #id_styles li label {
        display: inline-block;
        margin-left: 10px;
        font-weight: 400;
    }

.location-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

    .location-input-group input {
        flex-grow: 1;
    }

    .location-input-group button {
        display: inline-block;
        border-radius: 8px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        border: none;
        background-color: var(--secondary-color);
        padding: 10px 16px;
        transition: background-color 0.3s, transform 0.15s ease-out, box-shadow 0.3s ease-out;
        flex-shrink: 0;
        color: #fff;
    }

        .location-input-group button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            background-color: #ffa000;
        }

        .location-input-group button:active {
            transform: translateY(1px);
            box-shadow: none;
        }

        .location-input-group button:focus-visible {
            outline: 3px solid var(--secondary-color);
            outline-offset: 2px;
        }

/* ===================================================================
   COMPONENTS: EVENTS, CARDS, SCROLLERS, PAGINATION, FILTERS
   =================================================================== */
/* Event listing / dashboard elements */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.header-actions a {
    /* Place any header‑action specific styles here */
}

/* ===================================================================
   COMPONENTS: Use Current Location Section
   =================================================================== */

.location-mode-block {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

    /* Label styling */
    .location-mode-block label {
        font-weight: 600;
        color: var(--text-muted);
        margin-bottom: 6px;
        display: block;
    }

    /* Inputs and spacing */
    .location-mode-block input[type="text"],
    .location-mode-block input[type="number"] {
        background-color: var(--dark-bg);
        color: var(--text-color);
        border: 1px solid var(--border-color);
        border-radius: 6px;
        padding: 10px;
        margin-bottom: 14px;
        font-size: 0.95em;
    }

/* Button: Make consistent and full-width on mobile */
#refresh-location-btn {
    margin-bottom: 16px;
    padding: 10px 16px;
    font-weight: 600;
    width: 100%;
    max-width: 300px;
    display: block;
}

/* Feedback message */
#location-feedback {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-top: 10px;
}


.location-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

    .location-toggle input[type="radio"] {
        display: none;
    }

    .location-toggle .btn {
        padding: 10px 18px;
        font-weight: 500;
        border-radius: 6px;
        border: 1px solid var(--border-color);
        color: var(--text-color);
        background-color: var(--dark-bg);
        transition: all 0.2s ease;
    }

    .location-toggle input:checked + label {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: #fff;
    }

    .location-toggle .btn:hover {
        background-color: #3a3a3a;
        border-color: var(--secondary-color);
    }


/* ===================================================================
   COMPONENTS: Event cards
   =================================================================== */

.event {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .event:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }

    .event:last-child {
        border-bottom: none;
    }

.event-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-name {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.event-details {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-right: 100px;
}

.distance-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--highlight-color, var(--primary-color));
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    z-index: 1;
}

.styles span {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    margin: 5px 0;
    display: inline-block;
}
/* Event card links */
.event-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: background-color 0.3s, transform 0.2s;
}

    .event-card-link .event {
        border: 1px solid var(--border-color);
        background-color: var(--light-bg);
        padding: 20px;
        border-radius: 8px;
    }

    .event-card-link:hover {
        transform: translateY(-5px);
        background-color: #3a3a3a;
    }

        .event-card-link:hover .event-name {
            color: var(--primary-color);
        }
/* Event detail page */
.event-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.detail-item strong {
    color: var(--secondary-color);
    font-size: 1.1em;
}

.detail-item p {
    margin: 5px 0 0 0;
}

.event-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3; /* Keeps all images same visual space */
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--light-bg);
}

body[data-theme="light"] .event-image-wrapper {
    background-color: var(--light-bg); /* Matches light mode */
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ✨ Shows full image */
    object-position: center;
    display: block;
}

.detail-picture {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

    .detail-picture img.event-detail-image {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
/* Description section */
.description-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

    .description-section h3 {
        color: var(--secondary-color);
        margin-bottom: 10px;
    }

    .description-section p {
        color: var(--text-color);
        line-height: 1.7;
    }

/* Address warning section */
.event-address-wrapper {
    margin-top: 0;
    position: relative;
    display: inline-block;
    font-size: 0.9rem;
    z-index: 10;
}

.address-tooltip-icon {
    margin-left: 6px;
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    vertical-align: middle;
    position: relative;
    z-index: 11;
}

    /* Subtle bounce or pulse */
    .address-tooltip-icon.pulse {
        animation: pulse 1.5s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Tooltip box */
.address-tooltip-text {
    display: none;
    background-color: #fff;
    color: #333;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 14px;
    width: 260px;
    position: absolute;
    z-index: 1000;
    top: -10px;
    left: 110%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.8rem;
    line-height: 1.4;
    background-clip: padding-box;
    white-space: normal;
}

    .address-tooltip-text.active {
        display: block;
    }

/* Optional helper text */
.tap-hint {
    font-size: 0.72rem;
    color: #888;
    margin-top: 4px;
}	

/* Date scroller */
.date-scroller {
    display: flex;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .date-scroller::-webkit-scrollbar {
        display: none;
    }

.date-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    padding: 10px 5px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-right: 10px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

    .date-item:hover {
        background-color: #3a3a3a;
    }

    .date-item.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: #fff;
    }

        .date-item.active .day-name,
        .date-item.active .month-name {
            color: #fff;
        }

.day-name {
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.day-number {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.2;
}

.month-name {
    font-size: 0.8em;
    color: var(--text-muted);
}
/* Quick date selectors */
.quick-date-selectors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

    .quick-date-selectors .btn-sm {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .quick-date-selectors .btn.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: #fff;
        box-shadow: 0 2px 8px rgba(216,27,96,0.3);
        cursor: default;
    }
/* Sort controls */
.sort-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

    .sort-controls label {
        font-size: 0.85em;
        font-weight: 500;
        margin-bottom: 4px;
        display: block;
    }

    .sort-controls select {
        padding: 8px 10px;
        font-size: 0.9em;
        border-radius: 6px;
        background-position: right 0.75rem center;
        background-size: 0.9em;
        padding-right: 2.25rem;
        width: 100%;
        line-height: 1.4;
    }

.sort-item-grow {
    flex-grow: 1;
    flex-basis: 130px;
    min-width: 130px;
}

.sort-item-fixed {
    flex-basis: 120px;
    min-width: 120px;
}
/* Pagination */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.page-item .page-link {
    display: block;
    padding: 10px 18px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

    .page-item .page-link:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: #fff;
        transform: translateY(-2px);
    }

.page-item.active .page-link {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-bg);
    font-weight: bold;
    cursor: default;
}


/* ===================================================================
   RESPONSIVE / Style the captcha image
   =================================================================== */
a.captcha-refresh-link {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.9em;
    font-weight: 600;
    color: #fff;
    background-color: var(--secondary-color); /* Your amber/orange color */
    border-radius: 8px;
    text-decoration: none;
    margin-left: 10px; /* Space it away from the image */
    vertical-align: middle; /* Align it with the input box */
    transition: background-color 0.3s, transform 0.2s;
}

    a.captcha-refresh-link:hover {
        background-color: #ffa000; /* Darker amber */
        color: #fff;
        transform: translateY(-1px);
    }

/* Optional: Make the captcha image align better */
img.captcha {
    vertical-align: middle;
    border-radius: 8px;
    margin-bottom: 10px; /* Add space below image */
}

/* Optional: Make the captcha input box match other inputs */
input[type="text"][id$="_1"] {
    width: 100%;
    margin-top: 10px;
}

/* ===================================================================
   RESPONSIVE / MOBILE OVERRIDES (@media max‑width: 768px)
   =================================================================== */
@media (max-width: 768px) {

    html, body {
        margin: 0;
        padding: 0;
    }

    body {
        padding-top: 0px;
    }

    .container {
        padding: 20px;
    }

    .site-header {
        position: static; /* ← not fixed on mobile */
        box-shadow: none;
        border-bottom: 1px solid var(--border-color);
    }

    .header-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .site-title {
        font-size: 1.8em;
        letter-spacing: 1px;
    }

    .header {
        flex-direction: column;
        align-items: stretch;
    }

        .header h1 {
            text-align: center;
            margin-bottom: 10px;
        }

    .header-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

        .header-actions .btn {
            text-align: center;
        }

    /* Use Current Location Section  */
    .location-mode-block {
        padding: 15px;
    }

    #refresh-location-btn {
        width: 100%;
    }

    .location-toggle {
        flex-direction: column;
        gap: 10px;
    }

        .location-toggle .btn {
            width: 100%;
            text-align: center;
        }


    /* Event cards */
    .event-details,
    .event-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .distance-tag {
        top: 0.25rem;
        right: 0.25rem;
        font-size: 0.65rem;
        padding: 3px 7px;
    }

    .event-name {
        font-size: 1.25rem;
    }

    .event {
        padding: 15px;
    }

    .event-details-grid {
        grid-template-columns: 1fr;
    }

    .event-image-wrapper {
        aspect-ratio: auto;
        max-height: 300px;
    }

    .event-image {
        object-fit: cover;
    }

    .user-menu-dropdown {
        width: 90vw;
        left: 5vw;
        right: 5vw;
        top: 80px;
        position: fixed;
    }
}
