/* =========================================================
   Dr. Austin — Pharmacies List Page Styles
   Visual reference: pharmacy second-level page
   ========================================================= */

.ph-main {
  background: #f2f4f8;
  min-height: 60vh;
}

.ph-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 44px 0 110px;
}

/* ---------- Breadcrumb ---------- */
.ph-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 13px;
}
.ph-breadcrumb a { color: var(--muted); transition: color .2s ease; }
.ph-breadcrumb a:hover { color: var(--navy); }
.crumb-sep { opacity: .55; }

/* ---------- Grid ---------- */
.ph-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.ph-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 26px;
  background: #f6f7f9;
  border: 1px solid #e7eaf2;
  text-align: center;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ph-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(18, 35, 79, 0.10);
  border-color: var(--yellow-strong);
  color: inherit;
}

/* Logo area */
.ph-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 2;
}
.ph-logo img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--r-sm);
  object-fit: cover;
  transition: transform .3s ease;
}
.ph-card:hover .ph-logo img { transform: scale(1.04); }

/* Text placeholder logo for pharmacies without an image */
.ph-logo-text {
  position: relative;
  background: linear-gradient(150deg, #1d2d59 0%, #2f4a8f 100%);
  flex-direction: column;
  gap: 8px;
}
.ph-initials {
  color: var(--yellow);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 2px;
}
.ph-logo-text svg {
  width: 34px;
  height: 34px;
  fill: rgba(255, 255, 255, 0.85);
}

.ph-name {
  display: block;
  padding: 0 20px 20px;
  margin-bottom: 20px;
  color: #1d2d59;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  border-bottom: 2px solid #fff;
}
.ph-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--yellow);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .4px;
}
.ph-addr {
  display: block;
  margin-top: 10px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .ph-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .ph-inner { padding: 30px 0 64px; }
  .ph-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 520px) {
  .ph-grid { grid-template-columns: 1fr; gap: 16px; }
  .ph-card { max-width: 420px; margin: 0 auto; width: 100%; }
  .ph-initials { font-size: 34px; }
}
