.locations-page {
  background: #f5f7fb;
}

.locations-shell {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.locations-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 4px;
}

.locations-header h1 {
  margin-bottom: 6px;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

.locations-status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 600;
}

.locations-status.is-warning {
  color: #8a5a00;
}

.locations-status.is-success {
  color: #0f6c0f;
}

.locations-layout {
  flex: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 18px;
}

.map-panel,
.locations-list-panel {
  min-height: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(12, 25, 45, 0.08);
  overflow: hidden;
}

.map-panel {
  position: relative;
}

.kiosk-map {
  width: 100%;
  height: 100%;
  min-height: 620px;
}

.map-fallback {
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-weight: 700;
}

.locations-list-panel {
  display: flex;
  flex-direction: column;
}

.locations-list-header {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.locations-list-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.locations-list-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.locations-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.location-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}

.location-card.is-selectable {
  border-color: #78d989;
  background: #f4fff6;
}

.location-card.is-outside-radius {
  opacity: 0.74;
}

.location-card h3 {
  margin: 0;
  font-size: 17px;
}

.location-meta,
.location-actions,
.location-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.location-meta {
  color: var(--muted);
  font-size: 13px;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f8;
  color: #334158;
  font-size: 12px;
  font-weight: 800;
}

.location-badge.is-open,
.location-badge.is-selectable {
  background: #dff6dd;
  color: #107c10;
}

.location-badge.is-closed,
.location-badge.is-outside {
  background: #fff4ce;
  color: #7a5d00;
}

.location-actions .btn {
  text-decoration: none;
  font-size: 13px;
}

.location-actions .btn[aria-disabled="true"] {
  opacity: 0.48;
  pointer-events: none;
}

@media (max-width: 860px) {
  .locations-shell {
    padding: 18px;
  }

  .locations-header {
    flex-direction: column;
  }

  .locations-layout {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .kiosk-map {
    min-height: 420px;
  }

  .locations-list-panel {
    max-height: none;
  }
}
