:root {
  --primary-color: #46237A;
  --secondary-color: #256EFF;
  --accent-color: #3DDC97;
  --text-color: #46237A;
  --text-color-light: #FCFCFC;
  --background-color: #FCFCFC;
  --background-color-alt: #f0f0f0;
  --background-color-transparent: rgba(252, 252, 252, 0.8);
  --header-background: rgba(37, 110, 255, 0.9);
  --card-background: rgba(252, 252, 252, 0.8);
  --tag-background: rgba(70, 35, 122, 0.12);
  --divider-color: #256EFF;
  --toast-background: #323232;
  --skeleton-color-1: #f0f0f0;
  --skeleton-color-2: #e0e0e0;
  --error-color: #FF4000;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-color-1: #FCFCFC;
  --gradient-color-2: rgba(61, 90, 220, 0.46);
  --gradient-color-3: #256EFF;
  /* New Variables */
  --semi-transparent-purple: rgba(70, 35, 122, 0); /* For semi-transparent purple elements */
  --semi-transparent-pink: rgba(255, 64, 0, 0.7); /* For error states or highlights */
  --white-transparent: rgba(252, 252, 252, 0.95); /* For overlays */
  --purple-transparent: rgba(70, 35, 122, 0.5); /* For hover effects */
  --green-transparent: rgba(61, 220, 151, 0.5); /* For hover states */
  --blue-transparent: rgba(37, 110, 255, 0.5); /* For selected states */
  --background-gradient-start: #FCFCFC;
  --background-gradient-middle: rgba(61, 90, 220, 0.46);
  --background-gradient-end: #256EFF;
  --venue-tab-filter-background: rgba(37, 110, 255, 0.196);
  --autocomplete-background: rgba(252, 252, 252, 0.95);
  --main-background-color: #9dabec;
}



/* Add these rules at the beginning of your styles.css file */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Modify the existing body rule to include these properties */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    color: var(--text-color);
    /* background: linear-gradient(140deg, var(--gradient-color-1) 0%, var(--gradient-color-2) 70%, var(--gradient-color-3) 120%); */
    /* background-size: 100% 100%; */
    background-color: #9dabec;
    margin: 0;
    padding: 0;
    /* animation: gradientAnimation 15s ease infinite; */
    max-width: 100vw;
    overflow-x: hidden;
    padding-top: 0px; /* Adjust this value based on the height of your #event-filters */
    background-attachment: fixed;

}



/* .gradient {
    color: inherit;
    background-image: linear-gradient(347deg, #46237A 24%, rgba(255,255,255,0) 64%), linear-gradient(216deg, #256EFF 0%, rgba(255,255,255,0) 90%), radial-gradient(circle at -171% 174%, #3DDC97 52%, rgba(255,255,255,0) 81%), linear-gradient(304deg, #f43083 15%, rgba(255,255,255,0) 99%), linear-gradient(238deg, rgba(255,255,255,0) 18%, #cf8f7e 26%);
    
  } */


@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

header {
    background-color: var(--header-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    margin-bottom: 10px;
}

h1 {
    margin: 0;
    font-size: 18px;
    font-weight: normal;
    color: var(--text-color-light);
}

#event-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px; /* Adjust this value as needed */
    
}

.event-tags {
    margin-left: 10px;
    margin-top: auto;
    font-size: 12px;
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    cursor: pointer;
}

.event-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    background: var(--tag-background);
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.event-tag::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px var(--shadow-color);
    background-color: var(--accent-color);
    font-weight: bold;
}

