/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
}

/* Search Section */
.search-section {
  background: #ffffff;
  padding: 50px 20px;
  border-bottom: 1px solid #e9ecef;
}

.search-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.search-container h2 {
  font-size: 24px;
  font-weight: 400;
  color: #0a1628;
  margin-bottom: 25px;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#location-search {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

#location-search:focus {
  border-color: #7A8CC2;
}

#location-search::placeholder {
  color: #adb5bd;
}

.search-button {
  padding: 14px 30px;
  background: #3C3C6A;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.search-button:hover {
  background: #24244F;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(107, 163, 212, 0.3);
}

.search-button:active {
  transform: translateY(0);
}

.search-results {
  margin-top: 30px;
  text-align: left;
}

.search-results.active {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.search-results h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0a1628;
  margin-bottom: 15px;
}

.search-result-item {
  padding: 15px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-result-item:hover {
  border-color: #7A8CC2;
  box-shadow: 0 2px 8px rgba(107, 163, 212, 0.2);
  transform: translateX(5px);
}

.search-result-item strong {
  display: block;
  font-size: 16px;
  color: #0a1628;
  margin-bottom: 5px;
}

.search-result-item .city {
  color: #6c757d;
  font-size: 14px;
}

.search-result-item .distance {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: #e8f4f8;
  color: #7A8CC2;
  font-size: 13px;
  font-weight: 500;
  border-radius: 3px;
}

.search-error {
  margin-top: 20px;
  padding: 15px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  color: #856404;
  font-size: 14px;
  display: none;
}

.search-error.active {
  display: block;
}

.no-results {
  padding: 30px;
  text-align: center;
  color: #6c757d;
  font-size: 15px;
}

/* Loading indicator */
.search-button.loading {
  background: #adb5bd;
  cursor: not-allowed;
  pointer-events: none;
}

.search-button.loading::after {
  content: "...";
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ""; }
  40% { content: "."; }
  60% { content: ".."; }
  80%, 100% { content: "..."; }
}

/* Map Section */
.map-section {
  background: #ffffff;
  padding: 60px 20px;
}

#map {
  width: 100%;
  height: 600px;
  border-radius: 0;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* Vendor List Section */
.vendor-section {
  background: #ffffff;
  padding: 40px 20px 80px;
}

.vendor-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.vendor {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.vendor:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  border-color: #6ba3d4;
}

.vendor strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #0a1628;
  margin-bottom: 8px;
}

.vendor span {
  display: block;
  font-size: 14px;
  color: #6c757d;
}

.vendor .address {
  margin-top: 5px;
  font-size: 13px;
  color: #868e96;
}

.vendor .contact {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e9ecef;
  font-size: 13px;
  color: #6c757d;
}

.vendor .contact a {
  color: #6ba3d4;
  text-decoration: none;
}

.vendor .contact a:hover {
  text-decoration: underline;
  color: #5a92c3;
}


/* Call to Action Section - Dark Navy */
.cta-section {
  background: #090C14;
  padding: 80px 20px;
  text-align: center;
  border-top: 2px solid #1a2a45;
}

.cta-section h2 {
  display: inline;
  font-size: 32px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  margin-left: 50px;
  padding: 14px 35px;
  background: #920000;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #820000;
  transform: translateY(-2px);
}


/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
  border-radius: 6px;
}

.leaflet-popup-content {
  margin: 14px;
  font-family: inherit;
}

.leaflet-popup-content strong {
  color: #0a1628;
  font-size: 15px;
}



/* Responsive Design */
@media (max-width: 768px) {
  .search-section {
    padding: 30px 20px;
  }

  .search-container h2 {
    font-size: 20px;
  }

  .search-box {
    flex-direction: column;
  }

  #location-search {
    width: 100%;
  }

  .search-button {
    width: 100%;
  }

  .search-result-item {
    padding: 12px;
  }

  .search-result-item:hover {
    transform: none;
  }

  #map {
    height: 400px;
  }

  .map-section {
    padding: 40px 20px;
  }

  .vendor-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .cta-section h2 {
    font-size: 24px;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }

  .footer-links a {
    font-size: 12px;
  }
}