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

/* global styles */
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
body {
  /* font-family: system-ui, sans-serif; */
  font-weight: 400;

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  line-height: 1.6;
}
.h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
}
:root{
    --map-module-height: 80%;
    /* --map-module-width:  80%; */

    --bg-color: #1B1B1B;

    --event-popup-h4-color: #5d4b4b;
    --event-popup-p-color: #000000;

    --view-event-btn-color: #4a90e2;
    --view-event-btn-hoverColor: #357ac1;
    --view-event-btn-txtcolor: white;

    --event-card-bg-color: #fff;
    --event-card-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --event-card-hover-box-shadow:0 5px 15px rgba(0, 0, 0, 0.15);
    --event-card-highlight-color: #4a90e2;
    --event-card-highlight-box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);

    --event-image-border-color: #eee;
    --event-image-placeholder-bg-color: #f5f5f5;
    --event-image-placeholder-txt-color: #999;

    --event-name-font-size: 18px;
    --event-name-font-weight: 700;
    --event-name-txt-color: #1f1f1f;
    --event-name-line-height: 1.3;

    --artist-name-font-size: 16px;
    --artist-name-txt-color: #666;

    --genre-tag-bg-color: #e3f2fd;
    --genre-tag-txt-color: #1976d2;
    
    --subgenre-tag-bg-color: #e8f5e9;
    --subgenre-tag-txt-color: #388e3c;

    --venue-info-txt-color: #555;
    --venue-coordinates-txt-color: #777;

    --available-bg-color: #dff0d8;
    --available-txt-color: #3c763d;

    --unavailable-bg-color: #f2dede;
    --unavailable-txt-color: #a94442;

    --price-range-txt-color: #333;

}
body {
  color: black;
  /* margin: 0 2rem; */
  background-color: var(--bg-color);
  height: 100dvh;
  padding-left: 1em;
}
header {
  background-color: #333;
  color: white;
  padding: 20px;
  text-align: center;
}
.logo{
  width: 20em;
  margin-bottom: 3em;
  margin-top: 1em;
}
main {
  /* max-width: 1200px; */
  /* margin: 0 auto; */
  /* padding: 20px; */
  /* padding: 1rem; */
  position: relative;
  margin: 0;
  padding: 0;

}
main{
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-template-rows: 1fr;
  /* grid-template-rows: 1fr 6fr; */
  grid-gap: 2em;


  height: var(--map-module-height);
}
.infomation-block{
  display: flex;
  flex-direction: column;
  align-items: center;
}
main:nth-child(1){
  grid-area: 1 / 1 / 3 / 2; 
}
main:nth-child(2){
  grid-area: 2 / 2 / 3 / 3;
}
[hidden]{
  display: none;
}
@media screen and (max-width: 768px){
  .map-and-events{
    display: flex;
    flex-direction: column-reverse;
  }

  .map-and-events:nth-child(1){
    height: 50%;
  }
  
}
/*.layout and view styling */
header {
  padding: 1rem;
}
footer {
  padding: 1rem;
}
/* Event Detail Styles */
.event-detail-container {
    /* max-width: 1200px; */
    /* margin: 0 auto; */
  }
.back-button {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #c4c4c4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }
.back-button:hover {
    color: #0056b3;
  }
.back-arrow {
    margin-right: 0.5rem;
    font-size: 1.2rem;
  }
/* Event Header */
.event-header {
    margin-bottom: 2rem;
  }
.event-hero-image {
    /* height: 380px; */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
  }
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
/* Event Content Layout */
.event-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
@media (min-width: 768px) {
    .event-content {
      grid-template-columns: 2fr 1fr;
    }
  }
/* Main Information Section */
.event-main-info section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eaeaea;
  }
.event-main-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
  }
/* Date & Time Section */
/* Description Section */
.event-info {
    line-height: 1.6;
    color: #444;
  }
.event-info p {
    margin-bottom: 1rem;
  }
.event-notes {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    background-color: #fff9e6;
    border-left: 4px solid #ffd700;
  }
.event-notes h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
  }
/* Sidebar */
.event-sidebar section {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    margin-bottom: 1.5rem;
  }
.event-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
  }
/* Responsive adjustments */
@media (max-width: 767px) {
    .event-title {
      font-size: 1.75rem;
    }
    
    .event-artist {
      font-size: 1.25rem;
    }
    
    .event-hero-image {
      height: 220px;
    }
    
    .date-day {
      font-size: 2rem;
    }
    
    .venue-map {
      height: 200px;
    }
  }
