:root {
  /* Light Theme Only */
  --theme-background: #ffffff;
  --theme-text: #202124;
  --theme-text-secondary: #5f6368;
  --theme-border: #e8eaed;
  --theme-hover: #f5f5f5;
  --theme-shadow: rgba(0, 0, 0, 0.1);
  --theme-input-bg: #f5f5f5;
  --theme-button-bg: #ffffff;
  --theme-button-hover: #f5f5f5;
  --theme-active: #1a73e8;
  --theme-active-bg: #e8f0fe;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* Remove theme transitions */
.navbar,
.input-group,
.suggestions,
.map-style-container,
.directions-toggle,
.map-style-toggle,
.suggestion-item,
.map-style-option {
  transition: background-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Update existing styles to use new theme variables */
.navbar {
  background: var(--theme-background);
  color: var(--theme-text);
  box-shadow: 0 2px 4px var(--theme-shadow);
}

.input-group {
  background: var(--theme-input-bg);
  color: var(--theme-text);
}

.input-group:hover {
  background: var(--theme-hover);
}

.input-group:focus-within {
  background: var(--theme-background);
  box-shadow: 0 1px 6px var(--theme-shadow);
}

.search-icon {
  color: var(--theme-text-secondary);
}

#searchInput {
  color: var(--theme-text);
}

#searchInput::placeholder {
  color: var(--theme-text-secondary);
}

.suggestions,
.map-style-container {
  background: var(--theme-background);
  color: var(--theme-text);
  box-shadow: 0 -2px 10px var(--theme-shadow);
}

.suggestions-header {
  border-bottom: 1px solid var(--theme-border);
}

.suggestion-item {
  border-bottom: 1px solid var(--theme-border);
}

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

.suggestion-icon {
  color: var(--theme-text-secondary);
  margin-right: 16px;
  font-size: 20px;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.suggestion-item:hover .suggestion-icon {
  color: var(--theme-active);
  opacity: 1;
  transform: scale(1.1);
}

.suggestion-name {
  color: var(--theme-text);
}

.suggestion-road {
  color: var(--theme-text-secondary);
}

/* Map controls */
.mapboxgl-ctrl-group {
  background: var(--theme-button-bg) !important;
  box-shadow: 0 2px 4px var(--theme-shadow) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.mapboxgl-ctrl-group button {
  width: 44px !important;
  height: 44px !important;
  background-color: var(--theme-button-bg) !important;
  border: none !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mapboxgl-ctrl-group button:hover {
  background-color: var(--theme-button-hover) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.mapboxgl-ctrl-icon {
  width: 20px !important;
  height: 20px !important;
}

/* Control buttons */
.directions-toggle,
.map-style-toggle,
.free-mode-toggle {
  background: white;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.directions-toggle .material-icons,
.map-style-toggle .material-icons,
.free-mode-toggle .material-icons {
  font-size: 20px;
}

.directions-toggle:hover,
.map-style-toggle:hover,
.free-mode-toggle:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

/* Map style options */
.map-style-option {
  color: var(--theme-text);
  border: 1px solid transparent;
}

.map-style-option:hover {
  background: var(--theme-hover);
  border-color: var(--theme-border);
}

.map-style-option .material-icons {
  color: var(--theme-text-secondary);
}

.map-style-option.active {
  background: var(--theme-active-bg);
  color: var(--theme-active);
  border-color: var(--theme-active);
}

.map-style-option.active .material-icons {
  color: var(--theme-active);
}

/* Hide Mapbox Directions UI elements */
.mapbox-directions-component,
.mapbox-directions-inputs,
.mapbox-directions-instructions,
.mapbox-directions-route-summary,
.mapbox-directions-clearfix {
  display: none !important;
}

.mapbox-directions-component-keyline {
  border: none !important;
  box-shadow: none !important;
}

body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Navbar styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1100;
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transform: scale(1);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo:active {
  transform: scale(0.95);
}

.logo-img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 8px;
}

/* Search container styles */
.search-container {
  flex: 1;
  min-width: 0;
  position: relative;
  padding: 8px 0px;
}

.search-box {
  width: 100%;
  position: relative;
}

.input-group {
  display: flex;
  align-items: center;
  border-radius: 24px;
  padding: 8px 16px;
}

.search-icon {
  color: #5f6368;
  margin-right: 12px;
  font-size: 20px;
  flex-shrink: 0;
}

#searchInput {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  padding: 12px 0px;
  font-size: 16px;
  color: #202124;
  outline: none;
}

#searchInput::placeholder {
  color: #5f6368;
}

/* Suggestions styles */
.suggestions {
  display: none;
  position: fixed;
  top: 63px; /* Height of navbar + padding */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1090;
  overflow-y: auto;
  background: var(--theme-background);
  box-shadow: 0 -2px 10px var(--theme-shadow);
}

.suggestions.visible {
  display: block;
  animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.suggestions-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  overflow-y: auto;
}

.suggestions-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--theme-border);
  position: sticky;
  top: 0;
  background: var(--theme-background);
  z-index: 2;
}

