* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #000000;
  min-height: 100vh;
  color: #FFFFFF;
  line-height: 1.6;
  padding-top: 4rem; /* Height of the fixed navbar */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

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

.header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #000000;
  border-radius: 20px;
  box-shadow: none;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  border: 1px solid #00a59a;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  text-shadow: none;
}

.header .subtitle {
  font-size: 1.2rem;
  opacity: 1;
  position: relative;
  z-index: 2;
}

.search-bar {
  margin-bottom: 2rem;
  position: relative;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid #FFFFFF;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #000000;
  color: #FFFFFF;
  box-shadow: none;
}

.search-input::placeholder {
  color: #FFFFFF;
}

.search-input:focus {
  outline: none;
  border-color: #00a59a;
  transform: translateY(-2px);
  box-shadow: none;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
}

.retailers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.retailer-card {
  background: #000000;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  border: 1px solid #FFFFFF;
  border-left: 5px solid var(--card-accent-color, #00a59a);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.retailer-card:hover {
  transform: translateY(-5px);
  box-shadow: none;
  border-left-color: var(--card-accent-color, #00a59a);
}

.retailer-id-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #000000;
  color: #FFFFFF;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.8em;
  font-weight: bold;
  z-index: 1;
  box-shadow: none;
}

.retailer-card h3 {
  margin-top: 35px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.retailer-card p {
  color: #FFFFFF;
  font-size: 0.95rem;
}

.card-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  font-size: 0.95rem;
}

.button:first-child {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.button:first-child:hover {
  background-color: #00a59a;
  border-color: #00a59a;
  transform: translateY(-3px);
  box-shadow: none;
}

.button:last-child {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.button:last-child:hover {
  background-color: #00a59a;
  transform: translateY(-3px);
  box-shadow: none;
}

.stats {
  background: #000000;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: none;
  margin-top: 2rem;
  border: 1px solid #00a59a;
}

.stats h3 {
  color: #FFFFFF;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-item {
  padding: 1rem;
  background: #000000;
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid #00a59a;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: bold;
  color: #FFFFFF;
}

.stat-label {
  color: #00a59a;
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: #FFFFFF;
  font-size: 1.2rem;
}

.retailer-info {
  margin-top: 1rem;
}

#sentinel {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 4px solid #000000;
  border-top: 4px solid #00a59a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  .header .subtitle {
    font-size: 1rem;
  }
  .retailers-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 1rem;
  }
}

.map-container {
  width: 100%;
  height: 200px;
  background-color: #000000;
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

iframe.lazy-map {
  background-color: #000000;
  border: none;
}

.map-error {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
}

.contact-numbers {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.contact-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  font-size: 0.9em;
}

.contact-link:hover {
  background-color: #00a59a;
  border-color: #00a59a;
  transform: translateY(-2px);
  box-shadow: none;
}