body {
  font-family: "Inter", sans-serif;
}

#map {
  height: 100vh;
  z-index: 1;
}

.sidebar {
  z-index: 1000;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.05);
}

.marker-icon {
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Map Search Control */
.leaflet-control-search {
  position: absolute;
  top: 20px;
  left: 50px;
  z-index: 1000;
  background: white;
  padding: 8px;
  border-radius: 8px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 8px;
  width: 300px;
}

/* Sortable ghost */
.sortable-ghost {
  opacity: 0.4;
  background-color: #f0f9ff;
  border: 1px dashed #0284c7;
}

.sortable-drag {
  cursor: grabbing;
  opacity: 1;
  transform: scale(1.02);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.day-section {
  margin-bottom: 24px;
}

/* Target grids for Sortable */
.sort-target {
  min-height: 50px;
  padding-bottom: 20px;
}

/* PRINT STYLES */
@media print {
  body {
    height: auto !important;
    overflow: visible !important;
    background: white !important;
  }

  .sidebar {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  #map,
  .leaflet-control-search,
  .no-print {
    display: none !important;
  }

  #location-list {
    overflow: visible !important;
    padding: 0 !important;
  }

  /* Header Cleanup */
  .sidebar > div:first-child {
    position: static !important;
    border-bottom: 2px solid #000 !important;
    box-shadow: none !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
  }

  h1 {
    font-size: 24px !important;
    text-align: center;
  }

  #trip-cost-display {
    display: block !important;
    margin: 10px auto;
    width: fit-content;
    border: 1px solid #000;
    background: none !important;
    color: #000 !important;
  }

  /* Hide Buttons */
  #trip-selector,
  button:not(.hidden),
  .flex-1.py-2,
  .w-4.h-4 {
    display: none !important;
  }

  /* Fix Grid Layout for Print */
  .grid {
    display: block !important;
  }

  .sort-item {
    break-inside: avoid;
    border: 1px solid #eee !important;
    margin-bottom: 10px !important;
    box-shadow: none !important;
  }

  .day-section {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 30px !important;
  }

  /* Show content */
  h4 {
    color: #000 !important;
  }

  p {
    color: #333 !important;
  }

  .text-xs {
    font-size: 10pt !important;
  }
}

/* Search Results Typeahead */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-result-item {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}

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

.search-result-item:hover {
  background-color: #f0f9ff;
  color: #0284c7;
}

/* Toast System */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: 12px;
  background: white;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toast-in 0.3s ease-out forwards;
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-info { border-left: 4px solid #3b82f6; }

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

.toast-out {
  animation: toast-out 0.3s ease-in forwards;
}

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

