/* Store Locator page styles */

/* Header */
.stores-header {
  padding: 56px 48px 40px;
  border-bottom: 1px solid var(--border);
}

.stores-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}

.stores-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.stores-sub {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  max-width: 480px;
}

/* Layout */
.stores-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - 180px);
}

/* Sidebar */
.stores-sidebar {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 28px 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: #fff;
}

.city-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A8078' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.store-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

/* Store list */
.store-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  flex: 1;
}

.store-item {
  display: flex;
  gap: 14px;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  align-items: flex-start;
}

.store-item:hover {
  background: var(--bg);
  border-color: var(--border);
}

.store-item-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.store-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-item-info strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
}

.store-item-info span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

.store-phone {
  color: var(--accent) !important;
  font-weight: 400 !important;
}

.no-results {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  padding: 12px 0;
}

/* Map */
.stores-map-wrap {
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

/* Custom marker */
.store-marker {
  background: none;
  border: none;
}

.marker-pin {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.marker-pin::after {
  content: attr(data-num);
  transform: rotate(45deg);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
}

/* Leaflet popup */
.leaflet-popup-content-wrapper {
  border-radius: 6px;
  font-family: var(--font-body);
}

.popup-content {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
}

.popup-content strong {
  color: var(--charcoal);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .stores-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 400px;
    height: auto;
  }

  .stores-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 360px;
  }

  .stores-header {
    padding: 40px 24px 32px;
  }
}