.pharmacy-list {
  margin-top: 1rem;
}

.pharmacy-list-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--on-surface);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pharmacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.pharmacy-card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--outline-variant);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-soft);
}

.pharmacy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.pharmacy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.pharmacy-header h4 {
  color: var(--on-surface);
  font-weight: 700;
  margin: 0;
  font-size: 1.05rem;
  flex: 1;
}

.pharmacy-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pharmacy-distance {
  flex-shrink: 0;
  background: rgba(0, 69, 13, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.pharmacy-card:hover .pharmacy-header h4 {
  color: var(--primary);
}

.pharmacy-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pharmacy-address,
.pharmacy-phone {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.45;
}

.pharmacy-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  padding: 0.25rem 0;
}

.pharmacy-hours-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: currentColor;
}

.pharmacy-hours--open {
  color: var(--primary);
}

.pharmacy-hours--closed {
  color: var(--on-surface-variant);
}

.pharmacy-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--outline-variant);
}

.price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.stock {
  font-size: 0.72rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
}

.stock.in-stock {
  background: rgba(0, 69, 13, 0.1);
  color: var(--primary);
}

.stock.low-stock {
  background: var(--warning-container);
  color: var(--warning);
}

.stock.out-of-stock {
  background: rgba(186, 26, 26, 0.1);
  color: var(--error);
}

.loading-pharmacies,
.no-pharmacies {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface-container-low);
  border-radius: var(--radius-md);
  color: var(--on-surface-variant);
  border: 1px solid var(--outline-variant);
  margin-top: 1rem;
}

.pharmacy-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 69, 13, 0.06);
  border: 1px solid rgba(0, 69, 13, 0.15);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  width: fit-content;
}

.pharmacy-directions:hover {
  background: rgba(0, 69, 13, 0.12);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .pharmacy-grid {
    grid-template-columns: 1fr;
  }
}
