*, *::before, *::after { box-sizing: border-box; }

html, body {
  min-height: 100%;
  font-family: 'Roboto', sans-serif;
  background-color: #f0f2f5;
  color: #212529;
}

/* ── Hero banner ── */
.hero {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
  padding: 52px 20px 20px;
  text-align: center;
  color: #fff;
}
@media (min-width: 576px) {
  .hero { padding-bottom: 8px; }
}
.hero-logo {
  display: block;
  max-width: 100%;
  max-height: 100px;
  width: auto;
  margin: 0 auto 12px;
  object-fit: contain;
}
.hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -.3px;
}
.hero p {
  font-size: .875rem;
  opacity: .8;
  margin: 0;
}

/* ── Main content lifted over hero ── */
.content-wrapper {
  margin-top: -40px;
  padding: 0 16px 60px;
}

/* ── Location card ── */
.loc-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.loc-card:hover, .loc-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  text-decoration: none;
  color: inherit;
  outline: none;
}
.loc-card-accent {
  height: 6px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
}
.loc-card-body {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.loc-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}
.loc-hours {
  font-size: .85rem;
  color: #6c757d;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.loc-hours i { color: var(--clr-primary); }
.loc-address {
  font-size: .85rem;
  color: #6c757d;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}
.loc-address i { color: var(--clr-marker); margin-top: 2px; flex-shrink: 0; }

/* ── Service chips ── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.4;
}
.chip-pickup      { background: var(--clr-pickup-bg);   color: var(--clr-pickup-text); }
.chip-delivery    { background: var(--clr-delivery-bg); color: var(--clr-delivery-text); }
.chip-unavailable { background: #f0f0f0; color: #aaa; text-decoration: line-through; }
.chip i { font-size: .72rem; }

/* ── Disabled card (all services unavailable) ── */
.loc-card.loc-card-disabled {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}
.loc-card.loc-card-disabled .loc-card-accent {
  background: #ccc;
}
.loc-card.loc-card-disabled .loc-cta {
  background: #ccc;
  color: #fff !important;
}

/* ── CTA button ── */
.loc-cta {
  display: block;
  margin-top: auto;
  padding: 11px 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  color: #fff !important;
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: .3px;
  transition: opacity .15s ease;
  text-decoration: none;
}
.loc-card:hover .loc-cta { opacity: .9; }

/* ── Empty state ── */
.empty-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 48px 32px;
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
}
.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f0f2f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #9e9e9e;
  margin-bottom: 20px;
}
.empty-card h5 { font-weight: 700; margin-bottom: 8px; }
.empty-card p  { color: #6c757d; font-size: .9rem; margin: 0; }

/* ── Grid ── */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 540px) {
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .loc-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Single card — cap width so it doesn't stretch too wide */
.loc-grid.count-1 { grid-template-columns: minmax(0, 380px); justify-content: center; }

/* Two cards — prevent the wide breakpoint from creating an empty 3rd column */
@media (min-width: 860px) {
  .loc-grid.count-2 { grid-template-columns: repeat(2, 1fr); }
}
