body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

/* Search container styles */
.search-container {
  position: relative;
  margin: 10px 15px;
  width: calc(100% - 30px);
}

.search-input {
  width: calc(100% - 37px);
  padding: 10px 35px 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.clear-search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.clear-search-button:hover {
  color: #e74c3c;
  background-color: rgba(0, 0, 0, 0.05);
}

.maplibregl-popup {
  max-width: 300px;
}

.status-pending {
  color: #e74c3c;
  font-weight: bold;
}

.status-completed {
  color: #e74c3c;
  font-weight: bold;
}

.tippy-box {
  max-width: 600px !important;
  width: 90vw !important;
  /* 90% of viewport width for mobile */
  background-color: white;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 3000 !important;
}

@media (min-width: 768px) {
  .tippy-box {
    width: auto !important;
    /* Reset for desktop */
  }
}

.tippy-content {
  padding: 15px;
}

.info-card {
  border-radius: 8px;
  padding: 5px;
  font-size: 14px;
  position: relative;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  /* Limit to 80% of viewport height */
}

.info-card-scrollable {
  overflow-y: auto;
  max-height: calc(80vh - 80px);
  /* Account for header and footer */
  padding-right: 5px;
  scrollbar-width: thin;
}

.info-card-scrollable::-webkit-scrollbar {
  width: 6px;
}

.info-card-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.info-card-scrollable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.info-card-scrollable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.info-card h3 {
  margin-top: 5px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  font-size: 16px;
  color: #2c3e50;
}

.info-card p {
  margin: 8px 0;
  line-height: 1.4;
}

.info-label {
  font-weight: bold;
  color: #34495e;
  display: inline-block;
  min-width: 120px;
}

.info-value {
  display: inline-block;
}

.directions-link {
  margin-top: 10px;
  text-align: left;
}

.directions-link a {
  font-weight: 800;
  font-size: 15px;
  display: inline-block;
  padding: 2px 0;
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.polygon {
  cursor: pointer;
}

/* Close button styles */
.close-button {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  z-index: 10;
  transition: background-color 0.2s;
}

.close-button:hover {
  background-color: #c0392b;
}

/* Sidebar styles */
#sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 450px;
  background: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  z-index: 1000;
  padding: 20px;
}

.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background: white;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card.pending {
  border-left: 4px solid #e74c3c;
  /* Red for pending (მომლოდინე) */
}

.card.priority {
  border-left: 4px solid #000000;
  /* Black for priority items */
}

.card.completed {
  border-left: 4px solid #2ecc71;
  /* Green for completed (აღმოუჩინეს დახმარება) */
}

.card.volunteer-going {
  border-left: 4px solid #3498db;
  /* Blue for volunteer on the way (მიდის მოხალისე) */
}

.card.volunteer-visited {
  border-left: 4px solid #9b59b6;
  /* Purple for visited by volunteer (მოინახულა მოხალისემ) */
}

.card.empty-status {
  border-left: 4px solid #95a5a6;
  /* Gray for empty/unknown status (უცნობი სტატუსი) */
}

.source-link {
  display: block;
  background: #3498db;
  color: white !important;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  margin: 10px 0;
  font-weight: bold;
}

.source-link:hover {
  background: #2980b9;
  text-decoration: none !important;
}

.facebook-link {
  display: block;
  background: #4267b2;
  color: white !important;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  margin: 10px 0;
  font-weight: bold;
}

.facebook-link:hover {
  background: #365899;
  text-decoration: none !important;
}

.telegram-link {
  display: block;
  background: #0088cc;
  color: white !important;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  margin: 10px 0;
  font-weight: bold;
}

.telegram-link:hover {
  background: #0077b5;
  text-decoration: none !important;
}

.github-link {
  display: block;
  background: #24292e;
  color: white !important;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  margin: 10px 0;
  font-weight: bold;
}

.github-link:hover {
  background: #0366d6;
  text-decoration: none !important;
}

/* GitHub icon button styles */
.github-icon-button {
  position: fixed;
  bottom: 20px;
  right: 500px;
  width: 40px;
  height: 40px;
  background: #24292e;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 1002;
}

.github-icon-button:hover {
  background: #0366d6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  #sidebar {
    display: none;
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
  }

  #map {
    right: 0;
  }

  .mobile-sidebar-button {
    display: block;
  }

  #sidebar.mobile-visible {
    display: block;
    z-index: 2000;
  }

  .tabs-panel {
    right: 0;
  }
}