.event-tag:hover::after {
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.event-card {
    display: flex;
    flex-direction: row-reverse; /* Change this to reverse the order */
    align-items: stretch;
    padding: 0;
    border-bottom: 1px solid var(--divider-color);
    background-color: var(--card-background);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 0;
    margin-bottom: 5px;
    color: var(--text-color);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 80px;
    opacity: 1;
    box-shadow: 0 2px 4px var(--shadow-color); /* Add this line for elevation */
}

.event-card.hidden {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
    box-sizing: border-box;
  
    min-width: 0; /* This allows the content to shrink if needed */
    justify-content: space-between; /* This will push the tags to the bottom */
}

.event-image {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color-alt);
    align-self: flex-start;
    margin-left: 10px; /* Add some space between content and image */
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card.expanded .event-image {
    position: absolute;
    top: 0;
    right: 0; /* Change this from left: 0 to right: 0 */
    bottom: 0;
    width: 150px;
    height: auto;
}

.event-card.expanded .event-image img {
    height: 100%;
    object-fit: cover;
}

.event-card.expanded .event-content {
    margin-right: 150px; /* Change this from margin-left to margin-right */
    margin-left: 0; /* Add this to remove any left margin */
    width: calc(100% - 150px);
}

.redirect-hint {
    position: absolute;
    bottom: 10px;
    left: 10px; /* Change from right: 10px to left: 10px */
    right: auto; /* Remove right positioning */
    background-color: rgba(37, 110, 255, 0.8); /* Blue with opacity */
    color: #FCFCFC; /* White */
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.event-image:hover .redirect-hint {
    opacity: 1;
    transform: scale(1.1);
}

.event-info-bar {
    width: 100%;
    font-size: 12px;
    color: #201E1F;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 0px;
    flex-shrink: 0;
}

.event-info-bar .venue {
    display: inline-block;
    padding-left: 6px;
    padding-right: 6px;
    height: 24px;
    font-size: 12px;
    line-height: 24px;
    border-radius: 2px;
    background-color: var(--tag-background);
    color: var(--primary-color); /* Purple */
    font-weight: 500;
    margin-top: 4px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.event-info-bar .venue:hover {
    background-color: var(--venue-tab-filter-background); /* Slightly darker on hover */
    box-shadow: 0 2px 4px var(--shadow-color);
    transform: scale(1.05);
    font-weight: bold;
}

.event-info-tag-bar {
    width: 100%;
    font-size: 12px;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 5px; /* Add some space between the two rows */
    flex-shrink: 0; /* Prevent the info bar from shrinking */
}

.event-date, .event-venue {
    display: inline-block;
    margin-left: 10px;
    max-width: 100%;
    white-space: normal;
}

.event-venue {
    margin-top: 2px; /* Add some space above the venue */
}

.event-date, .event-type {
    display: block;
    margin-left: 10px;
}

.event-date {
    margin-bottom: 2px;
}

.event-name-container {
    display: flex;
    align-items: baseline;
    margin-top: 5px;
    margin-bottom: 0px;
}

.event-name {
    margin-left: 10px;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    display: inline;
    width: fit-content;
}

.event-name:hover,
.event-name:active,
.event-name:focus {
    text-decoration: none;
}

.event-card.expanded .event-name {
    margin-left: 0;
    padding: 0;
    text-decoration: none;
    display: inline;
    width: fit-content;
}


@media (max-width: 767px) {
    .event-name {
        font-size: 16px;
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .event-name {
        font-size: 15.4px;
    }
    .event-info-bar {
        width: 100%;
        font-size: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        margin-bottom: 0px;
        flex-shrink: 0;
        padding-left: 10px;
    }
}



.event-card.expanded {
    align-items: stretch;
}

.event-card.expanded .event-image {
    height: 100%;
    min-height: 150px;
}

.event-card.expanded .event-content {
    flex: 1;
}

.event-card.expanded .event-name,
.event-card.expanded .event-description {
    width: 100%; /* Full width for expanded content */
    margin-left: 0;
    padding: 0 10px;
}



.event-description {
    display: none;
    width: 100%;
    font-size: 12px;
    color: var(--primary-color);
    margin-top: 10px;
    transition: opacity 0.3s ease-out;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    
}

.event-card.expanded .event-description {
    display: block;
    opacity: 1;
    max-height: 1000px; /* Adjust this value based on your content */
    margin-bottom: 0px;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    #event-list {
        padding: 0;
        width: 100vw;
        max-width: none;
        margin: 0px 0 0 0;
    }

    .event-card {
        margin: 0;
        width: 100%;
        border-radius: 0;
        min-height: 100px; /* Adjust minimum height for mobile */
    }

    .event-content {
        padding: 10px;
        flex: 1 1 calc(100% - 127px); /* Adjust for smaller image on mobile */
    }

    .event-info-bar {
        font-size: 14px;
        color: var(--text-color);
    }

    .event-date, .event-venue {
        margin-left: 0px;
    }

    .event-card.expanded .event-name,
    .event-card.expanded .event-description {
        width: fit-content;
        margin-left: 0;
        padding: 0 0px;
    }

    #event-filters {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000000000;
        padding: 0px 0 0 0; /* Reduced bottom padding */
        margin: 0;
      
    }

    .tab-container {
        padding: 0;
    }

    #event-filters button {
        padding: 10px 5px;
        height: 40px;
    }

    .autocomplete {
        position: fixed;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: var(--background-color-transparent);
        padding: 5px 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .autocomplete input {
        border-bottom: none;
        width: 100%;
        padding-right: 80px;
        padding-left: 15px;
        margin-top: 0;
    
    }

    .clear-button {
        right: 45px;
    }

    .mobile-dropdown-toggle {
        position: absolute;
        right: 10px;
        top: 57%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        font-size: 18px;
        color: var(--primary-color); /* Raisin black */
        cursor: pointer;
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        transition: transform 0.3s ease;
    }

    .mobile-dropdown-toggle.is-open {
        transform: translateY(-50%) rotate(180deg);
    }

    .mobile-dropdown-toggle i {
        transition: transform 0.3s ease;
    }


    .autocomplete-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 140px);
    }

    .event-name {
        width: auto; /* Change from 100% to auto */
        margin-left: 0;
    }

    .event-acts {
        margin-left: -10px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner p {
        margin-bottom: 10px;
        padding-right: 0;
    }

    .cookie-banner .button-container {
        width: 100%;
        justify-content: flex-start;
    }

    .cookie-banner button {
        margin-left: 0;
        margin-right: 10px;
        margin-top: 5px;
    }

    .toast-container {
        bottom: 20px;
        transform: translate(-50%, 100%);
    }

    .toast-container.show {
        transform: translate(-50%, 0);
    }

    .toast-container.under-input {
        bottom: auto;
        top: 100%;
        transform: translate(-50%, 0);
    }
    /* .event-image {
        width: 110px;
        height: 127px;
        aspect-ratio: 1 / 1;
    } */

    /* TO SQUARE IMAGES USE THIS */
    .event-image {
        width: 127px;
        height: 128px;
        aspect-ratio: 1 / 1;
        margin-left: 0; /* Remove left margin on mobile */
    }

    .event-card.expanded .event-image {
        width: 127px;
        min-height: 128px;
        right: 0; /* Ensure it's on the right side */
    }

    .redirect-hint {
        width: 20px;
        height: 20px;
        font-size: 10px;
        opacity: 1;
    }
}

@media (min-width: 768px) {
    body {
        font-size: 110%;
    }

    #event-list {
        max-width: 880px;
        padding: 0 10px;
    }

    .event-card {
        cursor: pointer;
        padding: 11px 0;
        border-radius: 0;
    }

    .event-info-bar {
        font-size: 13.2px;
    }

    .event-name {
        font-size: 15.4px;
    }

    .event-description {
        font-size: 13.2px;
    }

    .event-date, .event-venue {
        margin-left: 11px;
    }

    .event-name {
        margin-left: 10px;
    }
}