/* No data placeholder */
.no-data {
    color: #6c757d;
    font-style: italic;
  }
/* /////////////// */
.event-detail-container{
  display: grid;
grid-template-columns: 2fr 4fr;
grid-template-rows: .5fr .15fr .5fr;
grid-column-gap: 3em;
grid-row-gap: 0px;

width: 100dvw;
padding: 1.5rem;



}
.event-image-main{
  grid-area: 1 / 1 / 2 / 2; 
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  width: 400px;
  /* height: 90dvh; */


  & img{
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 25px;
  }

  & a{
    background-color: transparent;
    border: 2px solid #c4c4c4;
    width: fit-content;
    padding: .6rem;
    border-radius: 11px;
  }
}
.event-header{
  grid-area: 1 / 2 / 2 / 3; 
  width: 900px;

  .event-title-section {
    padding: 0 0 1rem 0;
    border-bottom: 1px solid #c4c4c4;
  }
  
  .event-title {
    font-size: min(6em, 3.4vw);  
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #c4c4c4;
  }
  
  .event-artist {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #c4c4c4;
  }

  



  .event-date-time {
    display: flex;
    flex-direction: column;
  }
  
  .date-display {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-bottom: 1rem;
  }
  
  .date-day {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0056b3;
    border: 2px solid #c4c4c4;
    padding: 0.25rem 1rem;
    background-color: transparent;
    border-radius: 8px;
    margin-right: 1rem;
    min-width: 3.5rem;
    text-align: center;
  }
  
  .date-month-year {
    display: flex;
    flex-direction: column;
  }
  
  .date-month-year span:first-child {
    font-size: 1.25rem;
    font-weight: 600;
    color: #c4c4c4;
  }
  
  .date-month-year span:last-child {
    font-size: 1rem;
    color: #666;
  }
  
  .time-display {
    font-size: 2rem;
    color: #c4c4c4;
  }
  
  .time-tbd {
    font-style: italic;
    color: #777;
    margin-left: 0.5rem;
  }

  .event-description h3{
    color: red;
    font-weight: 800;
    font-size: 2em;
    text-transform: uppercase;
  }

  .event-info{
    color: white;
  }

}
.event-blocks{
  grid-area: 2 / 2 / 3 / 3;
  display: flex;
  flex-direction: row;
  gap: 3em;
  align-items: center;

  span, a{
    /* height: 50px; */
    padding: 1em;
    border-radius: 12px;
  }


  .genre-tag, .subgenre-tag {
    font-size: 0.875rem;
    font-weight: 500;
  }
  
  .genre-tag {
    background-color: #e9f0ff;
    color: #1a56db;
    margin-right: 2em;
  }
  
  .subgenre-tag {
    background-color: #f0f9ff;
    color: #0369a1;
  }


  .ticket-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: red;
    color: white;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 3em;
    font-weight: 500;
    transition: background-color 0.2s ease;
  }
  
  .ticket-button:hover {
    background-color: rgb(122, 12, 12);
  }
  
}
.event-venue-block{
  grid-area: 2 / 1 / 3 / 2;

  display: flex;
  flex-direction: row;
  
  justify-content: start;
  align-items: flex-end;
  gap: 2em;

  
  .venue-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #c4c4c4;
  }
  
  .venue-address {
    font-style: normal;
    line-height: 1.5;
    color: #c4c4c4;
    margin-bottom: 1rem;
  }
  
  .venue-link, .artist-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .venue-link:hover, .artist-link:hover {
    background-color: #ced4da;
    color: #212529;
  }
  
  .venue-map {
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1rem;
    width: 80%;
    overflow: hidden !important;
  }
  
}
/* Battery status */
.battery-status-container {
  padding: 10px 15px;
  margin: 15px 0;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1em;/* Responsive font size that scales with viewport width */
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
/* Initially hidden until JavaScript populates it */
.battery-status-container:empty {
  display: none;
}
/* Good battery status - green */
.battery-status-container.battery-good {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
/* Charging battery status - yellow/orange */
.battery-status-container.battery-charging {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}
/* Low battery status - red */
.battery-status-container.battery-low {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
/* Battery API unavailable - gray */
.battery-status-container.battery-unavailable {
  background-color: #e9ecef;
  color: #6c757d;
  border: 1px solid #ced4da;
  font-size: 1em;
}
/* component styling */
.event-card {
  width: 100%;
  max-width: 320px;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s ease;
  color: #c4c4c4;
  display: flex;
  
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
.event-image-container {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e0e0;
  color: #666;
}
.event-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.event-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #c4c4c4;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-distance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* color: #4a4a4a; */
  font-size: 0.875rem;
}
.event-distance svg {
  flex-shrink: 0;
  color: #c4c4c4;
}
.venue-coordinates {
  display: none; /* Hide coordinates visually but keep for JS access */
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .event-card {
    max-width: 100%;
  }
}
/* Events Vertical CSS */
/* Events List Container */
.events-list-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem;
  font-family: 'Inter', sans-serif;
  height: 60dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
/* Event Count Display */
.events-count-display {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background-color: transparent;
  border-radius: 8px;
  text-align: center;
  flex-shrink: 0;
  color: #c4c4c4;
}
.events-count-display p {
  margin: 0;
  font-weight: 600;
  font-size: 1.3rem;
}
/* Loading Indicator */
.events-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  flex-shrink: 0;
}
.events-loading.hidden {
  display: none;
}
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #333;
  animation: spin 1s linear infinite;
  margin-bottom: 0.5rem;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Scrolling List */
.events-scrolling-list {
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding-right: 0.25rem;
  margin-bottom: 0.5rem;
}
.event-item {
  width: 100%;
}
/* No Events State */
.no-events {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f8f8f8;
  border-radius: 8px;
}
.no-events p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}
/* Error Message */
.error-message {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  margin: 0;
}
.error-message p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}
/* Hide venue coordinates */
.venue-coordinates {
  display: none;
}
/* Scrollbar Styles */
.events-scrolling-list::-webkit-scrollbar {
  width: 6px;
}
.events-scrolling-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 3px;
}
.events-scrolling-list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
/* Highlight Animation */
@keyframes highlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(29, 185, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0); }
}
.highlight-pulse {
  animation: highlightPulse 1.5s ease-out;
}
/* Map Legend Styles */
.event-type-legend {
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.event-type-legend h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 14px;
}
.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
}
/* Map Marker Styles */
.event-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-marker-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 2px white;
}
.center-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}
.center-marker-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #3388ff;
  border: 3px solid white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