.suggestions-header h2 {
  font-size: 16px;
  color: #5f6368;
  font-weight: 500;
  margin: 0;
}

.suggestions-list {
  padding: 8px 0;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--theme-border);
  margin: 0;
  opacity: 0;
  animation: slideIn 0.3s ease forwards;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: var(--theme-hover);
  padding-left: 20px;
}

.suggestion-icon {
  color: var(--theme-text-secondary);
  margin-right: 16px;
  font-size: 20px;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.suggestion-item:hover .suggestion-icon {
  color: var(--theme-active);
  opacity: 1;
  transform: scale(1.1);
}

.suggestion-content {
  flex: 1;
  min-width: 0;
}

.suggestion-name {
  font-size: 16px;
  color: var(--theme-text);
  margin-bottom: 4px;
  font-weight: 500;
}

.suggestion-road {
  font-size: 15px;
  color: var(--theme-text-secondary);
}

/* Directions toggle button */
.directions-toggle {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: white;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.directions-toggle:hover {
  background-color: var(--theme-hover);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.directions-toggle:active {
  transform: scale(0.95);
}

.directions-toggle .material-icons {
  font-size: 24px;
  color: #5f6368;
  transition: color 0.2s ease;
}

.directions-toggle:hover .material-icons {
  color: #202124;
}

.directions-toggle.active {
  background-color: var(--theme-active);
}

.directions-toggle.active .material-icons {
  color: white;
}

/* Map container */
.map-container {
  width: 100vw;
  height: 100vh;
  filter: blur(3px);
  transition: filter 0.3s ease;
}

.suggestions:not(.visible) + .map-container {
  filter: none;
}

.popup-actions {
  margin-top: 12px;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.popup-directions-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--theme-active);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
  font-size: 14px;
  margin-bottom: 8px;
}

.popup-directions-btn:hover {
  background: #1557b0;
}

.popup-directions-btn i {
  font-size: 16px;
}

.popup-nearby-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f0f0;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
  font-size: 14px;
}

.popup-nearby-btn:hover {
  background: #e0e0e0;
}

.popup-nearby-btn i {
  font-size: 16px;
}

.clear-nearby-btn {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: none;
  padding: 12px 15px;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 970;
  transition: all 0.2s;
  font-size: 14px;
}

.clear-nearby-btn:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.clear-nearby-btn i {
  font-size: 18px;
}

/* Styles for disabled directions button */
#directionsToggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

#directionsToggle.disabled:hover {
  background-color: inherit;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add staggered delay based on item index */
.suggestion-item:nth-child(1) {
  animation-delay: 0s;
}
.suggestion-item:nth-child(2) {
  animation-delay: 0.05s;
}
.suggestion-item:nth-child(3) {
  animation-delay: 0.1s;
}
.suggestion-item:nth-child(4) {
  animation-delay: 0.15s;
}
.suggestion-item:nth-child(5) {
  animation-delay: 0.2s;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
  .nav-content,
  .suggestions-wrapper {
    max-width: 100%;
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .nav-content,
  .suggestions-wrapper {
    padding: 0 12px;
  }

  .suggestions-header {
    padding: 12px 0;
  }

  .suggestions-list {
    padding: 8px 0;
  }
}

@media (max-width: 480px) {
  .nav-content,
  .suggestions-wrapper {
    padding: 0 8px;
  }

  .suggestions {
    top: 70px; /* Match mobile type filter buttons positioning */
  }
}

@media (max-width: 360px) {
  .suggestions {
    top: 90px; /* Match extra small screen type filter buttons positioning */
  }

  .nav-content,
  .suggestions-wrapper {
    padding: 0 6px;
  }
}

/* Scrollbar styling */
.suggestions-list::-webkit-scrollbar {
  width: 8px;
}

.suggestions-list::-webkit-scrollbar-track {
  background: transparent;
}

.suggestions-list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.suggestions-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Toast styles */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
}

.toast {
  background: rgba(255, 255, 255, 0.9);
  color: var(--theme-text);
  padding: 12px 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--theme-border);
  box-shadow: 0 4px 12px var(--theme-shadow);
  pointer-events: auto;
  animation: toastSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast.success {
  background: rgba(67, 160, 71, 0.9);
  color: white;
  border: none;
}

.toast.error {
  background: rgba(211, 47, 47, 0.9);
  color: white;
  border: none;
}

.toast-message {
  margin-right: 16px;
  font-size: 14px;
}

.toast-close {
  background: none;
  border: none;
  color: var(--theme-text);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

/* Custom marker styles */
.custom-marker {
  width: 48px;
  height: 48px;
}

.custom-marker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.user-marker {
  width: 24px;
  height: 24px;
  background-color: var(--theme-active);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Modern Popup Styles */
.mapboxgl-popup {
  max-width: 300px !important;
  z-index: 2 !important;
}

.mapboxgl-popup-content {
  padding: 20px !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid var(--theme-border);
  background: var(--theme-background);
  margin-bottom: 0 !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform-origin: 50% 100%;
  animation: popup-appear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding-right: 40px !important;
}

/* Popup Animation */
@keyframes popup-appear {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Popup tip styling */
.mapboxgl-popup-tip {
  border-top-color: var(--theme-border) !important;
  border-width: 8px !important;
  margin-top: -1px !important;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

/* Close button styling */
.mapboxgl-popup-close-button {
  position: absolute !important;
  right: 12px !important;
  top: 12px !important;
  font-size: 20px !important;
  padding: 0 !important;
  line-height: 20px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(0, 0, 0, 0.05) !important;
  color: var(--theme-text-secondary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  z-index: 1;
}

.mapboxgl-popup-close-button:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: var(--theme-text) !important;
  transform: scale(1.1) !important;
}

.mapboxgl-popup-close-button:active {
  transform: scale(0.95) !important;
}

/* Popup content styling */
.popup-content {
  font-size: 14px;
}

.popup-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--theme-text);
  line-height: 1.3;
  padding-right: 16px;
}

.popup-address {
  color: var(--theme-text-secondary);
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.popup-address i {
  color: var(--theme-text-secondary);
  font-size: 16px;
  margin-top: 2px;
  opacity: 0.7;
}

.popup-contact {
  border-top: 1px solid var(--theme-border);
  margin-top: 12px;
  padding-top: 12px;
}

.popup-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.popup-contact-numbers {
  display: inline;
  line-height: 1.4;
  color: var(--theme-text);
}

.popup-contact-item i {
  color: var(--theme-text-secondary);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.7;
}

.popup-contact-link {
  color: var(--theme-text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
  position: relative;
}

.popup-contact-link:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--theme-active);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: right;
}

.popup-contact-link:hover {
  color: var(--theme-active);
}

.popup-contact-link:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

/* High Contrast Mode Support for Popup */
@media (prefers-contrast: more) {
  .mapboxgl-popup-content {
    background: var(--theme-background) !important;
    border: 2px solid var(--theme-border) !important;
    backdrop-filter: none;
  }

  .mapboxgl-popup-tip {
    border-top-color: var(--theme-border) !important;
  }

  .popup-title {
    color: var(--theme-text);
  }

  .popup-address {
    color: var(--theme-text-secondary);
  }

  .popup-contact-link {
    color: var(--theme-active);
    text-decoration: underline;
  }

  .popup-contact-link:hover {
    color: var(--theme-active);
  }
}

/* Responsive Popup Adjustments */
@media (max-width: 480px) {
  .mapboxgl-popup {
    max-width: calc(100% - 48px) !important;
  }

  .mapboxgl-popup-content {
    padding: 16px !important;
  }

  .popup-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .popup-address,
  .popup-contact-link {
    font-size: 13px;
  }

  .popup-directions-btn,
  .popup-nearby-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Map Controls Styling */
.mapboxgl-ctrl-group {
  position: fixed !important;
  bottom: 40px !important;
  right: 20px !important;
  margin: 0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.mapboxgl-ctrl-group button {
  width: 44px !important;
  height: 44px !important;
  border: none !important;
  background-color: white !important;
}

/* Hide zoom controls */
.mapboxgl-ctrl-zoom-in,
.mapboxgl-ctrl-zoom-out {
  display: none !important;
}

.mapboxgl-ctrl-icon {
  background-size: 24px !important;
}

.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon {
  background-size: 24px !important;
  transform: scale(1.2);
}

/* Position the controls with some margin from the edge */
.mapboxgl-control-container .mapboxgl-ctrl-top-left {
  top: 20px;
  left: 20px;
}

/* Ensure controls stack nicely */
.mapboxgl-ctrl-top-left .mapboxgl-ctrl {
  margin: 0 0 10px 0;
  float: none;
}

/* Accessible Popup Styles */
.accessible-popup .mapboxgl-popup-content {
  outline: none;
}

/* Ensure proper focus visibility for interactive elements */
.popup-contact a:focus,
.popup-contact button:focus {
  outline: 2px solid var(--theme-active);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Map Container - Restoring essential styles */
.map-container {
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

/* Custom marker styles - Restoring essential styles */
.marker {
  width: 30px;
  height: 30px;
  background-color: var(--theme-active);
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-marker {
  background-color: var(--theme-active);
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
  .search-container,
  .suggestions {
    background: var(--theme-background);
    backdrop-filter: none;
  }

  #searchInput {
    border-color: var(--theme-border);
    background: var(--theme-background);
  }

  .suggestion-item {
    border-bottom-color: var(--theme-border);
  }

  .suggestion-name {
    color: var(--theme-text);
  }

  .suggestion-road {
    color: var(--theme-text-secondary);
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .suggestion-item:hover {
    padding-left: 16px;
    background-color: transparent;
  }

  .suggestion-item:active {
    background-color: var(--theme-hover);
    padding-left: 20px;
  }
}

/* When suggestions are visible, hide other UI elements */
.suggestions.visible ~ .directions-toggle,
.suggestions.visible ~ .mapboxgl-ctrl-group {
  display: none;
}

/* Map style toggle button */
.map-style-toggle {
  position: fixed;
  bottom: 160px;
  right: 20px;
  background: white;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.map-style-toggle:hover {
  background-color: var(--theme-hover);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.map-style-toggle:active {
  transform: scale(0.95);
}

.map-style-toggle .material-icons {
  font-size: 24px;
  color: #5f6368;
  transition: color 0.2s ease;
}

.map-style-toggle:hover .material-icons {
  color: #202124;
}

.map-style-toggle.active {
  background-color: var(--theme-active);
}

.map-style-toggle.active .material-icons {
  color: white;
}

/* Map style container */
.map-style-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-style-container.visible {
  transform: translateY(0);
}

.map-style-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.map-style-header {
  margin-bottom: 20px;
  text-align: center;
}

.map-style-header h3 {
  font-size: 18px;
  color: var(--theme-text);
  margin: 0;
}

.map-style-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  padding: 0 16px 16px;
}

.map-style-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-style-option:hover {
  background: var(--theme-hover);
}

.map-style-option.active {
  background: var(--theme-active-bg);
  color: var(--theme-active);
  border-color: var(--theme-active);
}

.map-style-option .material-icons {
  font-size: 24px;
  color: var(--theme-text-secondary);
}

.map-style-option.active .material-icons {
  color: var(--theme-active);
}

.map-style-option span:not(.material-icons) {
  font-size: 14px;
  color: var(--theme-text-secondary);
}

.map-style-option.active span:not(.material-icons) {
  color: var(--theme-active);
}

/* Hide map style toggle when suggestions are visible */
.suggestions.visible ~ .map-style-toggle {
  display: none;
}

@media (max-width: 768px) {
  .map-style-wrapper {
    max-width: 600px;
  }
}

/* Logo styles */
.logo-text {
  display: none;
}

.funa,
.dhoo {
  display: none;
}

.logo-border {
  display: none;
}

.dot-info {
  display: none;
}

/* Update button icon colors */
.directions-toggle .material-icons,
.map-style-toggle .material-icons {
  color: #5f6368;
  transition: color 0.2s ease;
}

.directions-toggle:hover .material-icons,
.map-style-toggle:hover .material-icons {
  color: #202124;
}

.directions-toggle.active .material-icons,
.map-style-toggle.active .material-icons {
  color: white;
}

.suggestion-help {
  padding: 16px;
  border-top: 1px solid var(--theme-border);
  opacity: 0;
  animation: slideIn 0.3s ease forwards;
  animation-delay: 0.2s;
}

.suggestion-help-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-text-secondary);
  font-size: 13px;
}

.suggestion-help-content i {
  color: var(--theme-text-secondary);
  font-size: 16px;
  opacity: 0.7;
}

.suggestion-help-link {
  color: var(--theme-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.suggestion-help-link:hover {
  color: var(--theme-active);
}

/* Map style toggle button */
.map-style-toggle {
  position: fixed;
  bottom: 160px;
  right: 20px;
  background: white;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

/* Free mode toggle button */
.free-mode-toggle {
  position: fixed;
  bottom: 220px;
  right: 20px;
  background: white;
  color: var(--theme-text);
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.free-mode-toggle:hover {
  background-color: var(--theme-hover);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.free-mode-toggle:active {
  transform: scale(0.95);
}

.free-mode-toggle .material-icons {
  font-size: 24px;
  color: #5f6368;
  transition: color 0.2s ease;
}

.free-mode-toggle:hover .material-icons {
  color: #202124;
}

.free-mode-toggle.active {
  background-color: var(--theme-active);
}

.free-mode-toggle.active .material-icons {
  color: white;
}

/* Hide free mode toggle when suggestions are visible */
.suggestions.visible ~ .free-mode-toggle {
  display: none;
}

/* Type filter buttons */
.type-filter-buttons {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 85px; /* Position below navbar */
  display: flex;
  flex-direction: row;
  gap: 8px;
  z-index: 1000;
  padding: 0 16px;
  width: 100%;
  max-width: 1400px;
  justify-content: center;
}

.type-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  font-size: 14px;
  color: #5f6368;
}

.type-filter-btn:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.type-filter-btn.active {
  background-color: var(--theme-active);
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.type-filter-btn.active i {
  color: white;
}

.type-filter-btn i {
  color: #5f6368;
  transition: color 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .type-filter-buttons {
    padding: 0 12px;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .type-filter-buttons {
    padding: 0 8px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .type-filter-btn {
    padding: 8px;
  }

  .type-filter-btn span {
    display: none;
  }
}

@media (max-width: 480px) {
  .type-filter-buttons {
    top: 86px;
    padding: 0 4px;
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .type-filter-buttons {
    top: 90px;
    padding: 0 2px;
    gap: 3px;
  }

  .type-filter-btn {
    padding: 6px;
    min-width: 36px;
  }
}

.directions-toggle.active,
.map-style-toggle.active,
.free-mode-toggle.active {
  background-color: var(--theme-active);
}

.directions-toggle.active .material-icons,
.map-style-toggle.active .material-icons,
.free-mode-toggle.active .material-icons {
  color: white;
}

.directions-toggle.disabled,
.map-style-toggle.disabled,
.free-mode-toggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #f5f5f5;
}

.directions-toggle.disabled:hover,
.map-style-toggle.disabled:hover,
.free-mode-toggle.disabled:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: none;
}
