* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Exo 2', sans-serif;
  background: #1a1a1a;
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Crect x="0" y="0" width="100" height="100" fill="none"/%3E%3Cpath d="M0 50h100M50 0v100" stroke="%23333333" stroke-width="2" stroke-dasharray="4"/%3E%3C/svg%3E') repeat;
  opacity: 0.3;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(40, 40, 40, 0.8), rgba(20, 20, 20, 0.9));
  z-index: -1;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-thumb {
  background: #606060;
  border-radius: 6px;
  border: 2px solid #1a1a1a;
}

body::-webkit-scrollbar-track {
  background: #2a2a2a;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: rgba(30, 30, 30, 0.9);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 1rem;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
  margin-left: 3rem;
}

.logo-icon {
  font-size: 1.8rem;
  color: #a0a0a0;
  transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
  transform: scale(1.2);
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background: #404040;
  border-color: #606060;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.nav-button i {
  font-size: 1.2rem;
}

.signup-btn {
  background: #606060;
  border: none;
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signup-btn:hover {
  background: #808080;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.user-container {
  position: relative;
}

.user-icon {
  cursor: pointer;
  font-size: 1.8rem;
  color: #a0a0a0;
  transition: color 0.3s ease;
}

.user-icon:hover {
  color: #e0e0e0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(30, 30, 30, 0.95);
  min-width: 160px;
  border-radius: 10px;
  right: -70px;
  top: 2.2rem;
  z-index: 1000;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content button {
  color: #e0e0e0;
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.dropdown-content button:hover {
  background: #404040;
  color: #ffffff;
}

.user-icon:hover .dropdown-content {
  display: block;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
}

.hamburger:hover {
  color: #a0a0a0;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a, #404040);
  backdrop-filter: blur(10px);
  transition: left 0.4s ease;
  z-index: 1002;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"%3E%3Cpath d="M0 5h100" stroke="%23ffffff" stroke-width="1" stroke-dasharray="5"/%3E%3C/svg%3E') repeat-x;
  opacity: 0.2;
}

.sidebar.active {
  left: 0;
}

.sidebar-content {
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  pointer-events: auto;
  z-index: 1003;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.sidebar-logo i {
  font-size: 1.6rem;
  color: #a0a0a0;
}

.sidebar-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e0e0e0;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  max-width: 260px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
  pointer-events: auto;
  z-index: 1004;
}

.sidebar-button:hover {
  background: #404040;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sidebar-button i {
  font-size: 1.2rem;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #606060;
  border: none;
  color: #e0e0e0;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
  z-index: 1004;
}

.close-btn:hover {
  background: #808080;
  transform: rotate(90deg);
}

.main-content {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
}

.search-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.search-input::placeholder {
  color: #808080;
  font-weight: 400;
}

.search-button {
  position: absolute;
  right: 0.75rem;
  background: #606060;
  border: none;
  border-radius: 8px;
  color: #e0e0e0;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  background: #808080;
  transform: scale(1.1);
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(30, 30, 30, 0.95);
  border-radius: 12px;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 0.5rem;
  display: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.suggestions::-webkit-scrollbar {
  width: 10px;
}

.suggestions::-webkit-scrollbar-thumb {
  background: #606060;
  border-radius: 5px;
}

.suggestions::-webkit-scrollbar-track {
  background: #2a2a2a;
}

.suggestion-item {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  color: #e0e0e0;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.suggestion-item:hover {
  background: #404040;
  color: #ffffff;
}

.map-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#map-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

#map-container:hover {
  transform: translateY(-4px);
}

#map {
  width: 100%;
  height: 100%;
}

#enlarge-map-button {
  position: absolute;
  top: 0.8rem;
  right: 2.9rem;
  background: #606060;
  border: none;
  border-radius: 8px;
  color: #e0e0e0;
  padding: 0.75rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
}

#enlarge-map-button:hover {
  background: #808080;
  transform: scale(1.1);
}

.map-style-selector {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(30, 30, 30, 0.95);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

#map-style {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #e0e0e0;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

#map-style:focus {
  outline: none;
  background-color: #404040;
}

