/* location-picker.css — /order/index.html location grid.
 * Uses an `order-loc-` prefix to avoid colliding with the site's existing
 * `.loc-*` design system in /css/styles.css (e.g. `.loc-card h2`). */

.order-loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.order-loc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--order-surface);
  border: 1px solid var(--order-line);
  border-radius: var(--order-radius-card);
  box-shadow: var(--shadow);
  transition: transform var(--order-transition), border-color var(--order-transition), background var(--order-transition);
}
.order-loc-card--active:hover {
  transform: translateY(-4px);
  border-color: rgba(237,42,38,0.4);
  background: var(--order-surface-2);
}

.order-loc-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.order-loc-card__name {
  font-family: var(--display);
  font-size: 1.28rem;
  margin: 0;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
}
.order-loc-card__address {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

/* Status badge */
.order-loc-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--order-radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.order-loc-badge__dot { width: 8px; height: 8px; border-radius: 50%; }
.order-loc-badge--open {
  color: #b8f5d0;
  background: rgba(34,160,90,0.16);
  border: 1px solid rgba(34,160,90,0.35);
}
.order-loc-badge--open .order-loc-badge__dot { background: var(--order-success); box-shadow: 0 0 0 4px rgba(34,160,90,0.18); }
.order-loc-badge--closed {
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--order-line);
}
.order-loc-badge--closed .order-loc-badge__dot { background: var(--muted); }
.order-loc-badge--soon {
  color: var(--cream);
  background: rgba(255,216,184,0.10);
  border: 1px solid rgba(255,216,184,0.22);
}
.order-loc-badge--soon .order-loc-badge__dot { background: var(--cream); }

.order-loc-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 0.85rem;
}
.order-loc-card__meta a { color: var(--muted); text-decoration: none; }
.order-loc-card__meta a:hover { color: var(--text); }

/* Two-button action row: Order Online + View Location */
.order-loc-card__actions {
  margin-top: auto;
  padding-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.order-loc-card__cta { width: 100%; padding: 0 14px; }

/* Disabled "Order Online" on not-yet-launched locations (View Location still works) */
.order-loc-card .btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
}

/* Coming-soon cards stay readable (View Location is a real action); the badge
   communicates status instead of dimming the whole card. */
.order-loc-card--soon:hover { transform: none; border-color: var(--order-line); }

@media (max-width: 560px) {
  .order-loc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .order-loc-card__actions { grid-template-columns: 1fr; }
}