#event-info {
    display: none;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 15px;
    margin: 10px auto;
    max-width: 800px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#event-info p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--primary-color); /* Raisin black */
    margin: 0;
}

#close-info {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--error-color); /* Coquelicot */
}

#close-info:hover {
    color: var(--primary-color); /* Raisin black */
}

#event-filters {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--header-background); /* Blue with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    margin: 0;
    width: 100%;
}

.tab-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    padding: 0;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    /* background-color: #201E1F; */
    background-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.414); /* Add this line for elevation */

}

#event-filters button {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    background-color: transparent;
    border: none;
    color: var(--background-color); /* White */
    cursor: pointer;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s, background-color 0.3s;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; /* Match body font */
}

#event-filters button:hover {
    background-color: var(--tag-background); /* Green with opacity */
}

#event-filters button.active {
    color: var(--primary-color); /* Purple */
    background-color: var(--background-color-transparent); /* White with opacity */
}

#event-filters button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color); /* Purple */  
    transform: scaleX(0);
    transition: transform 0.3s;
}

#event-filters button.active::after {
    transform: scaleX(1);
}

@media (max-width: 767px) {
    #event-filters {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000000000;
        padding: 0;
        margin: 0;
    }

    .tab-container {
        padding: 0;
    }

    .event-tags {
        margin-left: 0px;
        margin-top: 10px;

    }

    #event-filters button {
        padding: 10px 5px;
        min-height: 50px;
    }
}