#navigate-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #606060;
  border: none;
  border-radius: 12px;
  color: #e0e0e0;
  padding: 1rem 2rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

#navigate-button:hover {
  background: #808080;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 30, 30, 0.95);
  padding: 2rem;
  border-radius: 16px;
  color: #e0e0e0;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.popup button {
  margin: 0.75rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: #606060;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.popup button:hover {
  background: #808080;
  transform: translateY(-2px);
}

.mapboxgl-popup-content {
  background: #2a2a2a !important;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  font-family: 'Exo 2', sans-serif;
  width: 300px;
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.popup-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.popup-content .address {
  font-size: 0.9rem;
  color: #a0a0a0;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.popup-content .slots-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.popup-content .slots-info p {
  font-size: 0.95rem;
  color: #e0e0e0;
  margin: 0;
}

.popup-content .slot-count {
  font-weight: 700;
  color: #007bff;
}

.popup-content .check-availability {
  display: inline-block;
  background: #606060;
  color: #e0e0e0;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.popup-content .check-availability:hover {
  background: #808080;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mapboxgl-ctrl-geocoder {
  display: none;
}

@media screen and (max-width: 1024px) {
  .container {
      padding: 1.5rem;
  }

  .header {
      padding: 1rem 1.5rem;
  }

  .nav {
      gap: 0.5rem;
  }

  .nav-button {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
  }

  .signup-btn {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
  }

  .search-container {
      max-width: 500px;
  }

  #map-container {
      height: 400px;
  }
}

@media screen and (max-width: 768px) {
  .header {
      justify-content: flex-end;
      flex-wrap: wrap;
      gap: 1rem;
      position: relative;
  }

  .logo {
      margin-left: 3.5rem;
  }

  .nav {
      display: none;
  }

  .hamburger {
      display: block;
      position: absolute;
      left: 1rem;
      top: 1rem;
  }

  .signup-btn {
      margin-left: auto;
  }

  .user-container {
      display: none;
  }

  .search-section {
      min-height: 150px;
  }

  .search-container {
      max-width: 90%;
  }

  .search-input {
      font-size: 1rem;
      padding: 0.75rem 3rem 0.75rem 1.25rem;
  }

  .search-button {
      padding: 0.5rem;
  }

  .suggestions {
      max-height: 200px;
  }

  #map-container {
      height: 350px;
  }

  #enlarge-map-button, #map-style {
      font-size: 0.85rem;
      padding: 0.5rem;
  }

  #navigate-button {
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .container {
      padding: 1rem;
  }

  .header {
      padding: 0.75rem 1rem;
  }

  .logo {
      font-size: 1.5rem;
      margin-left: 3rem;
  }

  .logo-icon {
      font-size: 1.4rem;
  }

  .hamburger {
      left: 0.5rem;
      top: 0.5rem;
  }

  .search-input {
      font-size: 0.9rem;
      padding: 0.6rem 2.5rem 0.6rem 1rem;
  }

  .search-button {
      padding: 0.4rem;
  }

  .suggestions {
      max-height: 150px;
  }

  .suggestion-item {
      font-size: 0.85rem;
      padding: 0.6rem 1rem;
  }

  .sidebar {
      max-width: 280px;
  }

  .sidebar-content {
      padding: 3rem 1rem;
  }

  .sidebar-logo {
      font-size: 1.5rem;
  }

  .sidebar-button {
      font-size: 1rem;
      padding: 0.75rem 1.25rem;
      max-width: 240px;
  }

  #map-container {
      height: 300px;
  }

  #enlarge-map-button, #map-style {
      font-size: 0.75rem;
      padding: 0.4rem;
  }

  #navigate-button {
      padding: 0.6rem 1.25rem;
      font-size: 0.9rem;
  }

  .mapboxgl-popup-content {
      width: 250px;
      padding: 1rem;
  }

  .popup-content h3 {
      font-size: 1rem;
  }

  .popup-content .address {
      font-size: 0.8rem;
  }

  .popup-content .slots-info p {
      font-size: 0.85rem;
  }

  .popup-content .check-availability {
      padding: 0.5rem 1rem;
      font-size: 0.85rem;
  }
}