/* Map Marker Highlight Animation */
.marker-highlight {
  animation: pulseOpacity 2s ease-out;
}
@keyframes pulseOpacity {
  0% { opacity: 0.7; }
  100% { opacity: 0; }
}
/* Event Popup Styles */
.event-popup {
  padding: 5px;
}
.event-popup h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}
.event-popup p {
  margin: 5px 0;
}
.view-event-btn {
  display: inline-block;
  background: #1a1a1a;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 10px;
}
.view-event-btn:hover {
  background: #333;
}
/* Responsive adjustments */
@media (max-width: 480px) {
  .events-list-container {
    padding: 0.5rem;
  }
}
/* Custom Select Component Styles */
.custom-select-container {
  position: relative;
  width: 100%;
  margin: 0 auto 2rem;
}
.location-search-form {
  width: 100%;
}
.custom-inputs-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.custom-select-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 0.75rem;
  width: 100%;
}
.location-search-input {
  width: 100%;
  padding: 0.75rem;
  background-color: #292929;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  color: #c4c4c4;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
}
.geolocation-button {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #fafafa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}
.geolocation-button:hover {
  color: #003d82;
}
.geolocation-button[data-loading="true"] {
  opacity: 0.6;
  pointer-events: none;
}
.geolocation-button[data-loading="true"]::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 86, 179, 0.2);
  border-top-color: #0056b3;
  border-radius: 50%;
  position: absolute;
  animation: spin 1s linear infinite;
}
#location-options{
  width: 100px;
  left: 0;
}
/* 
option {
  background-color: #292929;
  color: #c4c4c4;
  padding: 8px;
  font-size: 1rem;
}

/* Some browsers allow styling this way */
datalist {
  background-color: #292929;
  border: 1px solid #ccc;
  border-radius: 0 0 10px 10px;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  max-height: 300px;
  overflow-y: auto;
}
/* Radius Control Section */
.radius-control {
  display: flex;
  align-items: center;
  background-color: transparent;
  width: 12em;
  border: 2px solid #c4c4c4;
  border-radius: 11px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-width: fit-content;
  max-height: 60px;
}
.radius-control label {
  font-size: 0.875rem;
  color: #c4c4c4;
  white-space: nowrap;
}
.radius-input {
  width: 60px;
  padding: 0.375rem 0.5rem;
  /* border: 1px solid #ccc; */
  border-radius: 4px;
  font-size: 0.875rem;
  text-align: center;
  background-color: #292929;
  color: #c4c4c4;
}
/* Enhanced Dropdown Menu - DISABLED */
.custom-select-dropdown {
  display: none !important;
}
/* Hide dropdown even when JavaScript tries to show it */
.custom-select-dropdown[data-display-block] {
  display: none !important;
}
.filter-options{
  display: flex;
  flex-direction: row;
  gap: 1em;
}
.map-style-toggle {
  background-color: transparent;
  width: 12em;
  height: 60px;
  padding: 0.75rem;
  border: 2px solid #c4c4c4;
  border-radius: 11px;
  /* padding: 8px 12px; */
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4);
  opacity: 1 !important;
  pointer-events: auto !important;
  display: block !important;
  color: #c4c4c4;
}
.map-style-toggle:hover {
  background-color: #f4f4f4;
}
/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .custom-inputs-section {
    flex-direction: column;
  }
  
  .radius-control {
    width: 100%;
    justify-content: space-between;
  }
}
/* Map Component Styles */
.map-component {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;

  border-radius: 25px 0 0 25px;
}
.leaflet-map-container {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  z-index: 1;
  background: #f8f8f8;
}
/* Fix for Leaflet tile display issues */
.leaflet-tile-container {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.leaflet-tile {
  visibility: inherit !important;
  position: absolute !important;
}
/* Fix black background issue */
.leaflet-container {
  background: #f8f8f8 !important;
}
/* Ensure the layers control appears above other elements */
.leaflet-control-layers {
  z-index: 1000 !important;
}
/* Fix for tile edges */
.leaflet-tile-pane {
  pointer-events: none;
}
/* Fix for tile loading */
.leaflet-tile-loaded {
  visibility: inherit !important;
}
/* Loading placeholder */
.loading-placeholder {
  color: #666;
  font-size: 14px;
}
/* Map popup styles */
.leaflet-popup {
  z-index: 2000 !important;
}
.leaflet-popup-content-wrapper {
  padding: 5px 8px;
}
.leaflet-popup-content {
  margin: 5px !important;
  font-weight: bold;
  text-align: center;
  min-width: 50px;
}
.leaflet-popup-tip-container {
  visibility: visible !important;
}
/* Ensure popups are visible and interactive */
.leaflet-popup-pane {
  z-index: 1500 !important;
  pointer-events: auto !important;
}
/* Fix for Firefox */
@-moz-document url-prefix() {
  .leaflet-tile-container {
    filter: none !important;
  }
}
/* Fix for Safari */
@media not all and (min-resolution:.001dpcm) {
  @supports (-webkit-appearance:none) {
    .leaflet-tile-container {
      -webkit-transform: translateZ(0);
      -webkit-backface-visibility: hidden;
    }
  }
}
/* Fix for IE11 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .leaflet-tile-container {
    transform: none !important;
  }
}
/* Event Marker and Popup Styles */
/* Event marker styles */
.event-marker {
  background: transparent;
  border: none;
}
.event-marker-inner {
  width: 20px;
  height: 20px;
  background-color: #ff5500;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}
.event-marker-inner:hover {
  transform: scale(1.2);
  cursor: pointer;
}
/* Center marker styling */
.center-marker {
  background: transparent;
  border: none;
}
.center-marker-inner {
  width: 24px;
  height: 24px;
  background-color: #2196f3;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}
/* Event popup styles */
.event-popup-container {
  margin-bottom: 10px;
}
.event-popup {
  padding: 8px;
}
.event-popup h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  line-height: 1.3;
}
.event-popup p {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.4;
}
.ticket-status-popup {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin: 8px 0;
  font-weight: 500;
}
.ticket-status-popup.available {
  background-color: #4caf50;
  color: white;
}
.ticket-status-popup.unavailable {
  background-color: #f44336;
  color: white;
}
.view-event-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  background-color: #2196f3;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  text-align: center;
}
.view-event-btn:hover {
  background-color: #0d8bf2;
}
/* Highlighted event card */
.event-card.highlighted {
  border: 2px solid #ff5500 !important;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.5) !important;
  transition: all 0.3s ease;
}
/* Fix for leaflet popups */
.leaflet-popup-content-wrapper {
  max-width: 300px;
  min-width: 200px;
}
.leaflet-popup-content {
  margin: 10px 12px;
  line-height: 1.4;
}
/* Ensure popup close button is visible */
.leaflet-container a.leaflet-popup-close-button {
  top: 3px;
  right: 3px;
  padding: 4px;
  color: #999;
  font-weight: bold;
}
.leaflet-container a.leaflet-popup-close-button:hover {
  color: #333;
}
/* Event Markers and Map Styles */
/* Basic marker styles */
.event-marker-inner {
  width: 100%;
  height: 100%;
  background-color: #607D8B; /* Default color */
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* Center marker */
.center-marker-inner {
  width: 100%;
  height: 100%;
  background-color: #FF5722; /* Orange */
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}
/* Hover effect for markers */
.event-marker-inner:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}
/* Popup styles */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}
.event-popup {
  padding: 12px;
  max-width: 250px;
}
.event-popup h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #333;
}
.event-popup p {
  margin: 5px 0;
  font-size: 14px;
}
.event-popup .event-type {
  font-weight: bold;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.05);
}
.ticket-status-popup {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}
.ticket-status-popup.available {
  background-color: #4CAF50;
  color: white;
}
.ticket-status-popup.unavailable {
  background-color: #F44336;
  color: white;
}
.view-event-btn {
  display: block;
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #1976D2;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.view-event-btn:hover {
  background-color: #1565C0;
}
/* Legend styles */
.event-type-legend {
  background-color: white;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 200px;
}
.event-type-legend h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}
.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.legend-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.legend-text {
  font-size: 12px;
}
/* Marker highlight animation */
.marker-highlight {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.2);
  }
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
}
/* Highlighted card styles */
.event-card.highlighted {
  box-shadow: 0 0 0 3px #1976D2;
  position: relative;
  z-index: 10;
}
/* Card expansion styles */
.event-card {
  transition: all 0.3s ease;
  cursor: pointer;
}
.event-card.expanded {
  max-height: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.event-card .event-details {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.event-card:not(.expanded) .event-details {
  max-height: 150px;
  overflow: hidden;
}
/* Distance display */
.distance {
  display: inline-block;
  padding: 2px 6px;
  background-color: #F5F5F5;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 8px;
}
/* Events Overview Styles */
.events-overview {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
}
.events-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.events-count {
  font-size: 18px;
  font-weight: 600;
}
.events-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.events-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #4a90e2;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.hidden {
  display: none;
}
.no-events,
.error-message {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  color: #666;
}
/* Map marker styles */
.center-marker-inner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #4a90e2;
  border: 3px solid white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  position: relative;
}
.center-marker-inner:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: white;
}
/* Event Map Markers */
.event-marker {
  background: transparent;
  border: none;
}
/* Event Image */
.event-image-container {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 0.3rem;
  overflow: hidden;
}
.event-marker-inner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #e91e63;
  border: 2px solid white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