.autocomplete-wrapper .autocomplete-input {
    /* Align input with the bottom of the autocomplete wrapper */
    position: absolute;
    bottom: 0;
    padding-bottom: 0px;
    left: 25px;
    right: 0;
    min-height: 40px;
    padding-top: 0px; /* Adjust this value as needed */
}

.autocomplete {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0px 0;
    background-color: transparent;
    margin-top: 10px; /* Adjust this value based on the height of your #event-filters */
}

.autocomplete-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--background-color-transparent);
    padding: 4px 8px;
    min-height: 70px;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add this line for elevation */
}

.chip-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 340px;
    padding-bottom: 25px;
    align-items: center;
    flex-grow: 1;
}

@media (min-width: 768px) {
    .chip-container {
        max-width: 600px; /* Increased max-width for desktop */
    }
}

.chip {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 16px;
    margin: 2px;
    font-size: 14px;
    display: flex;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Add this line for the drop shadow */
}

/* Updated style for venue chips */
.chip.venue-chip {
    background-color: var(--venue-tab-filter-background); /* Blue with low opacity */
    color: var(--primary-color); /* Purple */
    font-weight: bold; /* Changed from bold to normal */
    border-radius: 2px; /* Reduced from 16px to 2px */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Add this line for the drop shadow */
    
}

.chip-remove {
    margin-left: 4px;
    cursor: pointer;
    font-weight: bold;
}

.autocomplete input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 8px;
    margin-top: 0px;
    font-size: 16px;
    color: var(--primary-color);
    min-width: 120px;
}

.autocomplete input:focus {
    outline: none;
}

.autocomplete-wrapper .search-icon {
    color: var(--primary-color);
    position: absolute;
    bottom: 12px;
    margin-right: 8px;
    padding-left: 3px;

}

.clear-button,
.mobile-dropdown-toggle {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001; /* Higher than the fixed header */
    padding: 0;
    margin: 0;
    background-color: var(--autocomplete-background); /* White with high opacity */
    list-style-type: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-height: 600px;
    overflow-y: auto;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add or update this line */
}

.autocomplete-result {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: var(--primary-color); /* Purple */
}

.autocomplete-result:hover {
    background-color: var(--accent-color); /* Green with opacity */
}

.autocomplete-result.selected {
    background-color: var(--accent-color); /* Blue with opacity */
}

@media (max-width: 768px) {
    .autocomplete-results {
        max-height: 50vh;
        bottom: auto;
    }
}

@media (max-width: 820px) {
    .autocomplete {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    .tab-container {
        justify-content: center;
        position: sticky;
    }

    #event-filters button {
        font-size: 12px;
        padding: 12px 8px;
        line-height: 1.4;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        flex: 1 1 auto;
        max-width: 50%;
    }
}

