body {
    padding: 0;
    margin: 0;
  }
  html,
  body,
  #map {
    height: 100%;
    width: 100vw;
  }

  /* Search container styles */
  .search-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
  }

  #usernameSearch {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  #usernameSearch::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }

  #usernameSearch:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.9);
  }

  /* Styling for permanent attendee count tooltips */
  .attendee-count-tooltip {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .attendee-count-tooltip::before {
    display: none;
  }

  /* Styling for scrollable fan lists in popups */
  .fan-list-container {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
  }

  /* Custom scrollbar for webkit browsers */
  .fan-list-container::-webkit-scrollbar {
    width: 6px;
  }

  .fan-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  .fan-list-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
  }

  .fan-list-container::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

  /* Navigation controls - Desktop */
  .navigation-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    max-width: 90vw;
    font-family: "Arial MT Pro", sans-serif;
  }

  .nav-button {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s;
    flex-shrink: 0;
  }

  .nav-button:hover {
    background: rgba(0, 0, 0, 0.9);
  }

  .nav-button:disabled {
    background: rgba(0, 0, 0, 0.4);
    cursor: not-allowed;
  }

  .venue-info {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin: 0 15px;
    min-width: 0;
  }

  /* Mobile layout */
  @media (max-width: 768px) {
    .navigation-controls {
      bottom: 20px;
      top: auto;
      left: 50%;
      right: auto;
      transform: translateX(-50%);
      justify-content: space-between;
      padding: 0;
      pointer-events: none;
      touch-action: manipulation;
      width: calc(100vw - 30px);
      max-width: none;
      font-family: "Arial MT Pro", sans-serif;
    }

    .nav-button {
      pointer-events: auto;
      width: 60px;
      height: 60px;
      font-size: 24px;
    }

    .venue-info {
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      max-width: calc(100vw - 140px);
      pointer-events: auto;
      margin: 0;
    }

    /* Mobile logo styles */
    .logo-container {
      top: 15px;
      right: 15px;
    }

    .logo-icon {
      width: 26px;
    }
  }

  /* Small mobile screens */
  @media (max-width: 480px) {
    .nav-button {
      width: 55px;
      height: 55px;
      font-size: 22px;
    }

    .navigation-controls {
      padding: 0 10px;
      touch-action: manipulation;
    }

    .venue-info {
      font-size: 11px;
      padding: 6px 12px;
      max-width: calc(100vw - 20px);
      bottom: 15px;
    }
  }

  /* Sidecar panel styles */
  .sidecar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    z-index: 2000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    overflow-y: auto;
    background-image: url("/img/tour2025-bg.webp");
    background-size: cover;
  }

  .sidecar.open {
    left: 0;
  }

  .sidecar-header {
    padding: 20px;
    background: #000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    font-family: "Arial MT Pro", sans-serif;
    font-weight: 800;
  }

  .sidecar-header h3 {
    margin: 0;
    font-size: 18px;
  }

  .close-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
  }

  .close-button:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .sidecar-content {
    padding: 20px;
  }

  .sidecar-content h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color:rgb(255, 76, 71);
    font-family: "Arial MT Pro", sans-serif;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(255, 6, 0);
    font-weight: 800;
  }

  .sidecar-content p {
    margin: 0 0 15px 0;
    color:rgb(255, 76, 71);
    line-height: 1.4;
    font-family: "Arial MT Pro", sans-serif;
    font-weight: 600;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(255, 6, 0);
  }

  #sidecarAttendeeCount {
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    color:rgb(255, 76, 71);    
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(255, 6, 0);
    font-family: "Arial MT Pro", sans-serif;
    font-weight: 800;
  }

  #sidecarAttendeeCount a {
    color:rgb(255, 76, 71);
    text-decoration: none;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(255, 6, 0);
  }

  #sidecarSetlist {
    margin: 20px 0;
  }

  .setlist-container h5 {
    margin: 0 0 10px 0;
    color: rgb(255, 76, 71);
    font-size: 16px;
    font-family: "Arial MT Pro", sans-serif;
    font-weight: 800;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(255, 6, 0);
  }

  .setlist-container ol {
    margin: 0;
    padding-left: 20px;
    list-style-type: decimal;
    color: rgb(255, 76, 71);
    font-family: "Arial MT Pro", sans-serif;
    font-weight: 600;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(255, 6, 0);
  }

  .setlist-container li {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.3;
  }

  .setlist-container li a {
    color: rgb(255, 76, 71);
    text-decoration: none;
  }

  .setlist-tbd {
    color: rgb(255, 76, 71);
    font-family: "Arial MT Pro", sans-serif;
    font-weight: 600;
    font-style: italic;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(255, 6, 0);
    font-size: 14px;
  }

  #sidecarFanList {
    margin-top: -10px;
  }

  .fan-list-sidecar {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    font-family: "Arial MT Pro", sans-serif;
  }

  .fan-list-sidecar ul {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 20px;
  }

  .fan-list-sidecar li {
    margin: 0 0 5px 0;
    color:rgb(255, 76, 71);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(255, 6, 0);
    font-size: 13px;
    font-weight: 600;
    break-inside: avoid;
  }

  /* Custom scrollbar for sidecar fan list */
  .fan-list-sidecar::-webkit-scrollbar {
    width: 8px;
  }

  .fan-list-sidecar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  .fan-list-sidecar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
  }

  .fan-list-sidecar::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

  /* Mobile styles for sidecar */
  @media (max-width: 768px) {
    .sidecar {
      left: -100vw;
      width: 100vw;
      backdrop-filter: blur(10px);
      background-image: url("/img/tour2025-bg.webp");
      background-size: cover;
    }

    .sidecar.open {
      left: 0;
    }

    .sidecar-content {
      padding: 15px;
    }

    .fan-list-sidecar ul {
      columns: 1;
    }
  }

  /* Photo Gallery Button Styles */
  #sidecarPhotoGallery {
    margin: 15px 0;
  }

  .photo-gallery-button {
    background: rgba(255, 76, 71, 0.9);
    color: white;
    border: 2px solid rgb(255, 6, 0);
    border-radius: 8px;
    padding: 12px 20px;
    font-family: "Arial MT Pro", sans-serif;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .photo-gallery-button:hover {
    background: rgba(255, 76, 71, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }

  .photo-gallery-button:disabled {
    background: rgba(128, 128, 128, 0.5);
    border-color: rgba(128, 128, 128, 0.5);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .photo-gallery-button-icon {
    font-size: 16px;
  }

  /* Photo Gallery Modal Styles */
  .photo-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .photo-gallery-modal.open {
    opacity: 1;
    visibility: visible;
  }

  .photo-gallery-content {
    background: #000;
    border: 2px solid rgb(255, 6, 0);
    border-radius: 12px;
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .photo-gallery-header {
    padding: 20px;
    background: #000;
    color: rgb(255, 76, 71);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgb(255, 6, 0);
    font-family: "Arial MT Pro", sans-serif;
    font-weight: 800;
  }

  .photo-gallery-header h3 {
    margin: 0;
    font-size: 18px;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(255, 6, 0);
  }

  .photo-gallery-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #111;
  }

  .photo-gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
  }

  .photo-gallery-item {
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }

  .photo-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 76, 71, 0.3);
    border-color: rgb(255, 76, 71);
  }

  .photo-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }

  .photo-gallery-item.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgb(255, 76, 71);
    font-family: "Arial MT Pro", sans-serif;
    font-weight: 600;
  }

  .photo-gallery-item.error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #888;
    font-family: "Arial MT Pro", sans-serif;
    font-weight: 600;
  }

  .photo-gallery-no-images {
    text-align: center;
    color: #888;
    font-family: "Arial MT Pro", sans-serif;
    font-weight: 600;
    padding: 40px;
    font-size: 16px;
  }

  /* Fullscreen image viewer */
  .photo-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .photo-fullscreen.open {
    opacity: 1;
    visibility: visible;
  }

  .photo-fullscreen img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  }

  .photo-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
  }

  .photo-fullscreen-close:hover {
    background: rgba(255, 76, 71, 0.8);
  }

  /* Fullscreen navigation arrows */
  .photo-fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 4001;
  }

  .photo-fullscreen-nav:hover {
    background: rgba(255, 76, 71, 0.8);
    transform: translateY(-50%) scale(1.1);
  }

  .photo-fullscreen-nav:disabled {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: translateY(-50%);
  }

  .photo-fullscreen-nav.prev {
    left: 20px;
  }

  .photo-fullscreen-nav.next {
    right: 20px;
  }

  .photo-fullscreen-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: "Arial MT Pro", sans-serif;
    font-weight: 600;
    font-size: 14px;
  }

  /* Mobile styles for photo gallery */
  @media (max-width: 768px) {
    .photo-gallery-content {
      width: 95vw;
      height: 95vh;
      border-radius: 8px;
    }

    .photo-gallery-header {
      padding: 15px;
    }

    .photo-gallery-header h3 {
      font-size: 16px;
    }

    .photo-gallery-body {
      padding: 15px;
    }

    .photo-gallery-images {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 15px;
    }

    .photo-gallery-item img {
      height: 150px;
    }

    .photo-gallery-item.loading,
    .photo-gallery-item.error {
      height: 150px;
      font-size: 14px;
    }

    .photo-fullscreen-close {
      width: 40px;
      height: 40px;
      font-size: 20px;
      top: 15px;
      right: 15px;
    }

    .photo-fullscreen-nav {
      width: 50px;
      height: 50px;
      font-size: 20px;
    }

    .photo-fullscreen-nav.prev {
      left: 15px;
    }

    .photo-fullscreen-nav.next {
      right: 15px;
    }

    .photo-fullscreen-counter {
      bottom: 15px;
      font-size: 12px;
      padding: 6px 12px;
    }
  }

  /* Logo in top right corner */
  .logo-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    /* pointer-events: none; */
  }

  .logo-icon {
    width: 26px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
  }

  .logo-icon:hover {
    transform: scale(1.1);
  }
  
  
  .tour-progression-controls {
    position: absolute;
    top: 80px;
    left: 10px;
    z-index: 1000;
    background: #ccc;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    box-shadow: none;
  }
  
  .tour-progression-btn {
    display: block;
    width: 30px;
    height: 30px;
    background: white;
    color: #333;
    border: none;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.05s;
    line-height: 30px;
    text-align: center;
  }

  .tour-progression-btn:first-child {
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
  }

  .tour-progression-btn:last-child {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    border-bottom: none;
  }
  
  .tour-progression-btn:hover {
    background: #f4f4f4;
  }
  
  .tour-progression-btn:disabled {
    background: #f4f4f4;
    color: #bbb;
    cursor: not-allowed;
  }
    
  .tour-progression-current-marker {
    border: 5px solid rgba(255, 76, 71, 1.0);
    border-radius: 50%;    
    animation: currentMarkerPulse 0.75s ease-in-out infinite;
  }

  .tour-progression-past-marker {
    filter: saturate(0.2);
  }
  
  @keyframes currentMarkerPulse {
    0% { border-color: rgba(255, 76, 71, 1.0); }
    25% { border-color: rgba(255, 76, 71, 0.75); }
    50% { border-color: rgba(255, 76, 71, 0.5); }
    75% { border-color: rgba(255, 76, 71, 0.75); }
    100% { border-color: rgba(255, 76, 71, 1.0); }
  }