/* Event popup styles */
.event-popup {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 5px;
  max-width: 250px;

  background-color: white;
  border-radius: 5px;
}
.event-popup h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--event-popup-h4-color);
}
.event-popup p {
  margin: 5px 0;
  font-size: 14px;
  color: var(--event-popup-p-color);
}
.ticket-status-popup {
  display: inline-block;
  margin: 8px 0;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}
.view-event-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px 10px;
  background-color: var(--view-event-btn-color);
  color: var(--view-event-btn-txtcolor);
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}
.view-event-btn:hover {
  background-color: var(--view-event-btn-hoverColor);
}
@media screen and (max-width: 768px) {
  .events-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .events-filter {
    width: 100%;
    flex-wrap: wrap;
  }

  .events-list {
    grid-template-columns: 1fr;
  }
}
.map-popup {
    display: flex;
    flex-direction: column;
    min-width: 250px;
    max-width: 300px;
  }
.map-popup-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
  }
.map-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
.map-popup-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
  }
.map-popup-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
  }
.map-popup-venue,
  .map-popup-distance,
  .map-popup-genre {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
  }
.map-popup-venue svg,
  .map-popup-distance svg,
  .map-popup-genre svg {
    margin-right: 5px;
    flex-shrink: 0;
  }
.map-popup-button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 5px;
    transition: background-color 0.2s;
  }
.map-popup-button:hover {
    background-color: #333;
  }
.leaflet-popup {
    z-index: 2000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
  }
/* Fix popup content visibility */
.leaflet-popup-content-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    background: white !important;
    color: #333 !important;
  }
/* Fix popup tip/arrow */
.leaflet-popup-tip-container,
  .leaflet-popup-tip {
    visibility: visible !important;
    opacity: 1 !important;
  }
/* Ensure map container doesn't clip popups */
.leaflet-map-container,
  .leaflet-container,
  .leaflet-pane {
    overflow: visible !important;
  }
/* Increase z-index of marker pane to be above other map elements */
.leaflet-marker-pane {
    z-index: 650 !important;
  }
/* Make popup pane even higher */
.leaflet-popup-pane {
    z-index: 700 !important;
  }