.date-filter {
    display: flex;
    align-items: center;
}

.date-filter label {
    margin-right: 10px;
}

#filter-date {
    margin-right: 10px;
}

.ripple {
    position: absolute;
    background: var(--autocomplete-background);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.no-events-message {
    background-color: var(--background-color-transparent); /* White with high opacity */
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 10px auto;
    max-width: 600px;
    color: var(--primary-color); /* Raisin black */
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.186); /* Add this line for elevation */
}

@media (min-width: 821px) {
    #event-filters {
        padding: 0;
    }
}

footer {
    color: var(--primary-color); /* Raisin black */
    max-width: 880px;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
    font-size: small;
}

a {
    color: var(--text-color); /*(252, 252, 252, 0.95); /* White with high opacity */
    ; /* Coquelicot */
}

@media (max-width: 768px) {
    .chat-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .chat-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

[v-cloak] {
    display: none;
}

@media (min-width: 768px) {
    #event-filters {
        max-width: none;
        padding: 0;
    }

    .tab-container {
        justify-content: space-between;
        padding: 0 20px;
    }

    #event-filters button {
        flex: 1 1 0;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .tab-container {
        justify-content: center;
    }

    #event-filters button {
        flex: 1 1 auto;
        max-width: 50%;
    }
}

.clear-button {
    position: absolute;
    right: 8px; /* Moved slightly to the left to accommodate the dropdown toggle */
    top: 30%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--error-color); /* Coquelicot */
    cursor: pointer;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.mobile-dropdown-toggle {
    position: absolute;
    right: 5px;
    top: 70%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--primary-color); /* Raisin black */
    cursor: pointer;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    
}

@media (min-width: 768px) {
    .clear-button {
        right: 15px;
    }
}

.month-divider {
    background-color: var(--primary-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--background-color-transparent);
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    border-radius: 0;
    padding-right: 18px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.395);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; /* Match body font */
}

@media (min-width: 767px) {
    .month-divider:hover {
        background-color: var(--blue-transparent);   /* Slightly darker purple on hover */
    }
}



.month-divider i {
    transition: transform 0.3s ease;
}

.month-divider.collapsed i {
    transform: rotate(-90deg);
}

.month-events {
    opacity: 1;
    overflow: hidden;
}

.month-events.collapsed {
    max-height: 0;
    opacity: 0;
}

.month-divider i {
    font-size: 12px;
}

@media (max-width: 767px) {
    .autocomplete input {
        padding-right: 70px; /* Increased to accommodate both buttons */
    }
}