/* Collapsible card styles */
.card {
  cursor: pointer;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.card-content {
  display: none;
  padding-top: 10px;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

.card.expanded .card-content {
  display: block;
}

.card-title {
  margin: 0;
  font-size: 16px;
  color: #2c3e50;
  line-height: 1.4;
}

.expand-icon {
  font-size: 20px;
  color: #7f8c8d;
  transition: transform 0.3s;
  margin-left: 10px;
}

.card.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Card actions container for navigation and notification buttons */
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.card-nav-link {
  display: inline-block;
  padding: 8px 14px;
  background-color: #3498db;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-nav-link:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

/* Card notification button styles */
.card-notification-btn {
  padding: 8px 14px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3500;
}

.card-notification-btn:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card-notification-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.card-notification-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Add highlighted polygon styles */
.highlighted-card {
  background-color: #f8d7da;
}

/* Bottom panel styles */
#bottom-panel {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 100vh;
  background: white;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

#bottom-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Toggle panel button styles */
.toggle-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 10px 20px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1001;
}

.toggle-panel:hover {
  background: #2980b9;
}

/* Adjust map height when panel is visible */
#map.panel-visible {
  bottom: 300px;
}

/* Hide toggle-panel on mobile */
@media (max-width: 768px) {
  .toggle-panel {
    display: none;
  }
}

.sidebar-title {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.4;
  text-align: center;
}

/* Tab panel styles */
.tabs-panel {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: white;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.tabs-header {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  justify-content: space-between;
  align-items: center;
  padding-right: 10px;
}

.tab-button {
  padding: 12px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #495057;
  border-bottom: 2px solid transparent;
}

.tab-button:hover {
  color: #228be6;
}

.tab-button.active {
  color: #228be6;
  border-bottom-color: #228be6;
}

.tab-content {
  display: none;
  height: calc(100% - 45px);
}

.tab-content.active {
  display: block;
}

.tab-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Adjust map height when panel is visible */
#map.panel-visible {
  bottom: 600px;
}

.redirect-button {
  display: block;
  width: 80%;
  max-width: 400px;
  padding: 30px;
  background: #e74c3c;
  color: white;
  text-align: center;
  border: none;
  border-radius: 8px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.redirect-button:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tabs-close {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 15px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.tabs-close:hover {
  background: #c0392b;
}

/* Mobile sidebar button and panel */
.mobile-sidebar-button {
  display: none;
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 10px 10px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 2001;
  /* Increase z-index to be above everything */
  font-size: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mobile-sidebar-button:hover {
  background: #c0392b;
}

@media (max-width: 768px) {
  .mobile-sidebar-button {
    display: block;
  }

  #sidebar {
    display: none;
    position: fixed;
    left: 0;
    width: calc(100% - 41px);
    height: 100%;
    overflow-y: auto;
  }

  #map {
    right: 0;
  }

  .mobile-sidebar-button {
    display: block;
  }

  #sidebar.mobile-visible {
    display: block;
    z-index: 2000;
  }

  .tabs-panel {
    right: 0;
  }
}

.map-pin {
  position: relative;
  width: 28px;
  height: 28px;
  /* Slightly reduced height for better proportions */
  --pin-color: #e74c3c;
  /* Default color, will be overridden inline */
  background-color: var(--pin-color);
  border-radius: 50% 50% 0% 50%;
  transform: rotate(45deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid white;
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
  z-index: 1;
  /* Base z-index */
  transform-origin: center bottom;
}

.map-pin:hover {
  transform: rotate(45deg) scale(1.15);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
  z-index: 10;
  /* Ensure hovered pin is above others */
}

.map-pin.highlighted {
  border: 3px solid black;
  z-index: 20;
  /* Ensure highlighted pin is above all others, even hovered ones */
  transform: rotate(45deg) scale(1.5);
  /* Slightly reduce the scale for better visibility */
  transform-origin: center bottom;
  box-shadow: 0 0 15px 5px rgba(255, 255, 0, 0.7);
  /* Add yellow glow effect */
}

.map-pin.highlighted:hover {
  transform: rotate(45deg) scale(1.6);
  /* Slightly larger on hover */
  box-shadow: 0 0 20px 8px rgba(255, 255, 0, 0.8);
  /* Stronger glow on hover */
}

.map-pin::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.map-pin-container {
  width: 35px;
  height: 45px;
  /* Adjusted for proper positioning */
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Align to top instead of bottom */
  pointer-events: none;
}

.map-pin-shadow {
  position: absolute;
  width: 16px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.25);
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  filter: blur(2px);
}

.filters {
  margin: 10px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-select {
  width: 100%;
  padding: 8px 12px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  display: block;
  /* Ensure selects are visible */
  background-color: white;
}

/* Ensure the select dropdowns show properly */
.filter-select option {
  padding: 8px;
  background-color: white;
}

/* Map legend styles */
.map-legend {
  position: fixed;
  bottom: 118px;
  right: 517px;
  left: auto;
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1002;
  font-size: 14px;
  max-width: 220px;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.map-legend.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.legend-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legend-close {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.legend-close:hover {
  background-color: #c0392b;
}

.legend-toggle {
  position: fixed;
  bottom: 80px;
  right: 520px;
  background: white;
  color: #333;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 13px;
  z-index: 1001;
  display: block;
}

.legend-toggle:hover {
  background-color: #f5f5f5;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.legend-color {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 3px;
}

.legend-pin {
  position: relative;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 50% 50% 0% 50%;
  transform: rotate(45deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  border: 1px solid white;
}

.legend-polygon {
  width: 16px;
  height: 14px;
  margin-right: 8px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Volunteer live location marker in legend */
.legend-volunteer-marker {
  position: relative;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legend-volunteer-marker svg {
  display: block;
}

.legend-volunteer-marker svg circle:nth-child(1) {
  animation: legend-pulse-outer 3s infinite ease-in-out;
}

@keyframes legend-pulse-outer {
  0% {
    r: 8;
    opacity: 0.4;
  }

  50% {
    r: 8.5;
    opacity: 0.2;
  }

  100% {
    r: 8;
    opacity: 0.4;
  }
}

.volunteer-legend-item {
  margin-top: 2px;
}

@media (max-width: 768px) {
  .map-legend {
    bottom: 120px;
    right: 10px;
    left: auto;
    transform: none;
    max-width: 80%;
  }

  .legend-toggle {
    position: fixed;
    bottom: 80px;
    right: 10px;
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* Add custom CSS styles for the location button and user location marker */
.location-button {
  position: fixed;
  bottom: 20px;
  left: 230px;
  width: 36px;
  /* Reduced from 45px */
  height: 36px;
  /* Reduced from 45px */
  padding: 0;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 18px;
  /* Half of width/height */
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.location-button.pulsing {
  animation: location-button-pulse 1.5s infinite;
}

@keyframes location-button-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    transform: scale(1.1);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    transform: scale(1);
  }
}

.location-button svg {
  width: 20px;
  /* Reduced from 24px */
  height: 20px;
  /* Reduced from 24px */
}

.location-button:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Add styles for the map style toggle component */
.map-style-toggle {
  position: fixed;
  bottom: 20px;
  left: 275px;
  /* Adjusted position to account for smaller location button */
  background: #fff;
  border-radius: 18px;
  /* Match the location button's rounded corners */
  display: flex;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 1001;
  border: 1px solid #ddd;
  max-width: 190px;
  /* Increased from 150px to give more room */
}

.map-style-option {
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  color: #333;
  user-select: none;
  text-align: center;
  min-width: 48px;
  white-space: nowrap;
  overflow: visible;
  letter-spacing: 0.2px;
}

.map-style-option:hover {
  background-color: #f0f0f0;
}

.map-style-option.active {
  background-color: #3498db;
  color: white;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .location-button {
    bottom: 20px;
    left: 20px;
    width: 34px;
    /* Even slightly smaller on mobile */
    height: 34px;
    /* Even slightly smaller on mobile */
  }

  .location-button svg {
    width: 18px;
    /* Smaller icon on mobile */
    height: 18px;
  }

  .map-style-toggle {
    bottom: 25px;
    left: calc(100vw - 150px);
    font-size: 11px;
    /* Slightly smaller font */
    max-width: 140px;
    /* Increased width on mobile as well */
  }

  .map-style-option {
    padding: 4px 6px;
    /* Smaller padding on mobile */
    min-width: 35px;
    /* Increased from 30px to ensure Georgian text is visible */
    font-size: 11px;
  }
}

.user-location-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #3498db;
  border: 3px solid white;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.6);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
  }
}

/* Custom Dropdown with Distribution */
.custom-dropdown {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
}

.custom-dropdown-header {
  padding: 10px 15px;
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-dropdown-header:hover {
  background-color: #e9ecef;
}

.custom-dropdown-selected {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

.custom-dropdown-icon {
  font-size: 12px;
  transition: transform 0.3s;
}

.custom-dropdown.open .custom-dropdown-icon {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ced4da;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Search input styles */
.custom-dropdown-search {
  padding: 10px;
  position: sticky;
  top: 0;
  background-color: white;
  border-bottom: 1px solid #ced4da;
  z-index: 2;
}

.custom-dropdown-search-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.custom-dropdown-search-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

.custom-dropdown-item {
  padding: 8px 15px;
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
  position: relative;
}

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

.custom-dropdown-item:hover {
  background-color: #f8f9fa;
}

.custom-dropdown-item.selected {
  background-color: #e7f3ff;
}

/* Checkbox styles */
.custom-dropdown-checkbox {
  margin-right: 8px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  accent-color: #3498db;
  position: relative;
  top: 1px;
}

.custom-dropdown-item-label {
  flex: 1;
  margin-right: 5px;
  padding-left: 5px;
}

/* Remove the before pseudo-element since we're using real checkboxes now */
.custom-dropdown-item.selected::before {
  content: none;
}

.custom-dropdown-item-count {
  font-size: 12px;
  color: #777;
  margin-left: 5px;
  margin-right: 5px;
}

.custom-dropdown-distribution {
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  margin-left: 5px;
  min-width: 50px;
  width: 80px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.custom-dropdown-distribution-bar {
  height: 100%;
  background-color: #3498db;
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 0;
}

/* Update existing filter styles */
.filters {
  margin: 10px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .custom-dropdown-menu {
    max-height: 200px;
  }

  .custom-dropdown-distribution {
    width: 50px;
  }

  .custom-dropdown-item {
    padding: 12px 10px;
  }

  /* Make checkboxes larger on mobile for better touch targets */
  .custom-dropdown-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 10px;
  }

  .custom-dropdown-item-label {
    font-size: 15px;
  }
}

/* Help Request Button */
.help-request-button {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.help-request-button:hover {
  background-color: #c0392b;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Help Offer Button */
.help-offer-button {
  position: absolute;
  top: 60px;
  left: 10px;
  z-index: 10;
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.help-offer-button:hover {
  background-color: #2980b9;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Location Share Button - Mobile Only */
.location-share-button {
  position: absolute;
  top: calc(100vh - 53px);
  left: calc(100vw - 159px);
  z-index: 10;
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  display: none;
  /* Hidden by default, shown only on mobile */
}

.location-share-button:hover {
  background-color: #219653;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease;
}

.modal.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Override for specifically the phone input modal */
#phone-input-modal.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#phone-input-modal .modal-content {
  animation: modalFadeIn 0.3s ease forwards;
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 5% auto;
  width: 80%;
  max-width: 800px;
  height: 80%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 20px;
  height: calc(100% - 70px);
  overflow-y: auto;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.help-offer-modal-content {
  max-width: 800px;
  height: auto;
  min-height: 400px;
  max-height: 80%;
}

.help-offer-modal-body {
  padding: 30px;
}

.help-offer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.help-offer-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.help-offer-link:hover {
  transform: translateY(-3px);
}

.help-offer-block {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.help-offer-block:hover {
  background-color: #f1f3f5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-color: #dee2e6;
}

.help-offer-block h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #3498db;
  font-size: 18px;
}

.help-offer-block p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

@media (max-width: 768px) {
  .help-request-button {
    top: 10px;
    left: 10px;
    padding: 8px 12px;
    font-size: 12px;
    width: auto;
  }

  .help-offer-button {
    top: 50px;
    left: 10px;
    padding: 8px 12px;
    font-size: 12px;
    width: auto;
  }

  .location-share-button {
    display: block;
    /* Show on mobile */
    top: calc(100vh - 53px);
    left: calc(100vw - 159px);
    padding: 8px 12px;
    font-size: 12px;
    width: auto;
  }

  .modal-content {
    width: 95%;
    height: 90%;
    margin: 5% auto;
  }

  .modal-header {
    padding: 10px 15px;
  }

  .modal-body {
    padding: 15px;
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .help-offer-modal-body {
    padding: 15px;
  }

  .help-offer-block {
    padding: 15px;
  }

  .help-offer-block h3 {
    font-size: 16px;
  }
}

.modal.active~.mobile-sidebar-button {
  display: none !important;
}

/* Notification Modal Styles */
.notification-modal-content {
  max-width: 600px;
  width: 90%;
  height: auto;
  min-height: 400px;
  z-index: 4000;
}

.notification-modal-body {
  padding: 30px;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 16px;
}

.form-group input,
.form-group textarea {
  width: 95%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

/* Specific style for phone modal form actions */
.phone-input-modal-body .form-actions {
  justify-content: center;
  margin-top: 15px;
  margin-bottom: 20px;
}

.phone-input-modal-body .submit-btn {
  min-width: 200px;
}

.cancel-btn,
.submit-btn {
  padding: 12px 20px;
  font-size: 16px;
}

.cancel-btn {
  background-color: #95a5a6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cancel-btn:hover {
  background-color: #7f8c8d;
}

.submit-btn:hover {
  background-color: #c0392b;
}

/* Form validation styles */
.form-group input:invalid,
.form-group textarea:invalid {
  border-color: #e74c3c;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 3px rgba(52, 152, 219, 0.5);
}

/* Additional responsive styles for notification modal */
@media (max-width: 768px) {
  .notification-modal-content {
    width: 95%;
    max-width: none;
    margin: 5% auto;
    min-height: 350px;
  }

  .notification-modal-body {
    padding: 20px;
  }

  .form-group label {
    font-size: 15px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 15px;
  }

  .cancel-btn,
  .submit-btn {
    padding: 10px 15px;
    font-size: 15px;
  }
}

/* Success message styles for iframe placeholder */
.loading-message {
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 80%;
}

.loading-message p {
  font-size: 16px;
  color: #2c3e50;
  margin: 0;
  padding: 10px;
}

@media (max-width: 768px) {
  .loading-message {
    max-width: 90%;
  }

  .loading-message p {
    font-size: 14px;
  }
}

/* Tippy theme modifications for scrollable content */
.tippy-box[data-theme~='light'] {
  max-height: 80vh;
  overflow: hidden;
}

/* Class added dynamically when tooltip is taller than viewport */
.scrollable-tooltip {
  max-height: 80vh !important;
  overflow: hidden !important;
}

/* Instructions Button Styles */
.instructions-button {
  position: fixed;
  right: 510px;
  top: 10px;
  z-index: 2000;
  background-color: #3498db;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: block;
}

.instructions-button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Instructions Modal Styles */
.instructions-modal-content {
  max-width: 800px;
  width: 90%;
  height: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.instructions-modal-body {
  padding: 0;
  overflow-y: auto;
  max-height: calc(90vh - 60px);
  /* Subtract header height to ensure content fits */
  flex: 1;
}

/* Instructions Tabs */
.instructions-tabs {
  display: flex;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 10;
}

.instructions-tab {
  flex: 1;
  padding: 15px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.instructions-tab:hover {
  background-color: #e9ecef;
}

.instructions-tab.active {
  color: #3498db;
  border-bottom-color: #3498db;
  background-color: #e9ecef;
}

/* Instructions Content */
.instructions-content {
  display: none;
  padding: 25px;
  overflow-y: auto;
  max-height: calc(90vh - 110px);
  /* Subtract header and tabs height */
}

.instructions-content.active {
  display: block;
}

.instructions-content h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 22px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Status Dots for Legend in Instructions */
.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

/* Important Note Box */
.important-note {
  background-color: #f8d7da;
  border-left: 4px solid #e74c3c;
  padding: 15px;
  margin-top: 25px;
  border-radius: 4px;
}

.important-note h4 {
  color: #721c24;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.important-note p {
  color: #721c24;
  margin: 5px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .instructions-button {
    right: 10px;
    top: 55px;
    padding: 8px 12px;
    font-size: 12px;
    z-index: 2001;
  }

  .instructions-modal-content {
    width: 100%;
    margin: 0;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    max-width: none;
  }

  .instructions-modal-body {
    max-height: calc(100vh - 50px);
    /* Adjust for smaller header on mobile */
  }

  .instructions-content {
    max-height: calc(100vh - 100px);
    /* Adjust for smaller header and tabs on mobile */
    padding: 15px;
  }

  .instructions-tab {
    padding: 12px 10px;
    font-size: 14px;
  }

  .instructions-content h3 {
    font-size: 18px;
  }

  .important-note h4 {
    font-size: 16px;
  }
}

/* Updated styling for all notification buttons */
[id^='notification-btn-'] {
  padding: 8px 14px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 3500;
}

/* Pulsating notification button */
[id^='notification-btn-'].pulsing {
  animation: notification-button-pulse 1.2s infinite ease-in-out;
  position: relative;
  z-index: 3500;
}

@keyframes notification-button-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.9);
    transform: scale(1);
    background-color: #e74c3c;
  }

  50% {
    box-shadow: 0 0 0 12px rgba(231, 76, 60, 0);
    transform: scale(1.15);
    background-color: #ff6b6b;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    transform: scale(1);
    background-color: #e74c3c;
  }
}

/* Additional highlight for pulsing button */
[id^='notification-btn-'].pulsing::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  bottom: -3px;
  left: -3px;
  border: 2px solid #ff6b6b;
  border-radius: 6px;
  animation: pulse-border 1.2s infinite ease-in-out;
}

@keyframes pulse-border {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.directions-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  gap: 10px;
  position: relative;
  z-index: 3500;
  background: white;
}

.directions-container a {
  font-weight: 600;
  font-size: 14px;
  color: #3498db;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 3500;
}

.directions-container a:hover {
  background-color: #e9ecef;
  color: #2980b9;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Styles for ID field display */
.id-field {
  margin-top: 5px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
}

.id-label {
  font-weight: bold;
  color: #e74c3c;
  display: inline-block;
  min-width: 40px;
}

.id-value {
  font-weight: bold;
  display: inline-block;
  margin-right: 5px;
}

/* Copy button styles */
.copy-id-btn {
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  padding: 3px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.copy-id-btn:hover {
  background-color: #f1f1f1;
  color: #333;
}

.copy-id-btn.copied {
  color: #2ecc71;
  background-color: rgba(46, 204, 113, 0.1);
}

.card .id-field {
  margin-top: 0;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

/* Custom scrollbar for better user experience */
.instructions-modal-body::-webkit-scrollbar,
.instructions-content::-webkit-scrollbar {
  width: 8px;
}

.instructions-modal-body::-webkit-scrollbar-track,
.instructions-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.instructions-modal-body::-webkit-scrollbar-thumb,
.instructions-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.instructions-modal-body::-webkit-scrollbar-thumb:hover,
.instructions-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Styles for map attribution to prevent overlapping */
.maplibregl-ctrl-attrib {
  font-size: 10px !important;
  line-height: 1.2 !important;
  max-width: 300px !important;
  background-color: rgba(255, 255, 255, 0.8) !important;
  padding: 2px 5px !important;
  border-radius: 4px !important;
  margin-bottom: 5px !important;
  margin-right: 5px !important;
}

.maplibregl-ctrl-attrib a {
  color: #3498db !important;
  display: inline-block !important;
  margin-right: 5px !important;
}

/* Make attribution cleaner on mobile */
@media (max-width: 768px) {
  .maplibregl-ctrl-attrib {
    display: none !important;
    /* Hide attributions on mobile */
  }

  .maplibregl-ctrl-attrib-inner {
    display: none !important;
    /* Hide attributions inner content on mobile */
  }
}

/* Position controls and attribution better */
.maplibregl-control-container {
  z-index: 50 !important;
}

.maplibregl-ctrl-bottom-right {
  bottom: 25px !important;
  right: 10px !important;
}

.maplibregl-ctrl-bottom-left {
  bottom: 25px !important;
}

/* Location status message styling */
.location-status-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.location-status-content {
  background-color: #333;
  color: white;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  width: 85%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.location-status-content p {
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.3;
}

.location-status-content .ok-btn {
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.location-status-content .ok-btn:hover {
  background-color: #3367d6;
}

/* Fix for mobile view */
@media (max-width: 768px) {

  .maplibregl-ctrl-bottom-left,
  .maplibregl-ctrl-bottom-right {
    bottom: 125px !important;
    /* Position higher on mobile to avoid overlap with controls */
  }
}

/* Phone Input Modal */
.phone-input-modal-content {
  max-width: 500px;
  width: 90%;
}

.phone-input-modal-body {
  padding: 20px;
}

#phone-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 5px;
  transition: border-color 0.3s ease;
}

#phone-input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
  outline: none;
}

.location-info {
  margin-top: 20px;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

/* Improved buttons for phone modal */
.phone-input-modal-body .cancel-btn {
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.phone-input-modal-body .submit-btn {
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.phone-input-modal-body .submit-btn:hover {
  background-color: #2ecc71;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.phone-input-modal-body .submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.phone-input-modal-body .cancel-btn:hover {
  background-color: #e9e9e9;
}

/* Add a subtle animation to draw attention to the submit button */
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

.phone-input-modal-body .submit-btn {
  animation: pulse-green 2s infinite;
}

/* New styles for the stop location sharing button - REMOVED AS REQUESTED
.stop-location-button {
  position: fixed;
  bottom: 140px;
  right: 10px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #e74c3c;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.stop-location-button:hover {
  background-color: #c0392b;
  transform: scale(1.05);
}
*/

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Device instructions in phone modal */
.device-instructions {
  margin-top: 20px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.device-instructions h3 {
  margin-top: 0;
  font-size: 15px;
  color: #2c3e50;
  margin-bottom: 5px;
}

.device-instructions p {
  margin: 0 0 8px 0;
  font-size: 14px;
}

/* New styles for side-by-side device instructions */
.device-instructions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.device-specific-instructions {
  margin-top: 10px;
  padding: 8px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  /* For side-by-side layout */
  flex: 1;
  min-width: 120px;
}

.device-specific-instructions h4 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 14px;
  color: #3498db;
}

.device-specific-instructions p {
  margin: 0 0 8px 0;
  font-size: 13px;
}

.instruction-image {
  margin-top: 5px;
  text-align: center;
  height: 130px;
  /* Reduced height for compactness */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.instruction-image img {
  max-width: 100%;
  max-height: 130px;
  /* Reduced height for compactness */
  border-radius: 6px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

@media (max-width: 768px) {
  .device-instructions {
    padding: 8px;
  }

  .device-instructions-container {
    flex-direction: row;
    /* Keep side-by-side on small screens */
  }

  .device-specific-instructions {
    flex-basis: calc(50% - 5px);
    /* Equal width on mobile with gap in between */
  }

  .instruction-image {
    height: 120px;
    /* Even smaller on mobile */
  }

  .instruction-image img {
    max-height: 120px;
    /* Even smaller on mobile */
  }
}

/* Loading Indicator */
.loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out;
}

.loading-indicator p {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
  text-align: center;
  max-width: 80%;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Volunteer markers styling */
.volunteer-marker {
  cursor: pointer;
}

@keyframes pulse-outer {
  0% {
    r: 16;
    opacity: 0.4;
  }

  50% {
    r: 19;
    opacity: 0.2;
  }

  100% {
    r: 16;
    opacity: 0.4;
  }
}

@keyframes pulse-middle {
  0% {
    r: 12;
    opacity: 0.6;
  }

  50% {
    r: 14;
    opacity: 0.4;
  }

  100% {
    r: 12;
    opacity: 0.6;
  }
}

.volunteer-marker:hover circle:nth-child(3) {
  transform-origin: center;
  transform: scale(1.2);
  transition: transform 0.2s;
}

.volunteer-outer-pulse {
  animation: pulse-outer 2s infinite;
}

.volunteer-middle-pulse {
  animation: pulse-middle 2s infinite;
}

/* Volunteer tooltip styling */
.volunteer-tooltip {
  padding: 0;
  font-family: Arial, sans-serif;
  max-width: 300px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.tooltip-header {
  background-color: #4285F4;
  color: white;
  padding: 10px 12px;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.tooltip-content {
  padding: 12px;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  background-color: white;
}

.tooltip-content p {
  margin: 8px 0;
  display: flex;
  align-items: center;
}

.tooltip-content strong {
  color: #555;
  font-weight: 600;
  min-width: 80px;
  display: inline-block;
}

/* Make sure tippy has a high z-index to appear above map elements */
.tippy-box[data-theme~='light'] {
  background-color: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  z-index: 1000;
}

/* Live location marker styles - replaced with new volunteer marker styles */
/* Removing old styles that could be causing conflicts */
/* End of removed styles */

/* Arrow pointing to location button */
.location-button-arrow {
  position: fixed;
  bottom: 65px;
  /* Positioned above the location button */
  left: 242px;
  /* Centered above the location button */
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 21px solid #e74c3c;
  /* Red downward-pointing arrow */
  z-index: 1001;
  animation: arrow-bounce 1.5s infinite;
  pointer-events: none;
  /* Make sure it doesn't interfere with clicks */
  display: none;
  /* Hidden by default */
}

@keyframes arrow-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .location-button-arrow {
    bottom: 65px;
    left: 17px;
    /* Adjusted for mobile positioning */
  }
}

/* Toast Notification System */
/* Original toast styles */
.app-toast {
  position: fixed;
  z-index: 3000;
  min-width: 250px;
  max-width: 90%;
  padding: 0;
  background-color: white;
  color: #333;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  pointer-events: none;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
}

.app-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.app-toast.top {
  top: 20px;
}

.app-toast.bottom {
  bottom: 20px;
  transform: translateX(-50%) translateY(20px);
}

.app-toast.bottom.visible {
  transform: translateX(-50%) translateY(0);
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
}

.toast-message {
  font-size: 14px;
  margin-right: 10px;
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #888;
  cursor: pointer;
  padding: 0 5px;
  margin-left: 5px;
}

.toast-close:hover {
  color: #333;
}

/* Toast types */
.app-toast.info {
  border-left: 4px solid #3498db;
}

.app-toast.success {
  border-left: 4px solid #2ecc71;
}

.app-toast.warning {
  border-left: 4px solid #f39c12;
}

.app-toast.error {
  border-left: 4px solid #e74c3c;
}

/* Toast arrow pointer */
.toast-arrow {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: white;
  transform: rotate(45deg);
  z-index: -1;
}

.toast-arrow.top {
  top: -8px;
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.1);
}

.toast-arrow.bottom {
  bottom: -8px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Location toast specific styles */
.app-toast.location-toast {
  text-align: center;
  font-weight: 500;
}

/* New toast system styles */
.toast-container {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  padding: 10px 0;
}

.toast {
  margin: 0.5rem;
  padding: 12px 16px;
  color: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  min-width: 250px;
  max-width: 90%;
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.toast-info {
  background-color: #2196F3;
}

.toast-success {
  background-color: #4CAF50;
}

.toast-warning {
  background-color: #FFC107;
  color: #333;
}

.toast-error {
  background-color: #F44336;
}

/* Media queries for toast responsiveness */
@media (max-width: 768px) {

  .app-toast,
  .toast {
    min-width: 200px;
    max-width: 95%;
  }

  .toast-message {
    font-size: 13px;
  }

  .toast {
    margin: 0.3rem;
    padding: 10px 12px;
  }
}

/* Municipality Contact Button */
.municipality-contact-button {
  position: absolute;
  top: 110px;
  left: 10px;
  z-index: 10;
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.municipality-contact-button:hover {
  background-color: #2ecc71;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Municipality Modal Styles */
.municipality-modal-content {
  width: 90%;
  max-width: 500px;
}

.municipality-contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.municipality-contact-item {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.municipality-contact-item h3 {
  color: #3498db;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.municipality-contact-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* Mobile optimizations for the buttons */
@media (max-width: 768px) {
  .municipality-contact-button {
    top: 90px;
    left: 10px;
    padding: 8px 12px;
    font-size: 12px;
    width: auto;
  }
}