@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* Custom CSS variables for dark theme */
    --primary-color: #ffffff;
    --secondary-color: #2c2c2c;
    --background-color: #000000;
    --hover-background-color: #333333;
    --font-color: #e0e0e0;
    --font-secondary-color: #bbbbbb;
    --button-color: #a2845e; /* Gold color */
    --search-bar-background: #2c2c2c;;
}

/* Basic layout for the page */
body.event-page-body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    color: var(--font-color);
    padding-top: 80px; 
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    padding: 20px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
}

/* Page Title */
h1.event-page-title {
    text-align: center;
    padding: 20px;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 80px;
}

/* Search bar */
.search-bar-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    z-index: 500;
}

.search-bar {
    position: relative;
    width: 50%;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    font-size: 1em;
    outline: none;
    background-color: var(--search-bar-background);
    color: var(--font-color);
}

/* Auto-suggest dropdown */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    color: var(--font-color);
}

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

/* Layout for the main container */
.container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

/* Sidebar with enhanced styles */
.sidebar {
    width: 20%;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 80px; /* Sticky behavior */
    height: calc(100vh - 100px); /* Full height minus navbar padding */
    overflow-y: auto; /* Scrollable content */
}

/* Sidebar section headers */
.sidebar h2 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--button-color); /* Adds an accent line */
    padding-bottom: 10px;
}

/* List items with icons */
.sports-category li,
.event-tags li {
    padding: 10px 15px;
    font-size: 1.2em;
    cursor: pointer;
    color: var(--font-color);
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    border-radius: 10px; /* Rounded effect */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.sports-category li:hover,
.event-tags li:hover {
    background-color: var(--hover-background-color);
    transform: translateX(5px); /* Subtle movement effect */
}

/* Active category indicator */
.sports-category li.active,
.event-tags li.active {
    background-color: var(--button-color);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Icons for list items */
.sports-category li::before,
.event-tags li::before {
    display: inline-block;
    width: 20px;
    height: 20px;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--button-color);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background-color: var(--secondary-color);
}
/* Filter tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.filter-tag {
    background-color: var(--button-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.filter-tag span {
    margin-left: 5px;
    cursor: pointer;
}

/* Main content area */
.main-content {
    width: 70%;
    padding-right: 40px;
}

.event-list {
    margin-bottom: 30px;
}

/* Event Item Styling */
.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color); /* Gray background */
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    width: 100%; /* Full width of the container */
    flex-wrap: wrap; /* Allows wrapping on small screens */
}


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

.event-item h3 {
    margin: 0;
    font-size: 1.5em;
    color: var(--primary-color);
}

.event-item p {
    margin: 5px 0;
    color: var(--font-secondary-color);
}



.event-page-buy-button {
    flex: 1 1 15%; /* Button takes 10% of the width */
    max-width: 15%;
    align-self: center; /* Center vertically within the event-item */
    padding: 12px 24px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(90deg, #a2845e, #896b4a); /* Gradient background */
    border: none;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    cursor: pointer;
    transition: all 0.3s ease;
}


.event-page-buy-button:hover {
    background: linear-gradient(90deg, #896b4a, #70543c); /* Darker gradient on hover */
    transform: scale(1.05); /* Slight scale effect */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
    text-decoration: none;
}




/* Map container */
#map {
    height: 500px;
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    border: 1px solid #444;
}
.event-image-container {
    flex: 2 1 32%; /* Image takes 40% of the width */
    max-width: 32%; /* Ensure it doesn't exceed 40% */
    margin-right: 20px;
    overflow: hidden;
    border-radius: 10px;
}



.event-image-container img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
    border-radius: 10px;
    max-width: 100%;
}

.event-item:hover .event-image-container {
    height: auto;
    opacity: 1;
}
.event-details {
    flex: 3 1 30%; /* Details take 50% of the width */
    max-width: 30%; /* Ensure it doesn't exceed 50% */
    padding: 10px;
}
/* Bubble for tickets */
.ticket-bubble {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: #a2845e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.ticket-bubble:hover {
    width: 100px;
    background-color: #A3725B;
}

.tooltip-text {
    color: #fff;
    font-size: 0.9em;
    font-weight: bold;
    display: none;
    white-space: nowrap;
}

.ticket-bubble:hover .tooltip-text {
    display: block;
    margin-left: 10px;
}