/* Add these new styles for the ripple effect */
.ripple {
    position: absolute;
    background: var(--autocomplete-background);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.toast-container {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    width: 90%;
    max-width: 568px;
}

@media (min-width: 768px) {
    .toast-container {
        bottom: 20px;
        transform: translate(-50%, 100%);
    }

    .toast-container.show {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 767px) {
    .toast-container {
        bottom: 20px;
        transform: translate(-50%, 100%);
    }

    .toast-container.show {
        transform: translate(-50%, 0);
    }

    .toast-container.under-input {
        bottom: auto;
        top: 100%;
        transform: translate(-50%, 0);
    }

    .toast-container.under-input.show {
        transform: translate(-50%, 0);
    }
}

.toast {
    background-color: var(--background-color-transparent);
    color: var(--text-color);
    padding: 16px 24px;
    border-radius: 4px;
    min-width: 288px;
    max-width: 568px;
    box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-content {
    flex-grow: 1;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 0 0 0 16px;
    margin-left: 8px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 100%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, 100%);
    }
}

.toast-container.fade-in {
    animation: fadeInUp 0.3s ease-out forwards;
}

.toast-container.fade-out {
    animation: fadeOutDown 0.3s ease-in forwards;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color); /* Purple with opacity */
    color: var(--background-color-transparent); /* White */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cookie-banner p {
    margin: 0;
    padding-right: 20px;
    flex-grow: 1;
}

.cookie-banner .button-container {
    display: flex;
    justify-content: flex-end;
}

.cookie-banner button {
    background-color: var(--divider-color); /* Blue */
    color: var(--text-color-light); /* White */
    border: none;
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.cookie-banner button:hover {
    background-color: var(--success-color); /* Green */
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner p {
        margin-bottom: 10px;
        padding-right: 0;
    }

    .cookie-banner .button-container {
        width: 100%;
        justify-content: flex-start;
    }

    .cookie-banner button {
        margin-left: 0;
        margin-right: 10px;
        margin-top: 5px;
    }
}

.skeleton-loader {
    padding: 10px;
}

.skeleton-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.event-acts {
    margin-top: 10px;
    font-size: 12px;
    color: var(--primary-color);
    padding-left: 10px; /* Align with other content */
}

.event-card.expanded .event-acts {
    display: block;
}

.event-acts ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 5px;
    margin-bottom: 0;
}

.event-acts li {
    margin-bottom: 3px;
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    align-items: flex-start;
}

.event-acts li > span {
    margin-bottom: 2px; /* Space between name and Instagram link */
}

.event-acts a {
    color: var(--divider-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.event-acts a:hover {
    text-decoration: underline;
}

.event-acts a i {
    margin-right: 4px;
    font-size: 14px;
}

@media (min-width: 768px) {
    .event-acts {
        font-size: 13.2px;
    }

    .event-acts li {
        flex-direction: row; /* Horizontal layout on desktop */
        align-items: center;
    }

    .event-acts li > span {
        margin-right: 10px; /* Space between name and Instagram link on desktop */
        margin-bottom: 0; /* Remove bottom margin on desktop */
    }
}

/* Adjust the existing styles for event description and acts */
.event-description,
.event-acts {
    margin-top: 10px;
    padding-left: 10px;
    overflow: hidden;
}

.event-card.expanded .event-description,
.event-card.expanded .event-acts {
    display: block;
}

/* Add this to ensure immediate hiding when closing */
.event-card:not(.expanded) .event-description,
.event-card:not(.expanded) .event-acts {
    display: none;
}

@media (min-width: 768px) {
    .event-info-bar .venue {
        font-size: 13px;
        height: 26px;
        line-height: 26px;
    }
}

.venue-chip {
    background-color: var(--accent-color); /* Green */
    color: var(--primary-color); /* Purple */
}

.clear-filters-toast {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: rgba(32, 30, 31, 0); /* Raisin black with opacity */
    color: var(--accent-color); /* Antique white */
    padding: 10px 20px;
    border-radius:20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 40px); /* Adjust width to account for padding */
    max-width: 120px;
    min-height: 20px;
 
    z-index: 1000;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translateY(100%);
    opacity: 0;
}

.clear-filters-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.clear-filters-button {
    background-color: var(--divider-color); /* Blue */
    color: var(--text-color-light); /* White */
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    min-width: 100px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.457);
}

@media (min-width: 768px) {
    .clear-filters-button {
        min-width: 200px;
        min-height: 40px;
    }
}

.clear-filters-button:hover {
    background-color: var(--accent-color); /* Green */
}

@media (max-width: 767px) {
    .clear-filters-toast {
        border-radius: 3px;
    }
}

/* Add this new rule at the end of your styles.css file */
@media (min-width: 768px) {
    .event-card {
        height: auto !important; /* Force full height */
    }

    .event-card .event-description,
    .event-card .event-acts,
    .event-card .event-comments {
        display: block !important; /* Always show description, acts, and comments */
        opacity: 1 !important; /* Ensure visibility */
        max-height: none !important; /* Remove any height restrictions */
    }

    .event-image {
        height: 100% !important; /* Ensure image takes full height */
    }

    .event-card .event-content {
        cursor: default; /* Remove pointer cursor on desktop */
    }

    .event-card.expanded {
        height: auto !important; /* Ensure expanded cards are full height */
    }
}

.mobile-dropdown-toggle {
    position: absolute;
    right: 5px;
    top: 70%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--primary-color); /* Raisin black */
    cursor: pointer;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.is-open {
    transform: translateY(-50%) rotate(180deg);
}

/* Remove any media queries that hide the mobile-dropdown-toggle on desktop */

@media (min-width: 768px) {
    .mobile-dropdown-toggle {
        top: 50%; /* Adjust this value if needed to center the button vertically */
    }
}

/* Add these rules at the beginning of your styles.css file */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Modify the existing body rule to include these properties */
body {
    /* ... existing properties ... */
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 767px) {
    #app, main, #event-list, .event-card {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Ensure all content respects the viewport width */


/* Adjust the autocomplete dropdown for mobile */
@media (max-width: 767px) {
    .autocomplete-results {
        width: 100vw;
        left: 0;
        right: 0;
    }
}



@media (min-width: 767px) {
    .month-divider {
        border-radius: 8px;
        background-color: var(--primary-color-transparent);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0);
        font-size: larger;
        color: var(--primary-color); /* Add this line for elevation */
        
    }

    .clear-button {
        right: 2px;
        font-size: 30px;
    }

    .mobile-dropdown-toggle {
        top: 55px;
        right: 1px;
        font-size: 25px;
       
    }

    .autocomplete-wrapper {
        border-radius: 8px;
    }

    .event-card {
        border-radius: 10px;
    }

    .autocomplete-results {
        border-radius: 8px;
    }

}

@media (max-width: 766px) {
   .event-card {
    border-radius: 3px;
    margin-bottom: 10px;
    
   }

   .autocomplete-wrapper {
    border-radius: 3px;
   }

   .month-divider {
    background-color: var(--primary-color-transparent); /* Semi-transparent purple */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0);
    color: var(--primary-color);
    font-size: 20px;
    padding-top: 0px;
    padding-bottom: 0px;

  
   }

   .clear-filters-toast {
    border-radius: 3px;
   }
}

