/* directory.css */

/* 1. Filter Form */
.filter-form {
  position: sticky;
  top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: #f9fafb;
  padding: 0.5rem 0 0.5rem 1rem;
  padding: 0.5rem 0;
  width: 100%;
  margin-bottom: 1rem;

}

/* 2. Map Section */
#map-section {
  width: 100%;
  margin-bottom: 1rem;
}
#map {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 3. Store Grid & Cards */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}
.store-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.store-card:hover {
  transform: translateY(-4px);
}

.store-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #1a1a1a;
}

.store-address-link {
  display: block;
  width: 100%;
  color: #4b5563;
  text-decoration: none;
}

.store-address {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0.25rem 0;
}

.store-address-link:hover .store-address {
  color: #3b82f6;
}

/* 4. Store Detail Extras */
.store-detail .store-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.store-photo {
  max-width: 300px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.store-description,
.store-contact {
  margin-bottom: 2rem;
}
.store-contact p {
  margin-bottom: 0.5rem;
}
.back-link a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s ease;
}
.back-link a:hover {
  color: #2563eb;
}

/* 5. Responsive */
@media (max-width: 1024px) {
  #map { height: 400px; }
}
@media (max-width: 768px) {
  .store-grid { grid-template-columns: 1fr; }
  .store-card { flex-direction: column; align-items: flex-start; }
  #map { height: 300px; }
}