/* Update the existing styles for date filter chips */
.date-filter-chips {
    width: 100%;
    max-width: 760px;
    margin: 10px auto 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.chip-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap; /* Change this from wrap to nowrap */
    gap: 5px; /* Reduce the gap to allow for smaller screens */
}

.date-filter-chips .chip {
    flex: 1 1 0; /* Change this to allow chips to grow and shrink equally */
    min-width: 0; /* Remove the min-width */
    padding: 8px 4px; /* Reduce horizontal padding */
    background-color: var(--background-color-alt);
    color: var(--primary-color);
    border-radius: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflowing text */
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
    box-shadow: 0 1px 6px var(--shadow-color);
}

.date-filter-chips .chip:hover {
    transform: scale(1.05);
    font-weight: bold;
}

/* zzzzz */

/* Add this new rule for active chips */
.date-filter-chips .chip.active {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

/* Update the media query for mobile devices */
@media (max-width: 767px) {
    .date-filter-chips {
        padding: 0 5px;
    }

    .date-filter-chips .chip {
        font-size: 12px;
        padding: 6px 4px;
    }
}

/* Add a new media query for very small screens */
@media (max-width: 320px) {
    .date-filter-chips .chip {
        font-size: 10px;
        padding: 6px 2px;
    }
}

.date-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
  
   
}

.date-filter .date-filter-input {
    padding: 4px 4px;
    min-width: 40px;
    max-width: 170px;
    align-items: center;
    border: 1px solid var(--text-color-light);
    background-color: var(--background-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-color);
    margin-right: 10px;
    box-shadow: 0 1px 3px var(--shadow-color);
  
}

@media (min-width: 767px) {
    .date-filter input[type="date"] {
        padding: 5px 250px;
    }
} 

.date-filter button {
    padding: 5px 10px;
    background-color: var(--text-color-light);
    border: 1px solid var(--text-color-light);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.date-filter button:hover {
    transform: scale(1.05);
    
}